List project certificates

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

List certificates for this project.

Query parameters

  • limit
    integer
    Defaults: 20
    A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.
  • after
    string

    A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.

  • order
    string
    Defaults: desc

    Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.

Response

A list of Certificate objects.

Example request
1
curl https://api.openai.com/v1/organization/projects/proj_abc/certificates \
2
-H "Authorization: Bearer $OPENAI_ADMIN_KEY"
Example response
1
{
2
"object": "list",
3
"data": [
4
{
5
"object": "organization.project.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
"first_id": "cert_abc",
17
"last_id": "cert_abc",
18
"has_more": false
19
}
Built with