Skip to content
Open Screeb

Send identify, track, group, page, screen and copilot events from your backend, and publish your releases.

The Screeb API sends events (identify, track, group, page, screen, copilot) from your backend, without a client-side SDK. Use it for server-side integrations, data pipelines, or any data your servers know first.

Every request carries your workspace API key as a Bearer token. The help center shows where to find it and how to reset it.

Authorization: Bearer <YOUR-API-KEY>
POST https://api.screeb.app/1.0/event

The body is a JSON array of 1 to 100 events.

Type Description
identify Set or update properties on a user
track Track a custom event
group.assign Assign a user to a group
group.unassign Unassign a user from a group
page Track a page view
screen Track a screen view (mobile)
copilot Track a Screeb Copilot interaction

Each item of the array has at least a type. The other fields depend on the type.

Field Type Required Description
user_alias string no The ID of the user, the same one your SDK passes when it identifies them. Without it, Screeb creates an anonymous user.
type string yes The event type (see the table above)
properties object no Key-value pairs attached to the event
timestamp string no When the event happened (ISO 8601). Defaults to the reception time. A timestamp older than 7 days or in the future is replaced by the reception time.
context object no Optional context (see below)
Field Type Description
locale string User locale (for example en-US)
timezone string User timezone (for example Europe/Paris)
ip string The user’s IPv4 or IPv6 address, used for the location. Kept only when IP capture is enabled. Your server’s own address is never used for the user.

No other required field. Set the user attributes in properties.

Field Type Required Description
event_name string yes Name of the event
Field Type Required Description
group_type string no Type of the group, such as company
group_name string yes Name of the group
Field Type Required Description
url string yes The page URL
Field Type Required Description
screen_name string yes The screen name

Tracks an interaction with a Screeb Copilot agent. event_name says which interaction it is.

Field Type Required Description
event_name string yes One of screeb_copilot_user_prompt, screeb_copilot_response, screeb_copilot_conversion, screeb_copilot_satisfaction
agent_id string yes ID of the copilot agent handling the conversation (100 characters max)
conversation_id string yes, except for screeb_copilot_conversion Unique ID of the conversation (100 characters max)
copilot_session_id string yes, except for screeb_copilot_conversion Unique ID of the copilot session (100 characters max)
prompt string yes, for screeb_copilot_user_prompt The user’s prompt (10,000 characters max)
response string yes, for screeb_copilot_response The copilot’s answer (10,000 characters max)
rating string yes, for screeb_copilot_satisfaction The satisfaction rating
rating_scale string yes, for screeb_copilot_satisfaction The scale of the rating

On success, the API answers 200 with:

{
"count": 2,
"lag": null
}
Field Type Description
count number Number of events captured
lag number | null Current ingestion lag in milliseconds, when known
skipped object Only when some events were not captured: the reason, keyed by the event’s index in the batch

An event that fails its own rules (an invalid user_alias, an empty group name, more than 1,000 properties, a NUL byte in a property) is skipped and named in skipped; the other events of the batch are captured. The batch itself is refused with a 422 when it is empty, holds more than 100 events or a null entry.

Terminal window
curl -X POST https://api.screeb.app/1.0/event \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <YOUR-API-KEY>" \
-d '[
{
"user_alias": "<USER-ID>",
"type": "identify",
"properties": {
"email": "jane.doe@example.com",
"plan": "pro",
"signed_up_at": "2025-01-15T10:30:00Z"
}
}
]'
Terminal window
curl -X POST https://api.screeb.app/1.0/event \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <YOUR-API-KEY>" \
-d '[
{
"user_alias": "<USER-ID>",
"type": "track",
"event_name": "subscription_renewed",
"properties": {
"plan": "pro",
"amount": 49.99
}
}
]'
Terminal window
curl -X POST https://api.screeb.app/1.0/event \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <YOUR-API-KEY>" \
-d '[
{
"user_alias": "<USER-ID>",
"type": "group.assign",
"group_type": "company",
"group_name": "Acme Inc",
"properties": {
"industry": "SaaS",
"employees": 150
}
}
]'
Terminal window
curl -X POST https://api.screeb.app/1.0/event \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <YOUR-API-KEY>" \
-d '[
{
"user_alias": "<USER-ID>",
"type": "copilot",
"event_name": "screeb_copilot_user_prompt",
"agent_id": "agent-789",
"conversation_id": "conv-abc-123",
"copilot_session_id": "session-xyz-456",
"prompt": "How do I reset my password?"
},
{
"user_alias": "<USER-ID>",
"type": "copilot",
"event_name": "screeb_copilot_response",
"agent_id": "agent-789",
"conversation_id": "conv-abc-123",
"copilot_session_id": "session-xyz-456",
"response": "You can reset your password from the settings page."
},
{
"user_alias": "<USER-ID>",
"type": "copilot",
"event_name": "screeb_copilot_conversion",
"agent_id": "agent-789"
},
{
"user_alias": "<USER-ID>",
"type": "copilot",
"event_name": "screeb_copilot_satisfaction",
"agent_id": "agent-789",
"conversation_id": "conv-abc-123",
"copilot_session_id": "session-xyz-456",
"rating": "5",
"rating_scale": "10"
}
]'
Terminal window
curl -X POST https://api.screeb.app/1.0/event \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <YOUR-API-KEY>" \
-d '[
{
"user_alias": "<USER-ID>",
"type": "identify",
"properties": { "plan": "enterprise" }
},
{
"user_alias": "<USER-ID>",
"type": "track",
"event_name": "plan_upgraded"
},
{
"user_alias": "<USER-ID>",
"type": "screen",
"screen_name": "Dashboard"
}
]'

The /event endpoint accepts 50 requests per second per API key. Above that, it answers 429 Too Many Requests: wait a moment, then retry. Batch your events to stay under the limit.

Status Description
200 Events processed
400 Validation error: invalid payload or missing required field
401 Missing or invalid API key
429 Rate limit exceeded
500 Server error

The Releases API publishes a release to Screeb from your deployment pipeline, so its impact shows next to your metrics. The help center explains how releases appear in the admin.

It uses the same workspace API key as the /event endpoint, in the same Authorization header.

POST https://api.screeb.app/1.0/release
Field Type Required Description
name string yes Name of the release (255 characters max)
description string yes What the release changes (5,000 characters max)
version string yes Version number (255 characters max)
tags string[] no Up to 100 tags
released_at string no Release date (ISO 8601). Defaults to the time of the request.
Terminal window
curl -X POST https://api.screeb.app/1.0/release \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <YOUR-API-KEY>" \
-d '{
"name": "Faster dashboards",
"description": "Dashboards load twice as fast.",
"version": "1.0",
"tags": ["API", "V1"],
"released_at": "2023-03-22T15:22:41+00:00"
}'

If the endpoint answers 429 Too Many Requests, retry a minute later.

For any question or extra need, contact us through the chat in the Screeb admin (Help and docs, then Talk to a human).