Skip to content

Upload compliance certificate

POST
/v1/trust-portal/compliance-resources/upload
curl --request POST \
--url https://api.varman.io/v1/trust-portal/compliance-resources/upload \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <X-API-Key>' \
--data '{ "organizationId": "org_6914cd0e16e4c7dccbb54426", "framework": "iso_27001", "customFrameworkId": "cfrm_6914cd0e16e4c7dccbb54426", "fileName": "iso-27001-certificate.pdf", "fileType": "application/pdf", "fileData": "example" }'

Upload or replace a compliance certificate PDF such as SOC 2, ISO 27001, HIPAA, or GDPR evidence for Trust Center sharing.

Media typeapplication/json
object
organizationId
required

Organization ID that owns the compliance resource

string

Example

org_6914cd0e16e4c7dccbb54426
framework

Native compliance framework identifier

string
Allowed values: iso_27001 iso_42001 gdpr hipaa soc2_type1 soc2_type2 soc3 pci_dss nen_7510 iso_9001 pipeda ccpa

Example

iso_27001
customFrameworkId

Org-authored custom framework ID (alternative to framework)

string

Example

cfrm_6914cd0e16e4c7dccbb54426
fileName
required

Original file name (PDF only)

string

Example

iso-27001-certificate.pdf
fileType
required

MIME type of the file

string

Example

application/pdf
fileData
required

Base64 encoded PDF content

string

Compliance certificate uploaded successfully

Media typeapplication/json
object
framework
required

Set for native-framework certificates; null for custom ones

string
nullable
Allowed values: iso_27001 iso_42001 gdpr hipaa soc2_type1 soc2_type2 soc3 pci_dss nen_7510 iso_9001 pipeda ccpa
customFrameworkId
required

Set for custom-framework certificates; null for native ones

object
fileName
required
string
fileSize
required

File size in bytes

number
updatedAt
required

ISO timestamp when the certificate was last updated

string

Example

{
"framework": "iso_27001"
}

Framework not compliant, PDF validation failed, or organization mismatch