Retrieve project service account
GEThttps:/api.openai.com/v1/organization/projects/{project_id}/service_accounts/{service_account_id}
Retrieves a service account in the project.
Path parameters
project_id
string
Required
The ID of the project.service_account_id
string
Required
The ID of the service account.
Response
The ProjectServiceAccount object matching the specified ID.
Example request
1 curl https://api.openai.com/v1/organization/projects/proj_abc/service_accounts/svc_acct_abc \2 -H "Authorization: Bearer $OPENAI_ADMIN_KEY" \3 -H "Content-Type: application/json"
Example response
1 {2 "object": "organization.project.service_account",3 "id": "svc_acct_abc",4 "name": "Service Account",5 "role": "owner",6 "created_at": 17114715337 }
Built with