Get certificate

GEThttps:/api.openai.com/v1/organization/certificates/{certificate_id}

Get a certificate that has been uploaded to the organization.

You can get a certificate regardless of whether it is active or not.

Path parameters

  • cert_id
    string
    Required
    Unique ID of the certificate to retrieve.

Query parameters

  • include
    array

    A list of additional fields to include in the response. Currently the only supported value is content to fetch the PEM content of the certificate.

Response

A single Certificate object.

Example request
1
curl "https://api.openai.com/v1/organization/certificates/cert_abc?include[]=content" \
2
-H "Authorization: Bearer $OPENAI_ADMIN_KEY"
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": 1234567,
8
"expires_at": 12345678,
9
"content": "-----BEGIN CERTIFICATE-----MIIDeT...-----END CERTIFICATE-----"
10
}
11
}
Built with