Skip to main content

Public integrations API

Available from server 1.4.0. Send requests to your own ReadyRoam server; readyroam.app hosts this documentation, not your integration endpoints.

The examples use fictional Megadodo Publications and reserved .example addresses. Replace these with your server and participants.

A ReadyRoam server can create and update trips, and put people on them, for another system. The typical case is a calendar of jobs or installations, for example in Podio, where every entry should become a trip for the technicians who are going.

Nothing here needs the app: the server does it, and the people involved get the trip the next time their app syncs.

How it works​

  • A service account owns the trips the other system makes. It isn't a person: nobody can sign in as it, and it stays out of the directory. Trips therefore don't depend on whoever set the connection up.
  • An API key acts as the service account. It has scopes that say what it may do, and it can expire or be revoked at any time.
  • Each trip is found by the id the other system gives it, for example the Podio item id. Calling again with the same id updates the trip instead of making a second one, so it is always safe to repeat a call.
  • People are found by email address. Someone with an account on the server is added at once. Someone without one gets an invitation link.

Personal data stays private: the API only reaches trips and who is on them. It can't read anyone's gear, documents or other trips.

Set it up​

You need access to the server's command line, the same way as for create-user. With Docker:

docker compose exec server /app/bin/server admin create-service podio --name "Podio"
docker compose exec server /app/bin/server admin api-key create podio \
--scopes trips:read,trips:write,members:write \
--name "Install calendar" --expires 2027-10-15

The second command prints the key once, like rr_01a1…. Store it somewhere safe: only a fingerprint is kept, so a lost key can't be shown again, only replaced. --expires is optional.

ScopeLets the key
trips:readread trips and their people
trips:writecreate, change and delete trips
members:writeadd, change and remove people on trips

Other commands:

docker compose exec server /app/bin/server admin api-key list
docker compose exec server /app/bin/server admin api-key revoke <key-id>
docker compose exec server /app/bin/server admin audit --limit 50

Disabling the service account (admin disable podio@service.invalid) stops all its keys at once, and enabling it brings them back.

Endpoint reference​

All paths below are relative to /api/v1/integrations. API-key requests do not require the app’s ReadyRoam-Protocol header.

MethodPathRequired scope
GET/meAny valid API key
GET/trips/by-ref/{source}/{id}trips:read
PUT/trips/by-ref/{source}/{id}trips:write
DELETE/trips/by-ref/{source}/{id}trips:write
GET/trips/by-ref/{source}/{id}/memberstrips:read
PUT/trips/by-ref/{source}/{id}/membersmembers:write
PUT/trips/by-ref/{source}/{id}/members/{email}members:write
DELETE/trips/by-ref/{source}/{id}/members/{email}members:write
GET/openapi.jsonNone (public schema)

Use lower-case letters, digits and hyphens for source. URL-encode path values, including email addresses. Keys only authorize the integrations API, not the app’s other API endpoints.

Calling it​

Every call carries the key as a bearer token and goes to /api/v1/integrations. Dates are plain days (2026-11-03). A trip is a business trip unless you say otherwise.

Set KEY in your shell to the key returned by the admin command. Keep it out of source control and browser code.

Check that a key works:

curl -H "Authorization: Bearer $KEY" https://roam.megadodo.example/api/v1/integrations/me

Make or change a trip​

PUT /trips/by-ref/{source}/{id}, here source podio and id 12345:

curl -X PUT -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d '{"name": "Install: Megadodo Stockholm", "destination": "Stockholm",
"startDate": "2026-11-03", "endDate": "2026-11-06"}' \
https://roam.megadodo.example/api/v1/integrations/trips/by-ref/podio/12345

The first call answers 201 and makes the trip; a new trip needs name, destination, startDate and endDate. Later calls answer 200 and change only the fields you send. Those fields are then the other system's, and overwrite what someone changed in the app; the fields you leave out keep whatever people did. The answer lists what changed:

{"id": "…", "ref": "podio:12345", "created": false, "changed": ["endDate"],
"name": "Install: Megadodo Stockholm", "destination": "Stockholm",
"startDate": "2026-11-03", "endDate": "2026-11-07",
"isBusiness": true, "isLeisure": false}

