Logs
Get API request log details
Retrieve detailed information about a specific API request log, including the full request and response bodies.
Body decryption: Request and response bodies are stored encrypted and automatically decrypted when retrieved. Bodies larger than 25KB are truncated at storage time with a ... [truncated] marker.
Use cases:
- Debug a specific failed request
- Review the exact payload sent/received
- Share request details with support
Related endpoints:
- GET /logs - List logs with filters
get/logs/{requestId}
Response
API request log details
Example response
{
"data": {
"requestId": "req_V8GGcdWYzgeWIHiI",
"timestamp": "2024-01-15T10:30:00Z",
"method": "POST",
"path": "/v1/emails",
"endpoint": "emails.send",
"statusCode": 200,
"durationMs": 145,
"error": {
"code": "validation_error",
"message": "The 'to' field must contain valid email addresses"
},
"context": {
"ipAddress": "192.168.1.1",
"userAgent": "ark-python/1.0.0",
"idempotencyKey": "unique-key-123"
},
"sdk": {
"name": "ark-python",
"version": "1.0.0"
},
"credential": {
"id": "cred_abc123",
"keyPrefix": "ak_live_"
},
"email": {
"id": "aBc123XyZ",
"recipientCount": 1
},
"rateLimit": {
"limit": 5,
"remaining": 4,
"reset": 1705312260
},
"request": {
"bodySize": 256
},
"response": {
"bodySize": 128
}
},
"meta": {
"requestId": "req_V1StGXR8_Z5jdHi6"
}
}