POST
/
organization
/
projects
/
{project_id}
/
service_accounts
curl --request POST \
  --url https://api.openai.com/v1/organization/projects/{project_id}/service_accounts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>"
}'
{
  "object": "organization.project.service_account",
  "id": "<string>",
  "name": "<string>",
  "role": "member",
  "created_at": 123,
  "api_key": {
    "object": "organization.project.service_account.api_key",
    "value": "<string>",
    "name": "<string>",
    "created_at": 123,
    "id": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

project_id
string
required

The ID of the project.

Body

application/json

The project service account create request payload.

The body is of type object.

Response

200
application/json

Project service account created successfully.

The response is of type object.