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

Retrieve a project service account

Retrieves a service account from a specific project. Supply project_id and service_account_id to identify the project and service account you want to inspect.

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

2 parameters
project_idstringrequired
The unique identifier of the project containing the service account.
service_account_idstringrequired
The unique identifier of the service account to retrieve.

1 status code
200Returns the project service account with its object type, identifier, name, role, and creation timestamp.
objectstringrequired
The object type, which is always `organization.project.service_account`
Allowed:organization.project.service_account
idstringrequired
The identifier, which can be referenced in API endpoints
namestringrequired
The name of the service account
rolestringrequired
`owner`, `member`, or `none`
Allowed:ownermembernone
created_atintegerrequired
The Unix timestamp (in seconds) of when the service account was created

Error handling

project_id must identify the project containing the service account, and service_account_id must identify the service account to retrieve. The response includes a role of owner, member, or none and a Unix timestamp in created_at.