events

Retrieve an event

Changed on
get/events/{event_id}

Request

  • Base URL
    https://api.pscrpt.com/v1
  • URL
    https://api.pscrpt.com/v1/events/{event_id}
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization code: https://api.pscrpt.com/oauth/authorize
      Token URL: https://api.pscrpt.com/oauth/token scopes: events:read

Path parameters

event_idstring required

Query parameters

expandstring[]

Headers

Postscript-Versionstring date
Example:2026-07-23

Overrides the key's pinned API revision for this request.

Response

The event.

Example response

{
  "data": {
    "event_type": {
      "first_seen_at": "2026-07-23T17:32:01.123456Z"
    },
    "occurred_at": "2026-07-23T17:32:01.123456Z",
    "profile": {
      "consents": [
        {
          "channel": "sms",
          "consented_at": "2026-07-23T17:32:01.123456Z",
          "identifier": {
            "created_at": "2026-07-23T17:32:01.123456Z",
            "type": "email",
            "updated_at": "2026-07-23T17:32:01.123456Z",
            "verified_at": "2026-07-23T17:32:01.123456Z"
          },
          "method": "checkout",
          "updated_at": "2026-07-23T17:32:01.123456Z"
        }
      ],
      "created_at": "2026-07-23T17:32:01.123456Z",
      "identifiers": [
        {
          "created_at": "2026-07-23T17:32:01.123456Z",
          "type": "email",
          "updated_at": "2026-07-23T17:32:01.123456Z",
          "verified_at": "2026-07-23T17:32:01.123456Z"
        }
      ],
      "updated_at": "2026-07-23T17:32:01.123456Z"
    },
    "received_at": "2026-07-23T17:32:01.123456Z",
    "source": "api"
  }
}

Changes

    • breaking

      removed the enum value metric from the property items/ of the query request parameter expand

    • info

      added the enum value event_type to the property items/ of the query request parameter expand

    • info

      endpoint added