Activate certificates for organization

POSThttps:/api.openai.com/v1/organization/certificates/activate

Activate certificates at the organization level.

You can atomically and idempotently activate up to 10 certificates at a time.

Request body

  • certificate_ids
    array
    Required
    • items
      string

Response

A list of Certificate objects that were activated.

Example request
1
curl https://api.openai.com/v1/organization/certificates/activate \
2
-H "Authorization: Bearer $OPENAI_ADMIN_KEY" \
3
-H "Content-Type: application/json" \
4
-d '{
5
"data": ["cert_abc", "cert_def"]
6
}'
Example response
1
{
2
"object": "organization.certificate.activation",
3
"data": [
4
{
5
"object": "organization.certificate",
6
"id": "cert_abc",
7
"name": "My Example Certificate",
8
"active": true,
9
"created_at": 1234567,
10
"certificate_details": {
11
"valid_at": 12345667,
12
"expires_at": 12345678
13
}
14
},
15
{
16
"object": "organization.certificate",
17
"id": "cert_def",
18
"name": "My Example Certificate 2",
19
"active": true,
20
"created_at": 1234567,
21
"certificate_details": {
22
"valid_at": 12345667,
23
"expires_at": 12345678
24
}
25
},
26
],
27
}
Built with