Sample - OpenAI API
GET/organization/projects/{project_id}/service_accounts

List project service accounts

Returns a list of service accounts in the project.

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

3 parameters
project_idstringrequired
The ID of the project.
limitintegeroptional
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.
Default:20
afterstringoptional
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.

2 status codes
200Project service accounts listed successfully.
objectstringrequired
Allowed:list
dataarray<object>required
first_idstringoptional
last_idstringoptional
has_morebooleanrequired
400Error response when project is archived.
errorobjectrequired

Error handling

A 400 is returned: Error response when project is archived.