GET
/
stats
/
logs
Get invocation logs
curl --request GET \
  --url https://api.callmelater.xyz/stats/logs \
  --header 'x-api-key: <api-key>'
{
  "logs": [
    {
      "invocationId": "inv_1234567890abcdef",
      "scheduleId": "sched_1234567890abcdef",
      "createdAt": 1703505600000,
      "userId": "user_1234567890abcdef",
      "apiKey": "ak_1234567890abcdef",
      "scheduledAt": 1703505600000,
      "targetUrl": "https://api.example.com/webhook",
      "targetMethod": "POST",
      "targetHeaders": {
        "Content-Type": "application/json"
      },
      "targetBody": "<any>",
      "status": "scheduled",
      "statusCode": 200,
      "responseTimeMs": 245,
      "errorMessage": ""
    }
  ]
}
Retrieve logs of all scheduled request executions with filtering and pagination support.

Example Request

curl -X GET "https://api.callmelater.xyz/stats/logs?limit=10&status=success" \
  -H "x-api-key: YOUR_API_KEY"

Response

{
  "logs": [
    {
      "invocationId": "inv_1234567890abcdef",
      "scheduleId": "sched_1234567890abcdef",
      "createdAt": 1703505600000,
      "userId": "user_1234567890abcdef",
      "apiKey": "ak_1234567890abcdef",
      "scheduledAt": 1703505600000,
      "targetUrl": "https://api.example.com/webhook",
      "targetMethod": "POST",
      "targetHeaders": { "Content-Type": "application/json" },
      "targetBody": { "message": "Hello from CallMeLater!" },
      "status": "success",
      "statusCode": 200,
      "responseTimeMs": 245,
      "errorMessage": ""
    }
  ]
}

Query Parameters

  • targetUrl: Filter by target URL
  • status: Filter by execution status (scheduled, success, failed, cancelled)
  • from: Start date for filtering (ISO 8601 format)
  • to: End date for filtering (ISO 8601 format)
  • limit: Maximum number of logs to return (1-100, default: 50)
  • order: Sort order (asc, desc, default: desc)

Use Cases

  • Debugging: Track failed requests and identify issues
  • Monitoring: Monitor execution times and success rates
  • Analytics: Analyze usage patterns and performance metrics
  • Compliance: Maintain audit trails of scheduled executions

Authorizations

x-api-key
string
header
required

API key authentication. Include your API key in the x-api-key header.

Query Parameters

targetUrl
string

Filter by target URL

Example:

"https://api.example.com/webhook"

status
enum<string>

Filter by execution status

Available options:
scheduled,
success,
failed,
cancelled
from
string

Start date for filtering (ISO 8601 format)

Example:

"2024-11-01T00:00:00Z"

to
string

End date for filtering (ISO 8601 format)

Example:

"2024-12-01T00:00:00Z"

limit
integer
default:50

Maximum number of logs to return (1-100, default: 50)

Required range: 1 <= x <= 100
order
enum<string>
default:desc

Sort order (default: desc)

Available options:
asc,
desc

Response

200
application/json

Invocation logs

The response is of type object.