Skip to content

The API

  • Base: https://api.ordenly.app
  • Format: JSON in requests and responses (Content-Type: application/json).
  • Dates: always in UTC, ISO 8601 (2026-09-29T08:14:03.123Z). The time zone is an attribute of each property (GET /v1/sites).
  • Ids: UUID v7.
  • Credential: Authorization: Bearer <key or token> (Authentication).

Every route, with its parameters and what it returns, is in the Reference.

Querying work orders

Ventana de terminal
curl https://api.ordenly.app/v1/tickets?status=new,assigned&limit=20 \
-H "Authorization: Bearer $ORDENLY_KEY"

The most common filters:

Parameter Example What it filters
status new,assigned,in_progress Statuses, comma-separated
priority high,critical Priorities
overdue true Overdue only
created_from, created_to 2026-09-01T00:00:00Z Creation date
location_id, category_id an id Location or category
q shower Text

The statuses are new (new), assigned (assigned), in_progress (in progress), on_hold (on hold), closed (closed) and cancelled (canceled).

Pagination

The list is cursor-paginated: the response includes next_cursor. For the next page, repeat the same request with cursor=<next_cursor>. When next_cursor is null, there are no more.

{ "data": [ { "id": "…", "number": 1043, "title": "…", "status": "new" } ],
"next_cursor": "eyJ…" }

Creating a work order

The category is required. The location is strongly recommended: it’s what tells the team where to go.

  1. Look up the category: GET /v1/categories.
  2. Look up the location: GET /v1/locations?q=204.
  3. Create the work order:
Ventana de terminal
curl https://api.ordenly.app/v1/tickets \
-H "Authorization: Bearer $ORDENLY_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "0192f6d4-7c1a-7b3e-9a41-2f5c8e6b1d20",
"category_id": "…",
"location_id": "…",
"title": "The AC is not cooling",
"description": "The guest in 204 says it has not been cooling since last night",
"priority": "high"
}'
  • The work order goes on its own to the category’s department, with the deadline for its priority.
  • The photo when opening isn’t required of an integration.
  • It responds 201 with the created work order.

Retrying without duplicating

The id field is optional. If you send it (a UUID v7 generated by you), repeating the same request returns the same work order instead of creating another. Use it if your system retries when the network fails.

Commenting on a work order

Ventana de terminal
curl https://api.ordenly.app/v1/tickets/<id>/comments \
-H "Authorization: Bearer $ORDENLY_KEY" \
-H "Content-Type: application/json" \
-d '{ "body": "The guest confirms it works now" }'

Retrying without duplicating anything that isn’t a creation

A comment, a status change or an assignment doesn’t carry its own id. To be able to retry them without doing them twice, send the Idempotency-Key header with a key of your own (a UUID, for example; up to 200 visible ASCII characters), the same one on every retry:

Ventana de terminal
curl https://api.ordenly.app/v1/tickets/<id>/comments \
-H "Authorization: Bearer $ORDENLY_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: 0192f1c4-7a4e-7cc1-9b7e-2f0d6a1c9e55" \
-d '{ "body": "The guest confirms it works now" }'
  • For 24 h, the same key with the same body returns the response from the first time, with the Idempotent-Replayed: true header, and nothing is done again.
  • The same key with a different body responds 422 IDEMPOTENCY_KEY_REUSED: use a new key for each distinct operation.
  • If the first request is still in progress, 409 IDEMPOTENCY_IN_PROGRESS with Retry-After: wait and repeat.
  • Only successful responses are stored. An error can be retried with the same key and it is really attempted again.

Errors

All error responses have the same shape:

{
"error": {
"code": "VALIDATION_ERROR",
"message": "…",
"details": { },
"requestId": "41de4f93-6aeb-40d1-9d38-54cde65e22a3"
}
}
  • code is what your program should look at: it’s a contract and doesn’t change.
  • message is meant to be shown to a person and its wording may change.
  • requestId identifies the request in our logs: include it if you write to us about a problem.
HTTP status When
400 Invalid input (details says which field)
401, 402, 403, 429 See Authentication
404 It doesn’t exist, or it belongs to another property: both respond the same
409 Conflicts with the work order’s state, or IDEMPOTENCY_IN_PROGRESS (see above)
422 IDEMPOTENCY_KEY_REUSED: the same Idempotency-Key with a different body
500 Our error