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.
Was this page helpful?