Company logoTrust Center Documentation
API v1 Reference/Certifications/Id/Filetype

Upload certification file

Upload a file for a certification. Supports two file types: - document: PDF files up to 1.5MB for certification documents - badge: Image files up to 100KB for certification badges (PNG, JPEG, GIF, SVG, WebP)

PUT
/api/v1/certifications/{id}/{filetype}
AuthorizationBearer <token>

In: header

Path Parameters

idstring

Certification ID

Formatuuid
filetypestring

Type of file to upload

Value in"document" | "badge"
filefile

File to upload (PDF for documents, image for badges)

Formatbinary

Response Body

curl -X PUT "https://app.orbiqhq.com/api/v1/certifications/550e8400-e29b-41d4-a716-446655440000/document" \
  -F file="string"
{
  "success": true,
  "data": {
    "fileId": "abc123-def456-ghi789",
    "url": "https://app.orbiqhq.com/assets/abc123-def456-ghi789"
  }
}

{
  "error": "document_invalid_type"
}

Empty
Empty
Empty
{
  "error": "unsupported_media_type"
}
{
  "error": "directus_upload_failed"
}

How is this guide?