v32

latestOpenAPI 3.1.0MITraw.githubusercontent.com2026-07-312881,4162.7 MB

Create project service account API key

Creates an API key for a service account in the project.

post/organization/projects/{project_id}/service_accounts/{service_account_id}/api_keys

Path parameters

project_idstring required

The ID of the project.

The ID of the project.

service_account_idstring required

The ID of the service account.

The ID of the service account.

Request body

namestring

API key name.

scopesstring[]

API key scopes.

Response

Service account API key created successfully.

object'organization.project.service_account.api_key' required

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

valuestring required

The unredacted API key value.

namestring required

The name of the API key.

created_atinteger required

The Unix timestamp (in seconds) when the API key was created.

idstring required

The identifier of the API key.