GET
/
sites
/
{site_id}
/
events
/
{event_id}
Get an event
curl --request GET \
  --url https://api.usefathom.com/v1/sites/{site_id}/events/{event_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "signed-up-to-newsletter",
  "object": "event",
  "name": "Signed up to newsletter",
  "site_id": "CDBUGS",
  "created_at": "2023-11-07T05:31:56Z"
}

Return a single event

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

site_id
string
required

The ID of the site you wish to load. This is the same string you use in the tracking code.

event_id
string
required

The ID of the event you wish to track. You have to create this event first before sending us completions.

Response

200 - application/json

An event object

The response is of type object.