curl --request GET \
--url https://api.openai.com/v1/organization/projects/{project_id}/service_accounts/{service_account_id} \
--header 'Authorization: Bearer <token>'{
"object": "organization.project.service_account",
"id": "<string>",
"name": "<string>",
"role": "owner",
"created_at": 123
}Retrieves a service account in the project.
curl --request GET \
--url https://api.openai.com/v1/organization/projects/{project_id}/service_accounts/{service_account_id} \
--header 'Authorization: Bearer <token>'{
"object": "organization.project.service_account",
"id": "<string>",
"name": "<string>",
"role": "owner",
"created_at": 123
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the project.
The ID of the service account.
Project service account retrieved successfully.
Represents an individual service account in a project.
The object type, which is always organization.project.service_account
organization.project.service_account The identifier, which can be referenced in API endpoints
The name of the service account
owner or member
owner, member The Unix timestamp (in seconds) of when the service account was created
Was this page helpful?