GET/organization/projects/{project_id}/service_accounts/{service_account_id}

Retrieve a project service account

Retrieves a service account in a project. Use the project and service account identifiers to inspect the account's name, role, and creation timestamp.

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

5 status codes
200Returns the service account object, including its ID, 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
400Returned when the project is archived.
errorobjectrequired
403Returned when the caller does not have permission to retrieve the project service account.
errorobjectrequired
Details about the permission error.
404Returned when the project or service account is not found.
errorobjectrequired
429Returned when management requests exceed the allowed rate; reduce the request rate and try again later.
errorobjectrequired

Error handling

A 400 is returned when the project is archived; a 403 when the authenticated user lacks permission; a 404 when the project or service account is not found; and a 429 when management requests are being sent too frequently. The project_id path parameter and service_account_id path parameter must identify the project and service account to retrieve.