Skip to main content
GET
/
v3
/
orgs
/
{org_id}
/
iam
/
service-accounts
/
{service_account_id}
/
logs
cURL
curl --request GET \
  --url https://api.ctrl-hub.com/v3/orgs/{org_id}/iam/service-accounts/{service_account_id}/logs \
  --header 'X-Session-Token: <api-key>'
{
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "type": "<string>",
      "attributes": {
        "actor": {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "type": "<string>"
        },
        "duration": 123,
        "request": {
          "time": "2023-11-07T05:31:56Z",
          "headers": {},
          "body": "<string>",
          "path": "<string>",
          "query": {},
          "raw_query": "<string>",
          "method": "<string>",
          "content_length": 123
        },
        "response": {
          "time": "2023-11-07T05:31:56Z",
          "body": "<string>",
          "headers": {},
          "status": 123
        }
      },
      "relationships": {
        "actor": {
          "data": {
            "type": "users",
            "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
          }
        },
        "service_account": {
          "data": {
            "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "type": "<string>"
          }
        }
      }
    }
  ],
  "meta": {
    "pagination": {
      "counts": {
        "pages": 123,
        "resources": 123
      },
      "current_page": 123,
      "offsets": {
        "next": 123,
        "previous": 123
      },
      "requested": {
        "limit": 123,
        "offset": 123
      }
    },
    "features": {
      "include": {
        "options": [
          "<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.

Query Parameters

limit
integer<int64>
default:100

Limit the number of resources returned by the API

Required range: x >= 1
offset
integer<int64>
default:0

Offset the resources returned by the API

Required range: x >= 0

Response

Get a list of Service Account Logs.

JSON API response object

data
A list of service account logs · object[]
required
meta
object
required
jsonapi
object
required