{"components":{"schemas":{"AccessCode":{"description":"A gate code. Its PIN is only in the reply that made it: a key that can\nread the account can't learn how to open the gate.","properties":{"created_at":{"format":"date-time","type":"string"},"expires_at":{"default":null,"format":"date-time","type":["string","null"]},"id":{"type":"string"},"label":{"type":"string"},"max_uses":{"default":null,"format":"int32","type":["integer","null"]},"schedule":{"$ref":"#/components/schemas/Schedule","description":"When in the week it works: one of [`SCHEDULE_TYPES`], and for\n`custom` the days (bit 0 Monday to bit 6 Sunday) and minutes after\nmidnight in the group's timezone."},"status":{"description":"One of [`ACCESS_CODE_STATUSES`].","type":"string"},"step":{"description":"The keypad step it opens the gate at.","format":"uint32","minimum":0,"type":"integer"},"use_count":{"format":"int32","type":"integer"}},"required":["id","step","label","use_count","schedule","status","created_at"],"type":"object"},"AccessCodeChanged":{"description":"`PUT /api/v1/ring-groups/{id}/access-codes/{code_id}`: the code as it\nnow is (or would be, on a dry run).","properties":{"code":{"$ref":"#/components/schemas/AccessCode"},"dry_run":{"default":false,"type":"boolean"},"ok":{"type":"boolean"},"ring_group_id":{"type":"string"}},"required":["ok","ring_group_id","code"],"type":"object"},"AccessCodeCreated":{"properties":{"code":{"$ref":"#/components/schemas/AccessCode"},"dry_run":{"default":false,"type":"boolean"},"ok":{"type":"boolean"},"pin":{"description":"The PIN, shown this once.","type":"string"},"ring_group_id":{"type":"string"}},"required":["ok","ring_group_id","code","pin"],"type":"object"},"AccessCodeRemoved":{"properties":{"access_code_id":{"type":"string"},"dry_run":{"default":false,"type":"boolean"},"ok":{"type":"boolean"},"ring_group_id":{"type":"string"}},"required":["ok","ring_group_id","access_code_id"],"type":"object"},"AccessCodes":{"properties":{"codes":{"items":{"$ref":"#/components/schemas/AccessCode"},"type":"array"},"ring_group_id":{"type":"string"}},"required":["ring_group_id","codes"],"type":"object"},"Activity":{"properties":{"entries":{"items":{"$ref":"#/components/schemas/ActivityEntry"},"type":"array"},"next_cursor":{"description":"Pass as `cursor` for the next page; absent on the last one.","type":["string","null"]}},"required":["entries"],"type":"object"},"ActivityEntry":{"description":"One change a key asked for: refused ones and dry runs too.","properties":{"api_key_id":{"type":"string"},"at":{"format":"date-time","type":"string"},"dry_run":{"description":"Checked only; nothing was saved.","type":"boolean"},"id":{"type":"string"},"key_name":{"description":"The key's name and prefix when it was used; they stay after it's revoked.","type":"string"},"key_prefix":{"type":"string"},"ok":{"description":"It worked (a 2xx reply).","type":"boolean"},"operation":{"description":"The operation's id, e.g. `forward_number.add`.","type":"string"},"replayed":{"description":"Answered from an earlier request with the same `Idempotency-Key`,\nwithout acting again.","type":"boolean"},"ring_group_id":{"default":null,"type":["string","null"]},"status":{"description":"The reply's HTTP status.","format":"uint16","maximum":65535,"minimum":0,"type":"integer"},"summary":{"description":"What the operation does, in English.","type":"string"}},"required":["id","at","api_key_id","key_name","key_prefix","operation","summary","status","ok","dry_run","replayed"],"type":"object"},"AddCalendar":{"description":"`POST /api/v1/ring-groups/{id}/calendars` (send an `Idempotency-Key`).\nThe server fetches the address itself and refuses one that gives no\ncalendar (`calendar_unusable`).","properties":{"check_in":{"description":"An Airbnb calendar's check-in time, `HH:MM` in the group's\ntimezone; absent: 15:00.","type":["string","null"]},"check_out":{"description":"An Airbnb calendar's check-out time, `HH:MM`; absent: 11:00.","type":["string","null"]},"kind":{"anyOf":[{"$ref":"#/components/schemas/CalendarKind"},{"type":"null"}],"description":"How to read it; absent: `ical`."},"name":{"description":"What to call it. Absent or blank: the calendar's own name, else\n\"Calendar\".","type":["string","null"]},"url":{"description":"The calendar's iCal address (`https://` or `webcal://`): its secret\naddress, for a calendar that isn't public.","type":"string"}},"required":["url"],"type":"object"},"AddForwardNumber":{"description":"`POST /api/v1/ring-groups/{ring_group_id}/numbers`: add a phone. Not\nidempotent: send an `Idempotency-Key` to retry safely. The reply is the\nnew [`ForwardNumber`].","properties":{"label":{"type":["string","null"]},"new_step":{"description":"Make a new step at `tier` for it: the step there and the ones after\nit move down one. Absent: false, it joins the step there.","type":"boolean"},"phone_number":{"description":"Any common format; stored as E.164.","type":"string"},"tier":{"description":"The call-flow step it rings in; 1 when absent.","format":"int64","type":["integer","null"]}},"required":["phone_number"],"type":"object"},"ApiKey":{"description":"An API key, without its secret. New keys are made on the site, after\ntwo-step verification.","properties":{"connected_app":{"default":false,"description":"An app connected through OAuth (to `/mcp`), not a key someone made:\nit has no secret to show, and revoking it disconnects the app.","type":"boolean"},"created_at":{"format":"date-time","type":"string"},"expires_at":{"default":null,"format":"date-time","type":["string","null"]},"id":{"type":"string"},"key_prefix":{"description":"The start of the key, to tell keys apart.","type":"string"},"last_used_at":{"default":null,"format":"date-time","type":["string","null"]},"name":{"type":"string"},"ring_group_ids":{"default":null,"description":"`null`: full access. A list: the only ring groups this key can see\nor change, including any it started.","items":{"type":"string"},"type":["array","null"]},"scopes":{"items":{"type":"string"},"type":"array"},"this_key":{"description":"The key this request was made with.","type":"boolean"}},"required":["id","name","key_prefix","scopes","created_at","this_key"],"type":"object"},"ApiKeyInfo":{"properties":{"created_at":{"format":"date-time","type":"string"},"id":{"type":"string"},"name":{"type":"string"},"ring_group_ids":{"default":null,"description":"`null`: full access. A list: the only ring groups this key can see\nor change, including any it started.","items":{"type":"string"},"type":["array","null"]},"scopes":{"description":"Comma-separated, e.g. `\"read,write\"`.","type":"string"}},"required":["id","name","scopes","created_at"],"type":"object"},"ApiKeyRevoked":{"properties":{"api_key_id":{"type":"string"},"dry_run":{"default":false,"type":"boolean"},"ok":{"type":"boolean"},"revoked_this_key":{"description":"The request revoked its own key; the next one needs another.","type":"boolean"}},"required":["ok","api_key_id","revoked_this_key"],"type":"object"},"ApiKeys":{"description":"`GET /api/v1/api-keys`","properties":{"api_keys":{"items":{"$ref":"#/components/schemas/ApiKey"},"type":"array"}},"required":["api_keys"],"type":"object"},"ApplyCallFlow":{"description":"`PUT /api/v1/ring-groups/{ring_group_id}/dsl`: replaces the group's steps\nand numbers with the ones in `dsl`.","properties":{"dsl":{"type":"string"}},"required":["dsl"],"type":"object"},"AutoReload":{"description":"Auto-reload, one setting for the account: when on, the saved card is\ncharged `pack_price_cents` for `pack_minutes` whenever a live ring group's\nminutes left (its included allowance plus the pool) drop below\n`below_minutes`. The pack's minutes go into the pool.","properties":{"below_minutes":{"format":"int32","type":"integer"},"dry_run":{"default":false,"type":"boolean"},"enabled":{"type":"boolean"},"has_card":{"description":"Without a saved card nothing can be reloaded; `rh card` adds one.","type":"boolean"},"ok":{"type":"boolean"},"pack_minutes":{"format":"int32","type":"integer"},"pack_price_cents":{"format":"int64","type":"integer"}},"required":["ok","enabled","has_card","below_minutes","pack_minutes","pack_price_cents"],"type":"object"},"AvailableNumber":{"properties":{"locality":{"default":null,"type":["string","null"]},"phone_number":{"type":"string"},"region":{"default":null,"type":["string","null"]}},"required":["phone_number"],"type":"object"},"AvailableNumbers":{"properties":{"area_code":{"type":"string"},"numbers":{"items":{"$ref":"#/components/schemas/AvailableNumber"},"type":"array"},"suggested_area_codes":{"description":"Nearby or overlay area codes with available numbers right now,\npopulated when `numbers` is empty for an area-code search.","items":{"$ref":"#/components/schemas/SuggestedAreaCode"},"type":"array"}},"required":["area_code","numbers"],"type":"object"},"Balance":{"description":"`GET /api/v1/balance`","properties":{"auto_reload_enabled":{"type":"boolean"},"minute_pool":{"description":"Bought minutes left (the account's pool).","format":"int64","type":"integer"},"user_id":{"type":"string"}},"required":["user_id","minute_pool","auto_reload_enabled"],"type":"object"},"Calendar":{"description":"A calendar feed. Never its address: only its host.","properties":{"check_in":{"default":null,"description":"An Airbnb calendar's check-in time, `HH:MM` in the group's timezone.","type":["string","null"]},"check_out":{"default":null,"description":"An Airbnb calendar's check-out time.","type":["string","null"]},"created_at":{"format":"date-time","type":"string"},"host":{"type":"string"},"id":{"type":"string"},"kind":{"$ref":"#/components/schemas/CalendarKind","default":"ical"},"last_error":{"default":null,"description":"Why the latest sync failed; the events from the one before stay.","type":["string","null"]},"last_synced_at":{"default":null,"description":"The latest sync, whether it worked or not; absent before the first.","format":"date-time","type":["string","null"]},"left_out":{"default":[],"description":"Events the latest sync left out and why, in English, for people\n(\"Pool: its time zone Mars/Olympus isn't one we know\").","items":{"type":"string"},"type":"array"},"name":{"type":"string"}},"required":["id","name","host","created_at"],"type":"object"},"CalendarAdded":{"description":"The calendar as added (or as it would be, on a dry run), and how many of\nits events were stored.","properties":{"calendar":{"$ref":"#/components/schemas/Calendar"},"dry_run":{"default":false,"type":"boolean"},"events":{"description":"Occurrences from a day ago to 90 days ahead.","format":"uint","minimum":0,"type":"integer"},"ok":{"type":"boolean"},"ring_group_id":{"type":"string"}},"required":["ok","ring_group_id","calendar","events"],"type":"object"},"CalendarEvent":{"description":"An event's occurrence, and how a call reads it.","properties":{"all_day":{"description":"A whole-day event: midnight to midnight in the group's timezone.","type":"boolean"},"ends_at":{"format":"date-time","type":"string"},"ignored":{"description":"It changes nothing (no `ringhuddle:` line, or one a call can't follow).","type":"boolean"},"overlaps":{"description":"Another event saying who rings runs at the same time; the one that\nstarted latest wins.","type":"boolean"},"reads":{"description":"In English: \"rings Alice and Bob; gate code 1357 (Smith)\", or\n\"ignored: …\" and why.","type":"string"},"starts_at":{"format":"date-time","type":"string"},"summary":{"type":"string"}},"required":["starts_at","ends_at","all_day","summary","reads","ignored","overlaps"],"type":"object"},"CalendarKind":{"description":"How a calendar's events are read.","oneOf":[{"const":"ical","description":"An event changes the call only with a `ringhuddle:` line.","type":"string"},{"const":"airbnb","description":"An Airbnb hosting calendar: each booking gives a guest gate code, the\nguest phone's last 4 digits, from its check-in time on the first day\nto its check-out time on the last; blocked nights change nothing.","type":"string"}]},"CalendarPreview":{"description":"What an address gives now, read against the group's flow. Nothing is\nstored.","properties":{"calendar_name":{"default":null,"description":"The calendar's own name, if it gives one.","type":["string","null"]},"event_count":{"description":"Its events from now to 90 days ahead.","format":"uint","minimum":0,"type":"integer"},"events":{"description":"The first 10 of them.","items":{"$ref":"#/components/schemas/CalendarEvent"},"type":"array"},"host":{"description":"The address's host: all of the address a reply carries.","type":"string"},"kind":{"$ref":"#/components/schemas/CalendarKind","default":"ical","description":"How it was read."},"left_out":{"description":"Events it would leave out, and why (English, for people).","items":{"type":"string"},"type":"array"},"marked":{"description":"How many of those have a `ringhuddle:` line; for an Airbnb calendar,\nhow many are stays with a guest code.","format":"uint","minimum":0,"type":"integer"},"more_events":{"description":"Those past the first 10.","format":"uint","minimum":0,"type":"integer"},"no_details":{"description":"It has events but none has a description: the service is likely\nsending only busy times, so no `ringhuddle:` line can be read.","type":"boolean"},"ring_group_id":{"type":"string"}},"required":["ring_group_id","host","event_count","marked","events","more_events","left_out","no_details"],"type":"object"},"CalendarRemoved":{"properties":{"calendar_id":{"type":"string"},"dry_run":{"default":false,"type":"boolean"},"ok":{"type":"boolean"},"ring_group_id":{"type":"string"}},"required":["ok","ring_group_id","calendar_id"],"type":"object"},"CalendarSynced":{"description":"`POST /api/v1/ring-groups/{id}/calendars/{calendar_id}/sync`. A dry run\nfetches and reads the calendar and stores nothing.","properties":{"calendar_id":{"type":"string"},"dry_run":{"default":false,"type":"boolean"},"events":{"description":"Occurrences from a day ago to 90 days ahead.","format":"uint","minimum":0,"type":"integer"},"left_out":{"description":"Events left out (`Calendar::left_out` says which).","format":"uint","minimum":0,"type":"integer"},"ok":{"type":"boolean"},"ring_group_id":{"type":"string"}},"required":["ok","ring_group_id","calendar_id","events","left_out"],"type":"object"},"CalendarUpdated":{"description":"An Airbnb calendar with its new times (or as it would be, on a dry\nrun), and how many events its sync found.","properties":{"calendar":{"$ref":"#/components/schemas/Calendar"},"dry_run":{"default":false,"type":"boolean"},"events":{"description":"Occurrences from a day ago to 90 days ahead.","format":"uint","minimum":0,"type":"integer"},"ok":{"type":"boolean"},"ring_group_id":{"type":"string"}},"required":["ok","ring_group_id","calendar","events"],"type":"object"},"Calendars":{"description":"`GET /api/v1/ring-groups/{id}/calendars`: the feeds, and the events of\nthe next 7 days (at most 30) from all of them.","properties":{"calendars":{"items":{"$ref":"#/components/schemas/Calendar"},"type":"array"},"events":{"items":{"$ref":"#/components/schemas/CalendarEvent"},"type":"array"},"more_events":{"description":"Events of the next 7 days past the 30 listed.","format":"uint","minimum":0,"type":"integer"},"ring_group_id":{"type":"string"}},"required":["ring_group_id","calendars","events","more_events"],"type":"object"},"Call":{"properties":{"answered_by":{"default":null,"description":"The forwarding number that joined the call; absent if no one did.","type":["string","null"]},"answered_by_label":{"default":null,"description":"That number's name when the call ended, if it had one.","type":["string","null"]},"at":{"format":"date-time","type":"string"},"caller_number":{"type":"string"},"duration_seconds":{"format":"int64","type":"integer"},"id":{"type":"string"},"legs":{"default":[],"description":"Each forwarded phone the call rang, in the group's ringing order.\nEmpty for calls from before 2026-11-21 that weren't conferences.","items":{"$ref":"#/components/schemas/CallLeg"},"type":"array"},"minutes":{"description":"Minutes the call took from the pool: the caller's leg plus every\nleg's `minutes`.","format":"int64","type":"integer"},"ring_group_id":{"type":"string"},"ring_group_name":{"type":"string"}},"required":["id","at","ring_group_id","ring_group_name","caller_number","duration_seconds","minutes"],"type":"object"},"CallFlowApplied":{"properties":{"dry_run":{"default":false,"type":"boolean"},"dsl":{"description":"The flow as stored, in canonical form.","type":"string"},"ok":{"type":"boolean"},"ring_group_id":{"type":"string"},"total_numbers":{"format":"uint","minimum":0,"type":"integer"}},"required":["ok","ring_group_id","total_numbers","dsl"],"type":"object"},"CallFlowNow":{"description":"`GET /api/v1/ring-groups/{ring_group_id}/now`: what a call does right\nnow, and when that next changes, in words (the flow tab's \"Now / Next\").","properties":{"next":{"description":"\"From today 17:00: rings Bob.\", or that nothing scheduled changes it.","type":"string"},"next_at":{"description":"When that next changes; `null` when nothing on the schedule does.","format":"date-time","type":["string","null"]},"now":{"description":"\"Now: rings Alice and Bob, then the keypad (codes that work: Master).\"","type":"string"},"ring_group_id":{"type":"string"},"timezone":{"description":"The timezone the times are in: the group's.","type":"string"}},"required":["ring_group_id","timezone","now","next"],"type":"object"},"CallFlowText":{"description":"`GET /api/v1/ring-groups/{ring_group_id}/dsl`","properties":{"dsl":{"type":"string"},"ring_group_id":{"type":"string"}},"required":["ring_group_id","dsl"],"type":"object"},"CallLeg":{"description":"One forwarded phone on a [`Call`].","properties":{"answered_at":{"default":null,"format":"date-time","type":["string","null"]},"duration_seconds":{"default":0,"description":"How long this phone was on the call; 0 when it only rang.","format":"int64","type":"integer"},"ended_at":{"default":null,"description":"When it stopped ringing or hung up.","format":"date-time","type":["string","null"]},"label":{"default":null,"description":"The number's name when the call ended, if it had one.","type":["string","null"]},"minutes":{"description":"Minutes this phone took from the pool, beyond the caller's: a\nconference member's time, or the minute for picking up without\npressing 1.","format":"int64","type":"integer"},"outcome":{"$ref":"#/components/schemas/LegOutcome"},"phone_number":{"type":"string"},"ringing_at":{"default":null,"description":"When it started ringing and when it picked up. Missing for calls\nbefore 2026-11-23, and for any phone SignalWire didn't report them for.","format":"date-time","type":["string","null"]}},"required":["phone_number","outcome","minutes"],"type":"object"},"Calls":{"properties":{"calls":{"items":{"$ref":"#/components/schemas/Call"},"type":"array"},"next_cursor":{"description":"Absent on the last page.","type":["string","null"]}},"required":["calls"],"type":"object"},"CardLink":{"description":"`POST /api/v1/card`: where a person adds or changes the card. It asks\nfor two-step verification on the site, then opens Stripe.","properties":{"card_url":{"type":"string"},"ok":{"type":"boolean"}},"required":["ok","card_url"],"type":"object"},"CheckoutStarted":{"description":"The reply to `POST /api/v1/ring-groups`. `checkout_url` is absent on a\ndry run. `ring_group_id` is the id the group will have once it's paid.","properties":{"checkout_url":{"type":["string","null"]},"dry_run":{"default":false,"type":"boolean"},"ok":{"type":"boolean"},"ring_group_id":{"type":"string"}},"required":["ok","ring_group_id"],"type":"object"},"CreateAccessCode":{"description":"`POST /api/v1/ring-groups/{id}/access-codes` (send an `Idempotency-Key`).\nA code belongs to a keypad step of the call flow: a caller keys the PIN\nin at that step. A step holds phones or codes, so `step` names a step\nwith codes, or one with nothing yet (the code makes it a keypad step).","properties":{"expires_at":{"description":"Stops working at this time.","format":"date-time","type":["string","null"]},"label":{"description":"Who or what the code is for, without commas. Absent: \"Access code\".","type":["string","null"]},"max_uses":{"description":"Stops working after this many entries.","format":"int32","type":["integer","null"]},"new_step":{"description":"Make a new step at `step` for it: the step there and the ones after\nit move down one. Absent: false, it joins the step there.","type":"boolean"},"pin":{"description":"4 to 8 digits, not already a code of this ring group. Absent: the\nserver picks 6 random digits.","type":["string","null"]},"schedule":{"anyOf":[{"$ref":"#/components/schemas/Schedule"},{"type":"null"}],"description":"When in the week it works, as a phone's hours. Absent: always."},"step":{"description":"The keypad step (1 to 10) the code opens the gate at. Required.","format":"uint32","minimum":0,"type":["integer","null"]}},"type":"object"},"CreateRingGroup":{"description":"`POST /api/v1/ring-groups`: start a ring group on a number from\n`GET /available-numbers`. The API never charges a card: the reply is a\nStripe Checkout page for the yearly subscription, and the ring group\nappears once it's paid there.","properties":{"name":{"type":"string"},"phone_number":{"type":"string"}},"required":["name","phone_number"],"type":"object"},"CreateWebhook":{"description":"`POST /api/v1/webhooks`","properties":{"events":{"description":"Some of [`WEBHOOK_EVENTS`].","items":{"type":"string"},"type":"array"},"url":{"type":"string"}},"required":["url","events"],"type":"object"},"DeleteConfirmation":{"description":"The reply to `DELETE /api/v1/ring-groups/{id}`. Deleting gives the\nnumber up for good, so the API doesn't do it: `confirm_url` opens the\nsite's delete dialog for this group, which shows the refund and asks for\nthe account's second factor if it has one.\n\nTake the number out of any call box or call forwarding first. Once the\ngroup is deleted its number answers no calls, and after\n`number_held_days` days it goes back to the carrier, who may give it to\nsomeone else; `warning` says this in words, to show a person.","properties":{"confirm_url":{"type":"string"},"dry_run":{"default":false,"type":"boolean"},"number_held_days":{"default":0,"description":"How long a deleted group's number is held, answering no calls, before\nit is released for good.","format":"int64","type":"integer"},"ok":{"type":"boolean"},"ring_group_id":{"type":"string"},"warning":{"default":"","description":"What deleting does to the number, to show before confirming.","type":"string"}},"required":["ok","ring_group_id","confirm_url"],"type":"object"},"DeviceKey":{"description":"The new key. Its secret is shown this once; it can't be read again.","properties":{"api_key":{"description":"The secret, for `Authorization: Bearer`.","type":"string"},"key":{"$ref":"#/components/schemas/ApiKeyInfo"}},"required":["api_key","key"],"type":"object"},"DeviceLogin":{"description":"The reply: show `user_code` and `verification_uri` to the person, then poll\n`POST /device-logins/token` every `interval` seconds with `device_code`.","properties":{"device_code":{"description":"Secret: only the program polling should have it.","type":"string"},"expires_in":{"description":"Seconds until the codes stop working.","format":"uint64","minimum":0,"type":"integer"},"interval":{"description":"Seconds to wait between polls.","format":"uint64","minimum":0,"type":"integer"},"user_code":{"description":"For the person to type, e.g. `\"BKTW-QHZM\"`.","type":"string"},"verification_uri":{"type":"string"},"verification_uri_complete":{"description":"The same page with the code filled in.","type":"string"}},"required":["device_code","user_code","verification_uri","verification_uri_complete","expires_in","interval"],"type":"object"},"Direction":{"description":"Which way a number moves in its step's ring order.","enum":["up","down"],"type":"string"},"Entry":{"description":"One try at the keypad. `entered_digits` is only given for a wrong code:\nfor a right one it would be the PIN.","properties":{"access_code_id":{"default":null,"type":["string","null"]},"at":{"format":"date-time","type":"string"},"caller_id":{"default":null,"type":["string","null"]},"entered_digits":{"default":null,"type":["string","null"]},"granted":{"type":"boolean"}},"required":["at","granted"],"type":"object"},"EntryLog":{"properties":{"entries":{"items":{"$ref":"#/components/schemas/Entry"},"type":"array"},"locked_out_seconds":{"default":null,"description":"Seconds until the keypad takes codes again, after too many wrong ones.","format":"uint32","minimum":0,"type":["integer","null"]},"next_before":{"default":null,"description":"Pass as `before` for the next page; absent on the last one.","format":"date-time","type":["string","null"]},"ring_group_id":{"type":"string"}},"required":["ring_group_id","entries"],"type":"object"},"ErrorBody":{"additionalProperties":true,"properties":{"error":{"$ref":"#/components/schemas/ErrorCode"},"message":{"type":"string"}},"required":["error","message"],"type":"object"},"ErrorCode":{"oneOf":[{"const":"unauthorized","description":"401: no API key sent.","type":"string"},{"const":"invalid_api_key","description":"401: the key is unknown, revoked or expired.","type":"string"},{"const":"insufficient_scope","description":"403: the key lacks the scope this operation needs.","type":"string"},{"const":"key_limited_to_groups","description":"403: the key is limited to some ring groups, and this operation is\nabout the whole account (listing keys, buying minutes, the account's\nactivity).","type":"string"},{"const":"not_found","description":"404: no such route, or nothing of that id in this account.","type":"string"},{"const":"method_not_allowed","description":"405: the route exists but not with this method.","type":"string"},{"const":"malformed_json","description":"400: the body isn't JSON, or doesn't have the expected shape.","type":"string"},{"const":"null_byte_detected","description":"400: the body contains a NUL byte.","type":"string"},{"const":"payload_too_large","description":"413: the body is over 64 KB.","type":"string"},{"const":"validation_failed","description":"422: a field is out of range; `fields` names which.","type":"string"},{"const":"dsl_parse_error","description":"422: the call-flow text doesn't parse.","type":"string"},{"const":"invalid_forward_number","description":"422: a number can't be forwarded to (e.g. it's one of the account's\nown RingHuddle numbers).","type":"string"},{"const":"do_not_forward","description":"422: the person at `phone_number` asked not to receive forwarded calls.","type":"string"},{"const":"new_number_limit","description":"422: the account added `limit` new numbers in `window_days` days.","type":"string"},{"const":"too_many_numbers","description":"422: the ring group already has its maximum of `max` numbers.","type":"string"},{"const":"duplicate_number","description":"422: the ring group already has the number at `phone_number`.","type":"string"},{"const":"idempotency_key_reused","description":"422: this `Idempotency-Key` was used for a different request.","type":"string"},{"const":"idempotency_key_in_use","description":"409: a request with this `Idempotency-Key` is still being handled.","type":"string"},{"const":"feature_not_enabled","description":"403: the feature (e.g. the `conference` strategy) isn't enabled for\nthis account.","type":"string"},{"const":"subscription_canceled","description":"422: the ring group's subscription was canceled, so it can't be\nresumed; start a new one on the site.","type":"string"},{"const":"email_not_verified","description":"403: the account's email address isn't verified yet; verify it on\nthe site first.","type":"string"},{"const":"number_taken","description":"409: another ring group already has the number at `phone_number`;\nsearch again.","type":"string"},{"const":"provider_unavailable","description":"503: a provider (the phone carrier, or Stripe) didn't answer. Safe to\nretry.","type":"string"},{"const":"no_ring_group","description":"403: buying minutes and auto-reload need a ring group first; minutes\nare for its calls.","type":"string"},{"const":"authorization_pending","description":"400: device-code login: the person hasn't approved the code yet; poll\nagain after the interval (RFC 8628).","type":"string"},{"const":"slow_down","description":"400: device-code login: polled too soon; add 5 seconds to the interval.","type":"string"},{"const":"expired_token","description":"400: device-code login: the codes ran out (10 minutes), or were used;\nstart again.","type":"string"},{"const":"access_denied","description":"400: device-code login: the person declined.","type":"string"},{"const":"too_many_webhooks","description":"422: the account already has its maximum of `max` webhooks.","type":"string"},{"const":"calendar_unusable","description":"422: the calendar address gave no calendar, so nothing was stored.\n`problem` says which: `refused` (not a public https address),\n`unreachable`, `status` (it answered, but not 2xx), `too_large` (over\n2 MB) or `not_ical`.","type":"string"},{"const":"calendar_sync_failed","description":"502: the calendar couldn't be fetched or read this time. Its events\nfrom the last sync stay, and the calendar's `last_error` says why.","type":"string"},{"const":"too_many_requests","description":"429: too many requests; wait the `Retry-After` header's seconds.","type":"string"},{"const":"account_suspended","description":"403: the account is suspended: every request is refused until it's\nlifted. Write to support@ringhuddle.com to dispute it.","type":"string"},{"const":"confirm_on_site","description":"403: this would let RingHuddle charge the saved card later (turning\nauto-reload on), so a person does it on the site, signed in, after\nconfirming it's them. No API key or connected app can, whatever its\naccess. `confirm_url` is the site page where it's done.","type":"string"},{"const":"internal_error","description":"500: the server failed. Safe to retry an idempotent request.","type":"string"},{"const":"unknown","description":"A code this client version doesn't know; treat by HTTP status.","type":"string"}]},"FinishDeviceLogin":{"description":"`POST /api/v1/device-logins/token`. No key needed. Until the person\ndecides, the reply is `400 authorization_pending` (or `slow_down`: add 5\nseconds to the interval); then the key, `access_denied`, or, after 10\nminutes, `expired_token`.","properties":{"device_code":{"type":"string"}},"required":["device_code"],"type":"object"},"ForwardNumber":{"properties":{"custom_days_mask":{"default":127,"description":"For a `custom` schedule: the days it rings, bit 0 Monday to bit 6 Sunday.","format":"int32","type":"integer"},"end_time_minutes":{"default":1440,"format":"int32","type":"integer"},"id":{"type":"string"},"is_snoozed":{"type":"boolean"},"label":{"type":["string","null"]},"phone_number":{"type":"string"},"schedule_type":{"description":"One of [`SCHEDULE_TYPES`].","type":"string"},"snoozed_until":{"format":"date-time","type":["string","null"]},"start_time_minutes":{"default":0,"description":"For a `custom` schedule: minutes after midnight, in the group's timezone.","format":"int32","type":"integer"},"tier":{"description":"The call-flow step it rings in.","format":"int64","type":"integer"}},"required":["id","phone_number","tier","schedule_type","is_snoozed"],"type":"object"},"ForwardNumberChanged":{"description":"The reply to adding or changing a number: the number as it now is.","properties":{"dry_run":{"default":false,"type":"boolean"},"forward_number":{"$ref":"#/components/schemas/ForwardNumber"},"ok":{"type":"boolean"},"ring_group_id":{"type":"string"}},"required":["ok","ring_group_id","forward_number"],"type":"object"},"Ledger":{"properties":{"entries":{"items":{"$ref":"#/components/schemas/LedgerEntry"},"type":"array"},"next_cursor":{"type":["string","null"]}},"required":["entries"],"type":"object"},"LedgerEntry":{"properties":{"amount_cents":{"description":"Money in (positive) or out (negative), in cents.","format":"int64","type":"integer"},"at":{"format":"date-time","type":"string"},"description":{"description":"In English, for people; branch on `kind` and `memo`.","type":"string"},"id":{"type":"string"},"kind":{"description":"e.g. `minute_debit`, `minute_block`, `deposit`, `refund`.","type":"string"},"memo":{"default":null,"description":"What the entry was for, with its details (`kind` inside says which);\nabsent on old entries."},"minutes_delta":{"description":"Minutes added to (positive) or taken from (negative) the pool.","format":"int32","type":"integer"}},"required":["id","at","kind","description","amount_cents","minutes_delta"],"type":"object"},"LegOutcome":{"description":"What a forwarded phone did on a call.","oneOf":[{"const":"connected","description":"Joined the call: pressed 1 at the voicemail guard, or picked up with\nthe guard off.","type":"string"},{"const":"declined","description":"Picked up at the voicemail guard and didn't press 1 (often its\nvoicemail answering). Uses a minute.","type":"string"},{"const":"no_answer","description":"Only rang.","type":"string"}]},"Me":{"description":"`GET /api/v1/me`","properties":{"api_key":{"$ref":"#/components/schemas/ApiKeyInfo"},"email":{"type":"string"},"user_id":{"type":"string"}},"required":["user_id","email","api_key"],"type":"object"},"MinutePackCheckout":{"description":"`POST /api/v1/minute-packs`: a Stripe Checkout page for one pack. The API\nnever charges a card; the minutes arrive when the page is paid.","properties":{"checkout_url":{"default":null,"description":"Absent on a dry run.","type":["string","null"]},"dry_run":{"default":false,"type":"boolean"},"minutes":{"format":"int32","type":"integer"},"ok":{"type":"boolean"},"price_cents":{"format":"int64","type":"integer"}},"required":["ok","minutes","price_cents"],"type":"object"},"MoveForwardNumber":{"description":"`POST /api/v1/ring-groups/{ring_group_id}/numbers/{number_id}/move`. Not\nidempotent (two moves up go two places): send an `Idempotency-Key`.","properties":{"direction":{"$ref":"#/components/schemas/Direction"}},"required":["direction"],"type":"object"},"MoveStep":{"description":"`POST /api/v1/ring-groups/{ring_group_id}/steps/{step}/move`: a whole\nstep trades places with the one above or below it, phones, codes and\nsettings together. Steps are always numbered 1…N. Not idempotent: send\nan `Idempotency-Key`.","properties":{"direction":{"$ref":"#/components/schemas/Direction"}},"required":["direction"],"type":"object"},"Moved":{"properties":{"dry_run":{"default":false,"type":"boolean"},"forward_number_id":{"type":"string"},"moved":{"description":"False when the number was already first (or last) in its step.","type":"boolean"},"ok":{"type":"boolean"},"ring_group_id":{"type":"string"}},"required":["ok","ring_group_id","forward_number_id","moved"],"type":"object"},"PreviewCalendar":{"description":"`POST /api/v1/ring-groups/{id}/calendars/preview`: fetch an address and\nread it as adding it would, storing nothing.","properties":{"check_in":{"description":"An Airbnb calendar's check-in time, `HH:MM` in the group's\ntimezone; absent: 15:00.","type":["string","null"]},"check_out":{"description":"An Airbnb calendar's check-out time, `HH:MM`; absent: 11:00.","type":["string","null"]},"kind":{"anyOf":[{"$ref":"#/components/schemas/CalendarKind"},{"type":"null"}],"description":"How to read it; absent: `ical`."},"url":{"description":"The calendar's iCal address (`https://` or `webcal://`).","type":"string"}},"required":["url"],"type":"object"},"Removed":{"description":"`DELETE /api/v1/ring-groups/{ring_group_id}/numbers/{number_id}`","properties":{"dry_run":{"default":false,"type":"boolean"},"forward_number_id":{"type":"string"},"ok":{"type":"boolean"},"ring_group_id":{"type":"string"}},"required":["ok","ring_group_id","forward_number_id"],"type":"object"},"RevokeSessions":{"description":"`POST /api/v1/sessions/revoke`: one session (`session`, an `id` from the\nlist) or `all` of them.","properties":{"all":{"default":false,"type":"boolean"},"session":{"type":["string","null"]}},"type":"object"},"RingGroup":{"description":"`GET /api/v1/ring-groups/{ring_group_id}`","properties":{"dsl":{"description":"The call flow as text (see [`CallFlowText`]).","type":"string"},"first_call_at":{"default":null,"description":"When the number first took a call. `None` for a new number that\ncarriers may not route yet.","format":"date-time","type":["string","null"]},"forward_numbers":{"items":{"$ref":"#/components/schemas/ForwardNumber"},"type":"array"},"id":{"type":"string"},"is_active":{"type":"boolean"},"name":{"type":"string"},"phone_number":{"type":"string"},"show_caller_number":{"default":false,"description":"Forwarded calls show the caller's number instead of the group's; a\nwithheld or malformed caller number still shows the group's.","type":"boolean"},"steps":{"default":[],"description":"The call flow's steps, in the order a call goes through them, each\nwith its own dialing mode and ring time. A number's `tier` is the\nstep it rings in.","items":{"$ref":"#/components/schemas/Step"},"type":"array"},"timezone":{"type":"string"},"voicemail_guard":{"type":"boolean"},"warnings":{"default":[],"description":"Things about the group worth telling its owner, such as a phone that\nkeeps sending calls to voicemail. Empty when there is nothing to say.","items":{"$ref":"#/components/schemas/RingGroupWarning"},"type":"array"}},"required":["id","name","phone_number","is_active","voicemail_guard","timezone","forward_numbers","dsl"],"type":"object"},"RingGroupList":{"description":"`GET /api/v1/ring-groups`","properties":{"ring_groups":{"items":{"$ref":"#/components/schemas/RingGroupSummary"},"type":"array"}},"required":["ring_groups"],"type":"object"},"RingGroupSummary":{"properties":{"auto_reload_enabled":{"description":"The account's auto-reload: one setting for every ring group (as in\n[`Balance`]).","type":"boolean"},"first_call_at":{"default":null,"description":"When the number first took a call. `None` for a new number that\ncarriers may not route yet.","format":"date-time","type":["string","null"]},"id":{"type":"string"},"is_active":{"type":"boolean"},"minute_balance":{"format":"int64","type":"integer"},"name":{"type":"string"},"phone_number":{"description":"The RingHuddle number callers dial, E.164.","type":"string"},"show_caller_number":{"default":false,"description":"Forwarded calls show the caller's number instead of the group's; a\nwithheld or malformed caller number still shows the group's.","type":"boolean"},"timezone":{"type":"string"},"voicemail_guard":{"type":"boolean"}},"required":["id","name","phone_number","is_active","voicemail_guard","timezone","minute_balance","auto_reload_enabled"],"type":"object"},"RingGroupWarning":{"description":"One of [`RingGroup::warnings`].","properties":{"forward_number_id":{"default":null,"description":"The forwarding number it is about, when it is about one.","type":["string","null"]},"kind":{"description":"What kind of warning: one of [`WARNING_KINDS`]. A client that doesn't\nknow a kind shows `message`.","type":"string"},"message":{"description":"What is wrong and why it matters, in English.","type":"string"},"recent_calls":{"default":null,"description":"`voicemail_streak`: its most recent calls looked at (up to 10, from\nthe last 30 days).","format":"uint32","minimum":0,"type":["integer","null"]},"voicemail_calls":{"default":null,"description":"`voicemail_streak`: the calls that went to its voicemail, of\n`recent_calls`.","format":"uint32","minimum":0,"type":["integer","null"]}},"required":["kind","message"],"type":"object"},"Schedule":{"description":"When a number rings: one of [`SCHEDULE_TYPES`], and for `custom`, the\ndays and hours. Absent fields take the whole week and the whole day.","properties":{"custom_days_mask":{"format":"int32","type":["integer","null"]},"end_time_minutes":{"format":"int32","type":["integer","null"]},"schedule_type":{"type":"string"},"start_time_minutes":{"format":"int32","type":["integer","null"]}},"required":["schedule_type"],"type":"object"},"Session":{"description":"Where the account is signed in. `id` is a handle for revoking it, not\nthe session's sign-in token.","properties":{"browser":{"default":null,"type":["string","null"]},"device":{"default":null,"type":["string","null"]},"id":{"type":"string"},"ip_address":{"default":null,"type":["string","null"]},"last_active_at":{"format":"date-time","type":"string"},"started_at":{"format":"date-time","type":"string"}},"required":["id","started_at","last_active_at"],"type":"object"},"Sessions":{"description":"`GET /api/v1/sessions`","properties":{"sessions":{"items":{"$ref":"#/components/schemas/Session"},"type":"array"}},"required":["sessions"],"type":"object"},"SessionsRevoked":{"properties":{"dry_run":{"default":false,"type":"boolean"},"ok":{"type":"boolean"},"revoked":{"format":"uint64","minimum":0,"type":"integer"}},"required":["ok","revoked"],"type":"object"},"SetAutoReload":{"description":"`PUT /api/v1/auto-reload`","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"type":"object"},"Snooze":{"description":"`POST /api/v1/ring-groups/{ring_group_id}/snooze`: stop one number, or\nthe whole group, ringing for a while, or end a snooze.","properties":{"duration":{"description":"One of [`SNOOZE_DURATIONS`] or [`SNOOZE_ENDS`].","type":"string"},"forward_number_id":{"description":"The number to snooze; absent (or `\"group\"`) snoozes the whole group.","type":["string","null"]}},"required":["duration"],"type":"object"},"Snoozed":{"properties":{"dry_run":{"default":false,"type":"boolean"},"forward_number_id":{"description":"Set when one number was snoozed rather than the group.","type":["string","null"]},"ok":{"type":"boolean"},"ring_group_id":{"type":"string"},"snoozed_until":{"description":"`None` when the snooze was ended.","format":"date-time","type":["string","null"]}},"required":["ok","ring_group_id"],"type":"object"},"StartDeviceLogin":{"description":"`POST /api/v1/device-logins`: a program asks for an API key. No key needed.","properties":{"client_name":{"description":"What the program calls itself, shown to the person approving, e.g.\n`\"rh on laptop\"`. Becomes the key's name unless they change it.","type":"string"}},"required":["client_name"],"type":"object"},"Step":{"description":"One step of a ring group's call flow. A call starts at step 1 and goes\nto the next step when no one in this one answers within\n`timeout_seconds`. How a step rings and for how long are settings of that\nstep alone: a ring group has no dialing mode or timeout of its own.","properties":{"mode":{"$ref":"#/components/schemas/StepDialMode","description":"How the step's phones ring: `simultaneous` (all at once),\n`sequential` (one after another, in their order) or `conference`.\n`keypad` is a step that has gate codes and no phones: the caller\nenters a code."},"step":{"format":"uint32","minimum":0,"type":"integer"},"timeout_seconds":{"description":"Seconds the step rings before the call goes to the next step (in a\n`sequential` step, seconds each phone rings); for a `keypad` step,\nseconds it waits for a code.","format":"uint32","minimum":0,"type":"integer"}},"required":["step","mode","timeout_seconds"],"type":"object"},"StepDialMode":{"description":"Dialing strategy for a specific escalation step.","oneOf":[{"enum":["simultaneous","sequential","conference"],"type":"string"},{"const":"keypad","description":"A step with gate codes: the caller enters one. Not written in the\ntext: a step is a keypad because it has codes.","type":"string"}]},"StepMoved":{"properties":{"dry_run":{"default":false,"type":"boolean"},"moved":{"description":"False when it was already first (or last).","type":"boolean"},"ok":{"type":"boolean"},"ring_group_id":{"type":"string"},"step":{"description":"The step's number before the move.","format":"uint32","minimum":0,"type":"integer"}},"required":["ok","ring_group_id","step","moved"],"type":"object"},"StepUpdated":{"description":"The step as it now is (or would be, on a dry run).","properties":{"dry_run":{"default":false,"type":"boolean"},"mode":{"$ref":"#/components/schemas/StepDialMode"},"ok":{"type":"boolean"},"ring_group_id":{"type":"string"},"step":{"format":"uint32","minimum":0,"type":"integer"},"timeout_seconds":{"format":"uint32","minimum":0,"type":"integer"}},"required":["ok","ring_group_id","step","mode","timeout_seconds"],"type":"object"},"SuggestedAreaCode":{"description":"A nearby or overlay area code that currently has numbers available,\nsuggested when the requested area code has none.","properties":{"area_code":{"type":"string"},"is_overlay":{"default":false,"type":"boolean"},"label":{"type":["string","null"]}},"required":["area_code"],"type":"object"},"UpdateCalendar":{"description":"`PUT /api/v1/ring-groups/{id}/calendars/{calendar_id}`: an Airbnb\ncalendar's check-in and check-out times. The server syncs it again, so\nits stays move with them.","properties":{"check_in":{"description":"`HH:MM`, in the group's timezone; absent: as it is.","type":["string","null"]},"check_out":{"description":"`HH:MM`, in the group's timezone; absent: as it is.","type":["string","null"]}},"type":"object"},"UpdateForwardNumber":{"description":"`PATCH /api/v1/ring-groups/{ring_group_id}/numbers/{number_id}`. Absent\nfields are left as they are; an empty `label` removes the label. The\nreply is the number as it now is ([`ForwardNumber`]).","properties":{"label":{"type":["string","null"]},"new_step":{"description":"Make a new step at `tier` for it: the step there and the ones after\nit move down one. Absent: false, it joins the step there.","type":"boolean"},"phone_number":{"type":["string","null"]},"schedule":{"anyOf":[{"$ref":"#/components/schemas/Schedule"},{"type":"null"}]},"tier":{"format":"int64","type":["integer","null"]}},"type":"object"},"UpdateRingGroup":{"description":"`PATCH /api/v1/ring-groups/{ring_group_id}`. Absent fields are left as\nthey are.","properties":{"is_active":{"description":"False pauses the ring group: callers are turned away until it's resumed.","type":["boolean","null"]},"name":{"type":["string","null"]},"show_caller_number":{"description":"Show the caller's number on forwarded calls instead of the group's.","type":["boolean","null"]},"timezone":{"description":"An IANA zone, e.g. `America/Los_Angeles`.","type":["string","null"]},"voicemail_guard":{"type":["boolean","null"]}},"type":"object"},"UpdateStep":{"description":"`PATCH /api/v1/ring-groups/{ring_group_id}/steps/{step}`: change how one\nstep of the call flow rings. Absent fields are left as they are. To ring\na step's phones one after another instead of all at once, set its `mode`\nto `sequential`; the phones stay in the step.","properties":{"mode":{"anyOf":[{"$ref":"#/components/schemas/StepDialMode"},{"type":"null"}],"description":"`simultaneous` (all the step's phones at once), `sequential` (one\nafter another, in their order) or `conference`. Not `keypad`: a step\nis a keypad because it has gate codes."},"timeout_seconds":{"description":"Seconds the step rings before the next step, 5 to 120 (in a\n`sequential` step, seconds each phone rings); for a keypad step,\nseconds it waits for a code.","format":"uint32","minimum":0,"type":["integer","null"]}},"type":"object"},"Updated":{"description":"The reply to a write. `dry_run` is true when the request asked for\n`?dry_run=true`: everything was checked and nothing was changed.","properties":{"dry_run":{"default":false,"type":"boolean"},"ok":{"type":"boolean"},"ring_group_id":{"type":"string"}},"required":["ok","ring_group_id"],"type":"object"},"Webhook":{"description":"A webhook, without its secret.","properties":{"created_at":{"format":"date-time","type":"string"},"events":{"items":{"type":"string"},"type":"array"},"id":{"type":"string"},"last_attempt_at":{"default":null,"description":"The latest attempt to deliver to it, and its HTTP status (absent if\nit didn't connect).","format":"date-time","type":["string","null"]},"last_error":{"default":null,"type":["string","null"]},"last_status":{"default":null,"format":"uint16","maximum":65535,"minimum":0,"type":["integer","null"]},"previous_secret_expires_at":{"default":null,"description":"After a rotation, until when deliveries are also signed with the\nsecret it replaced.","format":"date-time","type":["string","null"]},"url":{"description":"Where deliveries are POSTed: HTTPS, on the public internet.","type":"string"}},"required":["id","url","events","created_at"],"type":"object"},"WebhookCreated":{"description":"The reply: the webhook, and its signing secret, shown this once (absent\non a dry run).","properties":{"dry_run":{"default":false,"type":"boolean"},"ok":{"type":"boolean"},"secret":{"default":null,"type":["string","null"]},"webhook":{"$ref":"#/components/schemas/Webhook"}},"required":["ok","webhook"],"type":"object"},"WebhookRemoved":{"properties":{"dry_run":{"default":false,"type":"boolean"},"ok":{"type":"boolean"},"webhook_id":{"type":"string"}},"required":["ok","webhook_id"],"type":"object"},"WebhookSecretRotated":{"description":"`POST /api/v1/webhooks/{id}/rotate-secret`: the webhook has a new\nsecret, shown this once (absent on a dry run). The one it replaced keeps\nsigning too until `previous_secret_expires_at` (24 hours), so the\nreceiver can switch without missing a delivery.","properties":{"dry_run":{"default":false,"type":"boolean"},"ok":{"type":"boolean"},"previous_secret_expires_at":{"default":null,"format":"date-time","type":["string","null"]},"secret":{"default":null,"type":["string","null"]},"webhook_id":{"type":"string"}},"required":["ok","webhook_id"],"type":"object"},"WebhookTestQueued":{"description":"`POST /api/v1/webhooks/{id}/test`: a `ping` is queued; it's sent within\na few minutes, and the webhook's `last_status` then says how it went.","properties":{"dry_run":{"default":false,"description":"A dry run checks the webhook exists and queues nothing.","type":"boolean"},"ok":{"type":"boolean"},"webhook_id":{"type":"string"}},"required":["ok","webhook_id"],"type":"object"},"Webhooks":{"description":"`GET /api/v1/webhooks`","properties":{"webhooks":{"items":{"$ref":"#/components/schemas/Webhook"},"type":"array"}},"required":["webhooks"],"type":"object"}},"securitySchemes":{"apiKey":{"description":"An API key from the account page.","scheme":"bearer","type":"http"}}},"externalDocs":{"description":"The API reference, with guides","url":"https://ringhuddle.com/developers"},"info":{"contact":{"email":"support@ringhuddle.com","name":"RingHuddle support"},"description":"Everything a RingHuddle customer can do on the site, for scripts, apps and agents. `rh`, the command line client, is built on it; it and the API's Rust types (the `ringhuddle-api` crate) are open source at https://github.com/Ringhuddle/rh.\n\n**Authentication.** Send an API key as `Authorization: Bearer <key>`. Keys are made on the account page, after two-step verification. A key has scopes: `read` for every read, `write` for every change; without the scope a request gets `403 insufficient_scope`.\n\n**Errors.** Every failure has the same body: `error`, a stable code to branch on, and `message`, written for people. Some codes add fields beside them.\n\n**Rate limits.** 120 requests a minute per key, in bursts of up to 60; past that, `429 too_many_requests` with `Retry-After`.\n\n**Dry runs.** Every change takes `?dry_run=true`: it's checked as if for real and nothing is saved. The reply is the real one, with `\"dry_run\": true`.\n\n**Retrying.** Operations that list an `Idempotency-Key` header parameter take one: a retry with the same key and request gets the first reply again (`Idempotent-Replayed: true`) and doesn't act. The rest are safe to repeat, or only open another Checkout page or link when repeated.\n\n**Money.** The API never charges a card, and can't set one up to be charged. 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. Auto-reload can be turned off here, but turning it on is refused with `403 confirm_on_site` and `confirm_url`, the site page where a person does it.","title":"RingHuddle API","version":"0.14.0"},"openapi":"3.1.0","paths":{"/activity":{"get":{"operationId":"api_key_activity","parameters":[{"description":"Only this key's activity.","in":"query","name":"api_key_id","required":false,"schema":{"type":["string","null"]}},{"in":"query","name":"cursor","required":false,"schema":{"type":["string","null"]}},{"in":"query","name":"limit","required":false,"schema":{"format":"int64","type":["integer","null"]}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Activity"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"What the account's API keys changed in the last 90 days.","tags":["api_key"],"x-capability":"api_key.activity","x-costs-money":false,"x-effect":"read","x-idempotent":true,"x-scope":"read"}},"/api-keys":{"get":{"operationId":"api_key_list","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeys"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"The account's API keys, without their secrets.","tags":["api_key"],"x-capability":"api_key.list","x-costs-money":false,"x-effect":"read","x-idempotent":true,"x-scope":"read"}},"/api-keys/{api_key_id}":{"delete":{"operationId":"api_key_delete","parameters":[{"in":"path","name":"api_key_id","required":true,"schema":{"type":"string"}},{"description":"Check the request as if for real, and save nothing.","in":"query","name":"dry_run","required":false,"schema":{"default":false,"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyRevoked"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"Revoke an API key.","tags":["api_key"],"x-capability":"api_key.delete","x-costs-money":false,"x-effect":"destructive","x-idempotent":true,"x-scope":"write"}},"/auto-reload":{"put":{"operationId":"auto_reload_set","parameters":[{"description":"Check the request as if for real, and save nothing.","in":"query","name":"dry_run","required":false,"schema":{"default":false,"type":"boolean"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetAutoReload"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoReload"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"Turn buying more minutes automatically on or off (one setting for the account). Only a person on the site can turn it on.","tags":["auto_reload"],"x-capability":"auto_reload.set","x-costs-money":false,"x-effect":"write","x-idempotent":true,"x-scope":"write"}},"/available-numbers":{"get":{"operationId":"phone_number_search","parameters":[{"in":"query","name":"area_code","required":true,"schema":{"type":"string"}},{"in":"query","name":"contains","required":false,"schema":{"type":["string","null"]}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AvailableNumbers"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"Search the RingHuddle numbers available to buy, by area code or digits.","tags":["phone_number"],"x-capability":"phone_number.search","x-costs-money":false,"x-effect":"read","x-idempotent":true,"x-scope":"read"}},"/balance":{"get":{"operationId":"balance_get","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Balance"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"Minutes left, and whether auto-reload is on.","tags":["balance"],"x-capability":"balance.get","x-costs-money":false,"x-effect":"read","x-idempotent":true,"x-scope":"read"}},"/calls":{"get":{"operationId":"call_list","parameters":[{"in":"query","name":"cursor","required":false,"schema":{"type":["string","null"]}},{"in":"query","name":"limit","required":false,"schema":{"format":"int64","type":["integer","null"]}},{"in":"query","name":"ring_group_id","required":false,"schema":{"type":["string","null"]}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Calls"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"Calls the ring groups took, and which phone answered.","tags":["call"],"x-capability":"call.list","x-costs-money":false,"x-effect":"read","x-idempotent":true,"x-scope":"read"}},"/card":{"post":{"operationId":"card_update","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CardLink"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"Add or change the card on file (opens Stripe).","tags":["card"],"x-capability":"card.update","x-costs-money":false,"x-effect":"write","x-idempotent":false,"x-scope":"write"}},"/device-logins":{"post":{"operationId":"device_login_start","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartDeviceLogin"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceLogin"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"security":[],"summary":"Ask for an API key with a code the person approves on the site (RFC 8628); no key needed.","tags":["device_login"],"x-capability":"device_login.start","x-costs-money":false,"x-effect":"write","x-idempotent":false}},"/device-logins/token":{"post":{"operationId":"device_login_finish","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinishDeviceLogin"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceKey"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"security":[],"summary":"Collect the API key once its code is approved; poll until then. No key needed.","tags":["device_login"],"x-capability":"device_login.finish","x-costs-money":false,"x-effect":"write","x-idempotent":false}},"/ledger":{"get":{"operationId":"ledger_list","parameters":[{"in":"query","name":"cursor","required":false,"schema":{"type":["string","null"]}},{"in":"query","name":"limit","required":false,"schema":{"format":"int64","type":["integer","null"]}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Ledger"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"Charges, refunds and minute changes.","tags":["ledger"],"x-capability":"ledger.list","x-costs-money":false,"x-effect":"read","x-idempotent":true,"x-scope":"read"}},"/me":{"get":{"operationId":"account_get","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Me"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"Who the account is.","tags":["account"],"x-capability":"account.get","x-costs-money":false,"x-effect":"read","x-idempotent":true,"x-scope":"read"}},"/minute-packs":{"post":{"operationId":"minutes_buy","parameters":[{"description":"Check the request as if for real, and save nothing.","in":"query","name":"dry_run","required":false,"schema":{"default":false,"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MinutePackCheckout"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"Buy a pack of minutes.","tags":["minutes"],"x-capability":"minutes.buy","x-costs-money":true,"x-effect":"write","x-idempotent":false,"x-scope":"write"}},"/ring-groups":{"get":{"operationId":"ring_group_list","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RingGroupList"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"List the account's ring groups.","tags":["ring_group"],"x-capability":"ring_group.list","x-costs-money":false,"x-effect":"read","x-idempotent":true,"x-scope":"read"},"post":{"operationId":"ring_group_create","parameters":[{"description":"Check the request as if for real, and save nothing.","in":"query","name":"dry_run","required":false,"schema":{"default":false,"type":"boolean"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRingGroup"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutStarted"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"Buy a RingHuddle number and start a ring group on it (yearly subscription).","tags":["ring_group"],"x-capability":"ring_group.create","x-costs-money":true,"x-effect":"write","x-idempotent":false,"x-scope":"write"}},"/ring-groups/{ring_group_id}":{"delete":{"operationId":"ring_group_delete","parameters":[{"in":"path","name":"ring_group_id","required":true,"schema":{"type":"string"}},{"description":"Check the request as if for real, and save nothing.","in":"query","name":"dry_run","required":false,"schema":{"default":false,"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteConfirmation"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"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.","tags":["ring_group"],"x-capability":"ring_group.delete","x-costs-money":false,"x-effect":"destructive","x-idempotent":true,"x-scope":"write"},"get":{"operationId":"ring_group_get","parameters":[{"in":"path","name":"ring_group_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RingGroup"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"One ring group's settings and numbers, and warnings such as a phone that keeps sending calls to voicemail.","tags":["ring_group"],"x-capability":"ring_group.get","x-costs-money":false,"x-effect":"read","x-idempotent":true,"x-scope":"read"},"patch":{"operationId":"ring_group_update","parameters":[{"in":"path","name":"ring_group_id","required":true,"schema":{"type":"string"}},{"description":"Check the request as if for real, and save nothing.","in":"query","name":"dry_run","required":false,"schema":{"default":false,"type":"boolean"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateRingGroup"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Updated"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"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.","tags":["ring_group"],"x-capability":"ring_group.update","x-costs-money":false,"x-effect":"write","x-idempotent":true,"x-scope":"write"}},"/ring-groups/{ring_group_id}/access-codes":{"get":{"operationId":"access_code_list","parameters":[{"in":"path","name":"ring_group_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessCodes"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"A ring group's gate codes, each with its keypad step, and whether each works now (no PINs).","tags":["access_code"],"x-capability":"access_code.list","x-costs-money":false,"x-effect":"read","x-idempotent":true,"x-scope":"read"},"post":{"operationId":"access_code_create","parameters":[{"in":"path","name":"ring_group_id","required":true,"schema":{"type":"string"}},{"description":"Check the request as if for real, and save nothing.","in":"query","name":"dry_run","required":false,"schema":{"default":false,"type":"boolean"}},{"description":"1 to 255 visible ASCII characters (a UUID is typical). A retry with the same key and request gets the first reply again.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAccessCode"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessCodeCreated"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"Add a code to a keypad step: a step with codes, or a new one.","tags":["access_code"],"x-capability":"access_code.create","x-costs-money":false,"x-effect":"write","x-idempotent":false,"x-scope":"write"}},"/ring-groups/{ring_group_id}/access-codes/log":{"get":{"operationId":"access_code_log","parameters":[{"in":"path","name":"ring_group_id","required":true,"schema":{"type":"string"}},{"description":"`next_before` from the previous page.","in":"query","name":"before","required":false,"schema":{"format":"date-time","type":["string","null"]}},{"in":"query","name":"limit","required":false,"schema":{"format":"int64","type":["integer","null"]}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntryLog"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"When the keypad was used, and with which code.","tags":["access_code"],"x-capability":"access_code.log","x-costs-money":false,"x-effect":"read","x-idempotent":true,"x-scope":"read"}},"/ring-groups/{ring_group_id}/access-codes/{code_id}":{"delete":{"operationId":"access_code_delete","parameters":[{"in":"path","name":"ring_group_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"code_id","required":true,"schema":{"type":"string"}},{"description":"Check the request as if for real, and save nothing.","in":"query","name":"dry_run","required":false,"schema":{"default":false,"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessCodeRemoved"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"Remove a gate code.","tags":["access_code"],"x-capability":"access_code.delete","x-costs-money":false,"x-effect":"destructive","x-idempotent":true,"x-scope":"write"},"put":{"operationId":"access_code_update","parameters":[{"in":"path","name":"ring_group_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"code_id","required":true,"schema":{"type":"string"}},{"description":"Check the request as if for real, and save nothing.","in":"query","name":"dry_run","required":false,"schema":{"default":false,"type":"boolean"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAccessCode"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessCodeChanged"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"Change a gate code: its name, PIN, step (or a new step), expiry, use limit or hours.","tags":["access_code"],"x-capability":"access_code.update","x-costs-money":false,"x-effect":"write","x-idempotent":true,"x-scope":"write"}},"/ring-groups/{ring_group_id}/calendars":{"get":{"operationId":"calendar_list","parameters":[{"in":"path","name":"ring_group_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Calendars"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"A ring group's calendar feeds (never their addresses), and how a call reads the events of the next 7 days.","tags":["calendar"],"x-capability":"calendar.list","x-costs-money":false,"x-effect":"read","x-idempotent":true,"x-scope":"read"},"post":{"operationId":"calendar_add","parameters":[{"in":"path","name":"ring_group_id","required":true,"schema":{"type":"string"}},{"description":"Check the request as if for real, and save nothing.","in":"query","name":"dry_run","required":false,"schema":{"default":false,"type":"boolean"}},{"description":"1 to 255 visible ASCII characters (a UUID is typical). A retry with the same key and request gets the first reply again.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddCalendar"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarAdded"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"Add a calendar feed (its iCal address) to a ring group with its events; an address that gives no calendar is refused.","tags":["calendar"],"x-capability":"calendar.add","x-costs-money":false,"x-effect":"write","x-idempotent":false,"x-scope":"write"}},"/ring-groups/{ring_group_id}/calendars/preview":{"post":{"operationId":"calendar_preview","parameters":[{"in":"path","name":"ring_group_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewCalendar"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarPreview"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"Fetch a calendar's iCal address and show how a call would read its events, storing nothing.","tags":["calendar"],"x-capability":"calendar.preview","x-costs-money":false,"x-effect":"read","x-idempotent":true,"x-scope":"read"}},"/ring-groups/{ring_group_id}/calendars/{calendar_id}":{"delete":{"operationId":"calendar_delete","parameters":[{"in":"path","name":"ring_group_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"calendar_id","required":true,"schema":{"type":"string"}},{"description":"Check the request as if for real, and save nothing.","in":"query","name":"dry_run","required":false,"schema":{"default":false,"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarRemoved"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"Remove a calendar feed and its events.","tags":["calendar"],"x-capability":"calendar.delete","x-costs-money":false,"x-effect":"destructive","x-idempotent":true,"x-scope":"write"},"put":{"operationId":"calendar_update","parameters":[{"in":"path","name":"ring_group_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"calendar_id","required":true,"schema":{"type":"string"}},{"description":"Check the request as if for real, and save nothing.","in":"query","name":"dry_run","required":false,"schema":{"default":false,"type":"boolean"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCalendar"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarUpdated"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"Set an Airbnb calendar's check-in and check-out times, which bound its guests' gate codes.","tags":["calendar"],"x-capability":"calendar.update","x-costs-money":false,"x-effect":"write","x-idempotent":true,"x-scope":"write"}},"/ring-groups/{ring_group_id}/calendars/{calendar_id}/sync":{"post":{"operationId":"calendar_sync","parameters":[{"in":"path","name":"ring_group_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"calendar_id","required":true,"schema":{"type":"string"}},{"description":"Check the request as if for real, and save nothing.","in":"query","name":"dry_run","required":false,"schema":{"default":false,"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarSynced"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"Sync a ring group's calendar feed now.","tags":["calendar"],"x-capability":"calendar.sync","x-costs-money":false,"x-effect":"write","x-idempotent":false,"x-scope":"write"}},"/ring-groups/{ring_group_id}/dsl":{"get":{"operationId":"call_flow_export","parameters":[{"in":"path","name":"ring_group_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallFlowText"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"A ring group's whole call flow as text: each step with its dialing mode, ring time and phones (or gate codes).","tags":["call_flow"],"x-capability":"call_flow.export","x-costs-money":false,"x-effect":"read","x-idempotent":true,"x-scope":"read"},"put":{"operationId":"call_flow_apply","parameters":[{"in":"path","name":"ring_group_id","required":true,"schema":{"type":"string"}},{"description":"Check the request as if for real, and save nothing.","in":"query","name":"dry_run","required":false,"schema":{"default":false,"type":"boolean"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplyCallFlow"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallFlowApplied"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"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.","tags":["call_flow"],"x-capability":"call_flow.apply","x-costs-money":false,"x-effect":"write","x-idempotent":true,"x-scope":"write"}},"/ring-groups/{ring_group_id}/now":{"get":{"operationId":"call_flow_now","parameters":[{"in":"path","name":"ring_group_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallFlowNow"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"What a call to a ring group does right now, and when that next changes (its phones' hours, snoozes and gate codes).","tags":["call_flow"],"x-capability":"call_flow.now","x-costs-money":false,"x-effect":"read","x-idempotent":true,"x-scope":"read"}},"/ring-groups/{ring_group_id}/numbers":{"post":{"operationId":"forward_number_add","parameters":[{"in":"path","name":"ring_group_id","required":true,"schema":{"type":"string"}},{"description":"Check the request as if for real, and save nothing.","in":"query","name":"dry_run","required":false,"schema":{"default":false,"type":"boolean"}},{"description":"1 to 255 visible ASCII characters (a UUID is typical). A retry with the same key and request gets the first reply again.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddForwardNumber"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForwardNumberChanged"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"Add a phone to a ring group.","tags":["forward_number"],"x-capability":"forward_number.add","x-costs-money":false,"x-effect":"write","x-idempotent":false,"x-scope":"write"}},"/ring-groups/{ring_group_id}/numbers/{number_id}":{"delete":{"operationId":"forward_number_remove","parameters":[{"in":"path","name":"ring_group_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"number_id","required":true,"schema":{"type":"string"}},{"description":"Check the request as if for real, and save nothing.","in":"query","name":"dry_run","required":false,"schema":{"default":false,"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Removed"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"Remove a phone from a ring group.","tags":["forward_number"],"x-capability":"forward_number.remove","x-costs-money":false,"x-effect":"destructive","x-idempotent":true,"x-scope":"write"},"patch":{"operationId":"forward_number_update","parameters":[{"in":"path","name":"ring_group_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"number_id","required":true,"schema":{"type":"string"}},{"description":"Check the request as if for real, and save nothing.","in":"query","name":"dry_run","required":false,"schema":{"default":false,"type":"boolean"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateForwardNumber"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForwardNumberChanged"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"Change a forwarding number's phone number, label, step or the hours it rings.","tags":["forward_number"],"x-capability":"forward_number.update","x-costs-money":false,"x-effect":"write","x-idempotent":true,"x-scope":"write"}},"/ring-groups/{ring_group_id}/numbers/{number_id}/move":{"post":{"operationId":"forward_number_move","parameters":[{"in":"path","name":"ring_group_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"number_id","required":true,"schema":{"type":"string"}},{"description":"Check the request as if for real, and save nothing.","in":"query","name":"dry_run","required":false,"schema":{"default":false,"type":"boolean"}},{"description":"1 to 255 visible ASCII characters (a UUID is typical). A retry with the same key and request gets the first reply again.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveForwardNumber"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Moved"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"Move a phone up or down the ring order within its step.","tags":["forward_number"],"x-capability":"forward_number.move","x-costs-money":false,"x-effect":"write","x-idempotent":false,"x-scope":"write"}},"/ring-groups/{ring_group_id}/snooze":{"post":{"operationId":"snooze_set","parameters":[{"in":"path","name":"ring_group_id","required":true,"schema":{"type":"string"}},{"description":"Check the request as if for real, and save nothing.","in":"query","name":"dry_run","required":false,"schema":{"default":false,"type":"boolean"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Snooze"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Snoozed"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"Stop one phone, or the whole ring group, ringing for a while.","tags":["snooze"],"x-capability":"snooze.set","x-costs-money":false,"x-effect":"write","x-idempotent":true,"x-scope":"write"}},"/ring-groups/{ring_group_id}/steps/{step}":{"patch":{"operationId":"call_flow_update_step","parameters":[{"in":"path","name":"ring_group_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"step","required":true,"schema":{"type":"string"}},{"description":"Check the request as if for real, and save nothing.","in":"query","name":"dry_run","required":false,"schema":{"default":false,"type":"boolean"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateStep"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StepUpdated"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"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.","tags":["call_flow"],"x-capability":"call_flow.update_step","x-costs-money":false,"x-effect":"write","x-idempotent":true,"x-scope":"write"}},"/ring-groups/{ring_group_id}/steps/{step}/move":{"post":{"operationId":"call_flow_move_step","parameters":[{"in":"path","name":"ring_group_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"step","required":true,"schema":{"type":"string"}},{"description":"Check the request as if for real, and save nothing.","in":"query","name":"dry_run","required":false,"schema":{"default":false,"type":"boolean"}},{"description":"1 to 255 visible ASCII characters (a UUID is typical). A retry with the same key and request gets the first reply again.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveStep"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StepMoved"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"Move a whole step of the call flow up or down; the steps are numbered again.","tags":["call_flow"],"x-capability":"call_flow.move_step","x-costs-money":false,"x-effect":"write","x-idempotent":false,"x-scope":"write"}},"/sessions":{"get":{"operationId":"session_list","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sessions"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"Where the account is signed in.","tags":["session"],"x-capability":"session.list","x-costs-money":false,"x-effect":"read","x-idempotent":true,"x-scope":"read"}},"/sessions/revoke":{"post":{"operationId":"session_revoke","parameters":[{"description":"Check the request as if for real, and save nothing.","in":"query","name":"dry_run","required":false,"schema":{"default":false,"type":"boolean"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevokeSessions"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionsRevoked"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"Sign out one device, or every device but this one.","tags":["session"],"x-capability":"session.revoke","x-costs-money":false,"x-effect":"destructive","x-idempotent":true,"x-scope":"write"}},"/webhooks":{"get":{"operationId":"webhook_list","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhooks"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"The account's webhooks and how each last delivered, without their secrets.","tags":["webhook"],"x-capability":"webhook.list","x-costs-money":false,"x-effect":"read","x-idempotent":true,"x-scope":"read"},"post":{"operationId":"webhook_create","parameters":[{"description":"Check the request as if for real, and save nothing.","in":"query","name":"dry_run","required":false,"schema":{"default":false,"type":"boolean"}},{"description":"1 to 255 visible ASCII characters (a UUID is typical). A retry with the same key and request gets the first reply again.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWebhook"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookCreated"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"Send events (a call ended, minutes running low) to an HTTPS address, signed with a secret shown once.","tags":["webhook"],"x-capability":"webhook.create","x-costs-money":false,"x-effect":"write","x-idempotent":false,"x-scope":"write"}},"/webhooks/{webhook_id}":{"delete":{"operationId":"webhook_delete","parameters":[{"in":"path","name":"webhook_id","required":true,"schema":{"type":"string"}},{"description":"Check the request as if for real, and save nothing.","in":"query","name":"dry_run","required":false,"schema":{"default":false,"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookRemoved"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"Remove a webhook, and what was waiting to be sent to it.","tags":["webhook"],"x-capability":"webhook.delete","x-costs-money":false,"x-effect":"destructive","x-idempotent":true,"x-scope":"write"}},"/webhooks/{webhook_id}/rotate-secret":{"post":{"operationId":"webhook_rotate_secret","parameters":[{"in":"path","name":"webhook_id","required":true,"schema":{"type":"string"}},{"description":"Check the request as if for real, and save nothing.","in":"query","name":"dry_run","required":false,"schema":{"default":false,"type":"boolean"}},{"description":"1 to 255 visible ASCII characters (a UUID is typical). A retry with the same key and request gets the first reply again.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":255,"minLength":1,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSecretRotated"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"Give a webhook a new signing secret, shown once; the old one also signs for 24 hours.","tags":["webhook"],"x-capability":"webhook.rotate_secret","x-costs-money":false,"x-effect":"write","x-idempotent":false,"x-scope":"write"}},"/webhooks/{webhook_id}/test":{"post":{"operationId":"webhook_test","parameters":[{"in":"path","name":"webhook_id","required":true,"schema":{"type":"string"}},{"description":"Check the request as if for real, and save nothing.","in":"query","name":"dry_run","required":false,"schema":{"default":false,"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookTestQueued"}}},"description":"Done."},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Refused: `error` says why."},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The server or a provider failed."}},"summary":"Send a webhook a ping, to check it's reachable and checks signatures.","tags":["webhook"],"x-capability":"webhook.test","x-costs-money":false,"x-effect":"write","x-idempotent":false,"x-scope":"write"}}},"security":[{"apiKey":[]}],"servers":[{"url":"https://ringhuddle.com/api/v1"}]}