Skip to content

API reference

Every route takes Authorization: Bearer <credential>: an ord_… key or an ordat_… OAuth token (see Authentication). The base URL is https://api.ordenly.app. Dates are in UTC (ISO 8601) and ids are UUID v7.

The full OpenAPI 3.1 document is at GET https://api.ordenly.app/v1/openapi.json, with no credential.

Routes with the write scope accept the Idempotency-Key header (up to 200 visible ASCII characters): for 24 hours, repeating the request with the same key and the same body returns the first response, with Idempotent-Replayed: true, without running it again. With a different body, 422 IDEMPOTENCY_KEY_REUSED; if the first request is still running, 409 IDEMPOTENCY_IN_PROGRESS with Retry-After. Only 2xx responses are stored.

GET /v1/categories

The hotel categories, in the order they are shown

  • Scope: read
  • MCP tool: list_categories

Parameters

Name In Type Required What it is
include_inactive query true | false No

Response 200

A list in data. Each item:

Field Type Required What it is
id string (uuid) Yes
name string Yes
icon string or null Yes
default_group_id string (uuid) Yes
default_group_name string Yes
default_priority low | medium | high | critical Yes
sort integer Yes
active boolean Yes

Errors: 400 Invalid input · 401 The credential is missing, invalid or expired · 402 The hotel plan does not include the public API, or it is read-only · 403 The credential does not have the scope this route requires · 429 More than 120 requests in a minute with the same key · 500 Internal error

GET /v1/locations

Search a location by name or code

  • Scope: read
  • MCP tool: search_locations

Parameters

Name In Type Required What it is
q query string, up to 120 characters No
site_id query string (uuid) No
kind query building | floor | room | area | other No
include_inactive query true | false No
limit query integer, min. 1, max. 100 No

Response 200

A list in data. Each item:

Field Type Required What it is
id string (uuid) Yes
site_id string (uuid) Yes
parent_id string (uuid) or null Yes
kind building | floor | room | area | other Yes
name string Yes
code string or null Yes
path string Yes
sort integer Yes
active boolean Yes
qr_token string or null No
report_url string or null No The link printed in the QR: opens the report form, or the app for staff. Admins only
qr_hash string or null No SHA-256 of the old ordenly:// QR token, to recognise a scan without the token
report_hash string or null No SHA-256 of the token in the QR link, to recognise a scan without network

Errors: 400 Invalid input · 401 The credential is missing, invalid or expired · 402 The hotel plan does not include the public API, or it is read-only · 403 The credential does not have the scope this route requires · 429 More than 120 requests in a minute with the same key · 500 Internal error

GET /v1/locations/tree

The hotel tree, flat and in reading order

  • Scope: read
  • MCP tool: list_locations

Parameters

Name In Type Required What it is
site_id query string (uuid) No
include_inactive query true | false No

Response 200

A list in data. Each item:

Field Type Required What it is
id string (uuid) Yes
site_id string (uuid) Yes
parent_id string (uuid) or null Yes
kind building | floor | room | area | other Yes
name string Yes
code string or null Yes
path string Yes
sort integer Yes
active boolean Yes
qr_token string or null No
report_url string or null No The link printed in the QR: opens the report form, or the app for staff. Admins only
qr_hash string or null No SHA-256 of the old ordenly:// QR token, to recognise a scan without the token
report_hash string or null No SHA-256 of the token in the QR link, to recognise a scan without network
depth integer Yes

Errors: 400 Invalid input · 401 The credential is missing, invalid or expired · 402 The hotel plan does not include the public API, or it is read-only · 403 The credential does not have the scope this route requires · 429 More than 120 requests in a minute with the same key · 500 Internal error

GET /v1/sites

The hotel sites with their time zone

  • Scope: read
  • MCP tool: list_sites

Response 200

A list in data. Each item:

Field Type Required What it is
id string (uuid) Yes
name string Yes
timezone string Yes
address string or null Yes
housekeeping_day_start string Yes When the housekeeping day starts at the property, HH:MM, 05:00 by default
active boolean Yes

Errors: 401 The credential is missing, invalid or expired · 402 The hotel plan does not include the public API, or it is read-only · 403 The credential does not have the scope this route requires · 429 More than 120 requests in a minute with the same key · 500 Internal error

GET /v1/tickets

