Business Numbers
A business number is a customer-facing phone number on your Phone.inc account — the one you'd publish on a website or business card. Every call and voicemail belongs to exactly one business number. Beyond listing them, you can retrieve the full settings (routing, business hours) and update them through the API.
The business number model
Each business number has a stable public id, the human label your team uses to identify it (name), the underlying phone number, and its full routing configuration.
Both list and detail responses include porting_status and porting_number_human, matching the business-number list in the dashboard. Both are null when no porting request exists. porting_number_human is the number being transferred, formatted for display (for example, +45 33 12 34 56).
porting_status is one of:
| Status | Meaning |
|---|---|
requested | Your request has been recorded for our team. |
requested_from_did_worldwide | The transfer has been requested from the carrier. |
porting_date_confirmed | The carrier has confirmed a transfer date. |
completed | The transfer is complete. |
cancelled | The request was cancelled. |
Completed and cancelled requests retain their status; they do not become null. Porting status is separate from the business number's service status: a temporary number can remain active while its transfer is pending. These fields are read-only.
List and detail responses also include read-only confirmed_porting_date: the carrier-confirmed transfer date as YYYY-MM-DD, for example 2026-11-19, or null when no date is known or no request exists. This is a calendar date, not a timestamp or a promised time of day. A stored date remains available after completion; withdrawing the confirmation clears it.
Properties
- Name
id- Type
- string
- Description
Unique identifier for the business number.
- Name
name- Type
- string
- Description
The label your team set for this number, like
SalesorSupport. ASCII letters, numbers, spaces, and-_~!.+only, up to 128 characters (no accented characters).
- Name
number- Type
- string
- Description
The phone number in E.164 format, e.g.
+14155551234.
- Name
number_formatted- Type
- string
- Description
The same number formatted for display, e.g.
+1 415-555-1234.
- Name
status- Type
- string
- Description
provisioning,active,failed, orterminated. Scheduled numbers remain active untiltermination_at.
- Name
termination_at- Type
- string | null
- Description
ISO 8601 date when service ends permanently. Null when no termination is scheduled.
- Name
released_at- Type
- string | null
- Description
ISO 8601 date when the provider release completed. Released numbers are omitted from the list but remain retrievable by ID with their history.
- Name
messaging- Type
- object
- Description
Provider capabilities:
smsandmmseach contain booleancan_sendandcan_receiveflags. Clients can use these directly for messaging availability. Currently only inMobile SMS is supported; MMS capabilities are false.
- Name
timezone- Type
- string
- Description
IANA timezone for the business number, e.g.
CopenhagenorLondon.
- Name
call_flow_revision_ids- Type
- object
- Description
Opaque concurrency tokens keyed by
incoming_call_config,outside_business_hours_config, andno_answer_config. Includes tokens for empty slots even when the corresponding config isnull. Send the slot's token asexpected_revision_idwhen selecting AI routing.
- Name
language- Type
- string
- Description
Language code used for automated messages, e.g.
daoren.
- Name
recording_enabled- Type
- boolean
- Description
Legacy compatibility field.
truewhen either transcription or recording retention is enabled. Setting this field updates bothtranscribe_callsandkeep_call_recording.
- Name
transcribe_calls- Type
- boolean
- Description
Whether calls are recorded and transcribed. When
keep_call_recordingis false, the temporary recording is deleted after transcription completes.
- Name
keep_call_recording- Type
- boolean
- Description
Whether the call recording is stored, including when
transcribe_callsis false.
- Name
call_data_retention- Type
- string
- Description
When transcriptions and call recordings are automatically deleted. One of
one_week,one_month,six_months,one_year, ornever. New business numbers default toone_year; numbers that existed when retention policies were introduced default tonever.
- Name
incoming_call_config- Type
- object
- Description
The routing configuration for incoming calls. Contains a
typefield plus type-specific attributes.
- Name
outside_business_hours_config- Type
- object | null
- Description
The routing configuration used outside business hours, or
nullif not set (falls back to incoming call config). Newly created numbers start with a defaultVoicemailConfighere, greeting callers in the number's language; numbers created before this default may still benull.
- Name
no_answer_config- Type
- object | null
- Description
The routing configuration that runs when a call is transferred to employees but nobody answers within the ring timer, or
nullif no fallback is set. Same shape as the other two configs.
- Name
no_answer_timeout_secs- Type
- integer | null
- Description
How long a caller waits for an available employee before the
no_answer_configtakes over.null(or0) means Off: the caller waits until someone answers or they hang up. Allowed values:15,30,60,300,600,1200,1800,2700,3600. Every employee-transfer step queues the same way (in-hours, outside hours, menu branches, and no-answer fallbacks that transfer to employees). Only available employees are rung; callers wait in order. Voicemail and reject after hours never enqueue.
- Name
wait_audio- Type
- string
- Description
What the caller hears while waiting for an employee.
ringtone(default, Nordic ringback) ormusic. Number-level, so a menu that transfers uses the same sound.
- Name
registration_status- Type
- string
- Description
Registration status of the business identity behind the number. One of
not_required,pending,submitted,approved,rejected, orfailed. Where a country regulates the number, we register it to your company's business identity and address, and it moves frompendingtosubmittedtoapproved.not_requiredmeans no registration applies — usually because the number's country does not ask for one, in which case our carrier will not accept a registration even if we offer it. Numbers that did not come from us also reportnot_required.rejectedmeans the carrier reviewed the registration and turned it down.failedmeans we could not submit it at all, usually because the company details we hold are incomplete. Both leave the number reachable but unregistered, and both need someone to act — get in touch if a number stays in either state.
- Name
registration_due_at- Type
- string | null
- Description
ISO 8601 timestamp indicating when the end-user registration must be completed for this number, or
nullif no registration is required. The number remains active during this window.
- Name
business_hours- Type
- array
- Description
Array of 7 objects (one per weekday) defining the opening schedule.
Call flow config types
All three routing slots — incoming_call_config, outside_business_hours_config, and no_answer_config — share the same set of config types:
| Type | Fields |
|---|---|
WelcomeTransferConfig | welcome (string), employee_ids (non-empty array of strings) |
TransferConfig | employee_ids (non-empty array of strings) |
RejectConfig | message (string) |
VoicemailConfig | greeting (string) |
PhoneMenuConfig | welcome (string), menu_options (non-empty array) |
AiAgentConfig | ai_receptionist_id (string), expected_revision_id (string) |
TransferConfig transfers the call to the chosen employees without playing a welcome message — it's WelcomeTransferConfig minus the greeting.
Every generated message (welcome, greeting, message, and each menu option's prompt) is limited to 150 whitespace-separated words and 1,500 characters, excluding leading and trailing whitespace. This is roughly one minute of speech, not an exact audio-duration limit: voice and speaking pace vary. Both limits apply to all three routing configurations and voice previews. Overlong text is rejected with 422 before audio generation; it is never silently truncated.
Transfer configs must select either non-empty employee_ids or a department_id, never both. department_id is a public UUID from the Departments API and works in incoming, outside-hours and no-answer slots. Send employee_ids: [] when replacing employees with a department; send department_id: null when switching back. Without a department, empty employee selection returns 422 and preserves the saved flow. Transfer responses include nullable department_id alongside employee_ids.
Each department has one FIFO queue shared across business numbers, flows and receptionists. Callers inherit waiting and no-answer rules from the number called, and repeated entry into the same department does not reset their queue timestamp or deadline. Receptionist configuration accepts optional department_ids (up to 10 unique account department UUIDs). These grant queue transfers, not employee warm transfers. Existing configurations without department_ids keep their behavior.
Receptionists
AI routing is available only when Phone.inc enables it for your company. Receptionists are company-owned, reusable destinations. Create them independently of business numbers, then select one in any of the three routing slots. The dashboard manages them on the Receptionists page.
Receptionists require Pro regardless of the pro_feature_gates rollout flag. Active, trialing and past-due subscriptions retain Pro access. Free companies see an upgrade prompt; receptionist API and MCP access and AI call execution are unavailable.
AI usage costs $0.29 USD per minute, billed by connected seconds, with phone charges billed separately. Creating a receptionist automatically queues the AI usage item for the company's active USD subscription. Existing receptionists are also checked when subscriptions change. Trial accounts gain the usage item when their subscription becomes active. Billing requires the deployment's STRIPE_AI_METERED_PRICE_ID; calls before the usage item was added are not billed retroactively.
The company flag is ai_call_agents, disabled by default. In production, an administrator must enable AI call agents in the company's feature flags. Development/demo, staging E2E and telephony-preview seeds enable it automatically outside production; production seeds never grant access. Preview uses the same company gate, not an environment bypass. AI_CALL_AGENTS_ENABLED=false remains an emergency environment-wide kill switch; when unset, the company flag decides access. Enabling the flag does not provision an agent or configure external AI credentials.
Disabled companies do not see receptionist navigation, editors or receptionist tools in MCP and the in-app assistant. Direct receptionist endpoints return 404, new AI routing is rejected, and runtime sessions and tool callbacks require the flag too. Existing saved configurations are retained, not deleted. Business-number API responses still identify a saved AiAgentConfig routing type but omit its receptionist ID and configuration while access is disabled. Its expected_revision_id and corresponding call_flow_revision_ids entry are null, so the saved AI revision identifier is not exposed. The dashboard hides the disabled AI editor. Calls attempting a disabled AI destination use the existing failure/fallback path.
| Method | Endpoint | Behavior |
|---|---|---|
GET | /api/v1/receptionists | List the company's receptionists as an array |
GET | /api/v1/receptionists/:id | Read one receptionist |
POST | /api/v1/receptionists | Create with name, configuration and optional language (da or en, default da); publishes the voice agent and returns 201 |
PATCH | /api/v1/receptionists/:id | Update name, language and/or configuration, with required lock_version |
DELETE | /api/v1/receptionists/:id | Delete an unused receptionist; returns 204 |
Receptionist responses contain id, name, language, configuration, lock_version and knowledge_index. Portrait generation and the former /avatar endpoints are unavailable, and responses no longer include avatar. Names contain 1–100 characters. IDs are public UUIDs. All resources and employees are scoped to the authenticated company. Disabled companies and foreign receptionist IDs return 404. Validation errors, stale versions, provider preparation failures and attempts to delete an assigned receptionist return 422.
Saving a receptionist creates and validates its ElevenLabs agent, even before it is assigned to a business number. Selecting it in a call flow reuses that published version without provisioning another agent. Configuration, imported page content or language changes prepare one replacement immutable version shared by all linked flows, then activate it atomically. A failure leaves the saved receptionist and all previous flows unchanged. The receptionist's language applies across numbers; fallback and recording settings remain number-specific. Existing calls keep their captured version, permissions and usage. Renaming does not itself reprovision the voice agent, except when publishing updated system instructions. Existing agents and live sessions remain intact through migration; linked legacy flows converge on one version when the receptionist is next saved.
Enable conversational message taking with configuration.message_taking. It defaults to disabled. For example:
{
"message_taking": {
"enabled": true,
"fields": ["name", "email", "company_name", "reference", "callback_time"]
}
}
The agent asks briefly for selected fields, then saves without requiring a full readback or explicit confirmation. Callers may decline or finish without all details; missing values are stored as null. Email uncertainty never blocks a message: the agent may ask one short clarification but does not repeatedly validate or spell back an address. Spacing in valid email addresses is normalized; uncertain addresses remain in message_details for the team but do not populate a contact's email. reference is an order, booking, or customer reference; callback_time is the caller's preferred time as stated, not a promise. The incoming caller number is used automatically, with no callback-number question. Name, syntactically valid email and company fill only blank contact fields in the same company. Messages appear in the inbox and Voicemails API without a recording and use the existing voicemail email preferences. Disabling the tool revokes new saves on active calls too. Saving a message does not end the conversation or change the number's whole-call recording settings. Updated conversation instructions apply when a receptionist is saved and its agent version is republished; existing calls keep their captured version.
Create a receptionist with this body:
{
"name": "Customer support",
"language": "en",
"configuration": {
"schema_version": 1,
"opening_text": "Hello, you are speaking with our AI assistant. How can I help?",
"knowledge": {
"context": "We repair bicycles and sell spare parts in Copenhagen.",
"urls": ["https://yourbusiness.com/services", "https://yourbusiness.com/returns"],
"questions": [
{ "question": "Where can I park?", "answer": "There is free parking behind our building." }
]
},
"transfer_targets": [
{ "employee_id": "01a00000-0000-7000-8000-000000000002", "description": "Handles order and delivery questions." }
]
}
}
Select the returned ID using AiAgentConfig in any routing endpoint:
{
"type": "AiAgentConfig",
"ai_receptionist_id": "01a00000-0000-7000-8000-000000000003",
"expected_revision_id": "flow:none"
}
Retrieve the current number first and send the slot's token from call_flow_revision_ids as expected_revision_id whenever selecting an AI destination, including when replacing a non-AI destination. Config objects also return this token as expected_revision_id; empty slots have flow:none in call_flow_revision_ids while the config remains null. Do not construct the token or send null. A missing or stale token returns 422, including if the flow changes while the agent is being prepared. The returned AI slot also includes ai_receptionist_id and its immutable ai_configuration snapshot. The MCP catalog exposes receptionist CRUD and the same routing selection fields.
For compatibility, routing endpoints still accept inline ai_configuration instead of ai_receptionist_id. This creates a separate named receptionist for that flow rather than modifying a shared receptionist. Do not send both fields. Existing AI flows are migrated to named receptionists without changing their active revision.
Business knowledge and opening hours
The optional configuration.knowledge object is supported by the dashboard, REST API, MCP and the in-app assistant. It contains optional context (up to 5,000 characters), website_url (one website for automatic crawling), urls (up to five unique exact-page URLs), and questions (up to twenty objects with a nonblank question of up to 300 characters and answer of up to 2,000 characters). Configuration updates replace the configuration object: retrieve it first and preserve other fields. Omit knowledge for existing behavior, or send an empty object to clear it. Dynamic-variable templates are not allowed in employee-entered knowledge.
Each save fetches the exact urls and snapshots their readable text into the immutable agent version. Save again to refresh these imported pages; unchanged page text reuses the version. These exact-page imports do not execute JavaScript or crawl links. URLs must use public HTTPS on port 443 without credentials, query strings or fragments. Requests reject redirects, private/reserved DNS addresses and compressed responses; connections are pinned to verified public addresses. Each page has a five-second timeout, 256 KiB response limit and 10,000-character text limit. The complete prompt knowledge snapshot, including JSON structure, is limited to 40,000 characters. An unreadable, oversized or unavailable exact page rejects the save with 422, preserving the published agent and linked flows.
Context, Q&As and exact-page imports are encrypted with the receptionist configuration and revision snapshot, redacted from request logs and supplied as bounded reference text in the agent prompt. Q&As take priority over context and website content. All imported content remains untrusted: it cannot grant tool permissions or override Phone.inc's instructions. Do not include secrets or unnecessary personal data. Knowledge increases the model's context and may increase provider usage. Existing calls keep their prior prompt knowledge snapshot.
Automatically indexed website
Set configuration.knowledge.website_url to a public HTTPS URL without credentials, query or fragment. Saving queues a Cloudflare Browser Run crawl with JavaScript rendering, sitemap and link discovery, limited to 100 pages on the configured hostname. A verified HTTPS redirect between that host and its www alias is accepted, with source links normalized to the redirected hostname. Redirect verification checks public DNS addresses and pins the connection to a verified address. External sites, other subdomains, account/cart/checkout/login paths and query-string URLs are excluded. Robots and content-use restrictions apply; bot protection may prevent importing a site. This is a bounded crawl, not a guarantee of complete website coverage. Existing urls never silently opt into crawling.
Public website text and document IDs are cached as unencrypted JSON in Rails. Source URLs and crawl identifiers remain encrypted. Text is chunked into an isolated turbopuffer namespace per receptionist, separate from private call/contact search. Up to 100,000 characters per page and 4 MiB of cached page data are accepted. Only changed content is re-embedded. A complete index is published atomically; partial writes are never searchable. Pages confirmed as HTTP 404/410 or disallowed are removed. Missing crawl records are not proof of deletion. Temporary errors preserve the last successful index. Removing the website revokes retrieval immediately and queues external index deletion. Changing the website does not serve the old site's index while the new import is pending.
Successful imports refresh after 24 hours, checked every 15 minutes. Failures retry with exponential backoff from 15 minutes to 24 hours; imports time out locally after 30 minutes. GET /api/v1/receptionists/:id/knowledge returns { "knowledge_index": null } without a configured website, otherwise an object with status (queued, crawling, ready, failed), page_count, last_updated_at, next_refresh_at and retry_at. Timestamps are ISO 8601 or null. Receptionist responses also contain knowledge_index. POST to the same path queues a manual refresh and returns 202 with this object; no website returns 422, and requests within five minutes of the previous request return 429. A request during an active import reuses it and returns 202. Both endpoints are tenant-scoped and available through MCP and the in-app assistant.
Agents published with a website expose phone_inc_knowledge_search, a read-only tool accepting only a query of 1–500 characters. The authenticated session determines the company and receptionist. It returns at most three source-linked passages within an 8 KiB result budget, or an explicit unavailable response on failure. The current index is read on every search, so successful background refreshes reach active calls without republishing voice agents. Removing or changing the website revokes the old source even on active calls. Searches use the existing encrypted audit trail. Retrieved content and search relevance are not authority; agents must not obey page instructions or invent answers from irrelevant results. Opening hours still come from the live business-hours tool.
Operators must configure CLOUDFLARE_BROWSER_RUN_ACCOUNT_ID, CLOUDFLARE_BROWSER_RUN_API_TOKEN (Browser Run Edit permission), and the existing TURBOPUFFER_API_KEY/region configuration in the backend and job worker. No customer credentials or browser cookies are forwarded. Cloudflare retains crawl results for 14 days; indexed public website text is also sent to turbopuffer's configured embedding provider. Review these processors and content permissions before enabling website imports. Crawling, embeddings and retrieval incur provider costs.
Every newly published agent includes phone_inc_business_hours. This read-only tool takes no model-supplied arguments and reads the business number from the authenticated call session, so one receptionist can serve numbers with different hours. It returns the number's public ID, timezone, current local timestamp, whether hours are configured, the current open/closed result and a seven-day schedule. Closing time 24:00 means the end of the day. Without any configured hours, open-now is null (unknown), not closed. Configured schedules treat missing weekdays as closed. Hours are live on each invocation and use the same tenant isolation and tool audit path. Opening hours take priority over saved website hours; they are not employee availability and do not include holiday exceptions. Older published agents gain the tool when republished by saving changed receptionist settings.
Newly published agents also include phone_inc_last_conversation. It accepts no arguments: Rails fixes the company and exact incoming caller number from the authenticated session. It returns the latest earlier answered call that is now completed, across the company's business numbers, including outbound callbacks. The result contains the call ID, start time, direction, recorded employee participants and saved summary, not transcripts, recordings, voicemail or SMS. Missed and active calls are excluded. Failed transfer targets are not added as participants. A missing summary is null; the tool does not substitute an older conversation. Summaries are stripped of HTML and limited to 2,000 characters, with summary_truncated indicating incomplete text. An unidentified caller returns unavailable; no matching call returns not_found.
This limited history lookup uses caller ID without verifying identity. Spoofed, shared or reassigned numbers can therefore expose another person's previous summary to the AI provider. The agent is instructed to use it when the caller refers to their last call, treat it as untrusted data, and not recite private details unprompted; these instructions are not an identity-verification boundary. Historical participants do not grant transfer permission. Lookups use the existing independently retained encrypted tool audit trail. Saving a receptionist republishes its agent with the new tool; existing calls keep their version. This is an internal live-call tool, not a new public API or MCP endpoint; authenticated account tools already expose calls separately.
Receptionist integration access
Receptionists no longer support generic remote MCP-server connections. The former nested mcp_servers endpoints and their four management tools have been removed. Saved legacy grants are excluded from receptionist configuration responses and discarded on the next save. Remote MCP execution is denied even for previously published agents, active call snapshots and cached tool results; actions already dispatched before rollout cannot be undone. Saving a receptionist republishes its agent without remote MCP tools. Historical call and revision records are preserved.
Receptionist integrations are also unavailable. Non-empty configuration.integrations grants are rejected; legacy empty arrays are accepted but omitted from responses. Saved grants cannot fetch caller context or execute integration tools, including on existing calls or through cached results. Saving republishes the agent without integration tools. Company-wide integrations and Phone.inc's authenticated public MCP API remain unchanged.
The opening text is 1–1000 characters, without dynamic-variable templates. It changes only the first spoken message; Phone.inc controls the instructions, model, and voice. Your company is responsible for any required disclosure. Employees in an eligible company may configure an agent. Employee IDs must belong to the authenticated company. Each configuration permits at most ten transfer targets; routing descriptions are 1–300 characters.
Phone.inc supplies the selected employees' names alongside their IDs and routing descriptions, so callers can ask for a person by first or full name. The agent is instructed to clarify ambiguous names. Names come from employee records, not configuration arguments, and are captured when publishing an agent version. Reselecting a receptionist only reuses its published version; changing transfer targets or their descriptions publishes a refreshed directory.
The agent can check live availability for those selected employees: available, on another call, do not disturb, ringing, offline, or unknown. It is instructed to check when a caller asks for someone and before offering a transfer, explain unavailability, and offer an alternative or a message. It does not receive details about other callers. AI transfers respect DND and recheck availability after preparing the private introduction, immediately before requesting ringing. Deliberate human-to-human transfers retain their existing DND policy.
Saving first prepares an immutable ElevenLabs agent and encrypted SIP connection, then atomically activates the revision. A preparation or persistence failure leaves the previous flow active. Current calls keep their captured configuration, but cannot execute removed integration tools.
Phone.inc does not impose a per-company daily start limit, simultaneous AI call limit or per-call tool-operation cap. Each AI session is limited to ten minutes. Calls exceeding that limit use the existing fallback. Media or connection failure runs no-answer once; an AI fallback cannot loop back to itself. Warm transfers contact only selected employees, never repeat a target, and return to the caller between attempts. When transfers are exhausted, the receptionist can offer a written message only if message taking is enabled. Ordinary call-flow voicemail remains a separate recording action.
AI audio and transcription follow the number's existing recording and retention settings. ElevenLabs conversation recording and transcript retention are disabled. Tool audits are retained independently of conversational recording and are returned as ai_tools on the call model.
Phone menu options
PhoneMenuConfig plays its welcome greeting, then waits for the caller to press a single digit. Each entry in menu_options maps one digit to an action:
| Field | Type | Description |
|---|---|---|
digit | string | A single key, "1" through "9" only ("0" is rejected). Must be unique within the menu. |
action_type | string | What pressing the digit does (see below). |
prompt | string | Message played before the action runs. Required when action_type is WelcomeTransferConfig, VoicemailConfig, or PlayMessageConfig. |
prompt_recorded | boolean | Read only. true when the prompt is a recording made in the dashboard, in which case prompt is an empty string. |
employee_ids | array of strings | Employee transfer targets. For either transfer action, select non-empty employee_ids or department_id, never both. |
department_id | string or null | Department public UUID for TransferConfig or WelcomeTransferConfig. Callers join its shared queue. Send employee_ids: [] when selecting a department, or department_id: null when switching back to employees. |
action_type is one of:
action_type | What happens when the caller presses the digit |
|---|---|
TransferConfig | Transfer straight to employee_ids. |
WelcomeTransferConfig | Play prompt, then transfer to employee_ids. |
VoicemailConfig | Play prompt, then record a voicemail. |
PlayMessageConfig | Play prompt, then hang up. |
A menu needs at least one option, and every option's digit must be unique — duplicates or an empty menu_options array are rejected with a 422. On read, the response echoes each option's digit, action_type, prompt (when set), prompt_audio_url (generated audio), employee_ids (resolved to public ids), and nullable department_id. Department menu targets work in incoming, outside-hours, and no-answer menus, using the number's waiting and no-answer settings.
On read, every config that plays spoken text also returns the URL of its generated audio (or null while generation is pending): welcome_audio_url on WelcomeTransferConfig and PhoneMenuConfig, message_audio_url on RejectConfig, and greeting_audio_url on VoicemailConfig. Audio regenerates automatically whenever the text changes. A greeting can also be a recording made in the dashboard: the matching welcome_recorded, message_recorded, greeting_recorded, or prompt_recorded flag is true, the text is an empty string, and the audio URL points at the recording. Recordings are not regenerated when the number's voice changes. Sending new text for that field replaces the recording with generated audio, and the flag turns false. Recordings cannot be created through the API. To hear a text before saving it, use voice previews.
Send { "type": null } to clear the outside_business_hours_config or no_answer_config slot entirely. The incoming_call_config slot can't be cleared.
List all business numbers
Returns every business number on the authenticated employee's company. There's no pagination — companies have a small, finite set of business numbers, so the response is a single array.
The list endpoint returns a lean response (id, name, number, number_formatted) plus each number's messaging capabilities, so a client can tell which numbers can send a text without retrieving each one. Use the retrieve endpoint for full settings including routing config and business hours.
Request
curl https://app.phone.inc/api/v1/business_numbers \
-H "X-Api-Key: $PHONE_INC_API_KEY"
Response
{
"business_numbers": [
{
"id": "0193f4a9-7c34-7c00-9e3d-2b2b8a7f1c01",
"name": "Sales",
"number": "+14155551234",
"number_formatted": "+1 415-555-1234",
"messaging": {
"sms": { "can_send": true, "can_receive": true },
"mms": { "can_send": false, "can_receive": false }
}
},
{
"id": "0193f4a9-7c34-7c00-9e3d-2b2b8a7f1c02",
"name": "Support",
"number": "+14155555678",
"number_formatted": "+1 415-555-5678",
"messaging": {
"sms": { "can_send": false, "can_receive": false },
"mms": { "can_send": false, "can_receive": false }
}
}
]
}
Retrieve a business number
Returns the full settings for a single business number, including its incoming call config, outside-hours config, and weekly business hours schedule.
Request
curl https://app.phone.inc/api/v1/business_numbers/0193f4a9-7c34-7c00-9e3d-2b2b8a7f1c01 \
-H "X-Api-Key: $PHONE_INC_API_KEY"
Response
{
"id": "0193f4a9-7c34-7c00-9e3d-2b2b8a7f1c01",
"name": "Sales",
"number": "+14155551234",
"number_formatted": "+1 415-555-1234",
"timezone": "Copenhagen",
"language": "da",
"recording_enabled": false,
"transcribe_calls": false,
"keep_call_recording": false,
"call_data_retention": "never",
"incoming_call_config": {
"type": "PhoneMenuConfig",
"welcome": "Press 1 for sales, 2 to leave a message",
"welcome_recorded": false,
"welcome_audio_url": "https://app.phone.inc/rails/active_storage/blobs/redirect/...",
"menu_options": [
{
"id": 42,
"digit": "1",
"action_type": "TransferConfig",
"prompt": null,
"prompt_recorded": false,
"prompt_audio_url": null,
"employee_ids": ["019daef1-085e-7000-aaaa-000000000001"]
},
{
"id": 43,
"digit": "2",
"action_type": "VoicemailConfig",
"prompt": "Leave a message after the tone",
"prompt_recorded": false,
"prompt_audio_url": "https://app.phone.inc/rails/active_storage/blobs/redirect/...",
"employee_ids": []
}
]
},
"outside_business_hours_config": {
"type": "RejectConfig",
"message": "We are closed, please call back tomorrow."
},
"no_answer_config": {
"type": "VoicemailConfig",
"greeting": "Sorry we missed you — leave a message after the tone."
},
"no_answer_timeout_secs": 30,
"wait_audio": "ringtone",
"registration_status": "approved",
"registration_due_at": null,
"business_hours": [
{ "day_of_week": 0, "day_name": "Monday", "open": true, "opening_at": "09:00", "closing_at": "17:00" },
{ "day_of_week": 1, "day_name": "Tuesday", "open": true, "opening_at": "09:00", "closing_at": "17:00" },
{ "day_of_week": 2, "day_name": "Wednesday", "open": true, "opening_at": "09:00", "closing_at": "17:00" },
{ "day_of_week": 3, "day_name": "Thursday", "open": true, "opening_at": "09:00", "closing_at": "17:00" },
{ "day_of_week": 4, "day_name": "Friday", "open": true, "opening_at": "09:00", "closing_at": "17:00" },
{ "day_of_week": 5, "day_name": "Saturday", "open": false, "opening_at": "09:00", "closing_at": "17:00" },
{ "day_of_week": 6, "day_name": "Sunday", "open": false, "opening_at": "09:00", "closing_at": "17:00" }
]
}
Update a business number
Updates the scalar fields on a business number. Use the dedicated config endpoints below to change call routing or business hours.
Accepted fields
- Name
name- Type
- string
- Description
The display label for this number. ASCII letters, numbers, spaces, and
-_~!.+only, up to 128 characters.
- Name
timezone- Type
- string
- Description
IANA timezone identifier, e.g.
Copenhagen,London,New_York.
- Name
language- Type
- string
- Description
Language code for automated messages:
da,en, etc.
- Name
recording_enabled- Type
- boolean
- Description
Legacy alias that sets both
transcribe_callsandkeep_call_recordingto the supplied value.
- Name
transcribe_calls- Type
- boolean
- Description
Whether to create call transcriptions.
- Name
keep_call_recording- Type
- boolean
- Description
Whether to retain the audio after transcription completes.
- Name
call_data_retention- Type
- string
- Description
Automatic deletion policy for transcriptions and recordings:
one_week,one_month,six_months,one_year, ornever. New business numbers default toone_year.
Request
curl -X PATCH https://app.phone.inc/api/v1/business_numbers/0193f4a9-7c34-7c00-9e3d-2b2b8a7f1c01 \
-H "X-Api-Key: $PHONE_INC_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "Sales Hotline", "timezone": "London"}'
Response
{
"id": "0193f4a9-7c34-7c00-9e3d-2b2b8a7f1c01",
"name": "Sales Hotline",
"number": "+14155551234",
"number_formatted": "+1 415-555-1234",
"timezone": "London",
"language": "da",
"recording_enabled": false,
"transcribe_calls": false,
"keep_call_recording": false,
"call_data_retention": "never",
"incoming_call_config": { "..." },
"outside_business_hours_config": null,
"no_answer_config": null,
"no_answer_timeout_secs": null,
"business_hours": [ "..." ]
}
Replace incoming call config
Replaces the routing configuration used when a call comes in during business hours. Send the desired type and its required fields. The full business number (with updated config) is returned.
Required fields by type
| Type | Fields |
|---|---|
WelcomeTransferConfig | welcome, employee_ids (at least one id); optional welcome_audio_preview_id |
TransferConfig | employee_ids (at least one id) |
RejectConfig | message; optional message_audio_preview_id |
VoicemailConfig | greeting; optional greeting_audio_preview_id |
PhoneMenuConfig | welcome, menu_options (at least one option); optional welcome_audio_preview_id |
Request
curl -X PUT https://app.phone.inc/api/v1/business_numbers/0193f4a9-7c34-7c00-9e3d-2b2b8a7f1c01/incoming_call_config \
-H "X-Api-Key: $PHONE_INC_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "WelcomeTransferConfig",
"welcome": "Thanks for calling",
"employee_ids": ["019daef1-085e-7000-aaaa-000000000001", "019daef1-085e-7000-aaaa-000000000002"]
}'
Response
{
"id": "0193f4a9-7c34-7c00-9e3d-2b2b8a7f1c01",
"name": "Sales",
"number": "+14155551234",
"number_formatted": "+1 415-555-1234",
"timezone": "Copenhagen",
"language": "da",
"recording_enabled": false,
"transcribe_calls": false,
"keep_call_recording": false,
"call_data_retention": "never",
"incoming_call_config": {
"type": "WelcomeTransferConfig",
"welcome": "Thanks for calling",
"employee_ids": ["019daef1-085e-7000-aaaa-000000000001", "019daef1-085e-7000-aaaa-000000000002"]
},
"outside_business_hours_config": null,
"no_answer_config": null,
"no_answer_timeout_secs": null,
"business_hours": [ "..." ]
}
To set a phone menu instead, send type: "PhoneMenuConfig" with a menu_options array:
Phone menu example
curl -X PUT https://app.phone.inc/api/v1/business_numbers/0193f4a9-7c34-7c00-9e3d-2b2b8a7f1c01/incoming_call_config \
-H "X-Api-Key: $PHONE_INC_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "PhoneMenuConfig",
"welcome": "Press 1 for sales, 2 to leave a message",
"menu_options": [
{ "digit": "1", "action_type": "TransferConfig", "employee_ids": ["019daef1-085e-7000-aaaa-000000000001"] },
{ "digit": "2", "action_type": "VoicemailConfig", "prompt": "Leave a message after the tone" }
]
}'
Response
{
"id": "0193f4a9-7c34-7c00-9e3d-2b2b8a7f1c01",
"name": "Sales",
"number": "+14155551234",
"number_formatted": "+1 415-555-1234",
"timezone": "Copenhagen",
"language": "da",
"recording_enabled": false,
"transcribe_calls": false,
"keep_call_recording": false,
"call_data_retention": "never",
"incoming_call_config": {
"type": "PhoneMenuConfig",
"welcome": "Press 1 for sales, 2 to leave a message",
"welcome_recorded": false,
"welcome_audio_url": "https://app.phone.inc/rails/active_storage/blobs/redirect/...",
"menu_options": [
{
"id": 42,
"digit": "1",
"action_type": "TransferConfig",
"prompt": null,
"prompt_recorded": false,
"prompt_audio_url": null,
"employee_ids": ["019daef1-085e-7000-aaaa-000000000001"]
},
{
"id": 43,
"digit": "2",
"action_type": "VoicemailConfig",
"prompt": "Leave a message after the tone",
"prompt_recorded": false,
"prompt_audio_url": "https://app.phone.inc/rails/active_storage/blobs/redirect/...",
"employee_ids": []
}
]
},
"outside_business_hours_config": null,
"no_answer_config": null,
"no_answer_timeout_secs": null,
"business_hours": [ "..." ]
}
Replace outside-hours config
Replaces the routing configuration used when a call comes in outside business hours. You can also update the business hours schedule in the same request by including the business_hours array. Only business_hours is accepted for the schedule; the retired opening_hours request key and response aliases are no longer supported.
Send { "type": null } to clear the outside-hours config entirely — calls will fall through to the regular incoming call config.
Required fields by type
| Type | Fields |
|---|---|
RejectConfig | message; optional message_audio_preview_id |
WelcomeTransferConfig | welcome, employee_ids (at least one id); optional welcome_audio_preview_id |
TransferConfig | employee_ids (at least one id) |
VoicemailConfig | greeting; optional greeting_audio_preview_id |
PhoneMenuConfig | welcome, menu_options (at least one option); optional welcome_audio_preview_id |
Business hours object
- Name
day_of_week- Type
- integer
- Description
Day index: 0 = Monday, 6 = Sunday.
- Name
open- Type
- boolean
- Description
Whether the line is open on this day.
- Name
opening_at- Type
- string
- Description
Opening time in
HH:MMformat (24-hour).
- Name
closing_at- Type
- string
- Description
Closing time in
HH:MMformat. Use24:00for end of day.
Request
curl -X PUT https://app.phone.inc/api/v1/business_numbers/0193f4a9-7c34-7c00-9e3d-2b2b8a7f1c01/outside_business_hours_config \
-H "X-Api-Key: $PHONE_INC_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "RejectConfig",
"message": "We are closed, please call back tomorrow.",
"business_hours": [
{ "day_of_week": 0, "open": true, "opening_at": "09:00", "closing_at": "17:00" },
{ "day_of_week": 1, "open": true, "opening_at": "09:00", "closing_at": "17:00" },
{ "day_of_week": 2, "open": true, "opening_at": "09:00", "closing_at": "17:00" },
{ "day_of_week": 3, "open": true, "opening_at": "09:00", "closing_at": "17:00" },
{ "day_of_week": 4, "open": true, "opening_at": "09:00", "closing_at": "17:00" },
{ "day_of_week": 5, "open": false, "opening_at": "09:00", "closing_at": "17:00" },
{ "day_of_week": 6, "open": false, "opening_at": "09:00", "closing_at": "17:00" }
]
}'
Response
{
"id": "0193f4a9-7c34-7c00-9e3d-2b2b8a7f1c01",
"name": "Sales",
"number": "+14155551234",
"number_formatted": "+1 415-555-1234",
"timezone": "Copenhagen",
"language": "da",
"recording_enabled": false,
"transcribe_calls": false,
"keep_call_recording": false,
"call_data_retention": "never",
"incoming_call_config": { "..." },
"outside_business_hours_config": {
"type": "RejectConfig",
"message": "We are closed, please call back tomorrow."
},
"no_answer_config": null,
"no_answer_timeout_secs": null,
"business_hours": [
{ "day_of_week": 0, "day_name": "Monday", "open": true, "opening_at": "09:00", "closing_at": "17:00" },
{ "day_of_week": 1, "day_name": "Tuesday", "open": true, "opening_at": "09:00", "closing_at": "17:00" },
{ "day_of_week": 2, "day_name": "Wednesday", "open": true, "opening_at": "09:00", "closing_at": "17:00" },
{ "day_of_week": 3, "day_name": "Thursday", "open": true, "opening_at": "09:00", "closing_at": "17:00" },
{ "day_of_week": 4, "day_name": "Friday", "open": true, "opening_at": "09:00", "closing_at": "17:00" },
{ "day_of_week": 5, "day_name": "Saturday", "open": false, "opening_at": "09:00", "closing_at": "17:00" },
{ "day_of_week": 6, "day_name": "Sunday", "open": false, "opening_at": "09:00", "closing_at": "17:00" }
]
}
Replace no-answer config
Sets the flow that runs when a call is transferred to employees but nobody answers within the ring timer. Send the desired type, its required fields, and timeout_secs to arm the timer.
timeout_secs controls both the ring duration and whether the feature is on. Pass 15, 30, 60, 300, 600, 1200, 1800, 2700, or 3600. Send "", 0, or null to turn it off — calls then ring until they end naturally, exactly as before. Any other value is rejected with a 422.
Send { "type": null } to clear the no-answer flow.
Don't put employees in this flow's WelcomeTransferConfig or TransferConfig and expect another timeout — the no-answer transfer rings without a timer, so it never loops back into itself.
Required fields by type
| Type | Fields |
|---|---|
WelcomeTransferConfig | welcome, employee_ids (at least one id); optional welcome_audio_preview_id |
TransferConfig | employee_ids (at least one id) |
RejectConfig | message; optional message_audio_preview_id |
VoicemailConfig | greeting; optional greeting_audio_preview_id |
PhoneMenuConfig | welcome, menu_options (at least one option); optional welcome_audio_preview_id |
Accepted fields
- Name
type- Type
- string | null
- Description
One of the call flow config types, or
nullto clear the slot.
- Name
timeout_secs- Type
- integer | null
- Description
Ring timer in seconds:
15,30,60,300,600,1200,1800,2700, or3600.0,null, or a blank string ("", coerced to null server-side) turns the no-answer flow off.
Request
curl -X PUT https://app.phone.inc/api/v1/business_numbers/0193f4a9-7c34-7c00-9e3d-2b2b8a7f1c01/no_answer_config \
-H "X-Api-Key: $PHONE_INC_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "VoicemailConfig",
"greeting": "Sorry we missed you — leave a message after the tone.",
"timeout_secs": 30
}'
Response
{
"id": "0193f4a9-7c34-7c00-9e3d-2b2b8a7f1c01",
"name": "Sales",
"number": "+14155551234",
"number_formatted": "+1 415-555-1234",
"timezone": "Copenhagen",
"language": "da",
"recording_enabled": false,
"transcribe_calls": false,
"keep_call_recording": false,
"call_data_retention": "never",
"incoming_call_config": { "..." },
"outside_business_hours_config": null,
"no_answer_config": {
"type": "VoicemailConfig",
"greeting": "Sorry we missed you — leave a message after the tone."
},
"no_answer_timeout_secs": 30,
"business_hours": [ "..." ]
}
Generate a voice preview
Generates a text-to-speech preview of text in the number's voice and language, so you can play a greeting before saving it. Returns a playable audio_url and the preview's signed id.
To reuse the exact preview when saving incoming, outside-business-hours, or no-answer routing, send its signed id as welcome_audio_preview_id for a welcome/menu, message_audio_preview_id for a rejection, or greeting_audio_preview_id for voicemail. The preview must be unused and match the number, audio kind, and text. Generate a separate preview for each routing slot. An omitted or nonmatching preview uses normal speech generation. Unused previews are cleaned up automatically.
Rate limited to 30 previews per minute per company. Exceeding it returns a 429.
Required fields
- Name
kind- Type
- string
- Description
Which field the text belongs to:
welcome,greeting,message, orprompt. Anything else is rejected with a422and codeinvalid_kind.
- Name
text- Type
- string
- Description
The text to speak, up to 150 whitespace-separated words and 1,500 characters. Blank text is rejected with a
422and codeblank_text. Exceeding either limit returns422with codetext_too_long, without calling the synthesis service.
Errors
Voice generation depends on an upstream synthesis service. Failures there (timeouts, rate limits, rejected text, missing configuration) raise and return 500, which Sentry captures. Retrying after a moment is the right response. Validation errors stay 422 (invalid_kind, blank_text, text_too_long). Shorten overlong text before retrying.
Request
curl -X POST https://app.phone.inc/api/v1/business_numbers/0193f4a9-7c34-7c00-9e3d-2b2b8a7f1c01/voice_previews \
-H "X-Api-Key: $PHONE_INC_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"kind": "welcome",
"text": "Hi, you have reached Harbour & Co."
}'
Response
{
"id": "eyJfcmFpbHMiOnsiZGF0YSI6...",
"kind": "welcome",
"text": "Hi, you have reached Harbour & Co.",
"audio_url": "https://app.phone.inc/rails/active_storage/blobs/..."
}
Request number porting
Replace an existing business number with your old number. The existing number stays active as a temporary number while our team arranges the carrier transfer. When porting completes, your old number takes over the same business-number ID, routing, and settings. The temporary number is released. Keep your current provider subscription until the transfer completes.
Available on Free without purchasing a second business number. The temporary number must be active, unreleased, and use DIDWW or InMobile, without scheduled termination or any previous porting request (including completed or cancelled requests). DIDWW numbers must have a provisioned DID; any inventory assignment must be assigned to the number and match its provider.
Our team selects DIDWW or InMobile as the destination independently of the temporary-number provider. The business number keeps its current provider until cutover, then switches to the selected destination. A released InMobile temporary number enters inventory quarantine rather than being terminated through a carrier API. Provider selection and carrier submission are internal operations, not customer API parameters.
Returns 201 with the porting request's public id, business_number_id, normalized number_to_port, and initial status of requested. This records a request for our team; it does not immediately submit a transfer to the carrier. Invalid or ineligible requests return 422 with an errors object. Numbers outside your company and released numbers return 404.
Attributes
- Name
number_to_port- Type
- string
- Description
Required. Your old phone number, including its country code. Must match the temporary number's country dial code, differ from the temporary number, and have no open porting request.
- Name
tax_id- Type
- string
- Description
Required for Danish numbers. A valid eight-digit CVR number, optionally prefixed with
DK.
Request
curl -X POST https://app.phone.inc/api/v1/business_numbers/019daef1-085e-73f0-85f6-a71e2d8dd2cc/porting_request \
-H "X-Api-Key: $PHONE_INC_API_KEY" \
-H "Content-Type: application/json" \
-d '{"number_to_port":"+4533123487","tax_id":"46213564"}'
Response
{
"id": "019daef1-085f-7000-8000-a71e2d8dd2cc",
"business_number_id": "019daef1-085e-73f0-85f6-a71e2d8dd2cc",
"number_to_port": "+4533123487",
"status": "requested"
}
Terminate a business number
Permanently close a number at the end of its current billing period. It stays active until termination_at. You can cancel termination before that deadline. The number cannot be recovered after closure; call history is retained. Obtain explicit confirmation before sending this request.
The number charge is removed from future bills immediately, without prorating or refunding the current period. The free-number credit moves to the oldest remaining, non-terminating active number. Employee charges and the company subscription are unchanged, including when terminating the last number.
Requires an active subscription and an active number without an ongoing port. Returns 422 if these conditions or a future billing period end are unavailable, and 503 if Stripe cannot be updated. Repeated requests return the same termination date.
Required attributes
- Name
confirm- Type
- boolean
- Description
Must be
trueto acknowledge permanent termination.
Request
curl -X POST https://app.phone.inc/api/v1/business_numbers/019daef1-085e-73f0-85f6-a71e2d8dd2cc/termination \
-H "X-Api-Key: $PHONE_INC_API_KEY" \
-H "Content-Type: application/json" \
-d '{"confirm":true}'
Returns the full business-number object, including:
Response fields
{
"id": "019daef1-085e-73f0-85f6-a71e2d8dd2cc",
"status": "active",
"termination_at": "2026-11-01T00:00:00Z",
"released_at": null
}
Cancel a termination
Cancel a scheduled termination before termination_at. The number stays active and resumes normal renewal. No extra charge is prorated for the current period, which was already paid. The free-number credit is recalculated across the remaining active numbers, so the oldest eligible number receives the discount.
Returns the full business-number object with termination_at: null. Repeating the request on an active number with no scheduled termination succeeds without changing billing. Previously queued closure jobs will not release the number.
Returns 422 at or after the closure deadline, or when billing cannot be restored automatically. Released numbers return 404. Stripe failures return 503 and leave termination scheduled. Requires an active billing subscription.
No request body is required.
Request
curl -X DELETE https://app.phone.inc/api/v1/business_numbers/019daef1-085e-73f0-85f6-a71e2d8dd2cc/termination \
-H "X-Api-Key: $PHONE_INC_API_KEY"
Returns the full business-number object, including:
Response fields
{
"id": "019daef1-085e-73f0-85f6-a71e2d8dd2cc",
"status": "active",
"termination_at": null,
"released_at": null
}
Send an SMS
Send a message from an active inMobile business number. The optional JSON body field format defaults to sms; only sms is currently supported, and mms or unknown formats return 422 before persistence or provider dispatch. Use /business_numbers/:id/messages; the old /business_numbers/:id/sms_messages sending URL is not exposed. The server derives the sender from the selected number, so clients cannot override it.
The authenticated employee must belong to the company that owns the number. Company API keys are supported only while their creator employee still belongs to that company. Keys without a creator employee cannot send SMS. Missing credentials return 401; missing or mismatched employee membership returns 403. Unknown numbers and numbers belonging to another company return 404.
Required attributes
- Name
business_number_id- Type
- string
- Description
Business number public ID in the URL. Only active inMobile numbers with at most 14 digits can send.
- Name
to- Type
- string
- Description
Recipient in E.164 format, such as
+4523909778. Include the country code. National-format numbers are not accepted.
- Name
text- Type
- string
- Description
SMS text, between 1 and 10,000 characters. Whitespace-only text is rejected. Encoding is automatic: GSM-7 when possible, UCS-2 for Unicode. Longer messages can require multiple chargeable SMS parts.
Response
The number's messaging.sms.can_send capability must be true. Its existing provider handles both voice and messaging. The company's messaging feature flag must be enabled by Phone.inc; it defaults to off. While disabled, message endpoints return 404 and messaging.sms.can_send is false. The message is stored before contacting the provider. 202 Accepted does not mean the recipient received it. The body is a persisted SMS activity item, with a stable Phone.inc ID, employee author, timestamps, and delivery state. A replay returns the current state, which may already be delivered, failed, or unknown.
- Name
id- Type
- string
- Description
- Stable Phone.inc message public ID, shared by history and retries.
- Name
business_number_id- Type
- string
- Description
- Sender business number public ID.
- Name
from- Type
- string
- Description
- Server-selected sender in E.164 format.
- Name
to- Type
- string
- Description
- Recipient in E.164 format.
- Name
status- Type
- string
- Description
- Current delivery state, usually
acceptedafter a new send.
- Name
sms_count- Type
- integer
- Description
- Number of SMS parts reported by the provider.
- Name
encoding- Type
- string
- Description
- Provider-selected
gsm7orucs2encoding.
Errors and retries
Invalid input or an unsupported sender returns 422 with { "errors": { ... } }. Provider validation rejection also returns 422, under errors.base. Unconfigured SMS sending returns 503. Provider HTTP, transport, or response errors return 502; these use { "error": "...", "id": "..." } and omit private provider details. Provider errors after persistence include the stable message ID. Changed input with a reused idempotency key returns 409. New sends and explicit retries share a limit of 30 attempts per business number per rolling minute (429, Retry-After: 60); safe replays do not consume another attempt.
Sending an SMS has a real, chargeable side effect. Supply Idempotency-Key or the JSON field idempotency_key (1–128 nonblank characters); the header wins when both are supplied. Reuse the same key only to replay identical recipient, text, and employee input on the same business number. Without a key, each call creates a new message. A timeout or 502 may mean acceptance is unknown: inspect the persisted record rather than sending again with another key. Only definitively failed messages support the explicit retry endpoint.
Provider blacklist protection remains enabled. Scheduling, bulk recipients, custom sender IDs, and caller-supplied callback URLs are not exposed.
Request
curl -X POST https://app.phone.inc/api/v1/business_numbers/0193f4a9-7c34-7c00-9e3d-2b2b8a7f1c01/messages \
-H "X-Api-Key: $PHONE_INC_API_KEY" \
-H "Content-Type: application/json" \
-d '{"to":"+4523909778","text":"Your appointment is confirmed.","idempotency_key":"appointment-1"}'
Response
{
"id": "019daef1-085e-73f0-85f6-a71e2d8dd2cc",
"type": "message",
"format": "sms",
"created_at": "2026-10-06T10:41:00.000000Z",
"business_number_name": "Sales",
"seen_at": "2026-10-06T10:41:00.000000Z",
"direction": "outbound",
"text": "Your appointment is confirmed.",
"author": { "type": "employee", "id": "019daef1-085e-73f0-85f6-a71e2d8dd2cd", "name": "Lea" },
"received_at": null,
"delivered_at": null,
"failure_code": null,
"can_retry": false,
"business_number_id": "0193f4a9-7c34-7c00-9e3d-2b2b8a7f1c01",
"from": "+4592450113",
"to": "+4523909778",
"status": "accepted",
"sms_count": 1,
"encoding": "gsm7"
}