POST
/
sites
/
{site_id}
/
events
Create a new event
curl --request POST \
  --url https://api.usefathom.com/v1/sites/{site_id}/events \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>"
}'
{
  "id": "CDBUGS",
  "object": "site",
  "name": "Bugs Bunny Portfolio",
  "sharing": "none",
  "created_at": "2023-11-07T05:31:56Z"
}

Create an 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.

Body

application/json

Response

200 - application/json

Site created

The response is of type object.