Skip to main content
Statuses represent the availability state of an event at any given moment. Eventify ships with three seeded status values — Disponible (available), Agotado (sold out), and Finalizado (finished) — and every event record references one of these via its status_id foreign key. The statuses API exposes a single read-only endpoint that returns the full list of status records so that client applications can resolve status IDs to their human-readable names, render availability badges, or build filter controls.
Statuses are managed by administrators through the Eventify dashboard. Some status transitions are automated by the system: when an event’s capacity reaches 0 (all tickets sold), the system automatically sets the event’s status_id to 2 (Agotado). Manual overrides are possible through the admin panel. There is no write endpoint for statuses in the API.

The status object

integer
Auto-incremented primary key uniquely identifying the status.
string
Human-readable display name for the status (e.g. "Disponible", "Agotado", "Finalizado").
datetime
ISO 8601 datetime string set automatically when the record is first created.
datetime
ISO 8601 datetime string updated automatically whenever the record is modified.

Seeded statuses

The following three statuses are present in every Eventify installation. Use these IDs when setting status_id on event create or update requests.

GET /api/statuses

Returns an array of all status records in the database. The full collection is always returned — no filtering or pagination parameters are supported.
Response — 200 OK
Cache the result of this endpoint at application startup — the statuses list rarely changes, and having the ID-to-name mapping in memory lets you avoid repeated network calls when rendering status labels across many event records.