Skip to main content
POST
/
v3
/
orgs
/
{org_id}
/
iam
/
service-accounts
/
{service_account_id}
/
keys
Create a Service Account Key
curl --request POST \
  --url https://api.ctrl-hub.com/v3/orgs/{org_id}/iam/service-accounts/{service_account_id}/keys \
  --header 'Content-Type: application/vnd.api+json' \
  --header 'X-Session-Token: <api-key>' \
  --data '
{
  "data": {
    "type": "<string>"
  }
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "type": "<string>",
    "attributes": {
      "client_secret": "<string>",
      "enabled": true
    }
  },
  "jsonapi": {
    "version": "<string>"
  }
}

Authorizations

X-Session-Token
string
header
required

Session token for authentication.

Path Parameters

org_id
string<uuid>
required

The unique identifier for the organisation.

service_account_id
string<uuid>
required

The unique identifier for the service account.

Body

application/vnd.api+json

The service account key to create.

data
object
required

Response

Get a Service Account Key.

JSON API response object

data
object
required
jsonapi
object
required