Oled Ameerika Ühendriikides? Ruumio avaneb seal kutsetega, osariik osariigi haaval. Ava USA sait

Ruumio API ja Zapier

Ühenda oma stuudio Ruumio teiste tööriistadega: loe ja loo broneeringuid, otsi liikmeid, võta arveid PDF-ina ja saa sündmused veebihaakidega kohe, kui need juhtuvad. Allpool on kogu viide (inglise keeles).

OpenAPI 3.1 kirjeldus (JSON)

Alustamine

  1. Lülita stuudio halduses sisse lisamoodul Integratsioonid (Pro paketis kaasas, prooviajal tasuta).
  2. Stuudio omanik loob lehel Integratsioonid → API-võtmed võtme. Rolliga võti saab kasutada ainult rolli alasid.
  3. Saada võti iga päringuga päises Authorization: Bearer ruumio_…
curl https://ruumio.app/api/v1/bookings?from=2026-12-01 \
  -H "Authorization: Bearer ruumio_…"

Base address: https://ruumio.app/api/v1 · 300 requests a minute per key · amounts in hundredths of the currency · fields are only ever added, never renamed or removed.

Zapier

Ruumio rakendus Zapieris ühendab stuudio umbes 7000 tööriistaga ilma koodita: iga sündmus (uus broneering, makse, arve PDF-iga, uus liige, lõppenud aeg…) võib käivitada Zapi ning Zap võib Ruumios broneeringu luua või tühistada ja liikmeid või broneeringuid leida. Zapieris vali rakendus Ruumio ja kleebi API-võti.

Rakendus on Zapieris veel eelversioonis: see link lisab selle sinu Zapieri kontole. Küsimused: hello@ruumio.app.

Lisa Ruumio Zapierisse

Päringud

GET/me

The key's studio

The studio the key belongs to and the key itself (its role's areas). Use it to test a connection.

Alad: iga võti

200: The studio and the key

GET/rooms

Rooms

The studio's active rooms with their prices, lengths, setups and services.

Alad: Kalender / Broneeringud / Ruumid

200: The rooms

GET/availability

Free times

A room's free time ranges on one day, by the room's rules (opening hours, closures, other bookings).

Alad: Kalender / Broneeringud

  • ?roomId (required): The room
  • ?date (required): YYYY-MM-DD in the studio's time zone

200: Free ranges · errors: invalid_date, room_not_found

GET/bookings

List bookings

Bookings by date, newest first. Without status: confirmed, cancelled and awaiting approval.

Alad: Kalender / Broneeringud

  • ?from: YYYY-MM-DD (default today)
  • ?to: YYYY-MM-DD (default today + 30 days)
  • ?status: confirmed, cancelled, pending_approval, declined…
  • ?limit: 1–200 (default 50)

200: Bookings

GET/bookings/{id}

One booking

A booking of the studio.

Alad: Kalender / Broneeringud

200: The booking · errors: booking_not_found

POST/bookings

Create a booking

Books a room for an active member, as the studio (no card payment is asked, as for an admin's booking). An end at or before the start is the next day.

Alad: Kalender / Broneeringud

{
  "roomId": "cm…",
  "date": "2026-12-01",
  "startTime": "10:00",
  "endTime": "12:00",
  "email": "mari@example.com",
  "note": "Two guests"
}

201: The booking made · errors: invalid_time, member_not_found, overlap, roomNotFound, invalid_request, invalid_json

POST/bookings/{id}/cancel

Cancel a booking

Cancels as the studio. A request awaiting approval is declined instead.

Alad: Kalender / Broneeringud

{
  "refund": "policy"
}

200: The booking as it is now · errors: booking_not_found, credit_not_possible, refund_failed, invalid_request

GET/members

Find a member

A member by e-mail (the API never lists everyone).

Alad: Kasutajad

  • ?email (required): The e-mail address

200: The member, or an empty list · errors: email_required

GET/invoices

List invoices

Invoices and credit notes issued since a time, newest first, up to 100.

Alad: Maksed

  • ?since: An ISO time (default the beginning)

200: Invoices

GET/invoices/{id}

One invoice

An invoice or credit note of the studio.

Alad: Maksed

200: The invoice · errors: invoice_not_found

GET/invoices/{id}/pdf

An invoice as a PDF

The invoice drawn as an A4 PDF, in the studio's language or another site language.

Alad: Maksed

  • ?lang: A site language code (et, en, fi…); default the studio's

200: application/pdf, attachment <number>.pdf · errors: invoice_not_found, rate_limited

GET/webhooks

List webhooks

The studio's webhooks (never their signing secrets).

Alad: Seaded

200: Webhooks

POST/webhooks

Subscribe a webhook

REST hooks: events go to url as they happen. The signing secret is returned once. At most 50 per studio.

Alad: Seaded

{
  "url": "https://hooks.example.com/ruumio",
  "events": [
    "booking.created",
    "booking.cancelled"
  ]
}

201: The webhook and its secret (shown once) · errors: invalid_url, invalid_events, too_many, invalid_request, invalid_json

DELETE/webhooks/{id}

Unsubscribe a webhook

Deletes a webhook.

Alad: Seaded

200: Deleted · errors: webhook_not_found

Veebihaagid

Lisa veebihaak halduses või API kaudu (POST /webhooks). Iga sündmus saadetakse POST-päringuga ja allkirjastatakse veebihaagi saladusega päises Ruumio-Signature. Kontrolli allkirja enne, kui sisu usaldad.

Body: { id, type, createdAt, studio, data }. Headers: Ruumio-Event, Ruumio-Delivery, Ruumio-Signature. A 410 answer switches the webhook off; other failures are retried (1 minute to a day, 8 tries), and 15 in a row switch it off.

import { createHmac, timingSafeEqual } from "node:crypto";

// header: the Ruumio-Signature header, body: the raw request body
function fromRuumio(header, body, secret) {
  const parts = Object.fromEntries(header.split(",").map((p) => p.split("=")));
  const t = Number(parts.t);
  if (!parts.v1 || Math.abs(Date.now() / 1000 - t) > 300) return false;
  const expected = createHmac("sha256", secret).update(`${t}.${body}`).digest("hex");
  return expected.length === parts.v1.length && timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1));
}

