Skip to Content
Event Markers

Create Event Marker

Creates a marker event in a manual collection. Reuses an existing event when externalId matches.

POST
/v0/projects/{idOrSlug}/event-marker-collections/{collectionId}/events

Creates a marker event in a manual collection. Reuses an existing event when externalId matches.

Authorization

apiKeyAuth
headerx-api-key<token>

FastStats API key. Pass it in the x-api-key header or as a Bearer token in the Authorization header.

Path Parameters

idOrSlug*string
collectionId*string

Request Body

application/json
  1. body
timestamp*||||

Event time as an ISO 8601 string, Unix seconds, or Unix milliseconds. Values below 1_000_000_000_000 are interpreted as seconds.

title*string
description?string|null|null
icon?string|null|null
emoji?string|null|null
color?string|null|null
metadata?|null|null
externalId?|null|null

Response Body

Success

application/json
  1. response
id*string
projectId*string
collectionId*string
timestamp*string|string
title*string
description*string|null
icon*string|null
emoji*string|null
color*string|null
metadata*|null
externalId*string|null
createdAt*string|string
updatedAt*string|string
Example Request
curl -X POST 'https://api.faststats.dev/v0/projects/string/event-marker-collections/string/events' \
  -H 'Content-Type: application/json' \
  -d '{
  "timestamp": "string",
  "title": "string"
}'
Example Response
{
  "id": "string",
  "projectId": "string",
  "collectionId": "string",
  "timestamp": "string",
  "title": "string",
  "description": "string",
  "icon": "string",
  "emoji": "string",
  "color": "string",
  "metadata": {},
  "externalId": "string",
  "createdAt": "string",
  "updatedAt": "string"
}