{"components":{"schemas":{"Error":{"properties":{"error":{"description":"A stable, machine-readable code.","type":"string"},"message":{"description":"What happened, to show the user.","type":"string"}},"required":["error","message"],"type":"object"}},"securitySchemes":{"bearer":{"description":"A token from POST /auth/token, or one made in Settings, API access. They start with sec_.","scheme":"bearer","type":"http"}}},"externalDocs":{"description":"The API guide","url":"http://demo.voyancy.com/developers"},"info":{"description":"The JSON API the Voyancy phone app is built on: sign in, the day's jobs and the time clock, the team's mailbox, customers, documents and usage. The guide, with every response's fields and examples, is at http://demo.voyancy.com/developers.","title":"Voyancy API","version":"1"},"openapi":"3.1.0","paths":{"/analytics":{"get":{"externalDocs":{"url":"http://demo.voyancy.com/developers#get-analytics"},"operationId":"getAnalytics","responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"total, pending, by_category, by_urgency and daily counts."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_token or invalid_token: sign in again."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"account_suspended or demo_account."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited: 120 requests a minute per token. Retry after Retry-After seconds."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"api_disabled: the API is turned off on this deployment."}},"summary":"The team's mailbox numbers, as the web analytics page shows"}},"/auth/token":{"delete":{"externalDocs":{"url":"http://demo.voyancy.com/developers#delete-authtoken-sign-out"},"operationId":"signOut","responses":{"204":{"description":"Revoked."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_token or invalid_token: sign in again."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"account_suspended or demo_account."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited: 120 requests a minute per token. Retry after Retry-After seconds."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"api_disabled: the API is turned off on this deployment."}},"summary":"Sign out: revoke the token making the request"},"post":{"externalDocs":{"url":"http://demo.voyancy.com/developers#post-authtoken-sign-in"},"operationId":"signIn","requestBody":{"content":{"application/json":{"schema":{"properties":{"code":{"description":"The two-step code (or a recovery code), once a 401 two_step_required asks.","type":"string"},"device_name":{"description":"Shown in Settings and GET /tokens. Defaults to \"Mobile app\".","type":"string"},"password":{"type":"string"},"username":{"description":"The username, or the account's email address.","type":"string"}},"required":["username","password"],"type":"object"}},"application/x-www-form-urlencoded":{"schema":{"properties":{"code":{"description":"The two-step code (or a recovery code), once a 401 two_step_required asks.","type":"string"},"device_name":{"description":"Shown in Settings and GET /tokens. Defaults to \"Mobile app\".","type":"string"},"password":{"type":"string"},"username":{"description":"The username, or the account's email address.","type":"string"}},"required":["username","password"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Signed in: access_token, its token record and the user."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_request: username or password missing."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_credentials, two_step_required or invalid_code."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"account_suspended or demo_account."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited, or sign_in_paused after 10 failed sign-ins to the account in a row."}},"security":[],"summary":"Sign in: a username (or email) and password for a token"}},"/calls/recordings":{"get":{"externalDocs":{"url":"http://demo.voyancy.com/developers#get-callsrecordings"},"operationId":"listCallRecordings","parameters":[{"description":"Items per page.","in":"query","name":"limit","required":false,"schema":{"default":50,"maximum":100,"minimum":1,"type":"integer"}},{"description":"For the next page: the previous response's next_before_id.","in":"query","name":"before_id","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Only this customer's calls.","in":"query","name":"customer_id","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"items, recording_on and next_before_id."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_token or invalid_token: sign in again."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"account_suspended or demo_account."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"not_found: texting is off, or no such customer."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited: 120 requests a minute per token. Retry after Retry-After seconds."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"api_disabled: the API is turned off on this deployment."}},"summary":"The team's recorded calls, newest first"}},"/calls/recordings/{recording_id}":{"get":{"externalDocs":{"url":"http://demo.voyancy.com/developers#get-callsrecordingsid"},"operationId":"getCallRecording","parameters":[{"in":"path","name":"recording_id","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"The call, with turns and taken_by."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_token or invalid_token: sign in again."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"account_suspended or demo_account."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"not_found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited: 120 requests a minute per token. Retry after Retry-After seconds."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"api_disabled: the API is turned off on this deployment."}},"summary":"A recorded call, written out"}},"/calls/recordings/{recording_id}/audio":{"get":{"externalDocs":{"url":"http://demo.voyancy.com/developers#get-callsrecordingsidaudio"},"operationId":"getCallRecordingAudio","parameters":[{"in":"path","name":"recording_id","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"audio/mpeg":{"schema":{"format":"binary","type":"string"}}},"description":"The call (audio/mpeg); a Range request gets that part."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_token or invalid_token: sign in again."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"account_suspended or demo_account."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"not_found: no audio."},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"too_large"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited: 120 requests a minute per token. Retry after Retry-After seconds."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"recording_unavailable"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"api_disabled: the API is turned off on this deployment."}},"summary":"A recorded call's audio"}},"/clock":{"post":{"externalDocs":{"url":"http://demo.voyancy.com/developers#post-clock"},"operationId":"clockInOrOut","requestBody":{"content":{"application/json":{"schema":{"properties":{"accuracy":{"description":"Metres.","type":"number"},"action":{"enum":["in","out"],"type":"string"},"lat":{"description":"Degrees; kept only when the team records where people clock.","type":"number"},"lng":{"description":"Degrees.","type":"number"}},"required":["action"],"type":"object"}},"application/x-www-form-urlencoded":{"schema":{"properties":{"accuracy":{"description":"Metres.","type":"number"},"action":{"enum":["in","out"],"type":"string"},"lat":{"description":"Degrees; kept only when the team records where people clock.","type":"number"},"lng":{"description":"Degrees.","type":"number"}},"required":["action"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"clock, and a message."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_request: an unknown action."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_token or invalid_token: sign in again."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"account_suspended or demo_account."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"not_found: time tracking is turned off."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"already_clocked_in or not_clocked_in"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited: 120 requests a minute per token. Retry after Retry-After seconds."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"api_disabled: the API is turned off on this deployment."}},"summary":"Clock in or out"}},"/customers":{"get":{"externalDocs":{"url":"http://demo.voyancy.com/developers#get-customers"},"operationId":"listCustomers","parameters":[{"description":"Items per page.","in":"query","name":"limit","required":false,"schema":{"default":50,"maximum":100,"minimum":1,"type":"integer"}},{"description":"For the next page: the previous response's next_before_id.","in":"query","name":"before_id","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Searches names, emails, phones, companies and addresses.","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"items and next_before_id."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_token or invalid_token: sign in again."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"account_suspended or demo_account."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"not_found: customer records are turned off."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited: 120 requests a minute per token. Retry after Retry-After seconds."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"api_disabled: the API is turned off on this deployment."}},"summary":"The team's customers, newest first"}},"/customers/{customer_id}":{"get":{"externalDocs":{"url":"http://demo.voyancy.com/developers#get-customersid"},"operationId":"getCustomer","parameters":[{"in":"path","name":"customer_id","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"The customer, plus emails."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_token or invalid_token: sign in again."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"account_suspended or demo_account."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"not_found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited: 120 requests a minute per token. Retry after Retry-After seconds."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"api_disabled: the API is turned off on this deployment."}},"summary":"One customer, with their recent messages"}},"/customers/{customer_id}/call":{"post":{"externalDocs":{"url":"http://demo.voyancy.com/developers#post-customersidcall"},"operationId":"callCustomer","parameters":[{"in":"path","name":"customer_id","required":true,"schema":{"type":"integer"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"my_phone":{"description":"Your own phone, rung first.","type":"string"}},"required":["my_phone"],"type":"object"}},"application/x-www-form-urlencoded":{"schema":{"properties":{"my_phone":{"description":"Your own phone, rung first.","type":"string"}},"required":["my_phone"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"The message to show."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_token or invalid_token: sign in again."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"account_suspended or demo_account."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"not_found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"not_placed: why, in message."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited: 30 calls an hour per token; or rate_limited: 120 requests a minute per token. Retry after Retry-After seconds."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"api_disabled: the API is turned off on this deployment."}},"summary":"Call the customer from the business's number: your phone rings first"}},"/customers/{customer_id}/text":{"post":{"externalDocs":{"url":"http://demo.voyancy.com/developers#post-customersidtext"},"operationId":"textCustomer","parameters":[{"in":"path","name":"customer_id","required":true,"schema":{"type":"integer"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"message":{"type":"string"},"send_at":{"description":"Later: a date and time in the business's time zone, 2026-12-01T08:00.","type":"string"}},"type":"object"}},"application/x-www-form-urlencoded":{"schema":{"properties":{"message":{"type":"string"},"send_at":{"description":"Later: a date and time in the business's time zone, 2026-12-01T08:00.","type":"string"}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"message, and the conversation (texts)."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_token or invalid_token: sign in again."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"account_suspended or demo_account."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"not_found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"not_sent: why, in message."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited: 120 requests a minute per token. Retry after Retry-After seconds."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"api_disabled: the API is turned off on this deployment."}},"summary":"Text the customer from the business's number, now or later"}},"/devices":{"delete":{"externalDocs":{"url":"http://demo.voyancy.com/developers#delete-devices"},"operationId":"unregisterDevice","requestBody":{"content":{"application/json":{"schema":{"properties":{"token":{"description":"The phone's FCM token.","type":"string"}},"required":["token"],"type":"object"}}},"required":true},"responses":{"204":{"description":"Forgotten."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_request: no token."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_token or invalid_token: sign in again."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"account_suspended or demo_account."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited: 120 requests a minute per token. Retry after Retry-After seconds."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"api_disabled: the API is turned off on this deployment."}},"summary":"Forget this phone"},"post":{"externalDocs":{"url":"http://demo.voyancy.com/developers#post-devices-register-for-push-notifications"},"operationId":"registerDevice","requestBody":{"content":{"application/json":{"schema":{"properties":{"name":{"description":"Shown in the web app's Settings.","type":"string"},"platform":{"enum":["android","ios"],"type":"string"},"token":{"description":"The phone's Firebase Cloud Messaging token.","type":"string"}},"required":["token","platform"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"device, and the push settings."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_request: a missing or malformed token or platform."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_token or invalid_token: sign in again."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"account_suspended or demo_account."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited: 120 requests a minute per token. Retry after Retry-After seconds."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"api_disabled: the API is turned off on this deployment."}},"summary":"Register this phone for push notifications"}},"/documents":{"get":{"externalDocs":{"url":"http://demo.voyancy.com/developers#get-documents"},"operationId":"listDocuments","parameters":[{"description":"Items per page.","in":"query","name":"limit","required":false,"schema":{"default":50,"maximum":100,"minimum":1,"type":"integer"}},{"description":"For the next page: the previous response's next_before_id.","in":"query","name":"before_id","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Searches file names, folders, and the senders and subjects of the emails they came with.","in":"query","name":"q","required":false,"schema":{"type":"string"}},{"description":"Only this folder.","in":"query","name":"folder","required":false,"schema":{"type":"string"}},{"description":"Only uploads, email attachments or job photos.","in":"query","name":"source","required":false,"schema":{"enum":["upload","email_attachment","job_photo"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"items and next_before_id."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_token or invalid_token: sign in again."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"account_suspended or demo_account."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"not_found: documents are turned off."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited: 120 requests a minute per token. Retry after Retry-After seconds."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"api_disabled: the API is turned off on this deployment."}},"summary":"The team's document library, newest first"}},"/documents/{document_id}/download":{"get":{"externalDocs":{"url":"http://demo.voyancy.com/developers#get-documentsiddownload"},"operationId":"downloadDocument","parameters":[{"in":"path","name":"document_id","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/octet-stream":{"schema":{"format":"binary","type":"string"}}},"description":"The file, as an attachment, in its own type."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_token or invalid_token: sign in again."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"account_suspended or demo_account."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"not_found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited: 120 requests a minute per token. Retry after Retry-After seconds."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"storage_error"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"api_disabled: the API is turned off on this deployment."}},"summary":"A document's file"}},"/jobs/{job_id}":{"get":{"externalDocs":{"url":"http://demo.voyancy.com/developers#get-jobsid"},"operationId":"getJob","parameters":[{"in":"path","name":"job_id","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"The job."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_token or invalid_token: sign in again."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"account_suspended or demo_account."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"not_found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited: 120 requests a minute per token. Retry after Retry-After seconds."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"api_disabled: the API is turned off on this deployment."}},"summary":"One job"}},"/jobs/{job_id}/call":{"post":{"externalDocs":{"url":"http://demo.voyancy.com/developers#post-jobsidcall"},"operationId":"callJob","parameters":[{"in":"path","name":"job_id","required":true,"schema":{"type":"integer"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"my_phone":{"description":"Your own phone, rung first.","type":"string"}},"required":["my_phone"],"type":"object"}},"application/x-www-form-urlencoded":{"schema":{"properties":{"my_phone":{"description":"Your own phone, rung first.","type":"string"}},"required":["my_phone"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"The message to show."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_token or invalid_token: sign in again."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"account_suspended or demo_account."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"not_found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"not_placed: why, in message."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited: 30 calls an hour per token; or rate_limited: 120 requests a minute per token. Retry after Retry-After seconds."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"api_disabled: the API is turned off on this deployment."}},"summary":"Call the job's customer from the business's number"}},"/jobs/{job_id}/checklist":{"post":{"externalDocs":{"url":"http://demo.voyancy.com/developers#post-jobsidchecklist"},"operationId":"setJobChecklist","parameters":[{"in":"path","name":"job_id","required":true,"schema":{"type":"integer"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"done":{"description":"The indexes ticked; the rest are unticked.","items":{"type":"integer"},"type":"array"}},"required":["done"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"The updated job."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_request: done isn't a list of indexes."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_token or invalid_token: sign in again."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"account_suspended or demo_account."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"not_found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited: 120 requests a minute per token. Retry after Retry-After seconds."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"api_disabled: the API is turned off on this deployment."}},"summary":"Tick checklist items by index"}},"/jobs/{job_id}/notes":{"post":{"externalDocs":{"url":"http://demo.voyancy.com/developers#post-jobsidnotes"},"operationId":"setJobNotes","parameters":[{"in":"path","name":"job_id","required":true,"schema":{"type":"integer"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"work_notes":{"type":"string"}},"type":"object"}},"application/x-www-form-urlencoded":{"schema":{"properties":{"work_notes":{"type":"string"}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"The updated job."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_token or invalid_token: sign in again."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"account_suspended or demo_account."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"not_found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited: 120 requests a minute per token. Retry after Retry-After seconds."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"api_disabled: the API is turned off on this deployment."}},"summary":"Replace the team's notes on a job"}},"/jobs/{job_id}/photos":{"post":{"externalDocs":{"url":"http://demo.voyancy.com/developers#post-jobsidphotos"},"operationId":"addJobPhotos","parameters":[{"in":"path","name":"job_id","required":true,"schema":{"type":"integer"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"properties":{"photos":{"items":{"format":"binary","type":"string"},"maxItems":10,"type":"array"}},"required":["photos"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"job, and a message."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_request: no files, or more than 10."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_token or invalid_token: sign in again."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"storage_addon_required; or account_suspended or demo_account."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"not_found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"not_a_photo: none of the files was a picture."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited: 60 uploads an hour per token; or rate_limited: 120 requests a minute per token. Retry after Retry-After seconds."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"storage_error: nothing was added."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"api_disabled: the API is turned off on this deployment."}},"summary":"Add photos to a job"}},"/jobs/{job_id}/photos/{document_id}":{"delete":{"externalDocs":{"url":"http://demo.voyancy.com/developers#delete-jobsidphotosphoto"},"operationId":"deleteJobPhoto","parameters":[{"in":"path","name":"job_id","required":true,"schema":{"type":"integer"}},{"in":"path","name":"document_id","required":true,"schema":{"type":"integer"}}],"responses":{"204":{"description":"Deleted."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_token or invalid_token: sign in again."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"forbidden: only the account owner or whoever added it; or account_suspended or demo_account."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"not_found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited: 120 requests a minute per token. Retry after Retry-After seconds."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"storage_error"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"api_disabled: the API is turned off on this deployment."}},"summary":"Delete a job's photo"},"get":{"externalDocs":{"url":"http://demo.voyancy.com/developers#get-jobsidphotosphoto"},"operationId":"getJobPhoto","parameters":[{"in":"path","name":"job_id","required":true,"schema":{"type":"integer"}},{"in":"path","name":"document_id","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"image/jpeg":{"schema":{"format":"binary","type":"string"}}},"description":"The photo (image/jpeg)."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_token or invalid_token: sign in again."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"account_suspended or demo_account."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"not_found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited: 120 requests a minute per token. Retry after Retry-After seconds."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"storage_error"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"api_disabled: the API is turned off on this deployment."}},"summary":"A job's photo"}},"/jobs/{job_id}/signature":{"post":{"externalDocs":{"url":"http://demo.voyancy.com/developers#post-jobsidsignature"},"operationId":"signJob","parameters":[{"in":"path","name":"job_id","required":true,"schema":{"type":"integer"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"signature":{"description":"A PNG, base64-encoded (a data:image/png;base64, URL works too), of at most 200 KB.","type":"string"},"signed_by":{"description":"The customer's name.","type":"string"}},"required":["signed_by","signature"],"type":"object"}},"application/x-www-form-urlencoded":{"schema":{"properties":{"signature":{"description":"A PNG, base64-encoded (a data:image/png;base64, URL works too), of at most 200 KB.","type":"string"},"signed_by":{"description":"The customer's name.","type":"string"}},"required":["signed_by","signature"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"job, and a message."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_request: no name, or not a PNG."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_token or invalid_token: sign in again."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"account_suspended or demo_account."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"not_found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"not_started"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited: 120 requests a minute per token. Retry after Retry-After seconds."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"api_disabled: the API is turned off on this deployment."}},"summary":"The customer's signature, once the job has started"}},"/jobs/{job_id}/status":{"post":{"externalDocs":{"url":"http://demo.voyancy.com/developers#post-jobsidstatus-on-my-way-start-done"},"operationId":"moveJob","parameters":[{"in":"path","name":"job_id","required":true,"schema":{"type":"integer"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"action":{"enum":["on_the_way","start","done"],"type":"string"},"eta":{"description":"Minutes until arrival, with on_the_way.","type":"integer"}},"required":["action"],"type":"object"}},"application/x-www-form-urlencoded":{"schema":{"properties":{"action":{"enum":["on_the_way","start","done"],"type":"string"},"eta":{"description":"Minutes until arrival, with on_the_way.","type":"integer"}},"required":["action"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"job, and a message to show."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_request: an unknown action, or eta isn't a whole number."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_token or invalid_token: sign in again."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"account_suspended or demo_account."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"not_found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"not_confirmed, cancelled or invalid_transition."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited: 120 requests a minute per token. Retry after Retry-After seconds."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"api_disabled: the API is turned off on this deployment."}},"summary":"Move a job on: on my way, start, done"}},"/jobs/{job_id}/text":{"post":{"externalDocs":{"url":"http://demo.voyancy.com/developers#post-jobsidtext"},"operationId":"textJob","parameters":[{"in":"path","name":"job_id","required":true,"schema":{"type":"integer"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"message":{"type":"string"},"send_at":{"description":"Later: a date and time in the business's time zone.","type":"string"}},"type":"object"}},"application/x-www-form-urlencoded":{"schema":{"properties":{"message":{"type":"string"},"send_at":{"description":"Later: a date and time in the business's time zone.","type":"string"}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"message, and the job's texts."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_token or invalid_token: sign in again."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"account_suspended or demo_account."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"not_found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"not_sent: why, in message."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited: 120 requests a minute per token. Retry after Retry-After seconds."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"api_disabled: the API is turned off on this deployment."}},"summary":"Text the job's customer from the business's number"}},"/mailbox":{"get":{"externalDocs":{"url":"http://demo.voyancy.com/developers#get-mailbox"},"operationId":"listMailbox","parameters":[{"description":"Items per page.","in":"query","name":"limit","required":false,"schema":{"default":50,"maximum":100,"minimum":1,"type":"integer"}},{"description":"For the next page: the previous response's next_before_id.","in":"query","name":"before_id","required":false,"schema":{"minimum":1,"type":"integer"}},{"description":"Reply not yet sent, or sent.","in":"query","name":"status","required":false,"schema":{"default":"all","enum":["all","pending","sent"],"type":"string"}},{"description":"A category key from GET /me.","in":"query","name":"category","required":false,"schema":{"type":"string"}},{"description":"low, normal, high or emergency.","in":"query","name":"urgency","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"items and next_before_id (null on the last page)."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_request: a bad limit, before_id or status."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_token or invalid_token: sign in again."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"account_suspended or demo_account."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited: 120 requests a minute per token. Retry after Retry-After seconds."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"api_disabled: the API is turned off on this deployment."}},"summary":"The team's triaged mail, newest first"}},"/mailbox/{triaged_id}":{"get":{"externalDocs":{"url":"http://demo.voyancy.com/developers#get-mailboxid"},"operationId":"getMailboxItem","parameters":[{"in":"path","name":"triaged_id","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"The item."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_token or invalid_token: sign in again."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"account_suspended or demo_account."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"not_found: not in the caller's team mailbox."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited: 120 requests a minute per token. Retry after Retry-After seconds."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"api_disabled: the API is turned off on this deployment."}},"summary":"One item from the mailbox"}},"/mailbox/{triaged_id}/notes":{"post":{"externalDocs":{"url":"http://demo.voyancy.com/developers#post-mailboxidnotes"},"operationId":"addNote","parameters":[{"in":"path","name":"triaged_id","required":true,"schema":{"type":"integer"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"note":{"description":"\"@name\" pushes that teammate.","type":"string"}},"required":["note"],"type":"object"}},"application/x-www-form-urlencoded":{"schema":{"properties":{"note":{"description":"\"@name\" pushes that teammate.","type":"string"}},"required":["note"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"message, and the message's notes."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_request: note isn't a string."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_token or invalid_token: sign in again."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"account_suspended or demo_account."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"not_found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"empty_note"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited: 120 requests a minute per token. Retry after Retry-After seconds."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"api_disabled: the API is turned off on this deployment."}},"summary":"A note for the team on a message"}},"/mailbox/{triaged_id}/send":{"post":{"externalDocs":{"url":"http://demo.voyancy.com/developers#post-mailboxidsend-approve-and-send"},"operationId":"sendReply","parameters":[{"in":"path","name":"triaged_id","required":true,"schema":{"type":"integer"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"reply_body":{"description":"An edited reply. Leave it out to send the drafted one.","type":"string"}},"type":"object"}},"application/x-www-form-urlencoded":{"schema":{"properties":{"reply_body":{"description":"An edited reply. Leave it out to send the drafted one.","type":"string"}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"recipient, and the item, now sent."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_request: reply_body isn't a string."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_token or invalid_token: sign in again."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"account_suspended or demo_account."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"not_found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"already_sent"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"no_recipient or empty_reply"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited: 120 requests a minute per token. Retry after Retry-After seconds."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"send_failed: nothing was marked sent."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"api_disabled: the API is turned off on this deployment."}},"summary":"Approve and send the reply"}},"/mailbox/{triaged_id}/voicemail":{"get":{"externalDocs":{"url":"http://demo.voyancy.com/developers#get-mailboxidvoicemail"},"operationId":"getVoicemail","parameters":[{"in":"path","name":"triaged_id","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"audio/mpeg":{"schema":{"format":"binary","type":"string"}}},"description":"The voicemail (audio/mpeg); a Range request gets that part."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_token or invalid_token: sign in again."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"account_suspended or demo_account."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"not_found: no voicemail."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited: 120 requests a minute per token. Retry after Retry-After seconds."},"502":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"recording_unavailable"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"api_disabled: the API is turned off on this deployment."}},"summary":"A message's voicemail audio"}},"/me":{"get":{"externalDocs":{"url":"http://demo.voyancy.com/developers#get-me"},"operationId":"getMe","responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"The user."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_token or invalid_token: sign in again."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"account_suspended or demo_account."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited: 120 requests a minute per token. Retry after Retry-After seconds."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"api_disabled: the API is turned off on this deployment."}},"summary":"The signed-in user, their business and their team"}},"/my-day":{"get":{"externalDocs":{"url":"http://demo.voyancy.com/developers#get-my-day"},"operationId":"getMyDay","parameters":[{"description":"YYYY-MM-DD in the team's time zone. Defaults to today.","in":"query","name":"day","required":false,"schema":{"format":"date","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"day, today, time_zone, clock, mine and unassigned."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_request: day isn't a date."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_token or invalid_token: sign in again."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"account_suspended or demo_account."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"not_found: jobs are turned off."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited: 120 requests a minute per token. Retry after Retry-After seconds."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"api_disabled: the API is turned off on this deployment."}},"summary":"The caller's jobs for a day, the unassigned ones, and the time clock"}},"/numbers/block":{"post":{"externalDocs":{"url":"http://demo.voyancy.com/developers#post-numbersblock"},"operationId":"blockNumber","requestBody":{"content":{"application/json":{"schema":{"properties":{"phone":{"description":"As typed: (512) 555-0199 or +15125550199.","type":"string"}},"required":["phone"],"type":"object"}},"application/x-www-form-urlencoded":{"schema":{"properties":{"phone":{"description":"As typed: (512) 555-0199 or +15125550199.","type":"string"}},"required":["phone"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"phone, blocked and a message."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_token or invalid_token: sign in again."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"account_suspended or demo_account."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"not_found: texting is off."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_phone"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited: 120 requests a minute per token. Retry after Retry-After seconds."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"api_disabled: the API is turned off on this deployment."}},"summary":"Block a number: its calls turned away, its texts ignored"}},"/numbers/unblock":{"post":{"externalDocs":{"url":"http://demo.voyancy.com/developers#post-numbersunblock"},"operationId":"unblockNumber","requestBody":{"content":{"application/json":{"schema":{"properties":{"phone":{"type":"string"}},"required":["phone"],"type":"object"}},"application/x-www-form-urlencoded":{"schema":{"properties":{"phone":{"type":"string"}},"required":["phone"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"phone, blocked and a message."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_token or invalid_token: sign in again."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"account_suspended or demo_account."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"not_found: texting is off."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_phone"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited: 120 requests a minute per token. Retry after Retry-After seconds."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"api_disabled: the API is turned off on this deployment."}},"summary":"Unblock a number"}},"/openapi.json":{"get":{"operationId":"getOpenApi","responses":{"200":{"description":"The OpenAPI document."}},"security":[],"summary":"This document"}},"/push":{"put":{"externalDocs":{"url":"http://demo.voyancy.com/developers#put-push"},"operationId":"setPush","requestBody":{"content":{"application/json":{"schema":{"properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"The push settings."},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"invalid_request: enabled isn't true or false."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_token or invalid_token: sign in again."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"account_suspended or demo_account."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited: 120 requests a minute per token. Retry after Retry-After seconds."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"api_disabled: the API is turned off on this deployment."}},"summary":"Turn the caller's push notifications on or off"}},"/texts/scheduled/{text_id}":{"delete":{"externalDocs":{"url":"http://demo.voyancy.com/developers#delete-textsscheduledid"},"operationId":"cancelScheduledText","parameters":[{"in":"path","name":"text_id","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"The message to show."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_token or invalid_token: sign in again."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"account_suspended or demo_account."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"not_found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"sending: it's going out right now."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited: 120 requests a minute per token. Retry after Retry-After seconds."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"api_disabled: the API is turned off on this deployment."}},"summary":"Cancel a text set to go later"}},"/tokens":{"get":{"externalDocs":{"url":"http://demo.voyancy.com/developers#get-tokens"},"operationId":"listTokens","responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"items; the one making the request has current: true."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_token or invalid_token: sign in again."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"account_suspended or demo_account."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited: 120 requests a minute per token. Retry after Retry-After seconds."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"api_disabled: the API is turned off on this deployment."}},"summary":"The caller's active tokens"}},"/tokens/{token_id}":{"delete":{"externalDocs":{"url":"http://demo.voyancy.com/developers#delete-tokensid"},"operationId":"revokeToken","parameters":[{"in":"path","name":"token_id","required":true,"schema":{"type":"integer"}}],"responses":{"204":{"description":"Revoked."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_token or invalid_token: sign in again."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"account_suspended or demo_account."},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"not_found: not one of the caller's tokens."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited: 120 requests a minute per token. Retry after Retry-After seconds."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"api_disabled: the API is turned off on this deployment."}},"summary":"Revoke one of the caller's tokens"}},"/usage":{"get":{"externalDocs":{"url":"http://demo.voyancy.com/developers#get-usage"},"operationId":"getUsage","responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"period_start, emails and advanced_analysis, each used and quota."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"missing_token or invalid_token: sign in again."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"account_suspended or demo_account."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"rate_limited: 120 requests a minute per token. Retry after Retry-After seconds."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"api_disabled: the API is turned off on this deployment."}},"summary":"This month's usage against the plan's limits"}}},"security":[{"bearer":[]}],"servers":[{"url":"http://demo.voyancy.com/api/v1"}]}
