Skip to main content
GET
/
v1
/
apps
/
{app_id}
/
request-logs
/
{request_uuid}
Get Request Details
curl --request GET \
  --url https://api.apitally.io/v1/apps/{app_id}/request-logs/{request_uuid} \
  --header 'Api-Key: <api-key>'
{
  "timestamp": "2023-11-07T05:31:56Z",
  "request_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "env": "<string>",
  "consumer": "user-123",
  "method": "<string>",
  "path": "/v1/users/{user_id}",
  "url": "<string>",
  "status_code": 123,
  "request_size_bytes": 123,
  "response_size_bytes": 123,
  "response_time_ms": 123,
  "client_ip": "203.45.123.67",
  "client_country_iso_code": "US",
  "request_headers": [
    [
      "<string>",
      "<string>"
    ]
  ],
  "response_headers": [
    [
      "<string>",
      "<string>"
    ]
  ],
  "request_body_json": "<string>",
  "response_body_json": "<string>",
  "trace_id": "<string>",
  "exception": {
    "type": "KeyError",
    "message": "<string>",
    "stacktrace": "<string>",
    "sentry_event_id": "<string>"
  },
  "logs": [
    {
      "timestamp": "2023-11-07T05:31:56Z",
      "message": "<string>",
      "level": "INFO",
      "logger": "<string>",
      "file": "<string>",
      "line": 123
    }
  ],
  "spans": [
    {
      "span_id": "<string>",
      "parent_span_id": "<string>",
      "name": "<string>",
      "kind": "<string>",
      "start_time_ns": 123,
      "end_time_ns": 123,
      "duration_ns": 123,
      "status": "<string>",
      "attributes": {}
    }
  ]
}

Authorizations

Api-Key
string
header
required

Path Parameters

app_id
integer
required

App ID

Required range: x >= 1
request_uuid
string<uuid>
required

Request UUID

Response

Successful Response

timestamp
string<date-time>
required

Timestamp of the request

request_uuid
string<uuid>
required

Unique identifier for the request

env
string
required

Environment

Example:

"prod"

consumer
string | null
required

Consumer identifier

Example:

"user-123"

method
string
required

HTTP method

Example:

"GET"

path
string | null
required

Request path

Example:

"/v1/users/{user_id}"

url
string
required

Request URL

Example:

"https://api.example.com/v1/users/1"

status_code
integer
required

HTTP response status code

Example:

200

request_size_bytes
integer
required

Size of the request in bytes

response_size_bytes
integer
required

Size of the response in bytes

response_time_ms
integer
required

Response time in milliseconds

client_ip
string | null
required

Client IP address

Example:

"203.45.123.67"

client_country_iso_code
string | null
required

ISO code of the client's country based on the IP address

Example:

"US"

request_headers
tuple[]
required

Request headers as name-value pairs

response_headers
tuple[]
required

Response headers as name-value pairs

request_body_json
string | null
required

Request body as a JSON string, if applicable

response_body_json
string | null
required

Response body as a JSON string, if applicable

trace_id
string | null
required

Trace ID as a 32-character hex string

exception
ExceptionItem · object
required

Exception details, if an error occurred

logs
ApplicationLogItem · object[]
required

Application log entries associated with this request

spans
SpanItem · object[]
required

Spans associated with this request