Line-scoped keys: a line-scoped key gets 403 forbidden unless line_id is in its list.
Test keys: a send with an isnap_test_ account key reaches a real recipient and counts against the same sending limits: see Test keys.
Idempotency-Key: honored. The key belongs to the line, and a repeat returns the message already created, as it is now. The checks on the line, and on the trial with a trial key, run before the key is read: a refusal of a repeat does not mean that the first request was refused. See Retrying a send.
Events:message.queued, or message.scheduled for a held message, then the events of Following a message.
Personal data: the message carries the handles in to and from, the text in body, the attachment file names and your metadata. Request it only when needed, do not copy it into logs, tickets or other tools, and refer to a contact by an id of your own.
Quiet hours:ignore_quiet_hours: true lets the message leave during the quiet hours of the line. Use it for a recipient of your own, such as your own phone number: the API does not check the recipient. The sending limits, the spacing and the order per recipient still apply, and a shared line ignores it. See Sending during quiet hours.
Response:202 means that iSnap accepted the message, never that it was sent. status is queued, or scheduled when iSnap holds the message: see The response and Held messages. queue_info is filled only in this response.
Headers: with an account API key, the 202 carries X-iSnap-Quota-Remaining and X-iSnap-Quota-Resets-At: see Headers on a send.
Rate limit: this operation and GET /v1/messages share the message-operations limit, 60 requests per rolling 60 seconds per network address, in addition to the request-rate limit: see Rate limits.
Errors
Status
error.code
When
400
validation_failed
A required field is missing, a field is too long, channel is not auto, more than 10 attachments, an unknown effect, metadata over 20 keys or 8,192 bytes, or neither body nor an attachment.
400
bad_request
to is not a valid phone number, or is an email address.
400
line_not_active
The line is neither active nor suspended.
403
forbidden
The request uses a line-scoped key, and line_id is not in its list.
403
line_suspended
The line is suspended.
403
outbound_first_forbidden
The line is inbound-only, and the recipient never wrote to it.
404
not_found
The line does not exist or is not yours, reply_to_message_id is unknown or was deleted, or an attachment id is not one your account created.
409
idempotency_conflict
The Idempotency-Key was already used on this line with other content.
An unexpected error. It includes an Idempotency-Key longer than 255 characters, and the losing one of two simultaneous requests with the same new key: retry it with that key.
503
line_pool_exhausted
Shared line: no number can take a new contact.
503
quota_state_unavailable
Shared line: iSnap could not read the state of the line. Retry.
With a trial key
A send with a trial key can also return these refusals:
Status
error.code
When
400
bad_request
to is not a valid phone number. An email address is refused.
402
trial_needs_inbound
The trial is dormant: see Unanswered-send limit. A repeat of the send that made the trial dormant returns it too: iSnap accepted that earlier message, which you read with GET /v1/messages.
403
trial_scope_violation
line_id or to is outside the trial, or reply_to_message_id names a message of another trial.
403
line_not_active
The pool line is not active.
404
not_found
reply_to_message_id is unknown.
409
idempotency_conflict
The Idempotency-Key was already used on the pool line with another body.
422
trial_attachments_unsupported
The request carries attachments.
422
reply_to_cross_line
reply_to_message_id names a message on another line.
The errors that every operation shares are in Errors.
Authorizations
Authorization
string
header
required
An API key created in the iSnap dashboard, or a trial key, sent as Authorization: Bearer <key>. An API key starts with isnap_live_ or isnap_test_; both act on the same account, lines and billing. A trial key acts on its trial only.
Body
application/json
The message to send. It needs a non-empty body or at least one attachment.
line_id
string
required
The line that sends the message: line_ followed by 25 letters or digits. It must be a line of your account whose status is active.
Pattern: ^line_[0-9A-Za-z]{25}$
to
string
required
Recipient phone number, 1 to 30 characters. E.164 is preferred; a number without a country code is read as a US number. iSnap normalizes it to E.164 and returns the normalized value in to of the message. An email address or an Apple ID returns 400 bad_request, even when POST /v1/lookup reports that it can receive iMessage. One request has one recipient: there is no group send.
Required string length: 1 - 30
body
string
Message text, at most 5,000 characters. Required unless attachments is not empty. With a trial key, iSnap appends the footer of the trial to the text, after a blank line: the body of the message returned and the message the recipient receives both carry it.
Maximum string length: 5000
channel
enum<string>
default:auto
Only auto is accepted, and it is the default: the line's device chooses the service.
Available options:
auto
attachments
string[]
Ordered list of at most 10 attachment ids (att_ followed by 25 letters or digits). On an iMessage line, the line's device sends only the first attachment and still reports the message sent: send one attachment per message. Create each attachment with POST /v1/attachments, upload the file, and wait until GET /v1/attachments/{id} shows status: ready: an attachment that is not ready when the line's device takes the message is left out of the message, without an error. An id that does not exist, that belongs to another account, or that names a file received on an inbound message returns 404 not_found. Do not repeat an id: a request that lists the same id twice returns 500 internal_error, and nothing is sent. A request with no body and exactly one attachment whose content type starts with audio/ is sent as a voice note, with kind: voice.
Maximum array length: 10
Attachment id: att_ followed by 25 letters or digits.
Pattern: ^att_[0-9A-Za-z]{25}$
effect
object
iMessage effect of the message: a bubble effect or a screen effect. iSnap passes it to the line's device and does not report whether the recipient saw it.
Option 1
Option 2
Show child attributes
reply_to_message_id
string
Id of the message this message replies to (msg_ followed by 25 letters or digits): a message on the same line, received or sent. An id that does not exist returns 404 not_found, including the id of a message iSnap has deleted. A message on another line, of your account or of another account, returns 422 reply_to_cross_line.
Pattern: ^msg_[0-9A-Za-z]{25}$
use_typing_indicator
boolean
Whether the line's device shows the typing indicator to the recipient before it sends this message. When omitted, the line's default_use_typing_indicator applies, which is true unless you changed it. Always false on a line that is not an iMessage line. The response returns the value in effect.
ignore_quiet_hours
boolean
true to let this message leave during the quiet hours of the line: the hours whose weight is 0 in the line's activity_curve, counted in the recipient's local time. Use it for a recipient of your own, such as an alert to your own phone number. The default is false. The message still waits for the sending limits of the line, for the spacing between messages and behind an earlier message to the same recipient that iSnap holds. No effect on a shared line. The response returns the value in effect.
metadata
object
Your own keys and values for this message: at most 20 keys and 8,192 bytes once serialized as JSON, otherwise the API returns 400 validation_failed. iSnap stores the object as sent and returns it in metadata of the message, in every response and in the events of the message.
Show child attributes
Example:
{ "crm_account_id": "acc_123" }
Response
The message, accepted as queued or scheduled. iSnap holds a message when a sending limit of the line is reached and quota_overflow_behavior of the line is queue, the default. A message is also held by the spacing between messages of the line, by quiet hours, and behind an earlier message to the same recipient that has not left. A 202 returned to an API key carries two headers: X-iSnap-Quota-Remaining, the number of new contacts the line can still message in the rolling 24 hours, and X-iSnap-Quota-Resets-At, the next midnight UTC. The limits are rolling, so that second header is not the time a full limit frees: read GET /v1/lines/{id}/quota.
success
enum<boolean>
required
Always true on a success response.
Available options:
true
data
object
required
A message sent or received by a line. The response of POST /v1/messages, the reads, the list items, the cancel response and the message field of the message.* events all carry this object. It has no chat id: the chat id is given by GET /v1/chats and by events. It carries personal data: the handles in to and from, the text in body, the file names of attachments, and what you put in metadata. Timestamps are ISO 8601 in UTC.
Show child attributes
trace_id
string
required
Trace id of the request that produced this response: 32 lowercase hexadecimal characters. Quote it when you report a problem to iSnap.
request_id
string
required
Id of the request that produced this response: req_ followed by 25 letters or digits.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"iSnap","description":"Developer documentation for the iSnap API: send and receive iMessage, RCS and SMS from real devices, manage lines, and receive events by webhook.","colors":{"primary":"#09090b","light":"#fafafa","dark":"#09090b"},"logo":{"light":"https://mintcdn.com/isnap/wJQmSVFBFz3YnuZ4/images/logo-light.svg?fit=max\u0026auto=format\u0026n=wJQmSVFBFz3YnuZ4\u0026q=85\u0026s=1208ab10ce8a1de87ddc30bbcaae611d","dark":"https://mintcdn.com/isnap/wJQmSVFBFz3YnuZ4/images/logo-dark.svg?fit=max\u0026auto=format\u0026n=wJQmSVFBFz3YnuZ4\u0026q=85\u0026s=8053b4f5aa88bba68e1dbf236c94e79b","href":"https://isnap.ai"},"favicon":"https://mintcdn.com/isnap/wJQmSVFBFz3YnuZ4/images/favicon.svg?fit=max\u0026auto=format\u0026n=wJQmSVFBFz3YnuZ4\u0026q=85\u0026s=a854eacec4807a19a4104fd0e6b72fd1","api":{"openapi":["api-reference/openapi.json"],"playground":{"display":"simple"}},"appearance":{"default":"light","strict":false},"background":{"color":{"light":"#ffffff","dark":"#09090b"}},"navbar":{"links":[{"href":"https://platform.isnap.ai","label":"Dashboard"}],"primary":{"type":"button","label":"Sign up","href":"https://platform.isnap.ai/signup"}},"search":{"prompt":"Search the iSnap docs..."},"fonts":{"heading":{"family":"Inter"},"body":{"family":"Inter"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"isnap","hasAudioNarration":false,"actualSubdomain":"isnap","customDomains":["docs.isnap.ai"],"gitSource":{"type":"github","owner":"whatsnap","repo":"isnap-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":"","_id":"6b10e7239ffae5051c413bb3"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ad951ec97fabdbdfeb0f9c7","clientVersion":"0.0.4458","searchFilterCounts":[{"language":"default","tag":"API reference","count":74},{"language":"default","tag":"Guides","count":20},{"language":"default","tag":"Webhooks","count":19},{"language":"default","tag":"Lines","count":15},{"language":"default","tag":"SDK","count":10},{"language":"default","tag":"Line lifecycle","count":9},{"language":"default","tag":"Webhook subscriptions","count":9},{"language":"default","tag":"Events","count":9},{"language":"default","tag":"Pre-orders","count":7},{"language":"default","tag":"Chats","count":6}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/messages/send-message","slug":"/api-reference/messages/send-message","pageMetadata":{"title":"Send a message","description":"Sends one message to one phone number from one of your lines, and returns it as queued or held.","openapi":"POST /v1/messages","href":"/api-reference/messages/send-message"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Sends one message to one phone number from one of your lines, and returns it as queued or held.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Table}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Credential:`}),` an API key, or a `,_jsx(_components.a,{href:`/authentication#trial-keys`,children:`trial key`}),`, which sends text only, from the trial’s line to the trial’s paired number: see `,_jsx(_components.a,{href:`/guides/trials#send-with-the-trial-key`,children:`Send with the trial key`}),` and `,_jsx(_components.a,{href:`#with-a-trial-key`,children:`With a trial key`}),`. See `,_jsx(_components.a,{href:`/guides/sending-messages#the-send-request`,children:`The send request`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Line-scoped keys:`}),` a `,_jsx(_components.a,{href:`/authentication#line-scoped-keys`,children:`line-scoped key`}),` gets `,_jsx(_components.code,{children:`403 forbidden`}),` unless `,_jsx(_components.code,{children:`line_id`}),` is in its list.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Test keys:`}),` a send with an `,_jsx(_components.code,{children:`isnap_test_`}),` account key reaches a real recipient and counts against the same sending limits: see `,_jsx(_components.a,{href:`/authentication#test-keys`,children:`Test keys`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`Idempotency-Key`}),`:`]}),` honored. The key belongs to the line, and a repeat returns the message already created, as it is now. The checks on the line, and on the trial with a trial key, run before the key is read: a refusal of a repeat does not mean that the first request was refused. See `,_jsx(_components.a,{href:`/guides/sending-messages#retrying-a-send`,children:`Retrying a send`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Events:`}),` `,_jsx(_components.code,{children:`message.queued`}),`, or `,_jsx(_components.code,{children:`message.scheduled`}),` for a held message, then the events of `,_jsx(_components.a,{href:`/guides/sending-messages#following-a-message`,children:`Following a message`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Personal data:`}),` the message carries the handles in `,_jsx(_components.code,{children:`to`}),` and `,_jsx(_components.code,{children:`from`}),`, the text in `,_jsx(_components.code,{children:`body`}),`, the attachment file names and your `,_jsx(_components.code,{children:`metadata`}),`. Request it only when needed, do not copy it into logs, tickets or other tools, and refer to a contact by an id of your own.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Quiet hours:`}),` `,_jsx(_components.code,{children:`ignore_quiet_hours: true`}),` lets the message leave during the quiet hours of the line. Use it for a recipient of your own, such as your own phone number: the API does not check the recipient. The sending limits, the spacing and the order per recipient still apply, and a shared line ignores it. See `,_jsx(_components.a,{href:`/guides/sending-limits#sending-during-quiet-hours`,children:`Sending during quiet hours`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Response:`}),` `,_jsx(_components.code,{children:`202`}),` means that iSnap accepted the message, never that it was sent. `,_jsx(_components.code,{children:`status`}),` is `,_jsx(_components.code,{children:`queued`}),`, or `,_jsx(_components.code,{children:`scheduled`}),` when iSnap holds the message: see `,_jsx(_components.a,{href:`/guides/sending-messages#the-response`,children:`The response`}),` and `,_jsx(_components.a,{href:`/guides/sending-limits#held-messages`,children:`Held messages`}),`. `,_jsx(_components.code,{children:`queue_info`}),` is filled only in this response.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Headers:`}),` with an account API key, the `,_jsx(_components.code,{children:`202`}),` carries `,_jsx(_components.code,{children:`X-iSnap-Quota-Remaining`}),` and `,_jsx(_components.code,{children:`X-iSnap-Quota-Resets-At`}),`: see `,_jsx(_components.a,{href:`/guides/sending-limits#headers-on-a-send`,children:`Headers on a send`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Rate limit:`}),` this operation and `,_jsx(_components.code,{children:`GET /v1/messages`}),` share the message-operations limit, 60 requests per rolling 60 seconds per network address, in addition to the request-rate limit: see `,_jsx(_components.a,{href:`/errors-and-rate-limits#rate-limits`,children:`Rate limits`}),`.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:_jsx(_components.code,{children:`error.code`})}),_jsx(_components.th,{children:`When`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`validation_failed`})}),_jsxs(_components.td,{children:[`A required field is missing, a field is too long, `,_jsx(_components.code,{children:`channel`}),` is not `,_jsx(_components.code,{children:`auto`}),`, more than 10 attachments, an unknown effect, `,_jsx(_components.code,{children:`metadata`}),` over 20 keys or 8,192 bytes, or neither `,_jsx(_components.code,{children:`body`}),` nor an attachment.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`bad_request`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`to`}),` is not a valid phone number, or is an email address.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`line_not_active`})}),_jsxs(_components.td,{children:[`The line is neither `,_jsx(_components.code,{children:`active`}),` nor `,_jsx(_components.code,{children:`suspended`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`forbidden`})}),_jsxs(_components.td,{children:[`The request uses a line-scoped key, and `,_jsx(_components.code,{children:`line_id`}),` is not in its list.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`line_suspended`})}),_jsx(_components.td,{children:`The line is suspended.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`outbound_first_forbidden`})}),_jsx(_components.td,{children:`The line is inbound-only, and the recipient never wrote to it.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`not_found`})}),_jsxs(_components.td,{children:[`The line does not exist or is not yours, `,_jsx(_components.code,{children:`reply_to_message_id`}),` is unknown or was deleted, or an attachment id is not one your account created.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`409`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`idempotency_conflict`})}),_jsxs(_components.td,{children:[`The `,_jsx(_components.code,{children:`Idempotency-Key`}),` was already used on this line with other content.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`reply_to_cross_line`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`reply_to_message_id`}),` is a message of another line.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`429`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`minute_limit_exceeded`}),`, `,_jsx(_components.code,{children:`hourly_limit_exceeded`}),`, `,_jsx(_components.code,{children:`total_message_quota_exceeded`}),`, `,_jsx(_components.code,{children:`new_contact_quota_exceeded`}),`, `,_jsx(_components.code,{children:`known_contact_quota_exceeded`})]}),_jsxs(_components.td,{children:[`A sending limit is reached on a line set to refuse. See `,_jsx(_components.a,{href:`/guides/sending-limits#refusals`,children:`Refusals`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`429`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`queue_full`})}),_jsxs(_components.td,{children:[`The message would be held, and the line holds its maximum. See `,_jsx(_components.a,{href:`/guides/sending-limits#maximum-number-of-held-messages`,children:`Maximum number of held messages`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`500`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`internal_error`})}),_jsxs(_components.td,{children:[`An unexpected error. It includes an `,_jsx(_components.code,{children:`Idempotency-Key`}),` longer than 255 characters, and the losing one of two simultaneous requests with the same new key: retry it with that key.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`503`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`line_pool_exhausted`})}),_jsx(_components.td,{children:`Shared line: no number can take a new contact.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`503`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`quota_state_unavailable`})}),_jsx(_components.td,{children:`Shared line: iSnap could not read the state of the line. Retry.`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`with-a-trial-key`,children:`With a trial key`}),`\n`,_jsxs(_components.p,{children:[`A send with a `,_jsx(_components.a,{href:`/authentication#trial-keys`,children:`trial key`}),` can also return these refusals:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:_jsx(_components.code,{children:`error.code`})}),_jsx(_components.th,{children:`When`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`bad_request`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`to`}),` is not a valid phone number. An email address is refused.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`402`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`trial_needs_inbound`})}),_jsxs(_components.td,{children:[`The trial is `,_jsx(_components.code,{children:`dormant`}),`: see `,_jsx(_components.a,{href:`/guides/trials#unanswered-send-limit`,children:`Unanswered-send limit`}),`. A repeat of the send that made the trial `,_jsx(_components.code,{children:`dormant`}),` returns it too: iSnap accepted that earlier message, which you read with `,_jsx(_components.a,{href:`/api-reference/messages/list-messages`,children:_jsx(_components.code,{children:`GET /v1/messages`})}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`trial_scope_violation`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`line_id`}),` or `,_jsx(_components.code,{children:`to`}),` is outside the trial, or `,_jsx(_components.code,{children:`reply_to_message_id`}),` names a message of another trial.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`line_not_active`})}),_jsxs(_components.td,{children:[`The pool line is not `,_jsx(_components.code,{children:`active`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`not_found`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`reply_to_message_id`}),` is unknown.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`409`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`idempotency_conflict`})}),_jsxs(_components.td,{children:[`The `,_jsx(_components.code,{children:`Idempotency-Key`}),` was already used on the pool line with another body.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`trial_attachments_unsupported`})}),_jsx(_components.td,{children:`The request carries attachments.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`reply_to_cross_line`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`reply_to_message_id`}),` names a message on another line.`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`The errors that every operation shares are in `,_jsx(_components.a,{href:`/errors-and-rate-limits#errors`,children:`Errors`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Send a message","description":"Sends one message to one phone number from one of your lines, and returns it as queued or held.","openapi":"POST /v1/messages","href":"/api-reference/messages/send-message"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Errors","slug":"errors","depth":2,"children":[{"title":"With a trial key","slug":"with-a-trial-key","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Send a message","description":"Sends one message to one phone number from one of your lines, and returns it as queued or held.","security":["e0dfb044-f87b-4d89-93d6-18c93bc61e08"],"requestBody":"f45a4ab9-1f79-4e65-be08-c26be8779fff","responses":{"202":"1320d33a-d17e-421d-a37e-6b8edae517b5","400":"e6a9bc74-5866-482f-a55e-579218f3b06c","401":"2e394025-097c-472a-9ab9-4ebe30d365bc","403":"e4cf9709-2500-4491-92d7-9cae9d346b99","404":"6908e49a-a568-47f7-806d-dc9c1ea08e19","409":"946c6384-6ab0-469f-8b16-cad6a03c5333","422":"db2e2c45-07d1-4ff7-9191-3f2e11a5d2e9","429":"264ca3b3-8127-41ec-b75b-34f12c89ec65","500":"d8d35f42-dc4c-45e3-8450-f562c522ecbc"},"method":"post","type":"path","servers":["13b85773-3d70-47e8-aa94-bbc0de8ddb38"],"path":"/v1/messages","baseUrlOptions":["https://api.isnap.ai"],"title":"Send a message","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"line_id":{"type":"string","pattern":"^line_[0-9A-Za-z]{25}$","description":"The line that sends the message: `line_` followed by 25 letters or digits. It must be a line of your account whose status is `active`.","isRequired":true,"uniqueKey":"line_id","typeLabel":"string"},"to":{"type":"string","minLength":1,"maxLength":30,"description":"Recipient phone number, 1 to 30 characters. E.164 is preferred; a number without a country code is read as a US number. iSnap normalizes it to E.164 and returns the normalized value in `to` of the message. An email address or an Apple ID returns `400 bad_request`, even when `POST /v1/lookup` reports that it can receive iMessage. One request has one recipient: there is no group send.","isRequired":true,"uniqueKey":"to","typeLabel":"string"},"body":{"type":"string","maxLength":5000,"description":"Message text, at most 5,000 characters. Required unless `attachments` is not empty. With a trial key, iSnap appends the footer of the trial to the text, after a blank line: the `body` of the message returned and the message the recipient receives both carry it.","uniqueKey":"body","typeLabel":"string"},"channel":{"type":"string","enum":["auto"],"default":"auto","description":"Only `auto` is accepted, and it is the default: the line's device chooses the service.","uniqueKey":"channel","typeLabel":"enum\u003cstring>"},"attachments":{"type":"array","items":{"type":"string","pattern":"^att_[0-9A-Za-z]{25}$","description":"Attachment id: `att_` followed by 25 letters or digits.","uniqueKey":"attachments.items.[INDEX]","typeLabel":"string"},"maxItems":10,"default":[],"description":"Ordered list of at most 10 attachment ids (`att_` followed by 25 letters or digits). On an iMessage line, the line's device sends only the first attachment and still reports the message `sent`: send one attachment per message. Create each attachment with `POST /v1/attachments`, upload the file, and wait until `GET /v1/attachments/{id}` shows `status: ready`: an attachment that is not `ready` when the line's device takes the message is left out of the message, without an error. An id that does not exist, that belongs to another account, or that names a file received on an inbound message returns `404 not_found`. Do not repeat an id: a request that lists the same id twice returns `500 internal_error`, and nothing is sent. A request with no `body` and exactly one attachment whose content type starts with `audio/` is sent as a voice note, with `kind: voice`.","uniqueKey":"attachments","typeLabel":"string[]"},"effect":{"oneOf":[{"type":"object","description":"iMessage effect of the message: a bubble effect or a screen effect. iSnap passes it to the line's device and does not report whether the recipient saw it.","required":["type","name"],"properties":{"type":{"type":"string","enum":["bubble"],"description":"Always `bubble` for a bubble effect.","isRequired":true,"uniqueKey":"effect.oneOf.0.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","enum":["slam","loud","gentle","invisible"],"description":"Name of the bubble effect.","isRequired":true,"uniqueKey":"effect.oneOf.0.name","typeLabel":"enum\u003cstring>"}},"uniqueKey":"effect.oneOf.0","typeLabel":"object"},{"type":"object","description":"iMessage effect of the message: a bubble effect or a screen effect. iSnap passes it to the line's device and does not report whether the recipient saw it.","required":["type","name"],"properties":{"type":{"type":"string","enum":["screen"],"description":"Always `screen` for a screen effect.","isRequired":true,"uniqueKey":"effect.oneOf.1.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","enum":["confetti","balloons","love","lasers","fireworks","celebration","shooting_star","echo","spotlight"],"description":"Name of the screen effect.","isRequired":true,"uniqueKey":"effect.oneOf.1.name","typeLabel":"enum\u003cstring>"}},"uniqueKey":"effect.oneOf.1","typeLabel":"object"}],"uniqueKey":"effect","typeLabel":"object"},"reply_to_message_id":{"type":"string","pattern":"^msg_[0-9A-Za-z]{25}$","description":"Id of the message this message replies to (`msg_` followed by 25 letters or digits): a message on the same line, received or sent. An id that does not exist returns `404 not_found`, including the id of a message iSnap has deleted. A message on another line, of your account or of another account, returns `422 reply_to_cross_line`.","uniqueKey":"reply_to_message_id","typeLabel":"string"},"use_typing_indicator":{"type":"boolean","description":"Whether the line's device shows the typing indicator to the recipient before it sends this message. When omitted, the line's `default_use_typing_indicator` applies, which is `true` unless you changed it. Always `false` on a line that is not an iMessage line. The response returns the value in effect.","uniqueKey":"use_typing_indicator","typeLabel":"boolean"},"ignore_quiet_hours":{"type":"boolean","description":"`true` to let this message leave during the quiet hours of the line: the hours whose weight is 0 in the line's `activity_curve`, counted in the recipient's local time. Use it for a recipient of your own, such as an alert to your own phone number. The default is `false`. The message still waits for the sending limits of the line, for the spacing between messages and behind an earlier message to the same recipient that iSnap holds. No effect on a shared line. The response returns the value in effect.","uniqueKey":"ignore_quiet_hours","typeLabel":"boolean"},"metadata":{"type":"object","additionalProperties":{"oneOf":[{},{"type":"null","uniqueKey":"metadata.additionalProperties.oneOf.1","typeLabel":"null"}],"uniqueKey":"metadata.additionalProperties","typeLabel":"null"},"description":"Your own keys and values for this message: at most 20 keys and 8,192 bytes once serialized as JSON, otherwise the API returns `400 validation_failed`. iSnap stores the object as sent and returns it in `metadata` of the message, in every response and in the events of the message.","example":{"crm_account_id":"acc_123"},"uniqueKey":"metadata","typeLabel":"object"}},"required":["line_id","to"],"description":"The message to send. It needs a non-empty `body` or at least one attachment.","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"line_id":"\u003cstring>","to":"\u003cstring>","body":"\u003cstring>","channel":"auto","attachments":[],"effect":{"type":"bubble"},"reply_to_message_id":"\u003cstring>","use_typing_indicator":true,"ignore_quiet_hours":true,"metadata":{"crm_account_id":"acc_123"}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"1320d33a-d17e-421d-a37e-6b8edae517b5":{"description":"The message, accepted as `queued` or `scheduled`. iSnap holds a message when a sending limit of the line is reached and `quota_overflow_behavior` of the line is `queue`, the default. A message is also held by the spacing between messages of the line, by quiet hours, and behind an earlier message to the same recipient that has not left. A `202` returned to an API key carries two headers: `X-iSnap-Quota-Remaining`, the number of new contacts the line can still message in the rolling 24 hours, and `X-iSnap-Quota-Resets-At`, the next midnight UTC. The limits are rolling, so that second header is not the time a full limit frees: read `GET /v1/lines/{id}/quota`.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[true],"description":"Always `true` on a success response.","isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"data":{"type":"object","properties":{"id":{"type":"string","description":"Message id: `msg_` followed by 25 letters or digits.","isRequired":true,"uniqueKey":"data.id","typeLabel":"string"},"line_id":{"type":"string","pattern":"^line_[0-9A-Za-z]{25}$","description":"Id of the line that sent or received the message.","isRequired":true,"uniqueKey":"data.line_id","typeLabel":"string"},"direction":{"type":"string","enum":["outbound","inbound"],"description":"`outbound`: a message the line sent, through the API or typed on the line's device. `inbound`: a message the line received.","isRequired":true,"uniqueKey":"data.direction","typeLabel":"enum\u003cstring>"},"kind":{"type":"string","enum":["message","voice","reaction"],"description":"`message`: a message with text, attachments or both. `voice`: a voice note. `reaction`: a reaction, recorded as its own entry.","isRequired":true,"uniqueKey":"data.kind","typeLabel":"enum\u003cstring>"},"to":{"type":"string","description":"On an outbound message sent through the API, the recipient's phone number in E.164. On a message typed on the line's device, the contact's handle as the device reports it. On an inbound message, the line's number: on a shared line, the number that serves the contact. A contact's number is personal data.","isRequired":true,"uniqueKey":"data.to","typeLabel":"string"},"from":{"type":"string","description":"On an outbound message, the line's number: an empty string when the line has no number, and on a shared line the number that serves the contact. On an inbound message, the sender's handle, a phone number or an email address of up to 255 characters: exactly as the line's device stores it, without normalization, or normalized on a shared line (E.164 for a phone number). A phone number can come in another form than E.164: before you compare it with a number you send to, bring both to E.164. A contact's handle is personal data.","isRequired":true,"uniqueKey":"data.from","typeLabel":"string"},"body":{"oneOf":[{"type":"string","description":"Text of the message. `null` when the message has no text: a message with attachments only, or a reaction. The text of an inbound message is cut to 10,000 characters.","isRequired":true,"uniqueKey":"data.body.oneOf.0","typeLabel":"string"},{"type":"null","description":"Text of the message. `null` when the message has no text: a message with attachments only, or a reaction. The text of an inbound message is cut to 10,000 characters.","isRequired":true,"uniqueKey":"data.body.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.body","typeLabel":"string | null"},"channel":{"type":"string","enum":["auto","iMessage","SMS","RCS"],"description":"`auto` on a message sent through the API. On an inbound message and on a message typed on the line's device, the same value as `service`. `iMessage` on a reaction.","isRequired":true,"uniqueKey":"data.channel","typeLabel":"enum\u003cstring>"},"service":{"oneOf":[{"type":"string","enum":["iMessage","SMS","RCS",null],"description":"The service the line's device reports it used: `iMessage`, `SMS` or `RCS`. On an outbound message it is `null` until the device confirms the send, and it stays `null` when the send fails or when the device does not report the service. On an inbound message, the service the message arrived on.","isRequired":true,"uniqueKey":"data.service.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["iMessage","SMS","RCS",null],"description":"The service the line's device reports it used: `iMessage`, `SMS` or `RCS`. On an outbound message it is `null` until the device confirms the send, and it stays `null` when the send fails or when the device does not report the service. On an inbound message, the service the message arrived on.","isRequired":true,"uniqueKey":"data.service.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.service","typeLabel":"enum\u003cstring> | null"},"status":{"type":"string","enum":["queued","scheduled","sent","delivered","read","failed","cancelled"],"description":"`queued`: accepted and waiting for the line's device, or with the device, which has not reported the outcome. `scheduled`: held by iSnap until `scheduled_for`. `sent`: the device reported that it sent the message. `delivered`: the device reported a delivery receipt; every inbound message, and every message typed on the line's device, is `delivered` from the start. `read`: the device reported that the recipient read an outbound message. `failed`: the message failed, or iSnap stopped waiting for its outcome (`error_code: no_terminal_ack`), in which case it can have reached the recipient. iSnap never resends it. `cancelled`: canceled with `DELETE /v1/messages/{id}` before the device took it. An outbound message moves from `scheduled` to `queued`, `sent`, `delivered` and `read`, and no status is guaranteed to follow `sent`, `delivered` or `read`. On an iMessage line, a message sent over SMS or RCS gets no `delivered` and no `read`, and a `failed` can still follow its `sent`. `failed` can follow any status except `cancelled`, including `delivered` and `read`. `cancelled` is final. Treat `failed` as final: a send confirmation that arrives after a failure reported by the device sets `status` back to `sent` while `failed_at` stays set. A delivery receipt can arrive before the device confirms the send, and `status` then returns to `sent` while `delivered_at` stays set: read the timestamps, not only `status`.","isRequired":true,"uniqueKey":"data.status","typeLabel":"enum\u003cstring>"},"effect":{"oneOf":[{"type":"object","description":"The iMessage effect of the message, or `null` when it has none. On an outbound message, the effect you sent. On an inbound message, the effect the sender used, when the line's device reports it.","required":["type","name"],"properties":{"type":{"type":"string","enum":["bubble"],"description":"Always `bubble` for a bubble effect.","isRequired":true,"uniqueKey":"data.effect.oneOf.0.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","enum":["slam","loud","gentle","invisible"],"description":"Name of the bubble effect.","isRequired":true,"uniqueKey":"data.effect.oneOf.0.name","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.effect.oneOf.0","typeLabel":"object"},{"type":"object","description":"The iMessage effect of the message, or `null` when it has none. On an outbound message, the effect you sent. On an inbound message, the effect the sender used, when the line's device reports it.","required":["type","name"],"properties":{"type":{"type":"string","enum":["screen"],"description":"Always `screen` for a screen effect.","isRequired":true,"uniqueKey":"data.effect.oneOf.1.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","enum":["confetti","balloons","love","lasers","fireworks","celebration","shooting_star","echo","spotlight"],"description":"Name of the screen effect.","isRequired":true,"uniqueKey":"data.effect.oneOf.1.name","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.effect.oneOf.1","typeLabel":"object"},{"description":"The iMessage effect of the message, or `null` when it has none. On an outbound message, the effect you sent. On an inbound message, the effect the sender used, when the line's device reports it.","isRequired":true,"uniqueKey":"data.effect.oneOf.2","typeLabel":"any"},{"type":"null","description":"The iMessage effect of the message, or `null` when it has none. On an outbound message, the effect you sent. On an inbound message, the effect the sender used, when the line's device reports it.","isRequired":true,"uniqueKey":"data.effect.oneOf.3","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.effect","typeLabel":"object · object · any · null"},"reply_to_message_id":{"oneOf":[{"type":"string","description":"Id of the message this message replies to, or `null`. It becomes `null` when iSnap deletes the message replied to.","isRequired":true,"uniqueKey":"data.reply_to_message_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Id of the message this message replies to, or `null`. It becomes `null` when iSnap deletes the message replied to.","isRequired":true,"uniqueKey":"data.reply_to_message_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.reply_to_message_id","typeLabel":"string | null"},"use_typing_indicator":{"type":"boolean","description":"On an outbound message, whether the line's device shows the typing indicator to the recipient before it sends the message. A message sent with an API key on a line that is not an iMessage line always has `false`. It has no meaning on an inbound message.","isRequired":true,"uniqueKey":"data.use_typing_indicator","typeLabel":"boolean"},"metadata":{"oneOf":[{"type":"object","additionalProperties":{"oneOf":[{},{"type":"null","uniqueKey":"data.metadata.oneOf.0.additionalProperties.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.metadata.oneOf.0.additionalProperties","typeLabel":"null"},"description":"The `metadata` you sent with the message, unchanged. `null` when you sent none, and on an inbound message.","isRequired":true,"uniqueKey":"data.metadata.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":{"oneOf":[{},{"type":"null","uniqueKey":"data.metadata.oneOf.1.additionalProperties.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.metadata.oneOf.1.additionalProperties","typeLabel":"null"},"description":"The `metadata` you sent with the message, unchanged. `null` when you sent none, and on an inbound message.","isRequired":true,"uniqueKey":"data.metadata.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.metadata","typeLabel":"object | null"},"attachments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^att_[0-9A-Za-z]{25}$","description":"Attachment id: `att_` followed by 25 letters or digits. Read the file with `GET /v1/attachments/{id}`.","isRequired":true,"uniqueKey":"data.attachments.items.[INDEX].id","typeLabel":"string"},"content_type":{"type":"string","minLength":1,"maxLength":100,"description":"Content type of the file, as declared when the attachment was created. `audio/x-caf` for an audio file that iSnap converted.","isRequired":true,"uniqueKey":"data.attachments.items.[INDEX].content_type","typeLabel":"string"},"filename":{"type":"string","minLength":1,"maxLength":255,"description":"File name. It can carry personal data.","isRequired":true,"uniqueKey":"data.attachments.items.[INDEX].filename","typeLabel":"string"},"size_bytes":{"type":"integer","minimum":1,"description":"Size in bytes, as declared when the attachment was created. For an audio file that iSnap converted, the size after conversion.","isRequired":true,"uniqueKey":"data.attachments.items.[INDEX].size_bytes","typeLabel":"integer"},"duration_ms":{"oneOf":[{"type":"integer","minimum":0,"description":"Duration in milliseconds of an audio file that iSnap converted. `null` on every other file.","isRequired":true,"uniqueKey":"data.attachments.items.[INDEX].duration_ms.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":0,"description":"Duration in milliseconds of an audio file that iSnap converted. `null` on every other file.","isRequired":true,"uniqueKey":"data.attachments.items.[INDEX].duration_ms.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.attachments.items.[INDEX].duration_ms","typeLabel":"integer | null"}},"required":["id","content_type","filename","size_bytes","duration_ms"],"description":"A file of a message. It carries no download URL: call `GET /v1/attachments/{id}` to get one.","uniqueKey":"data.attachments.items.[INDEX]","typeLabel":"object"},"description":"The files of the message, in order. Empty when the message has none. Files received with an inbound message are listed here too.","isRequired":true,"uniqueKey":"data.attachments","typeLabel":"object[]"},"reactions":{"type":"array","items":{"type":"object","properties":{"reaction_type":{"type":"string","enum":["love","like","dislike","laugh","emphasize","question","custom"],"description":"`love`, `like`, `dislike`, `laugh`, `emphasize` or `question`, or `custom` for an emoji reaction from the contact.","isRequired":true,"uniqueKey":"data.reactions.items.[INDEX].reaction_type","typeLabel":"enum\u003cstring>"},"reaction_emoji":{"oneOf":[{"type":"string","description":"The emoji of the reaction. For `custom`, the emoji the contact used, or `null` when the line's device did not report it.","isRequired":true,"uniqueKey":"data.reactions.items.[INDEX].reaction_emoji.oneOf.0","typeLabel":"string"},{"type":"null","description":"The emoji of the reaction. For `custom`, the emoji the contact used, or `null` when the line's device did not report it.","isRequired":true,"uniqueKey":"data.reactions.items.[INDEX].reaction_emoji.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.reactions.items.[INDEX].reaction_emoji","typeLabel":"string | null"},"from_handle":{"type":"string","description":"Handle of the author of the reaction: the contact's handle when `direction` is `inbound`, the line's number when it is `outbound`. A contact's handle is personal data.","isRequired":true,"uniqueKey":"data.reactions.items.[INDEX].from_handle","typeLabel":"string"},"direction":{"type":"string","enum":["outbound","inbound"],"description":"`outbound`: the line's own reaction. `inbound`: a reaction from the contact.","isRequired":true,"uniqueKey":"data.reactions.items.[INDEX].direction","typeLabel":"enum\u003cstring>"},"created_at":{"type":"string","description":"When iSnap recorded the reaction.","isRequired":true,"uniqueKey":"data.reactions.items.[INDEX].created_at","typeLabel":"string"}},"required":["reaction_type","reaction_emoji","from_handle","direction","created_at"],"description":"A reaction on a message. A message carries at most one reaction per author.","uniqueKey":"data.reactions.items.[INDEX]","typeLabel":"object"},"description":"The reactions on the message, at most one per author. Empty when the message has none, and always empty on an entry whose `kind` is `reaction`. The line's own reaction appears as soon as the API accepts it, and disappears as soon as the API accepts its removal, before the line's device confirms either. It stays listed when the device fails to place it.","isRequired":true,"uniqueKey":"data.reactions","typeLabel":"object[]"},"scheduled_for":{"oneOf":[{"type":"string","description":"On a held message (`status: scheduled`), the planned departure time. On an outbound message that was not held, or that has left its hold, the same value as `queued_at`: read `sent_at` for the time the message was sent. `null` on an inbound message and on a message typed on the device of the line.","isRequired":true,"uniqueKey":"data.scheduled_for.oneOf.0","typeLabel":"string"},{"type":"null","description":"On a held message (`status: scheduled`), the planned departure time. On an outbound message that was not held, or that has left its hold, the same value as `queued_at`: read `sent_at` for the time the message was sent. `null` on an inbound message and on a message typed on the device of the line.","isRequired":true,"uniqueKey":"data.scheduled_for.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.scheduled_for","typeLabel":"string | null"},"schedule_reason":{"oneOf":[{"type":"string","description":"Why iSnap holds the message, while its `status` is `scheduled`. `minute_limit_exceeded`, `hourly_limit_exceeded`, `total_message_quota_exceeded`, `new_contact_quota_exceeded` or `known_contact_quota_exceeded`: a sending limit of the line is reached. `inter_message_delay` or `inter_new_contact_delay`: the spacing between two messages of the line. `quiet_hours`: the message was accepted outside the line's sending hours, counted in the recipient's local time. `carrier_retry`: on a shared line, the number that serves the contact is busy or offline. `pending_retry`: iSnap is retrying the release. A message held behind an earlier message to the same recipient takes the `schedule_reason` of that earlier message while the earlier one is held, and `inter_message_delay` (`carrier_retry` on a shared line) while the earlier one waits for the line's device: `schedule_reason` alone does not tell you that a message waits for an earlier one. `null` on a message that was never held, and `null` again once the message is released. Treat a value you do not know as a hold: more values can be added.","isRequired":true,"uniqueKey":"data.schedule_reason.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why iSnap holds the message, while its `status` is `scheduled`. `minute_limit_exceeded`, `hourly_limit_exceeded`, `total_message_quota_exceeded`, `new_contact_quota_exceeded` or `known_contact_quota_exceeded`: a sending limit of the line is reached. `inter_message_delay` or `inter_new_contact_delay`: the spacing between two messages of the line. `quiet_hours`: the message was accepted outside the line's sending hours, counted in the recipient's local time. `carrier_retry`: on a shared line, the number that serves the contact is busy or offline. `pending_retry`: iSnap is retrying the release. A message held behind an earlier message to the same recipient takes the `schedule_reason` of that earlier message while the earlier one is held, and `inter_message_delay` (`carrier_retry` on a shared line) while the earlier one waits for the line's device: `schedule_reason` alone does not tell you that a message waits for an earlier one. `null` on a message that was never held, and `null` again once the message is released. Treat a value you do not know as a hold: more values can be added.","isRequired":true,"uniqueKey":"data.schedule_reason.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.schedule_reason","typeLabel":"string | null"},"reply_lane":{"type":"boolean","description":"`true` when the message is in the reply lane: it answers a contact who wrote to the line in the last 24 hours, within the limits of the reply lane. Such a message is not held by the hourly limit, by the three 24-hour limits or by quiet hours. Set when the message is accepted. A held message enters the reply lane when its contact writes to the line while it waits, whatever held it, oldest first and within the same limits: the value then changes from `false` to `true`, once and never back, and the message is released without waiting for its `scheduled_for`, still after the earlier messages to the same recipient and within the per-minute limit and the spacing of the line.","isRequired":true,"uniqueKey":"data.reply_lane","typeLabel":"boolean"},"ignore_quiet_hours":{"type":"boolean","description":"`true` when the message was sent with `ignore_quiet_hours: true` on a line that is not a shared line: quiet hours do not hold it. `false` otherwise, on a shared line, on an inbound message and on a message typed on the device of the line. Set when the message is accepted and never changed after that.","isRequired":true,"uniqueKey":"data.ignore_quiet_hours","typeLabel":"boolean"},"queue_info":{"oneOf":[{"type":"object","properties":{"queue_position":{"type":"integer","minimum":0,"description":"0 when the message leaves immediately. Otherwise the rank of the message among the line's held messages, starting at 1.","isRequired":true,"uniqueKey":"data.queue_info.oneOf.0.queue_position","typeLabel":"integer"},"is_new_contact":{"type":"boolean","description":"`true` when the recipient is a new contact for the line: that number has not written to the line in the last 30 days, which is the default length of that period. `false` when the recipient is a known contact.","isRequired":true,"uniqueKey":"data.queue_info.oneOf.0.is_new_contact","typeLabel":"boolean"},"daily_new_contacts_used":{"type":"integer","minimum":0,"description":"Distinct new contacts counted for the line in the last 24 hours, once this request is accepted.","isRequired":true,"uniqueKey":"data.queue_info.oneOf.0.daily_new_contacts_used","typeLabel":"integer"},"daily_new_contact_limit":{"type":"integer","minimum":0,"description":"The line's limit of distinct new contacts per rolling 24 hours.","isRequired":true,"uniqueKey":"data.queue_info.oneOf.0.daily_new_contact_limit","typeLabel":"integer"},"daily_known_contacts_used":{"type":"integer","minimum":0,"description":"Distinct known contacts counted for the line in the last 24 hours, once this request is accepted.","isRequired":true,"uniqueKey":"data.queue_info.oneOf.0.daily_known_contacts_used","typeLabel":"integer"},"daily_known_contact_limit":{"type":"integer","minimum":0,"description":"The line's limit of distinct known contacts per rolling 24 hours.","isRequired":true,"uniqueKey":"data.queue_info.oneOf.0.daily_known_contact_limit","typeLabel":"integer"},"daily_messages_used":{"type":"integer","minimum":0,"description":"Messages counted for the line in the last 24 hours, once this request is accepted. A held message counts when it is released, not when it is accepted.","isRequired":true,"uniqueKey":"data.queue_info.oneOf.0.daily_messages_used","typeLabel":"integer"},"daily_total_message_limit":{"type":"integer","minimum":0,"description":"The line's limit of messages per rolling 24 hours.","isRequired":true,"uniqueKey":"data.queue_info.oneOf.0.daily_total_message_limit","typeLabel":"integer"},"reply_lane":{"type":"boolean","description":"The same value as `reply_lane` of the message.","isRequired":true,"uniqueKey":"data.queue_info.oneOf.0.reply_lane","typeLabel":"boolean"},"daily_replies_used":{"type":"integer","minimum":0,"description":"Reply-lane messages counted for the line in the last 24 hours, once this request is accepted.","isRequired":true,"uniqueKey":"data.queue_info.oneOf.0.daily_replies_used","typeLabel":"integer"},"daily_reply_limit":{"type":"integer","minimum":0,"description":"The line's limit of reply-lane messages per rolling 24 hours.","isRequired":true,"uniqueKey":"data.queue_info.oneOf.0.daily_reply_limit","typeLabel":"integer"},"messages_ahead_in_queue":{"type":"integer","minimum":0,"description":"Number of held messages of the line planned to leave before this one. Present only when the message is held.","uniqueKey":"data.queue_info.oneOf.0.messages_ahead_in_queue","typeLabel":"integer"},"daily_slot_of":{"type":"string","description":"Date of the planned departure in the recipient's local time, as `YYYY-MM-DD`. Present only when iSnap placed the held message at a time in the line's sending hours.","uniqueKey":"data.queue_info.oneOf.0.daily_slot_of","typeLabel":"string"},"target_activity_hour":{"type":"integer","minimum":0,"maximum":23,"description":"Hour of the planned departure in the recipient's local time, 0 to 23. Present only with `daily_slot_of`.","uniqueKey":"data.queue_info.oneOf.0.target_activity_hour","typeLabel":"integer"},"next_slot_available_at":{"type":"string","description":"The planned departure time: the same value as `scheduled_for` of the message. Present only when the message is held.","uniqueKey":"data.queue_info.oneOf.0.next_slot_available_at","typeLabel":"string"},"last_new_contact_sent_at":{"type":"string","description":"When the line last sent a first message to a new contact. Present only when `schedule_reason` is `inter_new_contact_delay`.","uniqueKey":"data.queue_info.oneOf.0.last_new_contact_sent_at","typeLabel":"string"},"min_inter_new_contact_seconds":{"type":"integer","minimum":0,"description":"The line's minimum number of seconds between two first messages to new contacts. Present only when `schedule_reason` is `inter_new_contact_delay`.","uniqueKey":"data.queue_info.oneOf.0.min_inter_new_contact_seconds","typeLabel":"integer"},"jitter_applied_seconds":{"type":"integer","minimum":0,"description":"Random number of seconds added to that minimum for this message. Present only when `schedule_reason` is `inter_new_contact_delay`.","uniqueKey":"data.queue_info.oneOf.0.jitter_applied_seconds","typeLabel":"integer"}},"required":["queue_position","is_new_contact","daily_new_contacts_used","daily_new_contact_limit","daily_known_contacts_used","daily_known_contact_limit","daily_messages_used","daily_total_message_limit","reply_lane","daily_replies_used","daily_reply_limit"],"description":"The state of the line's sending limits when the message was accepted. Filled only in the response of `POST /v1/messages` to a new request: `null` on every read, in the response to a retry with the same `Idempotency-Key`, and in events.","isRequired":true,"uniqueKey":"data.queue_info.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"queue_position":{"type":"integer","minimum":0,"description":"0 when the message leaves immediately. Otherwise the rank of the message among the line's held messages, starting at 1."},"is_new_contact":{"type":"boolean","description":"`true` when the recipient is a new contact for the line: that number has not written to the line in the last 30 days, which is the default length of that period. `false` when the recipient is a known contact."},"daily_new_contacts_used":{"type":"integer","minimum":0,"description":"Distinct new contacts counted for the line in the last 24 hours, once this request is accepted."},"daily_new_contact_limit":{"type":"integer","minimum":0,"description":"The line's limit of distinct new contacts per rolling 24 hours."},"daily_known_contacts_used":{"type":"integer","minimum":0,"description":"Distinct known contacts counted for the line in the last 24 hours, once this request is accepted."},"daily_known_contact_limit":{"type":"integer","minimum":0,"description":"The line's limit of distinct known contacts per rolling 24 hours."},"daily_messages_used":{"type":"integer","minimum":0,"description":"Messages counted for the line in the last 24 hours, once this request is accepted. A held message counts when it is released, not when it is accepted."},"daily_total_message_limit":{"type":"integer","minimum":0,"description":"The line's limit of messages per rolling 24 hours."},"reply_lane":{"type":"boolean","description":"The same value as `reply_lane` of the message."},"daily_replies_used":{"type":"integer","minimum":0,"description":"Reply-lane messages counted for the line in the last 24 hours, once this request is accepted."},"daily_reply_limit":{"type":"integer","minimum":0,"description":"The line's limit of reply-lane messages per rolling 24 hours."},"messages_ahead_in_queue":{"type":"integer","minimum":0,"description":"Number of held messages of the line planned to leave before this one. Present only when the message is held."},"daily_slot_of":{"type":"string","description":"Date of the planned departure in the recipient's local time, as `YYYY-MM-DD`. Present only when iSnap placed the held message at a time in the line's sending hours."},"target_activity_hour":{"type":"integer","minimum":0,"maximum":23,"description":"Hour of the planned departure in the recipient's local time, 0 to 23. Present only with `daily_slot_of`."},"next_slot_available_at":{"type":"string","description":"The planned departure time: the same value as `scheduled_for` of the message. Present only when the message is held."},"last_new_contact_sent_at":{"type":"string","description":"When the line last sent a first message to a new contact. Present only when `schedule_reason` is `inter_new_contact_delay`."},"min_inter_new_contact_seconds":{"type":"integer","minimum":0,"description":"The line's minimum number of seconds between two first messages to new contacts. Present only when `schedule_reason` is `inter_new_contact_delay`."},"jitter_applied_seconds":{"type":"integer","minimum":0,"description":"Random number of seconds added to that minimum for this message. Present only when `schedule_reason` is `inter_new_contact_delay`."}},"required":["queue_position","is_new_contact","daily_new_contacts_used","daily_new_contact_limit","daily_known_contacts_used","daily_known_contact_limit","daily_messages_used","daily_total_message_limit","reply_lane","daily_replies_used","daily_reply_limit"],"description":"The state of the line's sending limits when the message was accepted. Filled only in the response of `POST /v1/messages` to a new request: `null` on every read, in the response to a retry with the same `Idempotency-Key`, and in events.","isRequired":true,"uniqueKey":"data.queue_info.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.queue_info","typeLabel":"object | null"},"created_at":{"type":"string","description":"When iSnap recorded the message. On an inbound message it can be later than `delivered_at`, when the line's device was offline.","isRequired":true,"uniqueKey":"data.created_at","typeLabel":"string"},"queued_at":{"oneOf":[{"type":"string","description":"When an outbound message entered the queue. `null` on an inbound message and on a message typed on the device of the line.","isRequired":true,"uniqueKey":"data.queued_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"When an outbound message entered the queue. `null` on an inbound message and on a message typed on the device of the line.","isRequired":true,"uniqueKey":"data.queued_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.queued_at","typeLabel":"string | null"},"sent_at":{"oneOf":[{"type":"string","description":"When the line's device confirmed that it sent the message. `null` until then, and on an inbound message.","isRequired":true,"uniqueKey":"data.sent_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"When the line's device confirmed that it sent the message. `null` until then, and on an inbound message.","isRequired":true,"uniqueKey":"data.sent_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.sent_at","typeLabel":"string | null"},"delivered_at":{"oneOf":[{"type":"string","description":"On an outbound message, the delivery time the line's device reported: `null` until it reports one. On an inbound message, the time the device received the message.","isRequired":true,"uniqueKey":"data.delivered_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"On an outbound message, the delivery time the line's device reported: `null` until it reports one. On an inbound message, the time the device received the message.","isRequired":true,"uniqueKey":"data.delivered_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.delivered_at","typeLabel":"string | null"},"read_at":{"oneOf":[{"type":"string","description":"On an outbound message, the time the line's device reported that the recipient read it. On an inbound message, the time it was marked as read with `POST /v1/chats/{chat_id}/read`. `null` until then.","isRequired":true,"uniqueKey":"data.read_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"On an outbound message, the time the line's device reported that the recipient read it. On an inbound message, the time it was marked as read with `POST /v1/chats/{chat_id}/read`. `null` until then.","isRequired":true,"uniqueKey":"data.read_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.read_at","typeLabel":"string | null"},"failed_at":{"oneOf":[{"type":"string","description":"When the message became `failed`. `null` otherwise. When the device of an iMessage line reports a failure after `sent`, `failed_at` holds the time of the send, not the time of the failure.","isRequired":true,"uniqueKey":"data.failed_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"When the message became `failed`. `null` otherwise. When the device of an iMessage line reports a failure after `sent`, `failed_at` holds the time of the send, not the time of the failure.","isRequired":true,"uniqueKey":"data.failed_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.failed_at","typeLabel":"string | null"},"error_code":{"oneOf":[{"type":"string","description":"`null` unless the message is `failed`. When iSnap failed the message itself: `carrier_unavailable` (the message waited 48 hours without reaching a device), `no_terminal_ack` (the line's device took the message and never reported an outcome) or `carrier_terminated` (the line was terminated while the message was waiting). `null` when the line's device reported the failure: read `error_message`.","isRequired":true,"uniqueKey":"data.error_code.oneOf.0","typeLabel":"string"},{"type":"null","description":"`null` unless the message is `failed`. When iSnap failed the message itself: `carrier_unavailable` (the message waited 48 hours without reaching a device), `no_terminal_ack` (the line's device took the message and never reported an outcome) or `carrier_terminated` (the line was terminated while the message was waiting). `null` when the line's device reported the failure: read `error_message`.","isRequired":true,"uniqueKey":"data.error_code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.error_code","typeLabel":"string | null"},"error_message":{"oneOf":[{"type":"string","description":"`null` unless the message is `failed`. A text that describes the failure. When the line's device reported the failure, it is the text the device gave, or `null` when it gave none.","isRequired":true,"uniqueKey":"data.error_message.oneOf.0","typeLabel":"string"},{"type":"null","description":"`null` unless the message is `failed`. A text that describes the failure. When the line's device reported the failure, it is the text the device gave, or `null` when it gave none.","isRequired":true,"uniqueKey":"data.error_message.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.error_message","typeLabel":"string | null"},"cancelled_at":{"oneOf":[{"type":"string","description":"When the message was canceled. `null` otherwise.","isRequired":true,"uniqueKey":"data.cancelled_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"When the message was canceled. `null` otherwise.","isRequired":true,"uniqueKey":"data.cancelled_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.cancelled_at","typeLabel":"string | null"}},"required":["id","line_id","direction","kind","to","from","body","channel","service","status","effect","reply_to_message_id","use_typing_indicator","metadata","attachments","reactions","scheduled_for","schedule_reason","reply_lane","ignore_quiet_hours","queue_info","created_at","queued_at","sent_at","delivered_at","read_at","failed_at","error_code","error_message","cancelled_at"],"description":"A message sent or received by a line. The response of `POST /v1/messages`, the reads, the list items, the cancel response and the `message` field of the `message.*` events all carry this object. It has no chat id: the chat id is given by `GET /v1/chats` and by events. It carries personal data: the handles in `to` and `from`, the text in `body`, the file names of `attachments`, and what you put in `metadata`. Timestamps are ISO 8601 in UTC.","isRequired":true,"uniqueKey":"data","typeLabel":"object"},"trace_id":{"type":"string","description":"Trace id of the request that produced this response: 32 lowercase hexadecimal characters. Quote it when you report a problem to iSnap.","isRequired":true,"uniqueKey":"trace_id","typeLabel":"string"},"request_id":{"type":"string","description":"Id of the request that produced this response: `req_` followed by 25 letters or digits.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["success","data","trace_id","request_id"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":true,"data":{"id":"\u003cstring>","line_id":"\u003cstring>","direction":"outbound","kind":"message","to":"\u003cstring>","from":"\u003cstring>","body":"\u003cstring>","channel":"auto","service":"iMessage","status":"queued","effect":{"type":"bubble","name":"slam"},"reply_to_message_id":"\u003cstring>","use_typing_indicator":true,"metadata":{},"attachments":[{"id":"\u003cstring>","content_type":"\u003cstring>","filename":"\u003cstring>","size_bytes":2,"duration_ms":1}],"reactions":[{"reaction_type":"love","reaction_emoji":"\u003cstring>","from_handle":"\u003cstring>","direction":"outbound","created_at":"\u003cstring>"}],"scheduled_for":"\u003cstring>","schedule_reason":"\u003cstring>","reply_lane":true,"ignore_quiet_hours":true,"queue_info":{"queue_position":1,"is_new_contact":true,"daily_new_contacts_used":1,"daily_new_contact_limit":1,"daily_known_contacts_used":1,"daily_known_contact_limit":1,"daily_messages_used":1,"daily_total_message_limit":1,"reply_lane":true,"daily_replies_used":1,"daily_reply_limit":1,"messages_ahead_in_queue":1,"daily_slot_of":"\u003cstring>","target_activity_hour":11,"next_slot_available_at":"\u003cstring>","last_new_contact_sent_at":"\u003cstring>","min_inter_new_contact_seconds":1,"jitter_applied_seconds":1},"created_at":"\u003cstring>","queued_at":"\u003cstring>","sent_at":"\u003cstring>","delivered_at":"\u003cstring>","read_at":"\u003cstring>","failed_at":"\u003cstring>","error_code":"\u003cstring>","error_message":"\u003cstring>","cancelled_at":"\u003cstring>"},"trace_id":"\u003cstring>","request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"e6a9bc74-5866-482f-a55e-579218f3b06c":{"description":"Invalid request. `error.code` is `validation_failed` (a field is missing or malformed, or the request has neither a non-empty `body` nor an attachment: `error.issues` lists each problem), `bad_request` (`to` is not a valid phone number, or is an email address) or `line_not_active` (the line's status is neither `active` nor `suspended`).","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"description":"Always `false` on an error response.","isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"data":{"oneOf":[{"description":"Always `null` on an error response.","isRequired":true,"uniqueKey":"data.oneOf.0","typeLabel":"any"},{"description":"Always `null` on an error response.","type":"null","isRequired":true,"uniqueKey":"data.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data","typeLabel":"any | null"},"error":{"type":"object","properties":{"status":{"type":"integer","description":"The HTTP status of the response.","isRequired":true,"uniqueKey":"error.status","typeLabel":"integer"},"code":{"type":"string","description":"Stable machine-readable code that names the refusal. Branch on this value.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Text for a person. It can change between versions: do not branch on it.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retry_after":{"oneOf":[{"type":"integer","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_after","typeLabel":"integer | null"},"retry_at":{"oneOf":[{"type":"string","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_at","typeLabel":"string | null"},"issues":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.1","typeLabel":"number"}],"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX]","typeLabel":"string | number"},"description":"Where the problem is: the field names and array indexes that lead to it.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path","typeLabel":"(string | number)[]"},"message":{"type":"string","description":"Text for a person.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].message","typeLabel":"string"},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].code","typeLabel":"string"},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].min","typeLabel":"integer"},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].max","typeLabel":"integer"}},"required":["path","message","code"],"uniqueKey":"error.issues.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"number"}]},"description":"Where the problem is: the field names and array indexes that lead to it."},"message":{"type":"string","description":"Text for a person."},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`."},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`."},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters."}},"required":["path","message","code"]},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.issues","typeLabel":"object[] | null"}},"required":["status","code","message","retry_after","retry_at","issues"],"description":"What went wrong. The six fields are always present; `retry_after`, `retry_at` and `issues` are `null` when they do not apply.","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"trace_id":{"type":"string","description":"Trace id of the request that produced this response: 32 lowercase hexadecimal characters. Quote it when you report a problem to iSnap.","isRequired":true,"uniqueKey":"trace_id","typeLabel":"string"},"request_id":{"type":"string","description":"Id of the request that produced this response: `req_` followed by 25 letters or digits.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["success","data","error","trace_id","request_id"],"description":"The body of an error response.","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"data":"\u003cunknown>","error":{"status":123,"code":"\u003cstring>","message":"\u003cstring>","retry_after":123,"retry_at":"\u003cstring>","issues":[{"path":["\u003cstring>"],"message":"\u003cstring>","code":"\u003cstring>","min":123,"max":123}]},"trace_id":"\u003cstring>","request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"2e394025-097c-472a-9ab9-4ebe30d365bc":{"description":"No valid credential. `error.code` is `unauthorized`.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"description":"Always `false` on an error response.","isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"data":{"oneOf":[{"description":"Always `null` on an error response.","isRequired":true,"uniqueKey":"data.oneOf.0","typeLabel":"any"},{"description":"Always `null` on an error response.","type":"null","isRequired":true,"uniqueKey":"data.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data","typeLabel":"any | null"},"error":{"type":"object","properties":{"status":{"type":"integer","description":"The HTTP status of the response.","isRequired":true,"uniqueKey":"error.status","typeLabel":"integer"},"code":{"type":"string","description":"Stable machine-readable code that names the refusal. Branch on this value.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Text for a person. It can change between versions: do not branch on it.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retry_after":{"oneOf":[{"type":"integer","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_after","typeLabel":"integer | null"},"retry_at":{"oneOf":[{"type":"string","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_at","typeLabel":"string | null"},"issues":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.1","typeLabel":"number"}],"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX]","typeLabel":"string | number"},"description":"Where the problem is: the field names and array indexes that lead to it.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path","typeLabel":"(string | number)[]"},"message":{"type":"string","description":"Text for a person.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].message","typeLabel":"string"},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].code","typeLabel":"string"},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].min","typeLabel":"integer"},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].max","typeLabel":"integer"}},"required":["path","message","code"],"uniqueKey":"error.issues.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"number"}]},"description":"Where the problem is: the field names and array indexes that lead to it."},"message":{"type":"string","description":"Text for a person."},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`."},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`."},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters."}},"required":["path","message","code"]},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.issues","typeLabel":"object[] | null"}},"required":["status","code","message","retry_after","retry_at","issues"],"description":"What went wrong. The six fields are always present; `retry_after`, `retry_at` and `issues` are `null` when they do not apply.","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"trace_id":{"type":"string","description":"Trace id of the request that produced this response: 32 lowercase hexadecimal characters. Quote it when you report a problem to iSnap.","isRequired":true,"uniqueKey":"trace_id","typeLabel":"string"},"request_id":{"type":"string","description":"Id of the request that produced this response: `req_` followed by 25 letters or digits.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["success","data","error","trace_id","request_id"],"description":"The body of an error response.","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"data":"\u003cunknown>","error":{"status":123,"code":"\u003cstring>","message":"\u003cstring>","retry_after":123,"retry_at":"\u003cstring>","issues":[{"path":["\u003cstring>"],"message":"\u003cstring>","code":"\u003cstring>","min":123,"max":123}]},"trace_id":"\u003cstring>","request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"e4cf9709-2500-4491-92d7-9cae9d346b99":{"description":"Refused. `error.code` is `forbidden` (the request carries neither an API key in its `Authorization` header nor the header `X-Requested-With: XMLHttpRequest`, or the key is line-scoped and `line_id` is not in its `line_ids`), `line_suspended` (the line is suspended) or `outbound_first_forbidden` (the line is inbound-only and the recipient has never written to it). With a trial key: `trial_scope_violation` (`line_id` or `to` is outside the trial) or `line_not_active` (the trial's line is not active).","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"description":"Always `false` on an error response.","isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"data":{"oneOf":[{"description":"Always `null` on an error response.","isRequired":true,"uniqueKey":"data.oneOf.0","typeLabel":"any"},{"description":"Always `null` on an error response.","type":"null","isRequired":true,"uniqueKey":"data.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data","typeLabel":"any | null"},"error":{"type":"object","properties":{"status":{"type":"integer","description":"The HTTP status of the response.","isRequired":true,"uniqueKey":"error.status","typeLabel":"integer"},"code":{"type":"string","description":"Stable machine-readable code that names the refusal. Branch on this value.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Text for a person. It can change between versions: do not branch on it.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retry_after":{"oneOf":[{"type":"integer","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_after","typeLabel":"integer | null"},"retry_at":{"oneOf":[{"type":"string","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_at","typeLabel":"string | null"},"issues":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.1","typeLabel":"number"}],"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX]","typeLabel":"string | number"},"description":"Where the problem is: the field names and array indexes that lead to it.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path","typeLabel":"(string | number)[]"},"message":{"type":"string","description":"Text for a person.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].message","typeLabel":"string"},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].code","typeLabel":"string"},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].min","typeLabel":"integer"},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].max","typeLabel":"integer"}},"required":["path","message","code"],"uniqueKey":"error.issues.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"number"}]},"description":"Where the problem is: the field names and array indexes that lead to it."},"message":{"type":"string","description":"Text for a person."},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`."},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`."},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters."}},"required":["path","message","code"]},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.issues","typeLabel":"object[] | null"}},"required":["status","code","message","retry_after","retry_at","issues"],"description":"What went wrong. The six fields are always present; `retry_after`, `retry_at` and `issues` are `null` when they do not apply.","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"trace_id":{"type":"string","description":"Trace id of the request that produced this response: 32 lowercase hexadecimal characters. Quote it when you report a problem to iSnap.","isRequired":true,"uniqueKey":"trace_id","typeLabel":"string"},"request_id":{"type":"string","description":"Id of the request that produced this response: `req_` followed by 25 letters or digits.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["success","data","error","trace_id","request_id"],"description":"The body of an error response.","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"data":"\u003cunknown>","error":{"status":123,"code":"\u003cstring>","message":"\u003cstring>","retry_after":123,"retry_at":"\u003cstring>","issues":[{"path":["\u003cstring>"],"message":"\u003cstring>","code":"\u003cstring>","min":123,"max":123}]},"trace_id":"\u003cstring>","request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"6908e49a-a568-47f7-806d-dc9c1ea08e19":{"description":"Not found. `error.code` is `not_found`: the line or an attachment id does not exist or does not belong to your account, or the message named by `reply_to_message_id` does not exist. The id of a file received on an inbound message is refused the same way.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"description":"Always `false` on an error response.","isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"data":{"oneOf":[{"description":"Always `null` on an error response.","isRequired":true,"uniqueKey":"data.oneOf.0","typeLabel":"any"},{"description":"Always `null` on an error response.","type":"null","isRequired":true,"uniqueKey":"data.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data","typeLabel":"any | null"},"error":{"type":"object","properties":{"status":{"type":"integer","description":"The HTTP status of the response.","isRequired":true,"uniqueKey":"error.status","typeLabel":"integer"},"code":{"type":"string","description":"Stable machine-readable code that names the refusal. Branch on this value.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Text for a person. It can change between versions: do not branch on it.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retry_after":{"oneOf":[{"type":"integer","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_after","typeLabel":"integer | null"},"retry_at":{"oneOf":[{"type":"string","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_at","typeLabel":"string | null"},"issues":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.1","typeLabel":"number"}],"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX]","typeLabel":"string | number"},"description":"Where the problem is: the field names and array indexes that lead to it.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path","typeLabel":"(string | number)[]"},"message":{"type":"string","description":"Text for a person.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].message","typeLabel":"string"},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].code","typeLabel":"string"},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].min","typeLabel":"integer"},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].max","typeLabel":"integer"}},"required":["path","message","code"],"uniqueKey":"error.issues.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"number"}]},"description":"Where the problem is: the field names and array indexes that lead to it."},"message":{"type":"string","description":"Text for a person."},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`."},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`."},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters."}},"required":["path","message","code"]},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.issues","typeLabel":"object[] | null"}},"required":["status","code","message","retry_after","retry_at","issues"],"description":"What went wrong. The six fields are always present; `retry_after`, `retry_at` and `issues` are `null` when they do not apply.","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"trace_id":{"type":"string","description":"Trace id of the request that produced this response: 32 lowercase hexadecimal characters. Quote it when you report a problem to iSnap.","isRequired":true,"uniqueKey":"trace_id","typeLabel":"string"},"request_id":{"type":"string","description":"Id of the request that produced this response: `req_` followed by 25 letters or digits.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["success","data","error","trace_id","request_id"],"description":"The body of an error response.","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"data":"\u003cunknown>","error":{"status":123,"code":"\u003cstring>","message":"\u003cstring>","retry_after":123,"retry_at":"\u003cstring>","issues":[{"path":["\u003cstring>"],"message":"\u003cstring>","code":"\u003cstring>","min":123,"max":123}]},"trace_id":"\u003cstring>","request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"946c6384-6ab0-469f-8b16-cad6a03c5333":{"description":"Conflict. `error.code` is `idempotency_conflict`: the `Idempotency-Key` was already used on this line for a message with a different body. A key that the line already used for a reaction call does not conflict: the API returns `202` with that reaction entry, and the message is not sent.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"description":"Always `false` on an error response.","isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"data":{"oneOf":[{"description":"Always `null` on an error response.","isRequired":true,"uniqueKey":"data.oneOf.0","typeLabel":"any"},{"description":"Always `null` on an error response.","type":"null","isRequired":true,"uniqueKey":"data.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data","typeLabel":"any | null"},"error":{"type":"object","properties":{"status":{"type":"integer","description":"The HTTP status of the response.","isRequired":true,"uniqueKey":"error.status","typeLabel":"integer"},"code":{"type":"string","description":"Stable machine-readable code that names the refusal. Branch on this value.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Text for a person. It can change between versions: do not branch on it.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retry_after":{"oneOf":[{"type":"integer","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_after","typeLabel":"integer | null"},"retry_at":{"oneOf":[{"type":"string","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_at","typeLabel":"string | null"},"issues":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.1","typeLabel":"number"}],"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX]","typeLabel":"string | number"},"description":"Where the problem is: the field names and array indexes that lead to it.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path","typeLabel":"(string | number)[]"},"message":{"type":"string","description":"Text for a person.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].message","typeLabel":"string"},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].code","typeLabel":"string"},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].min","typeLabel":"integer"},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].max","typeLabel":"integer"}},"required":["path","message","code"],"uniqueKey":"error.issues.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"number"}]},"description":"Where the problem is: the field names and array indexes that lead to it."},"message":{"type":"string","description":"Text for a person."},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`."},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`."},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters."}},"required":["path","message","code"]},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.issues","typeLabel":"object[] | null"}},"required":["status","code","message","retry_after","retry_at","issues"],"description":"What went wrong. The six fields are always present; `retry_after`, `retry_at` and `issues` are `null` when they do not apply.","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"trace_id":{"type":"string","description":"Trace id of the request that produced this response: 32 lowercase hexadecimal characters. Quote it when you report a problem to iSnap.","isRequired":true,"uniqueKey":"trace_id","typeLabel":"string"},"request_id":{"type":"string","description":"Id of the request that produced this response: `req_` followed by 25 letters or digits.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["success","data","error","trace_id","request_id"],"description":"The body of an error response.","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"data":"\u003cunknown>","error":{"status":123,"code":"\u003cstring>","message":"\u003cstring>","retry_after":123,"retry_at":"\u003cstring>","issues":[{"path":["\u003cstring>"],"message":"\u003cstring>","code":"\u003cstring>","min":123,"max":123}]},"trace_id":"\u003cstring>","request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"db2e2c45-07d1-4ff7-9191-3f2e11a5d2e9":{"description":"The request breaks a rule of this operation. `error.code` is `reply_to_cross_line` (`reply_to_message_id` names a message of another line, including a line of another account) or, with a trial key, `trial_attachments_unsupported` (the request carries attachments).","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"description":"Always `false` on an error response.","isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"data":{"oneOf":[{"description":"Always `null` on an error response.","isRequired":true,"uniqueKey":"data.oneOf.0","typeLabel":"any"},{"description":"Always `null` on an error response.","type":"null","isRequired":true,"uniqueKey":"data.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data","typeLabel":"any | null"},"error":{"type":"object","properties":{"status":{"type":"integer","description":"The HTTP status of the response.","isRequired":true,"uniqueKey":"error.status","typeLabel":"integer"},"code":{"type":"string","description":"Stable machine-readable code that names the refusal. Branch on this value.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Text for a person. It can change between versions: do not branch on it.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retry_after":{"oneOf":[{"type":"integer","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_after","typeLabel":"integer | null"},"retry_at":{"oneOf":[{"type":"string","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_at","typeLabel":"string | null"},"issues":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.1","typeLabel":"number"}],"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX]","typeLabel":"string | number"},"description":"Where the problem is: the field names and array indexes that lead to it.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path","typeLabel":"(string | number)[]"},"message":{"type":"string","description":"Text for a person.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].message","typeLabel":"string"},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].code","typeLabel":"string"},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].min","typeLabel":"integer"},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].max","typeLabel":"integer"}},"required":["path","message","code"],"uniqueKey":"error.issues.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"number"}]},"description":"Where the problem is: the field names and array indexes that lead to it."},"message":{"type":"string","description":"Text for a person."},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`."},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`."},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters."}},"required":["path","message","code"]},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.issues","typeLabel":"object[] | null"}},"required":["status","code","message","retry_after","retry_at","issues"],"description":"What went wrong. The six fields are always present; `retry_after`, `retry_at` and `issues` are `null` when they do not apply.","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"trace_id":{"type":"string","description":"Trace id of the request that produced this response: 32 lowercase hexadecimal characters. Quote it when you report a problem to iSnap.","isRequired":true,"uniqueKey":"trace_id","typeLabel":"string"},"request_id":{"type":"string","description":"Id of the request that produced this response: `req_` followed by 25 letters or digits.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["success","data","error","trace_id","request_id"],"description":"The body of an error response.","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"data":"\u003cunknown>","error":{"status":123,"code":"\u003cstring>","message":"\u003cstring>","retry_after":123,"retry_at":"\u003cstring>","issues":[{"path":["\u003cstring>"],"message":"\u003cstring>","code":"\u003cstring>","min":123,"max":123}]},"trace_id":"\u003cstring>","request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"264ca3b3-8127-41ec-b75b-34f12c89ec65":{"description":"Too many requests. `error.code` is `rate_limit_exceeded` (more than 60 requests came from the same network address in 60 seconds to `POST /v1/messages` and `GET /v1/messages`, or more than 100 to the whole API), `minute_limit_exceeded`, `hourly_limit_exceeded`, `total_message_quota_exceeded`, `new_contact_quota_exceeded` or `known_contact_quota_exceeded` (a sending limit is reached and the line's `quota_overflow_behavior` is `drop` or `fail`, so nothing is stored; with `queue`, the default, the message is accepted and held), or `queue_full` (the message would be held and the line already holds its maximum number of held messages, or no departure time exists in the next 8 days). `Retry-After` gives the seconds to wait: 60 for the minute limit, 3,600 for the hourly limit, and the seconds until the next midnight UTC for the 24-hour limits and `queue_full`, which is a hint and not the time a rolling limit frees.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"description":"Always `false` on an error response.","isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"data":{"oneOf":[{"description":"Always `null` on an error response.","isRequired":true,"uniqueKey":"data.oneOf.0","typeLabel":"any"},{"description":"Always `null` on an error response.","type":"null","isRequired":true,"uniqueKey":"data.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data","typeLabel":"any | null"},"error":{"type":"object","properties":{"status":{"type":"integer","description":"The HTTP status of the response.","isRequired":true,"uniqueKey":"error.status","typeLabel":"integer"},"code":{"type":"string","description":"Stable machine-readable code that names the refusal. Branch on this value.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Text for a person. It can change between versions: do not branch on it.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retry_after":{"oneOf":[{"type":"integer","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_after","typeLabel":"integer | null"},"retry_at":{"oneOf":[{"type":"string","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_at","typeLabel":"string | null"},"issues":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.1","typeLabel":"number"}],"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX]","typeLabel":"string | number"},"description":"Where the problem is: the field names and array indexes that lead to it.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path","typeLabel":"(string | number)[]"},"message":{"type":"string","description":"Text for a person.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].message","typeLabel":"string"},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].code","typeLabel":"string"},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].min","typeLabel":"integer"},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].max","typeLabel":"integer"}},"required":["path","message","code"],"uniqueKey":"error.issues.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"number"}]},"description":"Where the problem is: the field names and array indexes that lead to it."},"message":{"type":"string","description":"Text for a person."},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`."},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`."},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters."}},"required":["path","message","code"]},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.issues","typeLabel":"object[] | null"}},"required":["status","code","message","retry_after","retry_at","issues"],"description":"What went wrong. The six fields are always present; `retry_after`, `retry_at` and `issues` are `null` when they do not apply.","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"trace_id":{"type":"string","description":"Trace id of the request that produced this response: 32 lowercase hexadecimal characters. Quote it when you report a problem to iSnap.","isRequired":true,"uniqueKey":"trace_id","typeLabel":"string"},"request_id":{"type":"string","description":"Id of the request that produced this response: `req_` followed by 25 letters or digits.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["success","data","error","trace_id","request_id"],"description":"The body of an error response.","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"data":"\u003cunknown>","error":{"status":123,"code":"\u003cstring>","message":"\u003cstring>","retry_after":123,"retry_at":"\u003cstring>","issues":[{"path":["\u003cstring>"],"message":"\u003cstring>","code":"\u003cstring>","min":123,"max":123}]},"trace_id":"\u003cstring>","request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"d8d35f42-dc4c-45e3-8450-f562c522ecbc":{"description":"Unexpected failure. `error.code` is `internal_error`. An operation that takes a JSON body also returns it when the body, sent as `application/json`, is not valid JSON. Quote `trace_id` when you report it to iSnap.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false],"description":"Always `false` on an error response.","isRequired":true,"uniqueKey":"success","typeLabel":"enum\u003cboolean>"},"data":{"oneOf":[{"description":"Always `null` on an error response.","isRequired":true,"uniqueKey":"data.oneOf.0","typeLabel":"any"},{"description":"Always `null` on an error response.","type":"null","isRequired":true,"uniqueKey":"data.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data","typeLabel":"any | null"},"error":{"type":"object","properties":{"status":{"type":"integer","description":"The HTTP status of the response.","isRequired":true,"uniqueKey":"error.status","typeLabel":"integer"},"code":{"type":"string","description":"Stable machine-readable code that names the refusal. Branch on this value.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Text for a person. It can change between versions: do not branch on it.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retry_after":{"oneOf":[{"type":"integer","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Seconds to wait before the next attempt. Set on the `429` responses that know a delay, where the `Retry-After` header carries the same value. When it is above 60 seconds, do not wait in a request: schedule the call, or report the time. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_after.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_after","typeLabel":"integer | null"},"retry_at":{"oneOf":[{"type":"string","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"ISO 8601 timestamp at which the refusal ends. Set only on `429 rebind_cap_reached`. `null` on every other error.","isRequired":true,"uniqueKey":"error.retry_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.retry_at","typeLabel":"string | null"},"issues":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX].oneOf.1","typeLabel":"number"}],"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path.items.[INDEX]","typeLabel":"string | number"},"description":"Where the problem is: the field names and array indexes that lead to it.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].path","typeLabel":"(string | number)[]"},"message":{"type":"string","description":"Text for a person.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].message","typeLabel":"string"},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`.","isRequired":true,"uniqueKey":"error.issues.oneOf.0.items.[INDEX].code","typeLabel":"string"},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].min","typeLabel":"integer"},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters.","uniqueKey":"error.issues.oneOf.0.items.[INDEX].max","typeLabel":"integer"}},"required":["path","message","code"],"uniqueKey":"error.issues.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"path":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"number"}]},"description":"Where the problem is: the field names and array indexes that lead to it."},"message":{"type":"string","description":"Text for a person."},"code":{"type":"string","description":"Kind of problem. On `validation_failed`, for example `invalid_type`, `invalid_value`, `invalid_format`, `invalid_union`, `invalid_key`, `invalid_element`, `too_small`, `too_big`, `not_multiple_of`, `unrecognized_keys` or `custom`. The list is open: read `path` and `message`."},"min":{"type":"integer","description":"Smallest accepted value. Present only on `limit_out_of_bounds`, `mac_quantity_not_a_pack`, `byop_reduction_strands_mac_sessions` and `byop_reduction_strands_byod_lines`."},"max":{"type":"integer","description":"Largest accepted value. Present only on `limit_out_of_bounds` and `mac_sessions_exceed_byop_lines`, and on the `too_big` issue of an `Idempotency-Key` header longer than 255 characters."}},"required":["path","message","code"]},"description":"Problems found in the request, one entry each. Set on most `400 validation_failed` responses and on the refusals that name a field: a refused `handle` of `POST /v1/lookup` has `issues: null`. `null` on every other error.","isRequired":true,"uniqueKey":"error.issues.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error.issues","typeLabel":"object[] | null"}},"required":["status","code","message","retry_after","retry_at","issues"],"description":"What went wrong. The six fields are always present; `retry_after`, `retry_at` and `issues` are `null` when they do not apply.","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"trace_id":{"type":"string","description":"Trace id of the request that produced this response: 32 lowercase hexadecimal characters. Quote it when you report a problem to iSnap.","isRequired":true,"uniqueKey":"trace_id","typeLabel":"string"},"request_id":{"type":"string","description":"Id of the request that produced this response: `req_` followed by 25 letters or digits.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"}},"required":["success","data","error","trace_id","request_id"],"description":"The body of an error response.","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"data":"\u003cunknown>","error":{"status":123,"code":"\u003cstring>","message":"\u003cstring>","retry_after":123,"retry_at":"\u003cstring>","issues":[{"path":["\u003cstring>"],"message":"\u003cstring>","code":"\u003cstring>","min":123,"max":123}]},"trace_id":"\u003cstring>","request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"e0dfb044-f87b-4d89-93d6-18c93bc61e08":{"bearerAuth":{"type":"http","scheme":"bearer","description":"An API key created in the iSnap dashboard, or a trial key, sent as `Authorization: Bearer \u003ckey>`. An API key starts with `isnap_live_` or `isnap_test_`; both act on the same account, lines and billing. A trial key acts on its trial only.","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"13b85773-3d70-47e8-aa94-bbc0de8ddb38":{"url":"https://api.isnap.ai"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"An API key created in the iSnap dashboard, or a trial key, sent as `Authorization: Bearer \u003ckey>`. An API key starts with `isnap_live_` or `isnap_test_`; both act on the same account, lines and billing. A trial key acts on its trial only.","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"An API key created in the iSnap dashboard, or a trial key, sent as `Authorization: Bearer \u003ckey>`. An API key starts with `isnap_live_` or `isnap_test_`; both act on the same account, lines and billing. A trial key acts on its trial only.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"isnap","siteName":"iSnap","title":"Send a message - iSnap","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-15T10:45:16.089Z","originalFileLocation":"api-reference/messages/send-message.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Sends one message to one phone number from one of your lines, and returns it as queued or held.\">\u003cmeta data-mint-head name=\"application-name\" content=\"iSnap\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/isnap/MAUBHsnI8bnMXK2C/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/isnap/MAUBHsnI8bnMXK2C/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/isnap/MAUBHsnI8bnMXK2C/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/isnap/MAUBHsnI8bnMXK2C/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/isnap/MAUBHsnI8bnMXK2C/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/isnap/MAUBHsnI8bnMXK2C/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/isnap/MAUBHsnI8bnMXK2C/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/isnap/MAUBHsnI8bnMXK2C/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/isnap/MAUBHsnI8bnMXK2C/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Send a message - iSnap\">\u003cmeta data-mint-head property=\"og:description\" content=\"Sends one message to one phone number from one of your lines, and returns it as queued or held.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"iSnap\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.isnap.ai/api-reference/messages/send-message\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://isnap.mintlify.site/_mintlify/api/og/v2?division=Messages\u0026amp;title=Send+a+message\u0026amp;description=Sends+one+message+to+one+phone+number+from+one+of+your+lines%2C+and+returns+it+as+queued+or+held.\u0026amp;theme=f241cf48d31b6385a79939a4\u0026amp;signature=a2292324c5e9160302f7dcbbd99d40c2b624eaa74859421d6ddd22846dbbd968\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Send a message - iSnap\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Sends one message to one phone number from one of your lines, and returns it as queued or held.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://isnap.mintlify.site/_mintlify/api/og/v2?division=Messages\u0026amp;title=Send+a+message\u0026amp;description=Sends+one+message+to+one+phone+number+from+one+of+your+lines%2C+and+returns+it+as+queued+or+held.\u0026amp;theme=f241cf48d31b6385a79939a4\u0026amp;signature=a2292324c5e9160302f7dcbbd99d40c2b624eaa74859421d6ddd22846dbbd968\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/isnap/MAUBHsnI8bnMXK2C/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"iSnap\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#09090b\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.isnap.ai/api-reference/messages/send-message\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/messages/send-message.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.isnap.ai/#organization\",\"name\":\"iSnap\",\"url\":\"https://docs.isnap.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/isnap/wJQmSVFBFz3YnuZ4/images/logo-light.svg?fit=max\u0026auto=format\u0026n=wJQmSVFBFz3YnuZ4\u0026q=85\u0026s=1208ab10ce8a1de87ddc30bbcaae611d\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.isnap.ai#website\",\"name\":\"iSnap\",\"url\":\"https://docs.isnap.ai\",\"publisher\":{\"@id\":\"https://docs.isnap.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.isnap.ai/api-reference/messages/send-message#webpage\",\"url\":\"https://docs.isnap.ai/api-reference/messages/send-message\",\"name\":\"Send a message\",\"description\":\"Sends one message to one phone number from one of your lines, and returns it as queued or held.\",\"dateModified\":\"2026-10-15T10:45:16.089Z\",\"isPartOf\":{\"@id\":\"https://docs.isnap.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.isnap.ai/api-reference/messages/send-message#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.isnap.ai/api-reference/messages/send-message#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"iSnap\",\"item\":\"https://docs.isnap.ai\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Send a message\",\"item\":\"https://docs.isnap.ai/api-reference/messages/send-message\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.isnap.ai/api-reference/messages/send-message#apireference\",\"headline\":\"Send a message\",\"name\":\"Send a message\",\"description\":\"Sends one message to one phone number from one of your lines, and returns it as queued or held.\",\"url\":\"https://docs.isnap.ai/api-reference/messages/send-message\",\"mainEntityOfPage\":{\"@id\":\"https://docs.isnap.ai/api-reference/messages/send-message#webpage\"},\"dateModified\":\"2026-10-15T10:45:16.089Z\",\"publisher\":{\"@id\":\"https://docs.isnap.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.isnap.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"iSnap\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"iSnap\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/messages/send-message.md","siteName":"iSnap","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/introduction"}]},{"tab":"Webhooks","pages":[{"title":"Webhooks","href":"/webhooks/overview"}]},{"tab":"SDK","pages":[{"title":"SDK","href":"/sdk/overview"}]},{"tab":"API reference","groups":[{"group":"API reference","pages":[{"title":"API reference","sidebarTitle":"Overview","href":"/api-reference/introduction"},{"title":"Changelog","description":"Lists what each version of the iSnap API changed in the contract, newest first, from the first version these docs covered.","href":"/changelog"}]},{"group":"Messages","pages":[{"title":"Send a message","openapi":"POST /v1/messages","href":"/api-reference/messages/send-message"},{"title":"List messages","description":"Lists the inbound and outbound messages that iSnap keeps, newest first, with filters and a cursor.","openapi":"GET /v1/messages","href":"/api-reference/messages/list-messages"},{"title":"Get a message","openapi":"GET /v1/messages/{id}","href":"/api-reference/messages/get-message"},{"title":"Cancel a message","openapi":"DELETE /v1/messages/{id}","href":"/api-reference/messages/cancel-message"},{"title":"Add a reaction","openapi":"POST /v1/messages/{id}/reactions","href":"/api-reference/messages/add-reaction"},{"title":"Remove a reaction","openapi":"DELETE /v1/messages/{id}/reactions","href":"/api-reference/messages/remove-reaction"}]},{"group":"Chats","pages":[{"title":"List chats","openapi":"GET /v1/chats","href":"/api-reference/chats/list-chats"},{"title":"Get a chat","openapi":"GET /v1/chats/{chat_id}","href":"/api-reference/chats/get-chat"},{"title":"Mark a chat as read","openapi":"POST /v1/chats/{chat_id}/read","href":"/api-reference/chats/mark-chat-read"},{"title":"Show the typing indicator","openapi":"POST /v1/chats/{chat_id}/typing","href":"/api-reference/chats/start-typing"},{"title":"Clear the typing indicator","openapi":"DELETE /v1/chats/{chat_id}/typing","href":"/api-reference/chats/stop-typing"},{"title":"Send a contact card","openapi":"POST /v1/chats/{chat_id}/share-contact-card","href":"/api-reference/chats/share-contact-card"}]},{"group":"Attachments","pages":[{"title":"Create an attachment","openapi":"POST /v1/attachments","href":"/api-reference/attachments/create-attachment"},{"title":"Get an attachment","openapi":"GET /v1/attachments/{id}","href":"/api-reference/attachments/get-attachment"}]},{"group":"Recipient lookup","pages":[{"title":"Look up a recipient","openapi":"POST /v1/lookup","href":"/api-reference/lookup/look-up-recipient"}]},{"group":"Lines","pages":[{"title":"List available lines","openapi":"GET /v1/lines","href":"/api-reference/lines/list-available-lines"},{"title":"Get a line","openapi":"GET /v1/lines/{id}","href":"/api-reference/lines/get-line"},{"title":"List your active and reserved lines","openapi":"GET /v1/lines/my","href":"/api-reference/lines/list-my-lines"},{"title":"Update the metadata or billing anchor of a line","openapi":"PATCH /v1/lines/{id}","href":"/api-reference/lines/update-line"},{"title":"Reserve a line","openapi":"POST /v1/lines/{id}/reserve","href":"/api-reference/lines/reserve-line"},{"title":"Activate a reserved line","openapi":"POST /v1/lines/{id}/activate","href":"/api-reference/lines/activate-line"},{"title":"Release a reserved line","openapi":"POST /v1/lines/{id}/release","href":"/api-reference/lines/release-line"},{"title":"Assign a line","openapi":"POST /v1/lines/assign","href":"/api-reference/lines/assign-line"},{"title":"Create a shared line","openapi":"POST /v1/lines/shared","href":"/api-reference/lines/create-shared-line"}]},{"group":"Line lifecycle","pages":[{"title":"Terminate a line","openapi":"POST /v1/lines/{id}/terminate","href":"/api-reference/lines/terminate-line"},{"title":"Cancel a line at its next anniversary","openapi":"POST /v1/lines/{id}/cancel","href":"/api-reference/lines/cancel-line"},{"title":"Uncancel a line","openapi":"POST /v1/lines/{id}/uncancel","href":"/api-reference/lines/uncancel-line"},{"title":"Set the anniversary of a line","openapi":"POST /v1/lines/{id}/anniversary","href":"/api-reference/lines/set-line-anniversary"},{"title":"Change the variant of a line","openapi":"POST /v1/lines/{id}/variant","href":"/api-reference/lines/change-line-variant"},{"title":"Withdraw a scheduled variant change","openapi":"DELETE /v1/lines/{id}/variant","href":"/api-reference/lines/cancel-variant-change"},{"title":"Convert a line to a test line","openapi":"POST /v1/lines/{id}/convert-to-test","href":"/api-reference/lines/convert-to-test-line"},{"title":"Convert a test line back to a rented line","openapi":"POST /v1/lines/{id}/convert-from-test","href":"/api-reference/lines/convert-from-test-line"},{"title":"Transfer a line to another account","openapi":"POST /v1/lines/{id}/transfer-ownership","href":"/api-reference/lines/transfer-line"}]},{"group":"Line configuration and state","pages":[{"title":"Get the configuration of a line","openapi":"GET /v1/lines/{id}/config","href":"/api-reference/lines/get-line-config"},{"title":"Update the configuration of a line","openapi":"PATCH /v1/lines/{id}/config","href":"/api-reference/lines/update-line-config"},{"title":"Get the sending limits of a line","openapi":"GET /v1/lines/{id}/quota","href":"/api-reference/lines/get-line-sending-limits"},{"title":"List the queue of a line","openapi":"GET /v1/lines/{id}/queue","href":"/api-reference/lines/get-line-queue"},{"title":"Get the health of a BYOD line","openapi":"GET /v1/lines/{id}/health","href":"/api-reference/lines/get-line-health"},{"title":"List the lines that need attention","openapi":"GET /v1/attention","href":"/api-reference/lines/list-attention"}]},{"group":"Webhook subscriptions","pages":[{"title":"Create a webhook subscription","openapi":"POST /v1/webhooks","href":"/api-reference/webhooks/create-webhook"},{"title":"List webhook subscriptions","openapi":"GET /v1/webhooks","href":"/api-reference/webhooks/list-webhooks"},{"title":"Get a webhook subscription","openapi":"GET /v1/webhooks/{id}","href":"/api-reference/webhooks/get-webhook"},{"title":"Update a webhook subscription","openapi":"PATCH /v1/webhooks/{id}","href":"/api-reference/webhooks/update-webhook"},{"title":"Delete a webhook subscription","openapi":"DELETE /v1/webhooks/{id}","href":"/api-reference/webhooks/delete-webhook"},{"title":"Rotate a signing secret","openapi":"POST /v1/webhooks/{id}/rotate-secret","href":"/api-reference/webhooks/rotate-webhook-secret"},{"title":"List the deliveries of a webhook subscription","openapi":"GET /v1/webhooks/{id}/deliveries","href":"/api-reference/webhooks/list-webhook-deliveries"},{"title":"Replay a delivery","openapi":"POST /v1/webhooks/{id}/deliveries/{delivery_id}/replay","href":"/api-reference/webhooks/replay-webhook-delivery"},{"title":"List the events feed","openapi":"GET /v1/webhooks/events","href":"/api-reference/webhooks/list-webhook-events"}]},{"group":"Trials","pages":[{"title":"Start a trial","openapi":"POST /v1/trial/init","href":"/api-reference/trials/start-trial"},{"title":"Get the pairing status of a trial","openapi":"GET /v1/trial/status","href":"/api-reference/trials/get-trial-status"},{"title":"Get the activity of a trial","openapi":"GET /v1/trial/activity","href":"/api-reference/trials/get-trial-activity"},{"title":"Get a trial","openapi":"GET /v1/trial/{trial_id}","href":"/api-reference/trials/get-trial"},{"title":"Update the metadata of a trial","openapi":"PATCH /v1/trial/{trial_id}","href":"/api-reference/trials/update-trial"},{"title":"Revoke a trial","openapi":"POST /v1/trial/{trial_id}/revoke","href":"/api-reference/trials/revoke-trial"}]},{"group":"BYOD","pages":[{"title":"Issue a BYOD activation code","openapi":"POST /v1/byod/pair","href":"/api-reference/byod/start-byod-pairing"},{"title":"Get the bridge app downloads","openapi":"GET /v1/apps","href":"/api-reference/byod/get-app-downloads"}]},{"group":"Pre-orders","pages":[{"title":"Create a pre-order","openapi":"POST /v1/pre-orders","href":"/api-reference/pre-orders/create-pre-order"},{"title":"List pre-orders","openapi":"GET /v1/pre-orders","href":"/api-reference/pre-orders/list-pre-orders"},{"title":"Get a pre-order","openapi":"GET /v1/pre-orders/{id}","href":"/api-reference/pre-orders/get-pre-order"},{"title":"Update the metadata of a pre-order","openapi":"PATCH /v1/pre-orders/{id}","href":"/api-reference/pre-orders/update-pre-order"},{"title":"Confirm a pre-order","openapi":"POST /v1/pre-orders/{id}/confirm","href":"/api-reference/pre-orders/confirm-pre-order"},{"title":"Cancel a pre-order","openapi":"POST /v1/pre-orders/{id}/cancel","href":"/api-reference/pre-orders/cancel-pre-order"},{"title":"List area codes","openapi":"GET /v1/area-codes","href":"/api-reference/pre-orders/list-area-codes"}]},{"group":"Hosted macOS sessions","pages":[{"title":"Rent a hosted macOS session","openapi":"POST /v1/macos-sessions/rent","href":"/api-reference/macos-sessions/rent-macos-session"},{"title":"Get a hosted macOS session","openapi":"GET /v1/macos-sessions/{id}","href":"/api-reference/macos-sessions/get-macos-session"},{"title":"Update the metadata of a hosted macOS session","openapi":"PATCH /v1/macos-sessions/{id}","href":"/api-reference/macos-sessions/update-macos-session"},{"title":"Cancel a hosted macOS session at its next anniversary","openapi":"POST /v1/macos-sessions/{id}/cancel","href":"/api-reference/macos-sessions/cancel-macos-session"},{"title":"Uncancel a hosted macOS session","openapi":"POST /v1/macos-sessions/{id}/uncancel","href":"/api-reference/macos-sessions/uncancel-macos-session"}]},{"group":"Service","pages":[{"title":"Get the health of the API","openapi":"GET /v1/health","href":"/api-reference/service/get-health"},{"title":"Get the version of the API","openapi":"GET /v1/version","href":"/api-reference/service/get-version"}]}]}]},"basePath":"","title":"Send a message - iSnap","deploymentId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","buildId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BuieBNTB.js","snippetPresets-alIv9Yoc.js","utils-BS41p-Nj.js","style-to-object-BY3JEAdk.js","utils-D0Za9LU_.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-Lx7TZ5XR.js","conditional-requirements-CFM0id0Q.js","cloneDeep-4e5CS5ZI.js","_Uint8Array-B2-W7EM3.js","isObject-FP1Yky1u.js","ApiExamples-sCe6z2hN.js","usePlaygroundInputsStore-cU_dFE5n.js","shallow-BwNCr__O.js","isEqual-Cnvzqd4L.js","CodeSnippets-CMIr49P8.js","CodeSnippet-BC-bKzyy.js","use-playground-group-access-c3bgmn-x.js","Page-Acw_JRP6.js","api-description-markdown-1o8U1kkQ.js","DynamicMarkdown-CvOkzads.js","SectionHeading-CJ97Kdt-.js","MethodPill-DynWltjQ.js","getPastedJson-CBCnXiWl.js","Check2Icon-CPHq_WNu.js","axios-CsQoIw0U.js","Markdown-4tjIF-hK.js","AssistantPageLink-BcChI7L3.js","dist-MIf_HGLZ.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}