List issues, with filters and cursor pagination

  • Scope: read
  • MCP tool: search_tickets

Parameters

Name In Type Required What it is
status query new | assigned | in_progress | on_hold | closed | cancelled or array of new | assigned | in_progress | on_hold | closed | cancelled No
priority query low | medium | high | critical or array of low | medium | high | critical No
kind query incident | recurring or array of incident | recurring No
overdue query true | false No
created_from query string (date-time) No
created_to query string (date-time) No
closed_since query string (date-time) No
category_id query string (uuid) No
location_id query string (uuid) No
group_id query string (uuid) No
assignee_user_id query string (uuid) No
mine query true | false No
reported_by_me query true | false No
unassigned query true | false No
q query string, up to 120 characters No
cursor query string, up to 120 characters No
limit query integer, min. 1, max. 100 No

Response 200

A list in data. Each item:

Field Type Required What it is
id string (uuid) Yes
number integer Yes The hotel number: #1043
kind incident | recurring Yes recurring: a task that comes from a template
scheduled_for string or null Yes The target date of a recurring task
template_id string (uuid) or null Yes The recurring task this occurrence comes from; null for an issue
title string Yes
status new | assigned | in_progress | on_hold | closed | cancelled Yes
priority low | medium | high | critical Yes
category object or null Yes
location object or null Yes
assignee object or object or null Yes
group_id string (uuid) or null Yes
due_at string or null Yes
sla_breached boolean Yes
hold_reason string or null Yes
hold_until string or null Yes
created_at string Yes
updated_at string Yes
started_at string or null Yes When it was first started
origin staff | external Yes external: reported without an account, from the QR of a location
in_scope boolean Yes Whether the asker sees it in full or only this basic record (ADR-006)

Errors: 400 Invalid input · 401 The credential is missing, invalid or expired · 402 The hotel plan does not include the public API, or it is read-only · 403 The credential does not have the scope this route requires · 429 More than 120 requests in a minute with the same key · 500 Internal error

POST /v1/tickets

Create an issue. With a client id, repeating it does not duplicate

  • Scope: write
  • MCP tool: create_ticket

Body (JSON)

Field Type Required What it is
id string (uuid) No
site_id string (uuid) No
title string, up to 200 characters No
description string, up to 5000 characters or null No
category_id string (uuid) Yes
location_id string (uuid) or null No
asset_id string (uuid) or null No
priority low | medium | high | critical No
attachment_ids array of string (uuid) No

Response 201

Field Type Required What it is
id string (uuid) Yes
number integer Yes The hotel number: #1043
kind incident | recurring Yes recurring: a task that comes from a template
scheduled_for string or null Yes The target date of a recurring task
template_id string (uuid) or null Yes The recurring task this occurrence comes from; null for an issue
title string Yes
status new | assigned | in_progress | on_hold | closed | cancelled Yes
priority low | medium | high | critical Yes
category object or null Yes
location object or null Yes
assignee object or object or null Yes
group_id string (uuid) or null Yes
due_at string or null Yes
sla_breached boolean Yes
hold_reason string or null Yes
hold_until string or null Yes
created_at string Yes
updated_at string Yes
started_at string or null Yes When it was first started
origin staff | external Yes external: reported without an account, from the QR of a location
in_scope boolean Yes Whether the asker sees it in full or only this basic record (ADR-006)
asset object or null Yes The affected equipment, if any (F2.5)
reminders array of object Yes The pending reminders that are yours: your own and those you set
checklist array of object Yes The steps of a recurring task; empty on an issue or out of scope
attachments array of object Yes
comments array of object Yes
description string or null Yes
reporter object Yes
external_report object or null Yes Who reported it from the QR, only if they left it, and only in scope. Erased 30 days after closing
closed_at string or null Yes
closed_by string (uuid) or null Yes
repair_cost number or null Yes What the repair cost, in the hotel currency; null out of scope
repair_cost_note string or null Yes
hold_postponed_count integer Yes
on_hold_seconds integer Yes
due_at_manual boolean Yes
close_photo_required boolean Yes Whether closing it requires a photo of the work done: the template for a task, the hotel for the rest
activity array of object Yes
status_history array of object Yes
permissions array of view_detail | edit | assign | self_assign | unassign | start | hold | close | check_item | remind | reopen | cancel | set_priority | set_due | comment | set_cost Yes

