Projects

Create project service account

Creates a new service account in the project. By default, this also returns an unredacted API key for the service account.

post/organization/projects/{project_id}/service_accounts

Path parameters

project_idstring required

The ID of the project.

Request body

namestring required

The name of the service account being created.

create_service_account_onlyboolean nullable

Create the service account without default roles or an API key.

Response

Project service account created successfully.

object'organization.project.service_account' required
idstring required
namestring required
role'member' | 'none' required

Service accounts created with default project membership have role member. Accounts created with create_service_account_only have role none.

created_atinteger required

Changes

Changed in 3 of the 31 revisions of this API.613

  • 241fb501b37211See the full diff
    • added the new none enum value to the role response property for the response status 200

      response-property-enum-value-added

    • added the new optional request property create_service_account_only

      new-optional-request-property

    • the api_key response's property type/format changed from object/ to / for status 200

      response-property-type-changed

    • removed the required property api_key/created_at from the response with the 200 status

      response-required-property-removed

    • removed the required property api_key/id from the response with the 200 status

      response-required-property-removed

    • removed the required property api_key/name from the response with the 200 status

      response-required-property-removed

    • removed the required property api_key/object from the response with the 200 status

      response-required-property-removed

    • removed the required property api_key/value from the response with the 200 status

      response-required-property-removed

    • added ProjectServiceAccountApiKey subschema #2 to the api_key response property anyOf list for the response status 200

      response-property-any-of-added

    • the endpoint scheme security AdminApiKeyAuth was added to the API

      api-security-added

    This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog