Ingest events from the Sluice SDK or Go agent.
Accepts a batch of normalized events from the SDK or agent. This is the primary data ingestion endpoint — all job, worker, and queue data enters Sluice through this endpoint.Documentation Index
Fetch the complete documentation index at: https://docs.sluice.sh/llms.txt
Use this file to discover all available pages before exploring further.
Authorization: Bearer sk_... header.
| Field | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Event type identifier (e.g., job_state_change, worker_state_change, queue_snapshot). |
timestamp | string | Yes | ISO 8601 datetime. |
framework | string | Yes | One of celery, bullmq, sidekiq. |
connectionId | string | Yes | UUID of the connection. Must match the authenticated API key’s connection. |
job | object | No | Job event payload. Present for job-related events. |
worker | object | No | Worker event payload. Present for worker-related events. |
queue | object | No | Queue snapshot payload. Present for queue metrics. |
job, worker, or queue should be present per event.
| Field | Type | Required | Description |
|---|---|---|---|
externalId | string | Yes | Framework-native job ID (Celery task UUID). Max 512 chars. |
name | string | Yes | Task/job type name (e.g., app.tasks.send_email). Max 1024 chars. |
queue | string | No | Queue name. Max 255 chars. |
state | string | Yes | Unified state: unknown, queued, scheduled, active, completed, failed, retrying, cancelled. |
previousState | string | No | Previous unified state. |
workerId | string | No | Worker identifier. Max 512 chars. |
attempt | integer | No | Current attempt number (1-indexed). |
maxRetries | integer | No | Configured retry limit. |
progress | number | No | Progress value between 0.0 and 1.0. |
error | string | No | Error message on failure. Max 10,000 chars. |
stacktrace | string | No | Full traceback on failure. Max 50,000 chars. |
createdAt | string | No | ISO 8601 — when the job was dispatched. |
startedAt | string | No | ISO 8601 — when execution began. |
completedAt | string | No | ISO 8601 — when execution finished. |
extensions | object | No | Framework-specific fields that don’t map to the common model. |
| Field | Type | Required | Description |
|---|---|---|---|
externalId | string | Yes | Framework-native worker ID (e.g., celery@worker-1). |
hostname | string | Yes | Worker hostname. |
pid | integer | No | Worker process ID. |
state | string | Yes | One of online, busy, idle, offline, heartbeat. |
concurrency | integer | No | Max concurrent jobs. |
activeJobs | integer | No | Currently processing count. |
queues | string[] | No | Queues this worker consumes. |
metadata | object | No | Framework-specific metadata (software versions, pool type, etc.). |
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Queue name. Max 255 chars. |
depth | integer | Yes | Current number of pending jobs. |
consumers | integer | No | Number of active consumers. |
| Field | Type | Description |
|---|---|---|
accepted | integer | Number of events successfully processed. |
rejected | integer | Number of events that failed validation or processing. |
skipped | integer | Number of duplicate events that were skipped. |
truncated | integer | Number of events dropped because the daily limit was reached mid-batch. |
usage | object | Current usage counters for the day. |