Errors: 400 Invalid input · 401 The credential is missing, invalid or expired · 402 The hotel plan does not include the public API, or it is read-only · 403 The credential does not have the scope this route requires · 429 More than 120 requests in a minute with the same key · 500 Internal error

GET /v1/tickets/{id}

An issue. Out of scope, only the basic record (ADR-006)

  • Scope: read
  • MCP tool: get_ticket

Parameters

Name In Type Required What it is
id path string (uuid) Yes

Response 200

Field Type Required What it is
id string (uuid) Yes
number integer Yes The hotel number: #1043
kind incident | recurring Yes recurring: a task that comes from a template
scheduled_for string or null Yes The target date of a recurring task
template_id string (uuid) or null Yes The recurring task this occurrence comes from; null for an issue
title string Yes
status new | assigned | in_progress | on_hold | closed | cancelled Yes
priority low | medium | high | critical Yes
category object or null Yes
location object or null Yes
assignee object or object or null Yes
group_id string (uuid) or null Yes
due_at string or null Yes
sla_breached boolean Yes
hold_reason string or null Yes
hold_until string or null Yes
created_at string Yes
updated_at string Yes
started_at string or null Yes When it was first started
origin staff | external Yes external: reported without an account, from the QR of a location
in_scope boolean Yes Whether the asker sees it in full or only this basic record (ADR-006)
asset object or null Yes The affected equipment, if any (F2.5)
reminders array of object Yes The pending reminders that are yours: your own and those you set
checklist array of object Yes The steps of a recurring task; empty on an issue or out of scope
attachments array of object Yes
comments array of object Yes
description string or null Yes
reporter object Yes
external_report object or null Yes Who reported it from the QR, only if they left it, and only in scope. Erased 30 days after closing
closed_at string or null Yes
closed_by string (uuid) or null Yes
repair_cost number or null Yes What the repair cost, in the hotel currency; null out of scope
repair_cost_note string or null Yes
hold_postponed_count integer Yes
on_hold_seconds integer Yes
due_at_manual boolean Yes
close_photo_required boolean Yes Whether closing it requires a photo of the work done: the template for a task, the hotel for the rest
activity array of object Yes
status_history array of object Yes
permissions array of view_detail | edit | assign | self_assign | unassign | start | hold | close | check_item | remind | reopen | cancel | set_priority | set_due | comment | set_cost Yes

Errors: 401 The credential is missing, invalid or expired · 402 The hotel plan does not include the public API, or it is read-only · 403 The credential does not have the scope this route requires · 404 Does not exist, or belongs to another hotel · 429 More than 120 requests in a minute with the same key · 500 Internal error

GET /v1/tickets/{id}/comments

The thread of an issue

  • Scope: read
  • MCP tool: get_ticket_comments

Parameters

Name In Type Required What it is
id path string (uuid) Yes

Response 200

A list in data. Each item:

Field Type Required What it is
id string (uuid) Yes
body string Yes
author object Yes No user_id when a vendor writes through a link (phase 2)
mentions array of string (uuid) Yes
attachments array of object Yes
created_at string Yes

Errors: 401 The credential is missing, invalid or expired · 402 The hotel plan does not include the public API, or it is read-only · 403 The credential does not have the scope this route requires · 404 Does not exist, or belongs to another hotel · 429 More than 120 requests in a minute with the same key · 500 Internal error

POST /v1/tickets/{id}/comments

Write in the thread, with photos and mentions

  • Scope: write
  • MCP tool: comment_ticket

Parameters

Name In Type Required What it is
id path string (uuid) Yes

Body (JSON)

Field Type Required What it is
body string, up to 4000 characters Yes
attachment_ids array of string (uuid) No
mentions array of string (uuid) No

Response 201

A list in data. Each item:

Field Type Required What it is
id string (uuid) Yes
body string Yes
author object Yes No user_id when a vendor writes through a link (phase 2)
mentions array of string (uuid) Yes
attachments array of object Yes
created_at string Yes

Errors: 400 Invalid input · 401 The credential is missing, invalid or expired · 402 The hotel plan does not include the public API, or it is read-only · 403 The credential does not have the scope this route requires · 404 Does not exist, or belongs to another hotel · 429 More than 120 requests in a minute with the same key · 500 Internal error