Skip to content

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.

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
  • 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_agreements and tenant_memberships, each with :read and :write. Writing does not include reading, and the normal stage reads before it writes. Webhooks additionally need webhook_endpoints:write.
  • Identifiers: wherever a request expects an id, you may pass sedisto’s UUID or your own external_id. Give everything you create an external_id. Ask the operator to store your unit numbers as the units’ external IDs, or look units up with GET /units.
  • Format: JSON bodies with Content-Type: application/json. Timestamps in ISO 8601, preferably with an offset, for example 2026-11-01T00:00:00+01:00.

See Authentication and permissions and IDs and external IDs for details.

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_at lies in the future is stored at once and grants access from starts_at on.
  • 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.

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.

  1. Create the tenant.

    Request:

    POST /tenants
    { "name": "Erika Mustermann" }

    Response:

    HTTP/1.1 201 Created
    { "id": "3f6c…", "name": "Erika Mustermann", … }
  2. Create the rental agreement. Only tenant_id, unit_id and name are 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" }
  3. 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.

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: acme for acme.sedisto.eu. If the operator runs the installation under a domain of their own, ask them for the name.
  • <locale> is optional, for example de or en.
  • email is 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.

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.

  1. Look up the tenant by your id. A 404 means you create it.

    GET /tenants/CRM-4711
    POST /tenants
    { "name": "Erika Mustermann", "external_id": "CRM-4711" }
  2. 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 by CRM-4711.

    GET /rental_agreements/BK-2026-0815
    POST /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"
    }
  3. Look up the membership, then create it, bound to the agreement.

    GET /tenant_memberships/BK-2026-0815-erika
    POST /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.

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" }

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.

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.

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"
}

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.

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.

A new system PIN, returned in the response:

PUT /tenant_memberships/M-9001-2/regenerate_pin_code

The 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-2

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.

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.

  • 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.