Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

Flowyte secret API key (Authorization: Bearer flowyte_sk_live_…). Scope-gated; is scoped to your organization — a key can never reach another tenant. The listed scopes in each operation's apiKey requirement are the scopes that key must hold. The tokenUrl is nominal: keys are minted in the dashboard.

Body

application/json

A harness-initiated outbound SMS thread. NOTE the absence of a from field: the sending number is derived server-side from the agent's SMS-active number, because an agent structurally cannot text without an assigned number.

agentId
string
required

The agent whose SMS-active number the thread is opened on (and whose conversation history it joins).

destinationId
string
required

The escalation destination that will own the conversation. Must be status 'active', allow the sms channel, and belong to a CONNECTED AI Harness integration.

to
string
required

The recipient in E.164. Must have a recorded consent basis (conversational or express) unless the org holds a consent bypass.

Example:

"+14155551234"

text
string
required

The first message. Send the message ONLY — the platform appends the required brand prefix and the "Msg & data rates may apply. Reply HELP for help, STOP to opt out." disclosure block, sanitizes to GSM-7 and applies the 2-segment cap.

client_message_id
string
required

Idempotency key — a replay returns the original receipt and never sends a second text.

channel
enum<string>
default:sms

Only sms can be initiated outbound — chat has no visitor to push to until one arrives.

Available options:
sms

Response

The conversation was opened and the first message sent (also returned on an idempotent replay).

success
boolean
required
data
object
required
message
string
errors
object[]