Create service account Run in API Explorer

POST /v1/service-accounts

Create a Redpanda Cloud ServiceAccount.

application/json

Body Required

CreateServiceAccountRequest is the request of CreateServiceAccount.

  • service_account object
    Hide service_account attributes Show service_account attributes object
    • description string

      The description of the service_account.

    • name string

      The unique name of the service_account.

Responses

  • 201 application/json

    ServiceAccount Created

    Hide response attribute Show response attribute object
    • service_account object
      Hide service_account attributes Show service_account attributes object
      • auth0_client_credentials object
        Hide auth0_client_credentials attributes Show auth0_client_credentials attributes object
        • client_id string

          The client ID of the credentials

        • client_secret string | null

          The client secret

      • created_at string(date-time)
      • description string

        The description of the service_account.

      • id string
      • name string

        The unique name of the service account.

      • updated_at string(date-time)
  • 500 application/json

    Internal Server Error. Reach out to support.

    Hide response attributes Show response attributes object
    • code string(int32)

      RPC status code, as described here.

      Values are OK, CANCELLED, UNKNOWN, INVALID_ARGUMENT, DEADLINE_EXCEEDED, NOT_FOUND, ALREADY_EXISTS, PERMISSION_DENIED, UNAUTHENTICATED, RESOURCE_EXHAUSTED, FAILED_PRECONDITION, ABORTED, OUT_OF_RANGE, UNIMPLEMENTED, INTERNAL, UNAVAILABLE, or DATA_LOSS.

    • details array[object]

      A list of messages that carries the error details.

      Details of the error.

      Details of the error.

      One of:
    • message string

      Detailed error message. No compatibility guarantees are given for the text contained in this message.

  • default application/json

    An unexpected error response.

    Hide response attributes Show response attributes object
    • code string(int32)

      RPC status code, as described here.

      Values are OK, CANCELLED, UNKNOWN, INVALID_ARGUMENT, DEADLINE_EXCEEDED, NOT_FOUND, ALREADY_EXISTS, PERMISSION_DENIED, UNAUTHENTICATED, RESOURCE_EXHAUSTED, FAILED_PRECONDITION, ABORTED, OUT_OF_RANGE, UNIMPLEMENTED, INTERNAL, UNAVAILABLE, or DATA_LOSS.

    • details array[object]

      A list of messages that carries the error details.

      Details of the error.

      Details of the error.

      One of:
    • message string

      Detailed error message. No compatibility guarantees are given for the text contained in this message.

POST /v1/service-accounts
curl \
 --request POST 'https://api.redpanda.com/v1/service-accounts' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"service_account":{"description":"CI bot account is used for CI workloads.","name":"billing_admin"}}'
Request examples
{
  "service_account": {
    "description": "CI bot account is used for CI workloads.",
    "name": "billing_admin"
  }
}
Response examples (201)
{
  "service_account": {
    "auth0_client_credentials": {
      "client_id": "CDFX4567298",
      "client_secret": "dYz_FZqNM6E3_O1lKUwONKNQ4TKf7i"
    },
    "created_at": "2025-05-04T09:42:00Z",
    "description": "CI bot account is used for CI workloads.",
    "id": "string",
    "name": "ci_bot",
    "updated_at": "2025-05-04T09:42:00Z"
  }
}
Response examples (500)
{
  "code": "OK",
  "details": [
    {
      "@type": "type.googleapis.com/google.rpc.BadRequest",
      "field_violations": [
        {
          "description": "string",
          "field": "string",
          "localized_message": {
            "locale": "string",
            "message": "string"
          },
          "reason": "string"
        }
      ]
    }
  ],
  "message": "string"
}
Response examples (default)
{
  "code": "OK",
  "details": [
    {
      "@type": "type.googleapis.com/google.rpc.BadRequest",
      "field_violations": [
        {
          "description": "string",
          "field": "string",
          "localized_message": {
            "locale": "string",
            "message": "string"
          },
          "reason": "string"
        }
      ]
    }
  ],
  "message": "string"
}