Skip to main content
GET
/
v3
/
orgs
/
{org_id}
/
iam
/
service-accounts
/
{service_account_id}
cURL
curl --request GET \
  --url https://api.ctrl-hub.com/v3/orgs/{org_id}/iam/service-accounts/{service_account_id} \
  --header 'X-Session-Token: <api-key>'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "type": "<string>",
    "attributes": {
      "name": "<string>",
      "description": "<string>",
      "email": "[email protected]",
      "enabled": true,
      "keys": [
        {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "client_secret": "<string>",
          "enabled": true,
          "created_at": "2023-11-07T05:31:56Z"
        }
      ]
    },
    "meta": {
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    },
    "relationships": {
      "groups": {
        "data": [
          {
            "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "type": "<string>"
          }
        ]
      },
      "organisations": {
        "data": [
          {
            "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "type": "<string>"
          }
        ]
      }
    }
  },
  "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.

Response

Get a Service Account.

JSON API response object

data
object
required

A service account

jsonapi
object
required