RingHuddle API

Version 0.14.0. Generated from the server's code, so it matches what's running.

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.

HTTP API

JSON over HTTPS, with an API key as a bearer token.

Getting started

rh command line

One command per request, checked on your machine first.

Using rh

MCP tools

One tool per operation, for agents that speak MCP.

Connecting an agent

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, and message, 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 message carries 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-Key header (a UUID is typical): a retry with the same key and request gets the first reply again, with Idempotent-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's next_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, with confirm_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_requests with Retry-After in seconds.

Account

GET /api/v1/me

Who the account is. Needs the read scope.

Reply 200: Me

  • api_key ApiKeyInfo
  • email string
  • user_id string

Balance

GET /api/v1/balance

Minutes left, and whether auto-reload is on. Needs the read scope.

Reply 200: Balance

  • auto_reload_enabled boolean
  • minute_pool integerBought minutes left (the account's pool).
  • user_id string

API keys

GET /api/v1/api-keys

The account's API keys, without their secrets. Needs the read scope.

Reply 200: ApiKeys

  • api_keys array 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_id query, string or nullOnly this key's activity.
  • cursor query, string or null
  • limit query, integer or null

Reply 200: Activity

  • entries array of ActivityEntry
  • next_cursor string 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_id path, string, required

Reply 200: ApiKeyRevoked

  • api_key_id string
  • dry_run boolean, may be absent
  • ok boolean
  • revoked_this_key booleanThe 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_name string, 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_code stringSecret: only the program polling should have it.
  • expires_in integerSeconds until the codes stop working.
  • interval integerSeconds to wait between polls.
  • user_code stringFor the person to type, e.g. `"BKTW-QHZM"`.
  • verification_uri string
  • verification_uri_complete stringThe 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_code string, required

Reply 200: DeviceKey

  • api_key stringThe secret, for `Authorization: Bearer`.
  • key ApiKeyInfo

Webhooks

GET /api/v1/webhooks

The account's webhooks and how each last delivered, without their secrets. Needs the read scope.

Reply 200: Webhooks

  • webhooks array 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

  • events array of string, requiredSome of [`WEBHOOK_EVENTS`].
  • url string, required

Reply 201: WebhookCreated

  • dry_run boolean, may be absent
  • ok boolean
  • secret string or null, may be absent
  • webhook Webhook

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_id path, string, required

Reply 200: WebhookTestQueued

  • dry_run boolean, may be absentA dry run checks the webhook exists and queues nothing.
  • ok boolean
  • webhook_id string

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_id path, string, required

Reply 200: WebhookSecretRotated

  • dry_run boolean, may be absent
  • ok boolean
  • previous_secret_expires_at date-time or null, may be absent
  • secret string or null, may be absent
  • webhook_id string

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_id path, string, required

Reply 200: WebhookRemoved

  • dry_run boolean, may be absent
  • ok boolean
  • webhook_id string

Sessions

GET /api/v1/sessions

Where the account is signed in. Needs the read scope.

Reply 200: Sessions

  • sessions array 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

  • all boolean
  • session string or null

Reply 200: SessionsRevoked

  • dry_run boolean, may be absent
  • ok boolean
  • revoked integer

Phone numbers

Ring groups

GET /api/v1/ring-groups

List the account's ring groups. Needs the read scope.

Reply 200: RingGroupList

  • ring_groups array 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_id path, string, required

Reply 200: RingGroup

  • dsl stringThe call flow as text (see [`CallFlowText`]).
  • first_call_at date-time or null, may be absentWhen the number first took a call. `None` for a new number that carriers may not route yet.
  • forward_numbers array of ForwardNumber
  • id string
  • is_active boolean
  • name string
  • phone_number string
  • show_caller_number boolean, 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.
  • steps array 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.
  • timezone string
  • voicemail_guard boolean
  • warnings array 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

  • name string, required
  • phone_number string, required

Reply 200: CheckoutStarted

  • checkout_url string or null, may be absent
  • dry_run boolean, may be absent
  • ok boolean
  • ring_group_id string

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_id path, string, required

Body: UpdateRingGroup

  • is_active boolean or nullFalse pauses the ring group: callers are turned away until it's resumed.
  • name string or null
  • show_caller_number boolean or nullShow the caller's number on forwarded calls instead of the group's.
  • timezone string or nullAn IANA zone, e.g. `America/Los_Angeles`.
  • voicemail_guard boolean or null

Reply 200: Updated

  • dry_run boolean, may be absent
  • ok boolean
  • ring_group_id string

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_id path, string, required

Reply 200: DeleteConfirmation

  • confirm_url string
  • dry_run boolean, may be absent
  • number_held_days integer, may be absentHow long a deleted group's number is held, answering no calls, before it is released for good.
  • ok boolean
  • ring_group_id string
  • warning string, 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_id path, string, required

Reply 200: CallFlowNow

  • next string"From today 17:00: rings Bob.", or that nothing scheduled changes it.
  • next_at date-time or null, may be absentWhen that next changes; `null` when nothing on the schedule does.
  • now string"Now: rings Alice and Bob, then the keypad (codes that work: Master)."
  • ring_group_id string
  • timezone stringThe 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_id path, string, required

Reply 200: CallFlowText

  • dsl string
  • ring_group_id string

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_id path, string, required

Body: ApplyCallFlow

  • dsl string, required

Reply 200: CallFlowApplied

  • dry_run boolean, may be absent
  • dsl stringThe flow as stored, in canonical form.
  • ok boolean
  • ring_group_id string
  • total_numbers integer

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_id path, string, required
  • step path, string, required

Body: MoveStep

  • direction Direction, required

Reply 200: StepMoved

  • dry_run boolean, may be absent
  • moved booleanFalse when it was already first (or last).
  • ok boolean
  • ring_group_id string
  • step integerThe 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_id path, string, required
  • step path, string, required

Body: UpdateStep

  • mode StepDialMode | 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_seconds integer 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_run boolean, may be absent
  • mode StepDialMode
  • ok boolean
  • ring_group_id string
  • step integer
  • timeout_seconds integer

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_id path, string, required

Body: AddForwardNumber

  • label string or null
  • new_step booleanMake 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_number string, requiredAny common format; stored as E.164.
  • tier integer or nullThe call-flow step it rings in; 1 when absent.

Reply 201: ForwardNumberChanged

  • dry_run boolean, may be absent
  • forward_number ForwardNumber
  • ok boolean
  • ring_group_id string

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_id path, string, required
  • number_id path, string, required

Body: UpdateForwardNumber

  • label string or null
  • new_step booleanMake 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_number string or null
  • schedule Schedule | null
  • tier integer or null

Reply 200: ForwardNumberChanged

  • dry_run boolean, may be absent
  • forward_number ForwardNumber
  • ok boolean
  • ring_group_id string

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_id path, string, required
  • number_id path, string, required

Reply 200: Removed

  • dry_run boolean, may be absent
  • forward_number_id string
  • ok boolean
  • ring_group_id string

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_id path, string, required
  • number_id path, string, required

Body: MoveForwardNumber

  • direction Direction, required

Reply 200: Moved

  • dry_run boolean, may be absent
  • forward_number_id string
  • moved booleanFalse when the number was already first (or last) in its step.
  • ok boolean
  • ring_group_id string

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_id path, string, required

Body: Snooze

  • duration string, requiredOne of [`SNOOZE_DURATIONS`] or [`SNOOZE_ENDS`].
  • forward_number_id string or nullThe number to snooze; absent (or `"group"`) snoozes the whole group.

Reply 200: Snoozed

  • dry_run boolean, may be absent
  • forward_number_id string or null, may be absentSet when one number was snoozed rather than the group.
  • ok boolean
  • ring_group_id string
  • snoozed_until date-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_id path, string, required

Reply 200: AccessCodes

  • codes array of AccessCode
  • ring_group_id string

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_id path, string, required

Body: CreateAccessCode

  • expires_at date-time or nullStops working at this time.
  • label string or nullWho or what the code is for, without commas. Absent: "Access code".
  • max_uses integer or nullStops working after this many entries.
  • new_step booleanMake 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.
  • pin string or null4 to 8 digits, not already a code of this ring group. Absent: the server picks 6 random digits.
  • schedule Schedule | nullWhen in the week it works, as a phone's hours. Absent: always.
  • step integer or nullThe keypad step (1 to 10) the code opens the gate at. Required.

Reply 201: AccessCodeCreated

  • code AccessCode
  • dry_run boolean, may be absent
  • ok boolean
  • pin stringThe PIN, shown this once.
  • ring_group_id string

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_id path, string, required
  • code_id path, string, required

Body: CreateAccessCode

  • expires_at date-time or nullStops working at this time.
  • label string or nullWho or what the code is for, without commas. Absent: "Access code".
  • max_uses integer or nullStops working after this many entries.
  • new_step booleanMake 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.
  • pin string or null4 to 8 digits, not already a code of this ring group. Absent: the server picks 6 random digits.
  • schedule Schedule | nullWhen in the week it works, as a phone's hours. Absent: always.
  • step integer or nullThe keypad step (1 to 10) the code opens the gate at. Required.

Reply 200: AccessCodeChanged

  • code AccessCode
  • dry_run boolean, may be absent
  • ok boolean
  • ring_group_id string

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_id path, string, required
  • code_id path, string, required

Reply 200: AccessCodeRemoved

  • access_code_id string
  • dry_run boolean, may be absent
  • ok boolean
  • ring_group_id string

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_id path, string, required
  • before query, date-time or null`next_before` from the previous page.
  • limit query, integer or null

Reply 200: EntryLog

  • entries array of Entry
  • locked_out_seconds integer or null, may be absentSeconds until the keypad takes codes again, after too many wrong ones.
  • next_before date-time or null, may be absentPass as `before` for the next page; absent on the last one.
  • ring_group_id string

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_id path, string, required

Reply 200: Calendars

  • calendars array of Calendar
  • events array of CalendarEvent
  • more_events integerEvents of the next 7 days past the 30 listed.
  • ring_group_id string

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_id path, string, required

Body: PreviewCalendar

  • check_in string or nullAn Airbnb calendar's check-in time, `HH:MM` in the group's timezone; absent: 15:00.
  • check_out string or nullAn Airbnb calendar's check-out time, `HH:MM`; absent: 11:00.
  • kind CalendarKind | nullHow to read it; absent: `ical`.
  • url string, requiredThe calendar's iCal address (`https://` or `webcal://`).

Reply 200: CalendarPreview

  • calendar_name string or null, may be absentThe calendar's own name, if it gives one.
  • event_count integerIts events from now to 90 days ahead.
  • events array of CalendarEventThe first 10 of them.
  • host stringThe address's host: all of the address a reply carries.
  • kind CalendarKind, may be absentHow it was read.
  • left_out array of stringEvents it would leave out, and why (English, for people).
  • marked integerHow many of those have a `ringhuddle:` line; for an Airbnb calendar, how many are stays with a guest code.
  • more_events integerThose past the first 10.
  • no_details booleanIt has events but none has a description: the service is likely sending only busy times, so no `ringhuddle:` line can be read.
  • ring_group_id string

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_id path, string, required

Body: AddCalendar

  • check_in string or nullAn Airbnb calendar's check-in time, `HH:MM` in the group's timezone; absent: 15:00.
  • check_out string or nullAn Airbnb calendar's check-out time, `HH:MM`; absent: 11:00.
  • kind CalendarKind | nullHow to read it; absent: `ical`.
  • name string or nullWhat to call it. Absent or blank: the calendar's own name, else "Calendar".
  • url string, requiredThe calendar's iCal address (`https://` or `webcal://`): its secret address, for a calendar that isn't public.

Reply 201: CalendarAdded

  • calendar Calendar
  • dry_run boolean, may be absent
  • events integerOccurrences from a day ago to 90 days ahead.
  • ok boolean
  • ring_group_id string

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_id path, string, required
  • calendar_id path, string, required

Reply 200: CalendarSynced

  • calendar_id string
  • dry_run boolean, may be absent
  • events integerOccurrences from a day ago to 90 days ahead.
  • left_out integerEvents left out (`Calendar::left_out` says which).
  • ok boolean
  • ring_group_id string

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_id path, string, required
  • calendar_id path, string, required

Body: UpdateCalendar

  • check_in string or null`HH:MM`, in the group's timezone; absent: as it is.
  • check_out string or null`HH:MM`, in the group's timezone; absent: as it is.

Reply 200: CalendarUpdated

  • calendar Calendar
  • dry_run boolean, may be absent
  • events integerOccurrences from a day ago to 90 days ahead.
  • ok boolean
  • ring_group_id string

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_id path, string, required
  • calendar_id path, string, required

Reply 200: CalendarRemoved

  • calendar_id string
  • dry_run boolean, may be absent
  • ok boolean
  • ring_group_id string

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_url string or null, may be absentAbsent on a dry run.
  • dry_run boolean, may be absent
  • minutes integer
  • ok boolean
  • price_cents integer

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

  • enabled boolean, required

Reply 200: AutoReload

  • below_minutes integer
  • dry_run boolean, may be absent
  • enabled boolean
  • has_card booleanWithout a saved card nothing can be reloaded; `rh card` adds one.
  • ok boolean
  • pack_minutes integer
  • pack_price_cents integer

Card

POST /api/v1/card

Add or change the card on file (opens Stripe). Needs the write scope.

Reply 200: CardLink

  • card_url string
  • ok boolean

Calls

GET /api/v1/calls

Calls the ring groups took, and which phone answered. Needs the read scope.

Parameters

  • cursor query, string or null
  • limit query, integer or null
  • ring_group_id query, string or null

Reply 200: Calls

  • calls array of Call
  • next_cursor string or null, may be absentAbsent on the last page.

Ledger

GET /api/v1/ledger

Charges, refunds and minute changes. Needs the read scope.

Parameters

  • cursor query, string or null
  • limit query, integer or null

Reply 200: Ledger

  • entries array of LedgerEntry
  • next_cursor string or null, may be absent