Skip to main content
POST
/
v1
/
trust-portal
/
custom-frameworks
/
badge
Upload or replace a custom framework's Trust Portal badge image
curl --request POST \
  --url https://api.trycomp.ai/v1/trust-portal/custom-frameworks/badge \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "customFrameworkId": "cfrm_6914cd0e16e4c7dccbb54426",
  "fileName": "acme-framework-badge.png",
  "fileType": "image/png",
  "fileData": "<string>"
}
'
{
  "success": true,
  "badgeUrl": "<string>"
}

Authorizations

X-API-Key
string
header
required

API key for authentication

Body

application/json
customFrameworkId
string
required

Org-authored custom framework ID the badge belongs to

Example:

"cfrm_6914cd0e16e4c7dccbb54426"

fileName
string
required

Original file name (PNG, JPEG, or WebP)

Example:

"acme-framework-badge.png"

fileType
string
required

MIME type of the image

Example:

"image/png"

fileData
string
required

Base64 encoded image content (PNG/JPEG/WebP, max 256KB decoded)

Response

201 - application/json

Badge uploaded successfully

success
boolean
required
badgeUrl
string
required

Signed URL to the uploaded badge for immediate display