Sample - OpenAI API
POST/organization/certificates

Upload certificate

Upload a certificate to the organization. This does not automatically activate the certificate.

Organizations can upload up to 50 certificates.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

2 body fields

The certificate upload payload.

namestringoptional
An optional name for the certificate
certificatestringrequired
The certificate content in PEM format

2 status codes
200Certificate uploaded successfully.
objectstringrequired
The object type. - If creating, updating, or getting a specific certificate, the object type is `certificate`. - If listing, activating, or deactivating certificates for the organization, the object type is `organization.certificate`. - If listing, activating, or deactivating certificates for a project, the object type is `organization.project.certificate`.
Allowed:certificateorganization.certificateorganization.project.certificate
idstringrequired
The identifier, which can be referenced in API endpoints
namestringrequired
The name of the certificate.
created_atintegerrequired
The Unix timestamp (in seconds) of when the certificate was uploaded.
certificate_detailsobjectrequired
activebooleanoptional
Whether the certificate is currently active at the specified scope. Not returned when getting details for a specific certificate.
429The request was rejected because a rate limit was exceeded.
errorobjectrequired

Error handling

A 429 is returned: The request was rejected because a rate limit was exceeded.