RingHuddle API
Anything you can do on the site you can do through https://ringhuddle.com/api/v1, except a few things kept to a signed-in browser on purpose: making API keys, turning auto-reload on, changing how you sign in, deleting the account and exporting its data. Machine-readable descriptions: OpenAPI 3.1 and llms.txt. The rh command line and the API's Rust types are open source on GitHub.
Getting started
Make an API key on your account page; it asks for two-step verification first. Give it the read scope to look, and write to change things. Limit it to some ring groups unless it needs the whole account: a limited key also gets any group it starts, and is refused the rest of the account with 403 key_limited_to_groups; GET /me says which it is. Send it as a bearer token:
curl https://ringhuddle.com/api/v1/ring-groups \
-H "Authorization: Bearer $RH_API_KEY"
Building a client
The OpenAPI 3.1 description is complete: every operation, its parameters, request and reply types, and the one error body every failure uses. It's generated from the server's code, so it describes what's running, and within /api/v1 it only grows: fields, operations and enum values are added, never removed or renamed. Point an OpenAPI generator at it for a client in your language, and keep the client tolerant of fields and values it doesn't know. In Rust, use the ringhuddle-api crate: the same request and reply types the server uses, which rh is built on (source).
Without pasting a key
A program can ask for its own key (the OAuth device flow, RFC 8628): POST /api/v1/device-logins with a client_name gives it a user_code to show and a link. The person opens the link signed in, checks the code and the program's name, chooses what the key can reach, and approves. Meanwhile the program polls POST /api/v1/device-logins/token with its device_code every interval seconds: authorization_pending until then (or slow_down: wait longer), then the key, shown once. Codes last 10 minutes and work once.
The rh command line
Install it with the installer for your system, or with Cargo. It's open source (MIT or Apache-2.0) at github.com/Ringhuddle/rh, with release builds for macOS, Linux and Windows on its releases page; issues and pull requests are welcome there.
# macOS and Linux
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/Ringhuddle/rh/releases/latest/download/ringhuddle-cli-installer.sh | sh
# Windows (PowerShell)
powershell -ExecutionPolicy Bypass -c "irm https://github.com/Ringhuddle/rh/releases/latest/download/ringhuddle-cli-installer.ps1 | iex"
# With a Rust toolchain
cargo install ringhuddle-cli
rh login does the device flow for you: it shows a code, waits for you to approve it, and saves the key. rh login --paste takes a key you paste, or pipe one in; in CI, set RH_API_KEY instead. Each command is one API request, checked locally first the way the server will check it, and every change takes --dry-run:
rh groups list
rh now <group>
rh numbers add <group> "+1 510 555 0123" --label "Front desk" --dry-run
rh export <group> -o flow.txt # edit it, then
rh apply <group> -f flow.txt --dry-run
MCP tools
An agent that speaks the Model Context Protocol can use the API as tools: point it at https://ringhuddle.com/mcp (Streamable HTTP) with the key as Authorization: Bearer <key>. There is one tool per operation below, named like ring_group_list, taking the path and query parameters, dry_run, idempotency_key and body as arguments.
A call is that API request, made with that key: the same scopes and reach (a key limited to ring groups is offered only what it can do), the same dry runs and replays, and the same entry in the account's activity log.
claude mcp add --transport http ringhuddle \
https://ringhuddle.com/mcp \
--header "Authorization: Bearer $RH_API_KEY"
Adding RingHuddle as a connector
Apps that connect by signing in instead of taking a key, like Claude's and ChatGPT's connectors, need only the address. In Claude, open Settings, then Connectors, choose Add custom connector and enter https://ringhuddle.com/mcp. In ChatGPT, add it as a connector the same way (it needs developer mode on). The app sends you to RingHuddle to sign in and choose what it can reach, full access or some ring groups, as when making a key; with two-step sign-in on, you confirm it once more.
The app then acts with that reach, like a key, and its calls show in your activity log. It appears on your account page under Connected apps, where you can disconnect it at once. What it holds works at /mcp only, not at /api/v1; for scripts and rh, make a key.
Webhooks
A webhook is an HTTPS address on the public internet that RingHuddle POSTs events to: call.completed when a call to a ring group ends, and minutes.low when a group has fewer than 20 minutes left with auto-reload off (with the email, at most once a day). Add one on your account page, with POST /api/v1/webhooks, or rh webhooks add; an account has at most 5, and a key limited to ring groups can't manage them. The reply shows its signing secret once.
Checking a delivery
Each delivery is JSON: id (the same on every retry, to skip duplicates), type, created_at and data. Its RingHuddle-Signature header is t=<unix seconds>,v1=<hex>, where the hex is the HMAC-SHA256 of <t>.<body> with the secret. Check it with a constant-time comparison and refuse an old t.
RingHuddle-Signature: t=1767225600,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd
Answer 2xx within 10 seconds; anything else, a redirect included, is tried again after 1, 2, 4… minutes, 8 times in all. POST /api/v1/webhooks/{id}/test sends a ping, and the list shows how the last delivery went.
Changing the secret
Use New secret on the account page, POST /api/v1/webhooks/{id}/rotate-secret (with an Idempotency-Key), or rh webhooks rotate. The new secret is shown once. For 24 hours the old one signs too: the header then has two v1= entries, new first, and a delivery is genuine if either matches a secret you hold. Switch your receiver to the new secret within the day; the webhook's previous_secret_expires_at says when the old one stops.
Conventions
- Errors
- Every failure has the same body:
error, a stable code to branch on, andmessage, written for people and free to change. Some codes add fields beside them. A 4xx is the request's problem; a 5xx is ours. - Support
- Found a bug, or a 5xx that keeps happening? Write to support@ringhuddle.com with the request you sent. A 5xx's
messagecarries a reference: quote it, and we can find the request in our logs. - Dry runs
- Every change takes
?dry_run=true. It's checked as if for real, including the checks that need the database, and nothing is saved. The reply is the real one, with"dry_run": true. - Retrying
- Most changes are safe to repeat. Adding a phone, moving one and adding a webhook take an
Idempotency-Keyheader (a UUID is typical): a retry with the same key and request gets the first reply again, withIdempotent-Replayed: true, and doesn't act. - Lists
- Short lists come whole. Calls and the ledger come newest first, in pages:
?limit=(50 by default, at most 200) and?cursor=from the previous page'snext_cursor, which is absent on the last page. - Money
- The API never charges a card. Starting a ring group and buying minutes answer with a Stripe Checkout page for a person to pay on. Deleting a ring group answers with a link to the site's confirmation, which shows the refund. Auto-reload can be turned off, but turning it on is refused (
confirm_on_site, withconfirm_url): only the person can, on the site, after confirming it's them. - Rate limits
- 120 requests a minute per key, in bursts of up to 60. Past that,
429 too_many_requestswithRetry-Afterin seconds.
Account
GET /api/v1/me
Who the account is. Needs the read scope.
Reply 200: Me
api_keyApiKeyInfoemailstringuser_idstring
Balance
GET /api/v1/balance
Minutes left, and whether auto-reload is on. Needs the read scope.
Reply 200: Balance
auto_reload_enabledbooleanminute_poolintegerBought minutes left (the account's pool).user_idstring
API keys
GET /api/v1/api-keys
The account's API keys, without their secrets. Needs the read scope.
Reply 200: ApiKeys
api_keysarray of ApiKey
GET /api/v1/activity
What the account's API keys changed in the last 90 days. Needs the read scope.
Parameters
api_key_idquery, string or nullOnly this key's activity.cursorquery, string or nulllimitquery, integer or null
Reply 200: Activity
entriesarray of ActivityEntrynext_cursorstring or null, may be absentPass as `cursor` for the next page; absent on the last one.
DELETE /api/v1/api-keys/{api_key_id}
Revoke an API key. Needs the write scope.
- Takes ?dry_run=true: checked as if for real, nothing saved.
- Can't be undone.
Parameters
api_key_idpath, string, required
Reply 200: ApiKeyRevoked
api_key_idstringdry_runboolean, may be absentokbooleanrevoked_this_keybooleanThe request revoked its own key; the next one needs another.
Device-code login
POST /api/v1/device-logins
Ask for an API key with a code the person approves on the site (RFC 8628); no key needed. Takes no API key.
Body: StartDeviceLogin
client_namestring, requiredWhat the program calls itself, shown to the person approving, e.g. `"rh on laptop"`. Becomes the key's name unless they change it.
Reply 200: DeviceLogin
device_codestringSecret: only the program polling should have it.expires_inintegerSeconds until the codes stop working.intervalintegerSeconds to wait between polls.user_codestringFor the person to type, e.g. `"BKTW-QHZM"`.verification_uristringverification_uri_completestringThe same page with the code filled in.
POST /api/v1/device-logins/token
Collect the API key once its code is approved; poll until then. No key needed. Takes no API key.
Body: FinishDeviceLogin
device_codestring, required
Reply 200: DeviceKey
api_keystringThe secret, for `Authorization: Bearer`.keyApiKeyInfo
Webhooks
GET /api/v1/webhooks
The account's webhooks and how each last delivered, without their secrets. Needs the read scope.
Reply 200: Webhooks
webhooksarray of Webhook
POST /api/v1/webhooks
Send events (a call ended, minutes running low) to an HTTPS address, signed with a secret shown once. Needs the write scope.
- Takes ?dry_run=true: checked as if for real, nothing saved.
- Not safe to repeat on its own: send an Idempotency-Key to retry.
Body: CreateWebhook
eventsarray of string, requiredSome of [`WEBHOOK_EVENTS`].urlstring, required
Reply 201: WebhookCreated
dry_runboolean, may be absentokbooleansecretstring or null, may be absentwebhookWebhook
POST /api/v1/webhooks/{webhook_id}/test
Send a webhook a ping, to check it's reachable and checks signatures. Needs the write scope.
- Takes ?dry_run=true: checked as if for real, nothing saved.
Parameters
webhook_idpath, string, required
Reply 200: WebhookTestQueued
dry_runboolean, may be absentA dry run checks the webhook exists and queues nothing.okbooleanwebhook_idstring
POST /api/v1/webhooks/{webhook_id}/rotate-secret
Give a webhook a new signing secret, shown once; the old one also signs for 24 hours. Needs the write scope.
- Takes ?dry_run=true: checked as if for real, nothing saved.
- Not safe to repeat on its own: send an Idempotency-Key to retry.
Parameters
webhook_idpath, string, required
Reply 200: WebhookSecretRotated
dry_runboolean, may be absentokbooleanprevious_secret_expires_atdate-time or null, may be absentsecretstring or null, may be absentwebhook_idstring
DELETE /api/v1/webhooks/{webhook_id}
Remove a webhook, and what was waiting to be sent to it. Needs the write scope.
- Takes ?dry_run=true: checked as if for real, nothing saved.
- Can't be undone.
Parameters
webhook_idpath, string, required
Reply 200: WebhookRemoved
dry_runboolean, may be absentokbooleanwebhook_idstring
Sessions
GET /api/v1/sessions
Where the account is signed in. Needs the read scope.
Reply 200: Sessions
sessionsarray of Session
POST /api/v1/sessions/revoke
Sign out one device, or every device but this one. Needs the write scope.
- Takes ?dry_run=true: checked as if for real, nothing saved.
- Can't be undone.
Body: RevokeSessions
allbooleansessionstring or null
Reply 200: SessionsRevoked
dry_runboolean, may be absentokbooleanrevokedinteger
Phone numbers
GET /api/v1/available-numbers
Search the RingHuddle numbers available to buy, by area code or digits. Needs the read scope.
Parameters
area_codequery, string, requiredcontainsquery, string or null
Reply 200: AvailableNumbers
area_codestringnumbersarray of AvailableNumbersuggested_area_codesarray of SuggestedAreaCode, may be absentNearby or overlay area codes with available numbers right now, populated when `numbers` is empty for an area-code search.
Ring groups
GET /api/v1/ring-groups
List the account's ring groups. Needs the read scope.
Reply 200: RingGroupList
ring_groupsarray of RingGroupSummary
GET /api/v1/ring-groups/{ring_group_id}
One ring group's settings and numbers, and warnings such as a phone that keeps sending calls to voicemail. Needs the read scope.
Parameters
ring_group_idpath, string, required
Reply 200: RingGroup
dslstringThe call flow as text (see [`CallFlowText`]).first_call_atdate-time or null, may be absentWhen the number first took a call. `None` for a new number that carriers may not route yet.forward_numbersarray of ForwardNumberidstringis_activebooleannamestringphone_numberstringshow_caller_numberboolean, may be absentForwarded calls show the caller's number instead of the group's; a withheld or malformed caller number still shows the group's.stepsarray of Step, may be absentThe call flow's steps, in the order a call goes through them, each with its own dialing mode and ring time. A number's `tier` is the step it rings in.timezonestringvoicemail_guardbooleanwarningsarray of RingGroupWarning, may be absentThings about the group worth telling its owner, such as a phone that keeps sending calls to voicemail. Empty when there is nothing to say.
POST /api/v1/ring-groups
Buy a RingHuddle number and start a ring group on it (yearly subscription). Needs the write scope.
- Takes ?dry_run=true: checked as if for real, nothing saved.
- Never charges a card: answers with a Stripe Checkout page for a person to pay on.
Body: CreateRingGroup
namestring, requiredphone_numberstring, required
Reply 200: CheckoutStarted
checkout_urlstring or null, may be absentdry_runboolean, may be absentokbooleanring_group_idstring
PATCH /api/v1/ring-groups/{ring_group_id}
Change a ring group's name, the most phones one call rings, voicemail guard, whose number forwarded calls show, or timezone, or pause or resume it. How the phones ring (all at once or one after another) and for how long are settings of each call-flow step: use call_flow_update_step. Needs the write scope.
- Takes ?dry_run=true: checked as if for real, nothing saved.
Parameters
ring_group_idpath, string, required
Body: UpdateRingGroup
is_activeboolean or nullFalse pauses the ring group: callers are turned away until it's resumed.namestring or nullshow_caller_numberboolean or nullShow the caller's number on forwarded calls instead of the group's.timezonestring or nullAn IANA zone, e.g. `America/Los_Angeles`.voicemail_guardboolean or null
Reply 200: Updated
dry_runboolean, may be absentokbooleanring_group_idstring
DELETE /api/v1/ring-groups/{ring_group_id}
Delete a ring group. Take its number out of any call box or call forwarding first: once deleted, the number answers no calls for 30 days, then is released for good. Needs the write scope.
- Takes ?dry_run=true: checked as if for real, nothing saved.
- Can't be undone.
Parameters
ring_group_idpath, string, required
Reply 200: DeleteConfirmation
confirm_urlstringdry_runboolean, may be absentnumber_held_daysinteger, may be absentHow long a deleted group's number is held, answering no calls, before it is released for good.okbooleanring_group_idstringwarningstring, may be absentWhat deleting does to the number, to show before confirming.
Call flow
GET /api/v1/ring-groups/{ring_group_id}/now
What a call to a ring group does right now, and when that next changes (its phones' hours, snoozes and gate codes). Needs the read scope.
Parameters
ring_group_idpath, string, required
Reply 200: CallFlowNow
nextstring"From today 17:00: rings Bob.", or that nothing scheduled changes it.next_atdate-time or null, may be absentWhen that next changes; `null` when nothing on the schedule does.nowstring"Now: rings Alice and Bob, then the keypad (codes that work: Master)."ring_group_idstringtimezonestringThe timezone the times are in: the group's.
GET /api/v1/ring-groups/{ring_group_id}/dsl
A ring group's whole call flow as text: each step with its dialing mode, ring time and phones (or gate codes). Needs the read scope.
Parameters
ring_group_idpath, string, required
Reply 200: CallFlowText
dslstringring_group_idstring
PUT /api/v1/ring-groups/{ring_group_id}/dsl
Replace a ring group's whole call flow (steps, their settings and phones) with call-flow text. For one change, prefer the tool for it: call_flow_update_step for a step's dialing mode or ring time, the forward_number tools for a phone. Needs the write scope.
- Takes ?dry_run=true: checked as if for real, nothing saved.
Parameters
ring_group_idpath, string, required
Body: ApplyCallFlow
dslstring, required
Reply 200: CallFlowApplied
dry_runboolean, may be absentdslstringThe flow as stored, in canonical form.okbooleanring_group_idstringtotal_numbersinteger
POST /api/v1/ring-groups/{ring_group_id}/steps/{step}/move
Move a whole step of the call flow up or down; the steps are numbered again. Needs the write scope.
- Takes ?dry_run=true: checked as if for real, nothing saved.
- Not safe to repeat on its own: send an Idempotency-Key to retry.
Parameters
ring_group_idpath, string, requiredsteppath, string, required
Body: MoveStep
directionDirection, required
Reply 200: StepMoved
dry_runboolean, may be absentmovedbooleanFalse when it was already first (or last).okbooleanring_group_idstringstepintegerThe step's number before the move.
PATCH /api/v1/ring-groups/{ring_group_id}/steps/{step}
Change how one step of the call flow rings: its dialing mode (simultaneous: all its phones at once; sequential: one after another; conference) and how many seconds it rings before the call goes to the next step. To ring a step's phones one after another, set its mode to sequential; don't move them into separate steps. Needs the write scope.
- Takes ?dry_run=true: checked as if for real, nothing saved.
Parameters
ring_group_idpath, string, requiredsteppath, string, required
Body: UpdateStep
modeStepDialMode | null`simultaneous` (all the step's phones at once), `sequential` (one after another, in their order) or `conference`. Not `keypad`: a step is a keypad because it has gate codes.timeout_secondsinteger or nullSeconds the step rings before the next step, 5 to 120 (in a `sequential` step, seconds each phone rings); for a keypad step, seconds it waits for a code.
Reply 200: StepUpdated
dry_runboolean, may be absentmodeStepDialModeokbooleanring_group_idstringstepintegertimeout_secondsinteger
Forwarding numbers
POST /api/v1/ring-groups/{ring_group_id}/numbers
Add a phone to a ring group. Needs the write scope.
- Takes ?dry_run=true: checked as if for real, nothing saved.
- Not safe to repeat on its own: send an Idempotency-Key to retry.
Parameters
ring_group_idpath, string, required
Body: AddForwardNumber
labelstring or nullnew_stepbooleanMake a new step at `tier` for it: the step there and the ones after it move down one. Absent: false, it joins the step there.phone_numberstring, requiredAny common format; stored as E.164.tierinteger or nullThe call-flow step it rings in; 1 when absent.
Reply 201: ForwardNumberChanged
dry_runboolean, may be absentforward_numberForwardNumberokbooleanring_group_idstring
PATCH /api/v1/ring-groups/{ring_group_id}/numbers/{number_id}
Change a forwarding number's phone number, label, step or the hours it rings. Needs the write scope.
- Takes ?dry_run=true: checked as if for real, nothing saved.
Parameters
ring_group_idpath, string, requirednumber_idpath, string, required
Body: UpdateForwardNumber
labelstring or nullnew_stepbooleanMake a new step at `tier` for it: the step there and the ones after it move down one. Absent: false, it joins the step there.phone_numberstring or nullscheduleSchedule | nulltierinteger or null
Reply 200: ForwardNumberChanged
dry_runboolean, may be absentforward_numberForwardNumberokbooleanring_group_idstring
DELETE /api/v1/ring-groups/{ring_group_id}/numbers/{number_id}
Remove a phone from a ring group. Needs the write scope.
- Takes ?dry_run=true: checked as if for real, nothing saved.
- Can't be undone.
Parameters
ring_group_idpath, string, requirednumber_idpath, string, required
Reply 200: Removed
dry_runboolean, may be absentforward_number_idstringokbooleanring_group_idstring
POST /api/v1/ring-groups/{ring_group_id}/numbers/{number_id}/move
Move a phone up or down the ring order within its step. Needs the write scope.
- Takes ?dry_run=true: checked as if for real, nothing saved.
- Not safe to repeat on its own: send an Idempotency-Key to retry.
Parameters
ring_group_idpath, string, requirednumber_idpath, string, required
Body: MoveForwardNumber
directionDirection, required
Reply 200: Moved
dry_runboolean, may be absentforward_number_idstringmovedbooleanFalse when the number was already first (or last) in its step.okbooleanring_group_idstring
Snooze
POST /api/v1/ring-groups/{ring_group_id}/snooze
Stop one phone, or the whole ring group, ringing for a while. Needs the write scope.
- Takes ?dry_run=true: checked as if for real, nothing saved.
Parameters
ring_group_idpath, string, required
Body: Snooze
durationstring, requiredOne of [`SNOOZE_DURATIONS`] or [`SNOOZE_ENDS`].forward_number_idstring or nullThe number to snooze; absent (or `"group"`) snoozes the whole group.
Reply 200: Snoozed
dry_runboolean, may be absentforward_number_idstring or null, may be absentSet when one number was snoozed rather than the group.okbooleanring_group_idstringsnoozed_untildate-time or null, may be absent`None` when the snooze was ended.
Gate codes
GET /api/v1/ring-groups/{ring_group_id}/access-codes
A ring group's gate codes, each with its keypad step, and whether each works now (no PINs). Needs the read scope.
Parameters
ring_group_idpath, string, required
Reply 200: AccessCodes
codesarray of AccessCodering_group_idstring
POST /api/v1/ring-groups/{ring_group_id}/access-codes
Add a code to a keypad step: a step with codes, or a new one. Needs the write scope.
- Takes ?dry_run=true: checked as if for real, nothing saved.
- Not safe to repeat on its own: send an Idempotency-Key to retry.
Parameters
ring_group_idpath, string, required
Body: CreateAccessCode
expires_atdate-time or nullStops working at this time.labelstring or nullWho or what the code is for, without commas. Absent: "Access code".max_usesinteger or nullStops working after this many entries.new_stepbooleanMake a new step at `step` for it: the step there and the ones after it move down one. Absent: false, it joins the step there.pinstring or null4 to 8 digits, not already a code of this ring group. Absent: the server picks 6 random digits.scheduleSchedule | nullWhen in the week it works, as a phone's hours. Absent: always.stepinteger or nullThe keypad step (1 to 10) the code opens the gate at. Required.
Reply 201: AccessCodeCreated
codeAccessCodedry_runboolean, may be absentokbooleanpinstringThe PIN, shown this once.ring_group_idstring
PUT /api/v1/ring-groups/{ring_group_id}/access-codes/{code_id}
Change a gate code: its name, PIN, step (or a new step), expiry, use limit or hours. Needs the write scope.
- Takes ?dry_run=true: checked as if for real, nothing saved.
Parameters
ring_group_idpath, string, requiredcode_idpath, string, required
Body: CreateAccessCode
expires_atdate-time or nullStops working at this time.labelstring or nullWho or what the code is for, without commas. Absent: "Access code".max_usesinteger or nullStops working after this many entries.new_stepbooleanMake a new step at `step` for it: the step there and the ones after it move down one. Absent: false, it joins the step there.pinstring or null4 to 8 digits, not already a code of this ring group. Absent: the server picks 6 random digits.scheduleSchedule | nullWhen in the week it works, as a phone's hours. Absent: always.stepinteger or nullThe keypad step (1 to 10) the code opens the gate at. Required.
Reply 200: AccessCodeChanged
codeAccessCodedry_runboolean, may be absentokbooleanring_group_idstring
DELETE /api/v1/ring-groups/{ring_group_id}/access-codes/{code_id}
Remove a gate code. Needs the write scope.
- Takes ?dry_run=true: checked as if for real, nothing saved.
- Can't be undone.
Parameters
ring_group_idpath, string, requiredcode_idpath, string, required
Reply 200: AccessCodeRemoved
access_code_idstringdry_runboolean, may be absentokbooleanring_group_idstring
GET /api/v1/ring-groups/{ring_group_id}/access-codes/log
When the keypad was used, and with which code. Needs the read scope.
Parameters
ring_group_idpath, string, requiredbeforequery, date-time or null`next_before` from the previous page.limitquery, integer or null
Reply 200: EntryLog
entriesarray of Entrylocked_out_secondsinteger or null, may be absentSeconds until the keypad takes codes again, after too many wrong ones.next_beforedate-time or null, may be absentPass as `before` for the next page; absent on the last one.ring_group_idstring
Calendars
GET /api/v1/ring-groups/{ring_group_id}/calendars
A ring group's calendar feeds (never their addresses), and how a call reads the events of the next 7 days. Needs the read scope.
Parameters
ring_group_idpath, string, required
Reply 200: Calendars
calendarsarray of Calendareventsarray of CalendarEventmore_eventsintegerEvents of the next 7 days past the 30 listed.ring_group_idstring
POST /api/v1/ring-groups/{ring_group_id}/calendars/preview
Fetch a calendar's iCal address and show how a call would read its events, storing nothing. Needs the read scope.
Parameters
ring_group_idpath, string, required
Body: PreviewCalendar
check_instring or nullAn Airbnb calendar's check-in time, `HH:MM` in the group's timezone; absent: 15:00.check_outstring or nullAn Airbnb calendar's check-out time, `HH:MM`; absent: 11:00.kindCalendarKind | nullHow to read it; absent: `ical`.urlstring, requiredThe calendar's iCal address (`https://` or `webcal://`).
Reply 200: CalendarPreview
calendar_namestring or null, may be absentThe calendar's own name, if it gives one.event_countintegerIts events from now to 90 days ahead.eventsarray of CalendarEventThe first 10 of them.hoststringThe address's host: all of the address a reply carries.kindCalendarKind, may be absentHow it was read.left_outarray of stringEvents it would leave out, and why (English, for people).markedintegerHow many of those have a `ringhuddle:` line; for an Airbnb calendar, how many are stays with a guest code.more_eventsintegerThose past the first 10.no_detailsbooleanIt has events but none has a description: the service is likely sending only busy times, so no `ringhuddle:` line can be read.ring_group_idstring
POST /api/v1/ring-groups/{ring_group_id}/calendars
Add a calendar feed (its iCal address) to a ring group with its events; an address that gives no calendar is refused. Needs the write scope.
- Takes ?dry_run=true: checked as if for real, nothing saved.
- Not safe to repeat on its own: send an Idempotency-Key to retry.
Parameters
ring_group_idpath, string, required
Body: AddCalendar
check_instring or nullAn Airbnb calendar's check-in time, `HH:MM` in the group's timezone; absent: 15:00.check_outstring or nullAn Airbnb calendar's check-out time, `HH:MM`; absent: 11:00.kindCalendarKind | nullHow to read it; absent: `ical`.namestring or nullWhat to call it. Absent or blank: the calendar's own name, else "Calendar".urlstring, requiredThe calendar's iCal address (`https://` or `webcal://`): its secret address, for a calendar that isn't public.
Reply 201: CalendarAdded
calendarCalendardry_runboolean, may be absenteventsintegerOccurrences from a day ago to 90 days ahead.okbooleanring_group_idstring
POST /api/v1/ring-groups/{ring_group_id}/calendars/{calendar_id}/sync
Sync a ring group's calendar feed now. Needs the write scope.
- Takes ?dry_run=true: checked as if for real, nothing saved.
Parameters
ring_group_idpath, string, requiredcalendar_idpath, string, required
Reply 200: CalendarSynced
calendar_idstringdry_runboolean, may be absenteventsintegerOccurrences from a day ago to 90 days ahead.left_outintegerEvents left out (`Calendar::left_out` says which).okbooleanring_group_idstring
PUT /api/v1/ring-groups/{ring_group_id}/calendars/{calendar_id}
Set an Airbnb calendar's check-in and check-out times, which bound its guests' gate codes. Needs the write scope.
- Takes ?dry_run=true: checked as if for real, nothing saved.
Parameters
ring_group_idpath, string, requiredcalendar_idpath, string, required
Body: UpdateCalendar
check_instring or null`HH:MM`, in the group's timezone; absent: as it is.check_outstring or null`HH:MM`, in the group's timezone; absent: as it is.
Reply 200: CalendarUpdated
calendarCalendardry_runboolean, may be absenteventsintegerOccurrences from a day ago to 90 days ahead.okbooleanring_group_idstring
DELETE /api/v1/ring-groups/{ring_group_id}/calendars/{calendar_id}
Remove a calendar feed and its events. Needs the write scope.
- Takes ?dry_run=true: checked as if for real, nothing saved.
- Can't be undone.
Parameters
ring_group_idpath, string, requiredcalendar_idpath, string, required
Reply 200: CalendarRemoved
calendar_idstringdry_runboolean, may be absentokbooleanring_group_idstring
Minutes
POST /api/v1/minute-packs
Buy a pack of minutes. Needs the write scope.
- Takes ?dry_run=true: checked as if for real, nothing saved.
- Never charges a card: answers with a Stripe Checkout page for a person to pay on.
Reply 200: MinutePackCheckout
checkout_urlstring or null, may be absentAbsent on a dry run.dry_runboolean, may be absentminutesintegerokbooleanprice_centsinteger
Auto-reload
PUT /api/v1/auto-reload
Turn buying more minutes automatically on or off (one setting for the account). Only a person on the site can turn it on. Needs the write scope.
- Takes ?dry_run=true: checked as if for real, nothing saved.
Body: SetAutoReload
enabledboolean, required
Reply 200: AutoReload
below_minutesintegerdry_runboolean, may be absentenabledbooleanhas_cardbooleanWithout a saved card nothing can be reloaded; `rh card` adds one.okbooleanpack_minutesintegerpack_price_centsinteger
Card
POST /api/v1/card
Add or change the card on file (opens Stripe). Needs the write scope.
Reply 200: CardLink
card_urlstringokboolean
Calls
GET /api/v1/calls
Calls the ring groups took, and which phone answered. Needs the read scope.
Parameters
cursorquery, string or nulllimitquery, integer or nullring_group_idquery, string or null
Reply 200: Calls
callsarray of Callnext_cursorstring or null, may be absentAbsent on the last page.
Ledger
GET /api/v1/ledger
Charges, refunds and minute changes. Needs the read scope.
Parameters
cursorquery, string or nulllimitquery, integer or null
Reply 200: Ledger
entriesarray of LedgerEntrynext_cursorstring or null, may be absent