Skip to main content
GET
/
v3
/
orgs
/
{org_id}
/
iam
/
service-accounts
/
{service_account_id}
/
logs
/
{log_id}
cURL
curl --request GET \
  --url https://api.ctrl-hub.com/v3/orgs/{org_id}/iam/service-accounts/{service_account_id}/logs/{log_id} \
  --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>"
        }
      }
    }
  },
  "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.

log_id
string<uuid>
required

The unique identifier for the log.

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 Service Account Log.

JSON API response object

data
object
required

A service account log entry

jsonapi
object
required