Retrieves a service account in the project.

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

Path parameters

  • project_id string Required

    The ID of the project.

  • service_account_id string Required

    The ID of the service account.

Responses

  • 200 application/json

    Project service account retrieved successfully.

    Hide response attributes Show response attributes object
    • object string Required

      The object type, which is always organization.project.service_account

      Value is organization.project.service_account.

    • id string Required

      The identifier, which can be referenced in API endpoints

    • name string Required

      The name of the service account

    • role string Required

      owner or member

      Values are owner or member.

    • created_at integer Required

      The Unix timestamp (in seconds) of when the service account was created

GET /organization/projects/{project_id}/service_accounts/{service_account_id}
curl \
 --request GET 'https://api.openai.com/v1/organization/projects/{project_id}/service_accounts/{service_account_id}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "object": "organization.project.service_account",
  "id": "string",
  "name": "string",
  "role": "owner",
  "created_at": 42
}