REST API
Syncing bookings to sedisto
This guide is for developers of booking and property management software. It shows what your system sends to sedisto so that a customer who books a unit can open its door. You never create access rights yourself: sedisto derives them from the rental agreement and withdraws them the same way. The guide has three stages. Minimal is the shortest path to an opening door. Normal is a repeatable sync keyed on your own identifiers. Extended adds several people per tenant, access groups and suspension.
The four records
Section titled “The four records”| Record | What it is | Created by |
|---|---|---|
| Tenant | The renting customer, a person or a company. | You |
| Unit | The rented space with its door. | The operator, when the site is set up. You only refer to it. |
| Rental agreement | Ties a tenant to a unit for a period. The basis of all access. | You |
| Tenant membership | A tenant user, identified by email address, who belongs to the tenant and receives a system PIN. | You |
Before you start
Section titled “Before you start”- Base URL:
https://<installation>/api/rest/v1, where<installation>is the hostname of the operator’s installation. - Token: the operator creates an integration in the sedisto portal and gives you its token. Send it as
Authorization: Bearer <token>. - Permissions:
tenants,rental_agreementsandtenant_memberships, each with:readand:write. Writing does not include reading, and the normal stage reads before it writes. Webhooks additionally needwebhook_endpoints:write. - Identifiers: wherever a request expects an id, you may pass sedisto’s UUID or your own
external_id. Give everything you create anexternal_id. Ask the operator to store your unit numbers as the units’ external IDs, or look units up withGET /units. - Format: JSON bodies with
Content-Type: application/json. Timestamps in ISO 8601, preferably with an offset, for example2026-11-01T00:00:00+01:00.
See Authentication and permissions and IDs and external IDs for details.
When to sync and how to send times
Section titled “When to sync and how to send times”A booking sedisto does not know about opens no door, and a booking sent with the wrong time opens it at the wrong time.
- Send a booking when it is made, not when the rental starts. An agreement whose
starts_atlies in the future is stored at once and grants access fromstarts_aton. - sedisto derives access in a background run every five minutes. Locks that store codes themselves receive them only the next time they connect, which can take considerably longer.
- Send every change as it happens: an extension, a cancellation, a payment that is overdue or settled. A regular full comparison, for example nightly, is a safety net, not the sync itself.
How a time value is read:
| You send | sedisto reads it as |
|---|---|
2026-12-01T00:00:00+01:00 or 2026-11-30T23:00:00Z |
Exactly that moment. Recommended. |
2026-12-01T00:00:00 |
That clock time in the site’s time zone, with the daylight saving offset of that date. |
2026-12-01 |
The whole local day: 00:00:00 for starts_at, 23:59:59 for ends_at. |
Responses are always in UTC. A value with a correct offset can still name the wrong moment, for example midnight UTC where local midnight was meant. Compare a few of your values with what the response returns before you go live. See Time and time zones.
Stage 1: minimal
Section titled “Stage 1: minimal”One person gets access to one unit. Pass the ids from each response on to the next request. Every request sends Content-Type: application/json and the Authorization header from Authentication and permissions; the examples leave both out.
-
Create the tenant.
Request:
POST /tenants{ "name": "Erika Mustermann" }Response:
HTTP/1.1 201 Created{ "id": "3f6c…", "name": "Erika Mustermann", … } -
Create the rental agreement. Only
tenant_id,unit_idandnameare required. Without further fields the agreement starts now, has no end and uses the site’s default access group.POST /rental_agreements{ "tenant_id": "3f6c…", "unit_id": "A-012", "name": "V-0815", "state": "active" } -
Add a person. A person not yet known to sedisto is created from the email address. The response carries the eight-digit system PIN, as does every later response for this membership.
Request:
POST /tenant_memberships{ "tenant_id": "3f6c…", "email": "erika@example.com" }Response:
HTTP/1.1 201 Created{ "id": "…", "pin_code": { "number": "12345678" }, … }
sedisto sends no email when you create a membership through the API, so that a first sync of thousands of bookings does not write to thousands of customers. Give the system PIN to your customer yourself, for example in your booking confirmation.
Getting the customer into the app
Section titled “Getting the customer into the app”To open doors with a phone, the person installs the app and signs in with the email address of their tenant membership. Send them a link to the welcome page of the installation, for example in the same booking confirmation:
https://access.sedisto.eu/<locale>/<installation>/welcome?email=<email><installation>is the installation’s name, the first part of its sedisto hostname:acmeforacme.sedisto.eu. If the operator runs the installation under a domain of their own, ask them for the name.<locale>is optional, for exampledeoren.emailis the address of the membership, URL-encoded. Encode a+as%2B.
The page carries the operator’s branding, offers the app in the App Store and on Google Play with a QR code for each, and tells the person which email address to sign in with. On staging the host is access.sedisto.net.
Stage 2: normal
Section titled “Stage 2: normal”A sync sends the same booking more than once: on creation, on every change, after a retry. Keyed on your own identifiers, every request can be repeated.
Ask for every record by your id first. 404 means it does not exist yet, so create it. 200 means an earlier sync created it, so update it with PUT if anything changed. Never create a record again under an id it already has: the second POST is refused with 422.
-
Look up the tenant by your id. A
404means you create it.GET /tenants/CRM-4711POST /tenants{ "name": "Erika Mustermann", "external_id": "CRM-4711" } -
Look up the rental agreement the same way, then create it with your id as
external_id. From here on every request can address the tenant byCRM-4711.GET /rental_agreements/BK-2026-0815POST /rental_agreements{"tenant_id": "CRM-4711","unit_id": "A-012","name": "BK-2026-0815","external_id": "BK-2026-0815","state": "active","starts_at": "2026-11-01T00:00:00+01:00","ends_at": "2027-10-31T23:59:59+01:00"} -
Look up the membership, then create it, bound to the agreement.
GET /tenant_memberships/BK-2026-0815-erikaPOST /tenant_memberships{"tenant_id": "CRM-4711","email": "erika@example.com","external_id": "BK-2026-0815-erika","rental_agreement_id": "BK-2026-0815"}
Access exists only between starts_at and ends_at. A membership with rental_agreement_id is confined to that agreement. Without it, the person has access to everything the tenant rents.
Change a booking
Section titled “Change a booking”Send only what changed. A field you leave out keeps its value. To extend an agreement by a year:
PUT /rental_agreements/BK-2026-0815
{ "ends_at": "2028-10-31T23:59:59+01:00" }When a customer moves to another unit, create the new agreement and move the people to it:
PUT /tenant_memberships/BK-2026-0815-erika
{ "rental_agreement_id": "BK-2027-0042" }End a booking
Section titled “End a booking”Access ends with the next access rights run, a few minutes after this request:
PUT /rental_agreements/BK-2026-0815
{ "state": "terminated" }Ending is how you withdraw access; there is nothing separate to revoke. Prefer it to DELETE: deleting removes the record of why somebody had access, while ending keeps the history. To end at a later date, set ends_at instead.
Stage 3: extended
Section titled “Stage 3: extended”Tenant details
Section titled “Tenant details”POST /tenants
{ "name": "Muster GmbH", "external_id": "CRM-9001", "unique_identifier": "KD-9001", "tenant_type": "business"}unique_identifier holds the customer number the operator works with. tenant_type is one of individual, business, organization or other.
Access groups
Section titled “Access groups”The operator can define up to five access groups per site, each with its own opening hours. Pass the group by the name the site gives it, or by its fixed key tenant_access_group_01 to tenant_access_group_05. Without one, the site’s default group applies.
POST /rental_agreements
{ "tenant_id": "CRM-9001", "unit_id": "B-104", "name": "BK-9001-1", "external_id": "BK-9001-1", "state": "active", "starts_at": "2026-11-01T00:00:00+01:00", "ends_at": "2027-10-31T23:59:59+01:00", "tenant_access_group": "24x7"}Several people per tenant
Section titled “Several people per tenant”The main renter as owner:
POST /tenant_memberships
{ "tenant_id": "CRM-9001", "email": "manager@muster.example", "role": "owner", "external_id": "M-9001-1" }A helper, confined to one agreement and to November:
POST /tenant_memberships
{ "tenant_id": "CRM-9001", "email": "helper@muster.example", "role": "member", "rental_agreement_id": "BK-9001-1", "external_id": "M-9001-2", "starts_at": "2026-11-01T00:00:00+01:00", "ends_at": "2026-11-30T23:59:59+01:00"}Each person has their own system PIN and their own period. The role decides what the person may do in the tenant app when sharing access:
| Role | May |
|---|---|
member |
Open the doors and see who else has access. The default. |
manager |
Also share access with further people as members, and change and remove members. |
owner |
Also make people managers or owners, and change and remove them. The last owner cannot be removed or demoted in the app. |
People you create with an external_id belong to your sync. They can be changed or removed only through the API, not in the app. Create the main renter as owner if they should manage access for others.
Suspend and release
Section titled “Suspend and release”| State | Access | Webhook event |
|---|---|---|
pending |
None. The default when no state is sent. | |
active |
Yes, within the agreement’s period. | rental_agreement.activated |
unpaid |
Suspended, for example for late payment. | rental_agreement.blocked |
inactive |
Suspended for any other reason. | rental_agreement.blocked |
terminated |
Ended. | rental_agreement.terminated |
archived |
None. For records kept for reference. | rental_agreement.archived |
Suspend:
PUT /rental_agreements/BK-9001-1
{ "state": "unpaid" }Release:
PUT /rental_agreements/BK-9001-1
{ "state": "active" }The events report a change of state, not of access. An agreement created as active sends rental_agreement.activated at once, often long before its starts_at.
Looking after people
Section titled “Looking after people”A new system PIN, returned in the response:
PUT /tenant_memberships/M-9001-2/regenerate_pin_codeThe same person moves to a new email address:
PUT /tenant_memberships/M-9001-2/migrate_to_new_email_address
{ "email": "new@muster.example" }The person leaves the tenant and loses access:
DELETE /tenant_memberships/M-9001-2Hearing back
Section titled “Hearing back”Instead of polling, register a webhook endpoint:
POST /webhook_endpoints
{ "url": "https://booking.example/hooks/sedisto", "event_types": [ "rental_agreement.activated", "rental_agreement.blocked", "rental_agreement.terminated", "access.granted", "access.denied" ]}See Receiving webhooks for signatures and retries.
Errors
Section titled “Errors”| Status | Meaning |
|---|---|
400 |
The request is incomplete or malformed, for example a missing required field or an unknown state. |
401 |
The token is missing or invalid, or the integration is switched off. |
403 |
The token lacks the permission for this request. |
404 |
No record with this id or external_id. In a sync, the signal to create it. |
422 |
The record is invalid, for example ends_at before starts_at, or the external_id is already taken. |
See Errors for the error body.
Before going live
Section titled “Before going live”- Agreements are sent with
"state": "active". - Every record carries your
external_id. - The operator has stored your unit numbers, or you look units up.
- Your customer receives the system PIN from you.
- Your customer receives the link to the welcome page from you.
- Bookings are sent when they are made.
- Timestamps carry an offset, and you have checked its value against a response.
- Existing records are updated, not created again.