Sündmused

booking.createdA booking is confirmed: made, paid where the room is paid, or approved; each booking of a series
booking.cancelledA booking is cancelled
booking.awaiting_approvalA booking request waits for the studio's approval
booking.declinedA request ended without a booking: declined, unanswered in time, or withdrawn
booking.endedA confirmed booking's end has passed (within a few minutes; for sessions ended after the webhook was made, at most 6 hours late)
booking.files_deliveredThe studio added links to a session's files (labels only)
payment.receivedA booking is paid by card, or the studio recorded cash or a transfer
refund.issuedMoney went back on a booking
invoice.issuedAn invoice or credit note is issued
invoice.paidA company invoice is marked paid
plan.startedA member's monthly plan started (bought or given)
plan.endedA member's plan ended
pack.purchasedAn hour pack is bought, free through a code, or given by the studio
giftcard.purchasedA gift card is bought (never its code)
waiver.signedSomeone signed the studio's waiver while booking (the version, never the IP or browser)
credit.grantedA member got store credit from the studio or as a partner reward
member.joinedSomeone became a member
member.updatedA member's details or role changed (by the studio or the member)
review.createdA client reviewed a session
contact.createdSomeone wrote through the studio's contact form

Vead

{ "error": { "code", "message" } }. A booking the rules refuse answers 422 with the rule's code (overlap, tooShort, outsideHours…).

unauthorized401No key, a malformed, unknown or revoked key
key_expired401The key's expiry date has passed
addon_inactive403The studio's integrations add-on is off, or its plan has ended
insufficient_permission403The key's role lacks the endpoint's area (or holds it to read only)
rate_limited429More than 300 requests a minute with this key
invalid_json400The body isn't a JSON object
invalid_request422A field is wrong: the message names it
invalid_time422date, startTime or endTime missing or malformed
invalid_date422date isn't YYYY-MM-DD
email_required422?email= is missing
member_not_found404No active member with that e-mail or id here
room_not_found404No such room
booking_not_found404No such booking
invoice_not_found404No such invoice
webhook_not_found404No such webhook
credit_not_possible422The refund can't become store credit for this booking
refund_failed502Cancelled, but Stripe refused the refund
invalid_url422The webhook address isn't a public https address
invalid_events422An unknown event type
too_many42250 webhooks already
Ruumio API ja Zapier | Ruumio