Upload certificate
POSThttps:/api.openai.com/v1/organization/certificates
Upload a certificate to the organization. This does not automatically activate the certificate.
Organizations can upload up to 50 certificates.
Request body
name
string
An optional name for the certificatecontent
string
Required
The certificate content in PEM format
Response
A single Certificate object.
Example request
1 curl -X POST https://api.openai.com/v1/organization/certificates \2 -H "Authorization: Bearer $OPENAI_ADMIN_KEY" \3 -H "Content-Type: application/json" \4 -d '{5 "name": "My Example Certificate",6 "certificate": "-----BEGIN CERTIFICATE-----\nMIIDeT...\n-----END CERTIFICATE-----"7 }'
Example response
1 {2 "object": "certificate",3 "id": "cert_abc",4 "name": "My Example Certificate",5 "created_at": 1234567,6 "certificate_details": {7 "valid_at": 12345667,8 "expires_at": 123456789 }10 }
Built with