Get recent logs for a hook

GET /api/hooks/{id}/recent-logs

Get recent logs that match the given query for the specified hook with pagination.

Path parameters

  • id string Required

    The unique identifier of the hook.

Query parameters

  • logKey string

    The log key to filter logs.

  • page integer

    Page number (starts from 1).

    Minimum value is 1. Default value is 1.

  • page_size integer

    Entries per page.

    Minimum value is 1. Default value is 20.

Responses

GET /api/hooks/{id}/recent-logs
curl \
 -X GET https://[tenant_id].logto.app/api/hooks/{id}/recent-logs
Response examples (200)
[
  {
    "id": "string",
    "key": "string",
    "payload": {
      "key": "string",
      "result": "Success",
      "error": {},
      "ip": "string",
      "userAgent": "string",
      "userId": "string",
      "applicationId": "string",
      "sessionId": "string"
    },
    "createdAt": 42.0
  }
]