REST API
IDs and external IDs
Every record in the REST API has an id assigned by sedisto. Many records can also carry your own identifier, so that your software does not have to store sedisto’s IDs next to its own. This article explains both and the update pattern they allow.
sedisto IDs
Section titled “sedisto IDs”IDs are UUIDs (version 4), for example 7c9e6679-7425-40de-944b-e07fc1f90ae7. Every listing and every detail response returns them. Treat them as opaque strings.
External IDs
Section titled “External IDs”When you create a record, you can set external_id to the identifier the record has in your own system. Afterwards you can use that value anywhere a path or parameter asks for an id:
GET /api/rest/v1/tenants/CUST-10442External IDs work for these records:
- areas, buildings, floors and zones
- units
- tenants
- tenant memberships
- rental agreements
They do not work for sites, entrances, accounts and webhook endpoints, which have no external_id. Use the sedisto id for those.
An external ID may contain letters, digits, hyphens and underscores, up to 255 characters. It must be unique among the records of its kind; creating a second tenant with the same external_id is refused with 422.
Creating or updating with your own IDs
Section titled “Creating or updating with your own IDs”External IDs let you write an integration that does not need to remember whether it has already sent a record. For each record:
- Request it by your own identifier, for example
GET /api/rest/v1/tenants/CUST-10442. - If the answer is
404, create it withPOSTand setexternal_id. - If the record exists, change it with
PUTto the same path.
Running the same sequence twice leaves sedisto in the same state, which makes retries after a timeout safe. A 404 can also mean that the record belongs to a site outside your integration’s restriction; see Authentication and permissions.
The booking sync guide uses this pattern for tenants, rental agreements and tenant memberships.