GET on the same address reads the trip, and DELETE deletes it. Deleting a trip that doesn't exist succeeds, so it can be repeated too. If the entry comes back later, or someone deleted the trip in the app, the next PUT makes a new trip.

Put people on it​

The whole list at once, which is what a calendar sync usually wants:

curl -X PUT -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d '{"members": ["ford@megadodo.example", "arthur@megadodo.example",
{"email": "zaphod@megadodo.example", "role": "manager"}]}' \
https://roam.megadodo.example/api/v1/integrations/trips/by-ref/podio/12345/members

Everyone listed ends up on the trip, as an editor unless the entry says manager or viewer (or you send a "role" next to members). The answer says what was done for each person: added, invited, updated, unchanged or removed. Anyone invited without an account has an inviteUrl in the answer, which is also emailed if the server can send mail.

This call only removes people it added itself. Managers and people added by hand in the app stay on the trip, even if they aren't in your list.

For one person: PUT …/members/ford@megadodo.example with {} or {"role": "viewer"}, and DELETE …/members/ford@megadodo.example. Naming one person is an instruction, so their role follows what you send. The trip's owner (the service account) can't be changed.

Try before you do​

Add ?dryRun=true to any call that changes something. The server answers as if it had done it, and keeps nothing. Add ?notify=false to a call that adds people to send no emails, which is handy for a first import of a whole calendar.

Limits and errors​

A key may make 120 calls a minute; over that, the server answers 429 with a Retry-After header. Errors come as {"error": "…", "message": "…"}: 400 for a request that isn't valid, 401 for a missing, wrong, expired or revoked key, 403 for a missing scope, 404 for a trip that doesn't exist.

Everything a key changes is written to the audit log (admin audit), with the key, what was done and what changed. Reads and repeats that change nothing aren't.

The whole API is described in an OpenAPI document at /api/v1/integrations/openapi.json, for tools such as Zapier and Make.

Example: keep a Podio calendar in step​

This sketch syncs a list of installations. Getting them out of Podio is up to your own tooling (Podio's API, a flow or a webhook on item created, updated and deleted); it only needs, for each entry, the item id, a title, a place, two dates, the technicians' emails and whether it is cancelled.

import json, os, urllib.error, urllib.parse, urllib.request

SERVER = "https://roam.megadodo.example"
KEY = os.environ["READYROAM_KEY"]


def call(method, path, body=None):
request = urllib.request.Request(
f"{SERVER}/api/v1/integrations{path}",
method=method,
data=None if body is None else json.dumps(body).encode(),
headers={"Authorization": f"Bearer {KEY}", "Content-Type": "application/json"},
)
try:
with urllib.request.urlopen(request) as response:
return json.load(response)
except urllib.error.HTTPError as error:
raise SystemExit(f"{method} {path}: {error.code} {error.read().decode()}")


def sync(install):
trip = f"/trips/by-ref/podio/{urllib.parse.quote(str(install['item_id']), safe='')}"
if install["cancelled"]:
call("DELETE", trip)
return
call("PUT", trip, {
"name": f"Install: {install['customer']}",
"destination": install["city"],
"startDate": install["start"], # "2026-11-03"
"endDate": install["end"],
})
call("PUT", f"{trip}/members", {"members": install["technicians"]})


for install in [
{"item_id": 12345, "customer": "Megadodo Publications", "city": "Stockholm",
"start": "2026-11-03", "end": "2026-11-06", "cancelled": False,
"technicians": ["ford@megadodo.example", "arthur@megadodo.example"]},
]:
sync(install)

Run it as often as you like, from a schedule or from a webhook: the same entry always updates the same trip, and a technician taken off the entry in Podio is taken off the trip on the next run. For an existing trip, preview changes with ?dryRun=true&notify=false before applying them. A dry-run trip creation does not persist a trip, so a subsequent members request cannot refer to it yet. Preview the creation first, create the trip, then preview the membership changes. The sample above performs real writes and may send invitation emails; add ?notify=false to membership calls when you want to suppress those emails.