OneOS Docs
Genesis 0.3.3 Console

API reference

Dials

Phone numbers and calls for agents: buy and configure numbers, place and receive calls, and read call records.

Operations
69
Base path
https://os.one.ml/api/v1/dials
Scopes
dials:read dials:write
API keys
1 failed with an API key · 3 untested · 34 tested with an API key
SDK
genesis.call('dials_listAgents', …) · helpers under genesis.dials
CLI
genesis dials
MCP
54 tools; the other 15 through genesis_call

Operations

OperationEndpointAPI key
List saved agents in the selected scopeGET/agentsTested with an API key
Save an unassigned AgentProfile by scoped normalized namePOST/agentsTested with an API key
Delete (archive) a saved agentDELETE/agents/{agent_id}—
List real call lifecycle and carrier outcomesGET/callsTested with an API key
Call One or an agent (dial tone, 1-3 rings, queue)POST/calls—
Get your agent call nowGET/calls/{call_id}—
Hang up your agent callPOST/calls/{call_id}/end—
Keep a connected call's slotPOST/calls/{call_id}/heartbeat—
Your organization's share of the call slot poolGET/calls/capacity—
Queue an approved outbound call with an idempotency keyPOST/calls/outboundTested with an API key
Read an existing outbound admission receipt without originating a callPOST/calls/outbound/recoverTested with an API key
Validate consent and outbound call prerequisitesPOST/calls/outbound/validateTested with an API key
Read the scoped Dials operating surfaceGET/console/operating-surfaceTested with an API key
Read authoritative scoped Dials resource countsGET/console/summaryTested with an API key
List saved humans in the selected scopeGET/human-profilesTested with an API key
Save an unassigned HumanProfile by scoped normalized namePOST/human-profilesTested with an API key
Delete (archive) a saved human profileDELETE/human-profiles/{human_id}—
List lines: each number with its seat, route, E911 binding and what it may do nowGET/lines—
List scoped saved message templatesGET/message-templatesTested with an API key
Save a scoped message template by normalized namePOST/message-templatesTested with an API key
List scoped saved messages and actual delivery stateGET/messagesTested with an API key
Queue an explicitly approved outbound messagePOST/messages/outboundTested with an API key
Ask whether a text can be sent now, without sending itPOST/messages/outbound/check—
Show or clear a typing indicator in an open Apple Messages conversationPOST/messages/typing—
List scoped messaging brand configurationGET/messaging/brandsTested with an API key
Save pending messaging brand configurationPOST/messaging/brandsTested with an API key
List scoped messaging campaign configurationGET/messaging/campaignsTested with an API key
Save a pending campaign for a verified owned brandPOST/messaging/campaignsTested with an API key
Save pending association of an owned number with an owned campaignPOST/messaging/campaigns/{campaign_id}/numbersTested with an API key
Read the message-event endpoint at a scope levelGET/messaging/endpoint—
Set the message-event delivery endpoint for a scope levelPUT/messaging/endpoint—
Remove the message-event endpoint at a scope levelDELETE/messaging/endpoint—
List the public keys message events are signed withGET/messaging/event-keys—
List numbers in the authorized scopeGET/numbersTested with an API key
Release an owned number at its carrier through DELETEDELETE/numbers/{number_id}Tested with an API key
Assign an owned numberPOST/numbers/assignTested with an API key
Update the caller name of an owned numberPUT/numbers/cnamTested with an API key
List scoped inventory driftGET/numbers/driftTested with an API key
Register and bind the dispatchable emergency address for an owned numberPOST/numbers/e911Tested with an API key
Check an address is dispatchable for E911 before binding itPOST/numbers/e911/validate-address—
Provision a carrier number with an idempotency keyPOST/numbers/provisionFailed with an API key
Reconcile owned inventory against configured carriersPOST/numbers/reconcileTested with an API key
List scoped carrier reconciliation receiptsGET/numbers/reconciliationsTested with an API key
Release an owned numberPOST/numbers/releaseTested with an API key
Search carrier number inventory (US and Canada, local and toll-free)GET/numbers/searchTested with an API key
Set which voice handler answers an owned numberPUT/numbers/voice-handler—
Activate the phone number of your One (One Line)POST/one-numbers/activate—
Choose the phone number for your OnePOST/one-numbers/choose—
Get the phone number of your OneGET/one-numbers/mine—
Release the phone number of your OneDELETE/one-numbers/mine—
Suggest phone numbers for your OnePOST/one-numbers/suggestions—
List the texts sent from your own text line, and which job sent eachGET/one-numbers/text/messages—
Text your own phone from your own text line, on your approvalPOST/one-numbers/text/messages—
Ask whether a text to your own phone can go from your own text line, without sending itPOST/one-numbers/text/messages/check—
Ring your own phone with a voice agent of your organizationPOST/own-calls—
Export your own call records and approvalsGET/own-calls/records—
List your own verified phones (id and last four digits)GET/own-phones—
List managed inbound policies in the verified scopeGET/routing/rulesTested with an API key
Create an enabled owned-number inbound policy with durable UUID idempotencyPOST/routing/rules—
Disable an owned managed inbound policy while retaining its recordDELETE/routing/rules/{rule_id}—
List the voice agents you approved to ring youGET/voice-agent-approvals—
Approve a voice agent to ring you (your passkey)POST/voice-agents/{voice_agent_id}/approve—
Revoke your approval of a voice agentDELETE/voice-agents/{voice_agent_id}/approve—
List saved voiceProfiles in the selected scopeGET/voice-profilesTested with an API key
Save an unassigned VoiceProfile by scoped normalized namePOST/voice-profilesTested with an API key
Consume a start-of-call token (receiving server)POST/voice-tokens/consume—
List scoped saved workflow routing descriptorsGET/workflowsTested with an API key
Delete an owned workflow and its routing descriptorDELETE/workflows/{workflow_id}—
Save a normalized workflow and enabled routing descriptorPOST/workflows/deployTested with an API key

Agents

List saved agents in the selected scope

GET/v1/dials/agents

dials:readTested with an API keydials_listAgents

Parameters

  • organizationIdquery · stringrequired

    Must match the authenticated organization.

  • workspaceIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • projectIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • environmentIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

Responses

  • 200Success
    Response fields
    • okbooleanrequired
    • agentsobject[]required
    • agents[].[].idstringrequired
    • agents[].[].scopeobjectrequired
    • agents[].[].scope.platformId"dials"

      Dials platform identifier; defaults to dials when omitted.

    • agents[].[].scope.organizationIdstringrequired

      min length 1

    • agents[].[].scope.workspaceIdstring

      min length 1

    • agents[].[].scope.projectIdstring

      min length 1

    • agents[].[].scope.environmentIdstring

      min length 1

    • agents[].[].namestringrequired
    • agents[].[].rolestringrequired
    • agents[].[].voiceModelIdstringrequired

      Opaque model identifier; not a validated voice-profile binding.

    • agents[].[].mode"autonomous" | "copilot" | "human_handoff"required
    • agents[].[].phoneNumberIdstring | nullrequired
    • agents[].[].systemPromptstringrequired
    • agents[].[].statusstringrequired

      Saved backend status does not establish a running model or voice runtime.

  • 401Missing or invalid identity
  • 404Resource does not belong to the authenticated organization
  • 503Backend or carrier unavailable
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/dials/agents?organizationId=$ORGANIZATION_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Save an unassigned AgentProfile by scoped normalized name

POST/v1/dials/agents

dials:writeTested with an API keydials_createAgent

This POST upserts by full scope and trimmed,lowercased name. Omitted optional fields reset. Create unassigned and assign a number separately; never replay creation after an assignment failure. No invitation,model deployment or consent verification is implied.

Request body application/json

  • scopeobjectrequired
  • scope.platformId"dials"

    Dials platform identifier; defaults to dials when omitted.

  • scope.organizationIdstringrequired

    min length 1

  • scope.workspaceIdstring

    min length 1

  • scope.projectIdstring

    min length 1

  • scope.environmentIdstring

    min length 1

  • actorIdstringrequired

    min length 1

  • namestringrequired

    min length 1

  • rolestringrequired

    min length 1

  • voiceModelIdstringrequired

    Model string; never substitute a governed voice profile ID. min length 1

  • mode"autonomous" | "copilot" | "human_handoff"required
  • systemPromptstring | null

Responses

  • 200Success
    Response fields
    • okbooleanrequired
    • agentobjectrequired
    • agent.idstringrequired
    • agent.scopeobjectrequired
    • agent.scope.platformId"dials"

      Dials platform identifier; defaults to dials when omitted.

    • agent.scope.organizationIdstringrequired

      min length 1

    • agent.scope.workspaceIdstring

      min length 1

    • agent.scope.projectIdstring

      min length 1

    • agent.scope.environmentIdstring

      min length 1

    • agent.namestringrequired
    • agent.rolestringrequired
    • agent.voiceModelIdstringrequired

      Opaque model identifier; not a validated voice-profile binding.

    • agent.mode"autonomous" | "copilot" | "human_handoff"required
    • agent.phoneNumberIdstring | nullrequired
    • agent.systemPromptstringrequired
    • agent.statusstringrequired

      Saved backend status does not establish a running model or voice runtime.

    • auditIdstringrequired
    • usageEventIdstringrequired
    • nextstringrequired
  • 401Missing or invalid identity
  • 404Resource does not belong to the authenticated organization
  • 422Invalid profile fields, missing consent/license attestation, or unsupported production model
  • 503Backend or carrier unavailable
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/dials/agents" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "scope": {
      "organizationId": "string"
    },
    "actorId": "string",
    "name": "string",
    "role": "string",
    "voiceModelId": "string",
    "mode": "autonomous"
  }'

Delete (archive) a saved agent

DELETE/v1/dials/agents/{agent_id}

dials:writedials_deleteAgent

Needs dials:write (as creating an agent does). Archives the agent with this id in the verified org/workspace/project/environment (scope as query parameters, the same as listAgents; a JSON body {"scope":{...}} is also accepted when the query names no scope). The row, its audit, usage and call history are kept; the agent leaves listAgents, can no longer take a number, and an inbound call on a number that still points at it is treated as unassigned. A repeat by the owner answers the same 200. Another organization's, workspace's, project's or environment's agent, and an unknown id, are 404 agent_not_found. While a held (not released) number is assigned to it, the delete is refused with 409 agent_in_use and nothing changes: unassign the number first with assignNumber and no resource. Creating an agent with the same name in the same scope brings the same id back.

Parameters

  • agent_idpath · stringrequired
  • organizationIdquery · stringrequired

    Must match the authenticated organization.

  • workspaceIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • projectIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • environmentIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

Responses

  • 200Archived (or already archived by the owner).
    Response fields
    • idstringrequired
    • deletedtruerequired
    • archivedtruerequired
  • 400Invalid scope.
  • 401Missing or invalid identity, or a read-only credential.
  • 403The credential lacks dials:write (gateway SCOPE_MISSING).
  • 404agent_not_found: no such agent in the verified scope.
  • 409agent_in_use: a held number is still assigned to this agent.
  • 503Backend unavailable
  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/dials/agents/$AGENT_ID?organizationId=$ORGANIZATION_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Calls

List real call lifecycle and carrier outcomes

GET/v1/dials/calls

dials:readTested with an API keydials_listCalls

Return scoped saved sessions with actual nullable carrier outcomes and separate dispatchState. A queued session with uncertain or recovery_required dispatchState must be reconciled without re-originating the call.

Parameters

  • organizationIdquery · stringrequired

    Must match the authenticated organization.

  • workspaceIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • projectIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • environmentIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

Responses

  • 200Success
    Response fields
    • okbooleanrequired
    • callsobject[]required
    • calls[].[].idstringrequired
    • calls[].[].scopeobjectrequired
    • calls[].[].scope.platformId"dials"

      Dials platform identifier; defaults to dials when omitted.

    • calls[].[].scope.organizationIdstringrequired

      min length 1

    • calls[].[].scope.workspaceIdstring

      min length 1

    • calls[].[].scope.projectIdstring

      min length 1

    • calls[].[].scope.environmentIdstring

      min length 1

    • calls[].[].direction"inbound" | "outbound" | "on_net"required
    • calls[].[].status"created" | "compliance_checked" | "queued" | "dialing" | "ringing" | "answered" | "bridged" | "held" | "completed" | "failed" | "blocked"required

      Call lifecycle only. A queued lifecycle can coexist with uncertain or recovery_required dispatchState; it is not proof that another worker should execute it.

    • calls[].[].phoneNumberIdstringrequired
    • calls[].[].remoteE164stringrequired
    • calls[].[].callControlobject | object

      Customer-selected call behavior. Speak plays the provided text and ends the call; stream connects live audio to the customer agent WebSocket. No default behavior is synthesized.

    • calls[].[].providerCallIdstring | nullrequired
    • calls[].[].sipStatusinteger | null (int32)required
    • calls[].[].hangupCausestring | nullrequired
    • calls[].[].durationSecondsinteger | null (int32)required
    • calls[].[].billedSecondsinteger | null (int32)required
    • calls[].[].answeredbooleanrequired

      Whether the far end was observed to answer; false alone is not a terminal result.

    • calls[].[].recordingIdstring | nullrequired
    • calls[].[].dispatchState"pending" | "claimed" | "dispatched" | "failed" | "uncertain" | "recovery_required" | null

      Submission state separate from the call lifecycle. uncertain means provider acceptance is unknown; recovery_required means a durable receipt needs reconciliation. Neither means successful execution or authorizes retry. Null means no recognized dispatch job is available.

  • 401Missing or invalid identity
  • 404Resource does not belong to the authenticated organization
  • 503Backend or carrier unavailable
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/dials/calls?organizationId=$ORGANIZATION_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Call One or an agent (dial tone, 1-3 rings, queue)

POST/v1/dials/calls

dials:writeIdempotency-Key optionaldials_createAgentCall

Places an app call to to (one or an agent id). Answers the ring plan the client plays: a dial tone of dial_tone_ms, then rings rings (1-3, chosen at random per call) of ring_ms each. With a free slot (per organization and global) the call is ringing; otherwise it is queued with queue.position and keeps ringing while it waits. Pickup (connected) is at the end of ring max(rings, the ring in which it is both admitted and ready (One's voice side says ready on its Dials service credential)), never after ring 3; a call not admitted by the end of ring 3 is missed (no_capacity), one not ready by then is missed (warmup_not_ready). Poll GET /v1/dials/calls/{call_id} every poll_after_ms. Idempotent on idempotency_key (or the Idempotency-Key header), required: a replay answers the same call with 200 and idempotent_replay: true; the same key with a different request is 409 IDEMPOTENCY_KEY_REUSED. Dials sends no audio. Tenancy: the gateway-signed organization plus the signed project selection; a body or query scope is ignored. Roles: only the call's creator reads, heartbeats or ends it through Genesis (403 NOT_CALL_PARTY for anyone else in the same organization and project; another organization's or project's call is 404 CALL_NOT_FOUND). One's side of the call (warm-up ready, its end_call, its heartbeat) uses Dials' own service credential, not Genesis. Every route answers 403 CALL_QUEUE_NOT_OPEN for an organization not in DIALS_CALL_QUEUE_ORGS, before any lookup. Dark: 503 CALL_QUEUE_DISABLED until DIALS_CALL_QUEUE_ENABLED. Backend: Dials calls v2 C3 (DESIGN-one-voice-calls-v2 §1, §2, §6). Error codes are as Genesis callers receive them: Dials' refusal rendered in the gateway's error envelope, {"ok":false,"error":{"type":...,"code":"NOT_CALL_PARTY","layer":"dials",...}} (Dials' own internal API uses the lower-case form).

Parameters

  • Idempotency-Keyheader · string

    Same as the body's idempotency_key; when both are sent they must match.

Request body application/json

  • tostringrequired

    one, or an agent id. min length 1 · max length 128 · pattern ^[A-Za-z0-9_.:-]+$

  • client"ios" | "web" | "desktop" | "watch" | "tv" | "api"
  • mediastring

    The client's media hint (today http); not used yet.

  • idempotency_keystring

    min length 1 · max length 128 · pattern ^[A-Za-z0-9_.:-]+$

Responses

  • 200Idempotent replay of the same call.
    Response fields
    • call_idstringrequired

      pattern ^acall_[0-9a-f]{32}$

    • state"queued" | "ringing" | "connected" | "ended" | "failed" | "missed"required
    • tostringrequired
    • clientstring | null
    • ring_planobjectrequired
    • ring_plan.dial_tone_msintegerrequired

      min 0

    • ring_plan.ringsintegerrequired

      Rings before the earliest pickup (random per call). min 1 · max 3

    • ring_plan.ring_msintegerrequired

      min 1

    • ring_plan.max_rings3required
    • queueobject | null
    • queue.positioninteger

      min 1

    • created_atstring | null (date-time)required
    • admitted_atstring | null (date-time)
    • ready_atstring | null (date-time)
    • pickup_atstring | null (date-time)

      When the call connects (end of a ring), once admitted and ready.

    • connected_atstring | null (date-time)
    • deadline_atstring | null (date-time)required

      End of ring 3: not connected by then is missed.

    • ended_atstring | null (date-time)
    • ended_by"person" | "agent" | "system" | null

      person: the creator hung up; agent: One hung up (Dials service credential); system: a miss, failure, lease lapse or the cap.

    • end_reasonstring | null

      no_capacity, warmup_not_ready, warmup_failed:<code>, lease_expired (billed to the last heartbeat), max_duration, or the caller's code.

    • call_secondsinteger | null

      min 0

    • lease_untilstring | null (date-time)
    • heartbeat_every_msinteger | null
    • poll_after_msinteger | null
    • server_timestring | null (date-time)required
    • idempotent_replayboolean
    • already_endedboolean
  • 201Placed: ringing, or queued with a position.
    Response fields
    • call_idstringrequired

      pattern ^acall_[0-9a-f]{32}$

    • state"queued" | "ringing" | "connected" | "ended" | "failed" | "missed"required
    • tostringrequired
    • clientstring | null
    • ring_planobjectrequired
    • ring_plan.dial_tone_msintegerrequired

      min 0

    • ring_plan.ringsintegerrequired

      Rings before the earliest pickup (random per call). min 1 · max 3

    • ring_plan.ring_msintegerrequired

      min 1

    • ring_plan.max_rings3required
    • queueobject | null
    • queue.positioninteger

      min 1

    • created_atstring | null (date-time)required
    • admitted_atstring | null (date-time)
    • ready_atstring | null (date-time)
    • pickup_atstring | null (date-time)

      When the call connects (end of a ring), once admitted and ready.

    • connected_atstring | null (date-time)
    • deadline_atstring | null (date-time)required

      End of ring 3: not connected by then is missed.

    • ended_atstring | null (date-time)
    • ended_by"person" | "agent" | "system" | null

      person: the creator hung up; agent: One hung up (Dials service credential); system: a miss, failure, lease lapse or the cap.

    • end_reasonstring | null

      no_capacity, warmup_not_ready, warmup_failed:<code>, lease_expired (billed to the last heartbeat), max_duration, or the caller's code.

    • call_secondsinteger | null

      min 0

    • lease_untilstring | null (date-time)
    • heartbeat_every_msinteger | null
    • poll_after_msinteger | null
    • server_timestring | null (date-time)required
    • idempotent_replayboolean
    • already_endedboolean
  • 400MISSING_IDEMPOTENCY_KEY, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_KEY_MISMATCH or INVALID_BODY.
  • 401Missing or invalid signed identity or selection.
  • 403CALL_QUEUE_NOT_OPEN (organization not admitted) or PRINCIPAL_REQUIRED.
  • 409IDEMPOTENCY_KEY_REUSED.
  • 422INVALID_TO or INVALID_CLIENT.
  • 503CALL_QUEUE_DISABLED (dark), CALL_QUEUE_FULL, or CALL_STORE_FAILED.
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/dials/calls" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "to": "string"
  }'

Get your agent call now

GET/v1/dials/calls/{call_id}

dials:readdials_getAgentCall

The call's state (queued, ringing, connected, ended, failed, missed), ring plan, queue position, pickup_at once known, and the end. The clock moves the call: reading it can show a pickup, a miss or a lease end. Tenancy: the gateway-signed organization plus the signed project selection; a body or query scope is ignored. Roles: only the call's creator reads, heartbeats or ends it through Genesis (403 NOT_CALL_PARTY for anyone else in the same organization and project; another organization's or project's call is 404 CALL_NOT_FOUND). One's side of the call (warm-up ready, its end_call, its heartbeat) uses Dials' own service credential, not Genesis. Every route answers 403 CALL_QUEUE_NOT_OPEN for an organization not in DIALS_CALL_QUEUE_ORGS, before any lookup. Dark: 503 CALL_QUEUE_DISABLED until DIALS_CALL_QUEUE_ENABLED. Backend: Dials calls v2 C3 (DESIGN-one-voice-calls-v2 §1, §2, §6). Error codes are as Genesis callers receive them: Dials' refusal rendered in the gateway's error envelope, {"ok":false,"error":{"type":...,"code":"NOT_CALL_PARTY","layer":"dials",...}} (Dials' own internal API uses the lower-case form).

Parameters

  • call_idpath · stringrequired

    The agent call id from create.

Responses

  • 200The call.
    Response fields
    • call_idstringrequired

      pattern ^acall_[0-9a-f]{32}$

    • state"queued" | "ringing" | "connected" | "ended" | "failed" | "missed"required
    • tostringrequired
    • clientstring | null
    • ring_planobjectrequired
    • ring_plan.dial_tone_msintegerrequired

      min 0

    • ring_plan.ringsintegerrequired

      Rings before the earliest pickup (random per call). min 1 · max 3

    • ring_plan.ring_msintegerrequired

      min 1

    • ring_plan.max_rings3required
    • queueobject | null
    • queue.positioninteger

      min 1

    • created_atstring | null (date-time)required
    • admitted_atstring | null (date-time)
    • ready_atstring | null (date-time)
    • pickup_atstring | null (date-time)

      When the call connects (end of a ring), once admitted and ready.

    • connected_atstring | null (date-time)
    • deadline_atstring | null (date-time)required

      End of ring 3: not connected by then is missed.

    • ended_atstring | null (date-time)
    • ended_by"person" | "agent" | "system" | null

      person: the creator hung up; agent: One hung up (Dials service credential); system: a miss, failure, lease lapse or the cap.

    • end_reasonstring | null

      no_capacity, warmup_not_ready, warmup_failed:<code>, lease_expired (billed to the last heartbeat), max_duration, or the caller's code.

    • call_secondsinteger | null

      min 0

    • lease_untilstring | null (date-time)
    • heartbeat_every_msinteger | null
    • poll_after_msinteger | null
    • server_timestring | null (date-time)required
    • idempotent_replayboolean
    • already_endedboolean
  • 401Missing or invalid signed identity or selection.
  • 403CALL_QUEUE_NOT_OPEN (organization not admitted), or NOT_CALL_PARTY (not the call's creator).
  • 404CALL_NOT_FOUND.
  • 503CALL_QUEUE_DISABLED (dark), CALL_QUEUE_FULL, or CALL_STORE_FAILED.
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/dials/calls/$CALL_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Your organization's share of the call slot pool

GET/v1/dials/calls/capacity

dials:readdials_getAgentCallCapacity

Counts only: the caller organization's slots, calls in use and queued, how many global slots are free, and the ring plan bounds. Tenancy: the gateway-signed organization plus the signed project selection; a body or query scope is ignored. Roles: only the call's creator reads, heartbeats or ends it through Genesis (403 NOT_CALL_PARTY for anyone else in the same organization and project; another organization's or project's call is 404 CALL_NOT_FOUND). One's side of the call (warm-up ready, its end_call, its heartbeat) uses Dials' own service credential, not Genesis. Every route answers 403 CALL_QUEUE_NOT_OPEN for an organization not in DIALS_CALL_QUEUE_ORGS, before any lookup. Dark: 503 CALL_QUEUE_DISABLED until DIALS_CALL_QUEUE_ENABLED. Backend: Dials calls v2 C3 (DESIGN-one-voice-calls-v2 §1, §2, §6). Error codes are as Genesis callers receive them: Dials' refusal rendered in the gateway's error envelope, {"ok":false,"error":{"type":...,"code":"NOT_CALL_PARTY","layer":"dials",...}} (Dials' own internal API uses the lower-case form).

Responses

  • 200Capacity.
    Response fields
    • okbooleanrequired
    • orgobjectrequired
    • org.slotsintegerrequired
    • org.in_useintegerrequired
    • org.queuedintegerrequired
    • globalobjectrequired
    • global.freeintegerrequired

      min 0

    • ring_planobjectrequired
    • ring_plan.dial_tone_msinteger
    • ring_plan.ring_msinteger
    • ring_plan.ringsinteger[]
  • 401Missing or invalid signed identity or selection.
  • 403CALL_QUEUE_NOT_OPEN (organization not admitted).
  • 503CALL_QUEUE_DISABLED (dark), CALL_QUEUE_FULL, or CALL_STORE_FAILED.
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/dials/calls/capacity" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Queue an approved outbound call with an idempotency key

POST/v1/dials/calls/outbound

dials:writeTested with an API keydials_createOutboundCall

Request body application/json

  • scopeobjectrequired
  • scope.platformId"dials"

    Dials platform identifier; defaults to dials when omitted.

  • scope.organizationIdstringrequired

    min length 1

  • scope.workspaceIdstring

    min length 1

  • scope.projectIdstring

    min length 1

  • scope.environmentIdstring

    min length 1

  • actorIdstringrequired

    min length 1

  • toE164stringrequired

    min length 1

  • fromNumberIdstringrequired

    min length 1

  • idempotencyKeystringrequired

    min length 1

  • complianceApprovedbooleanrequired
  • disclosureApprovedbooleanrequired
  • recordingPolicyApprovedbooleanrequired
  • emergencyAddressBoundboolean

    Optional and never trusted as the binding. Dials derives E911 from the caller number's own carrier-validated address (POST /v1/numbers/e911); there is no fallback address. An explicit false is refused like a missing binding.

  • callControlobject | objectrequired

    Customer-selected call behavior. Speak plays the provided text and ends the call; stream connects live audio to the customer agent WebSocket. No default behavior is synthesized.

  • purpose"marketing" | "transactional" | "informational" | "support" | "customer_care"

    What the contact is for. A marketing call or text (or a text from a template whose category is marketing) is refused outside 8:00-21:00 in the recipient's local time (from the area code; every zone of a split area code must be inside): 422 quiet_hours, or recipient_time_zone_unknown when the number cannot be placed.

Responses

  • 200Success
    Response fields
    • okbooleanrequired
    • callobjectrequired

      Saved call session. Admission/recovery receipts return this session without the separate carrier outcome fields in calls.list.

    • call.idstringrequired
    • call.scopeobjectrequired
    • call.scope.platformId"dials"

      Dials platform identifier; defaults to dials when omitted.

    • call.scope.organizationIdstringrequired

      min length 1

    • call.scope.workspaceIdstring

      min length 1

    • call.scope.projectIdstring

      min length 1

    • call.scope.environmentIdstring

      min length 1

    • call.direction"inbound" | "outbound" | "on_net"required
    • call.status"created" | "compliance_checked" | "queued" | "dialing" | "ringing" | "answered" | "bridged" | "held" | "completed" | "failed" | "blocked"required

      Call lifecycle only. A queued lifecycle can coexist with uncertain or recovery_required dispatchState; it is not proof that another worker should execute it.

    • call.phoneNumberIdstringrequired
    • call.remoteE164stringrequired
    • call.callControlobject | object

      Customer-selected call behavior. Speak plays the provided text and ends the call; stream connects live audio to the customer agent WebSocket. No default behavior is synthesized.

    • auditIdstringrequired
    • dispatchJobIdstringrequired
    • usageEventIdstringrequired
    • nextstringrequired
    • idempotentReplaybooleanrequired
  • 401Missing or invalid identity
  • 404Resource does not belong to the authenticated organization
  • 503Backend or carrier unavailable
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/dials/calls/outbound" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "scope": {
      "organizationId": "string"
    },
    "actorId": "string",
    "toE164": "string",
    "fromNumberId": "string",
    "idempotencyKey": "string",
    "complianceApproved": true,
    "disclosureApproved": true,
    "recordingPolicyApproved": true,
    "callControl": {
      "type": "speak",
      "text": "string"
    }
  }'

Read an existing outbound admission receipt without originating a call

POST/v1/dials/calls/outbound/recover

dials:writeTested with an API keydials_recoverOutboundCall

Submit the identical original OutboundCall body/key through this distinct read-journal-only route. Requires verified org/full selected scope and dials:write. Returns the original stored CreateOutboundCallResponse with idempotentReplay:true; missing 404/mismatched 409 fails closed. No new call, job, audit, usage, provider request or worker action occurs. This is not the normal creation POST and must not bypass an uncertain-call fence. Runtime deployment/acceptance is separate from this schema candidate.

Request body application/json

  • scopeobjectrequired
  • scope.platformId"dials"

    Dials platform identifier; defaults to dials when omitted.

  • scope.organizationIdstringrequired

    min length 1

  • scope.workspaceIdstring

    min length 1

  • scope.projectIdstring

    min length 1

  • scope.environmentIdstring

    min length 1

  • actorIdstringrequired

    min length 1

  • toE164stringrequired

    min length 1

  • fromNumberIdstringrequired

    min length 1

  • idempotencyKeystringrequired

    min length 1

  • complianceApprovedbooleanrequired
  • disclosureApprovedbooleanrequired
  • recordingPolicyApprovedbooleanrequired
  • emergencyAddressBoundboolean

    Optional and never trusted as the binding. Dials derives E911 from the caller number's own carrier-validated address (POST /v1/numbers/e911); there is no fallback address. An explicit false is refused like a missing binding.

  • callControlobject | objectrequired

    Customer-selected call behavior. Speak plays the provided text and ends the call; stream connects live audio to the customer agent WebSocket. No default behavior is synthesized.

  • purpose"marketing" | "transactional" | "informational" | "support" | "customer_care"

    What the contact is for. A marketing call or text (or a text from a template whose category is marketing) is refused outside 8:00-21:00 in the recipient's local time (from the area code; every zone of a split area code must be inside): 422 quiet_hours, or recipient_time_zone_unknown when the number cannot be placed.

Responses

  • 200Existing saved admission receipt; idempotentReplay:true only. Carrier acceptance/current state is not established.
    Response fields
    • okbooleanrequired
    • callobjectrequired

      Saved call session. Admission/recovery receipts return this session without the separate carrier outcome fields in calls.list.

    • call.idstringrequired
    • call.scopeobjectrequired
    • call.scope.platformId"dials"

      Dials platform identifier; defaults to dials when omitted.

    • call.scope.organizationIdstringrequired

      min length 1

    • call.scope.workspaceIdstring

      min length 1

    • call.scope.projectIdstring

      min length 1

    • call.scope.environmentIdstring

      min length 1

    • call.direction"inbound" | "outbound" | "on_net"required
    • call.status"created" | "compliance_checked" | "queued" | "dialing" | "ringing" | "answered" | "bridged" | "held" | "completed" | "failed" | "blocked"required

      Call lifecycle only. A queued lifecycle can coexist with uncertain or recovery_required dispatchState; it is not proof that another worker should execute it.

    • call.phoneNumberIdstringrequired
    • call.remoteE164stringrequired
    • call.callControlobject | object

      Customer-selected call behavior. Speak plays the provided text and ends the call; stream connects live audio to the customer agent WebSocket. No default behavior is synthesized.

    • auditIdstringrequired
    • dispatchJobIdstringrequired
    • usageEventIdstringrequired
    • nextstringrequired
    • idempotentReplaytruerequired
  • 400Invalid scope or request.
  • 401Missing verified identity.
  • 403Scope or Dials write grant not authorized.
  • 404No existing journal receipt in the verified full scope; no call is inserted.
  • 409Existing idempotency key has a different canonical request body; no mutation.
  • 422Malformed outbound control/request.
  • 500Journal read failed.
  • 503Backend unavailable.
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/dials/calls/outbound/recover" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "scope": {
      "organizationId": "string"
    },
    "actorId": "string",
    "toE164": "string",
    "fromNumberId": "string",
    "idempotencyKey": "string",
    "complianceApproved": true,
    "disclosureApproved": true,
    "recordingPolicyApproved": true,
    "callControl": {
      "type": "speak",
      "text": "string"
    }
  }'

Validate consent and outbound call prerequisites

POST/v1/dials/calls/outbound/validate

dials:writeTested with an API keydials_validateOutboundCall

Request body application/json

  • scopeobjectrequired
  • scope.platformId"dials"

    Dials platform identifier; defaults to dials when omitted.

  • scope.organizationIdstringrequired

    min length 1

  • scope.workspaceIdstring

    min length 1

  • scope.projectIdstring

    min length 1

  • scope.environmentIdstring

    min length 1

  • actorIdstringrequired

    min length 1

  • toE164stringrequired

    min length 1

  • fromNumberIdstringrequired

    min length 1

  • idempotencyKeystringrequired

    min length 1

  • complianceApprovedbooleanrequired
  • disclosureApprovedbooleanrequired
  • recordingPolicyApprovedbooleanrequired
  • emergencyAddressBoundboolean

    Optional and never trusted as the binding. Dials derives E911 from the caller number's own carrier-validated address (POST /v1/numbers/e911); there is no fallback address. An explicit false is refused like a missing binding.

  • callControlobject | objectrequired

    Customer-selected call behavior. Speak plays the provided text and ends the call; stream connects live audio to the customer agent WebSocket. No default behavior is synthesized.

  • purpose"marketing" | "transactional" | "informational" | "support" | "customer_care"

    What the contact is for. A marketing call or text (or a text from a template whose category is marketing) is refused outside 8:00-21:00 in the recipient's local time (from the area code; every zone of a split area code must be inside): 422 quiet_hours, or recipient_time_zone_unknown when the number cannot be placed.

Responses

  • 200Success
    Response fields

    A JSON object.

  • 401Missing or invalid identity
  • 404Resource does not belong to the authenticated organization
  • 503Backend or carrier unavailable
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/dials/calls/outbound/validate" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "scope": {
      "organizationId": "string"
    },
    "actorId": "string",
    "toE164": "string",
    "fromNumberId": "string",
    "idempotencyKey": "string",
    "complianceApproved": true,
    "disclosureApproved": true,
    "recordingPolicyApproved": true,
    "callControl": {
      "type": "speak",
      "text": "string"
    }
  }'

End

Hang up your agent call

POST/v1/dials/calls/{call_id}/end

dials:writeIdempotency-Key optionaldials_endAgentCall

Ends the call as its creator: ended_by is person, derived from the caller (a by field is 400 BY_IS_DERIVED). One hangs up (ended_by: agent) through Dials' service credential, not this route. reason is a code such as goodbye, done, leaving or hung_up. Connected seconds are recorded per organization and agent (call_seconds); no money moves. A freed slot goes to the oldest queued call. Ending an ended call answers it with already_ended: true. Idempotent on idempotency_key (optional); the same key with a different request is 409; a refused request never uses up its key. Tenancy: the gateway-signed organization plus the signed project selection; a body or query scope is ignored. Roles: only the call's creator reads, heartbeats or ends it through Genesis (403 NOT_CALL_PARTY for anyone else in the same organization and project; another organization's or project's call is 404 CALL_NOT_FOUND). One's side of the call (warm-up ready, its end_call, its heartbeat) uses Dials' own service credential, not Genesis. Every route answers 403 CALL_QUEUE_NOT_OPEN for an organization not in DIALS_CALL_QUEUE_ORGS, before any lookup. Dark: 503 CALL_QUEUE_DISABLED until DIALS_CALL_QUEUE_ENABLED. Backend: Dials calls v2 C3 (DESIGN-one-voice-calls-v2 §1, §2, §6). Error codes are as Genesis callers receive them: Dials' refusal rendered in the gateway's error envelope, {"ok":false,"error":{"type":...,"code":"NOT_CALL_PARTY","layer":"dials",...}} (Dials' own internal API uses the lower-case form).

Parameters

  • call_idpath · stringrequired

    The agent call id from create.

  • Idempotency-Keyheader · string

    Same as the body's idempotency_key; when both are sent they must match.

Request body application/json

  • reasonstring

    default "hung_up" · pattern ^[a-z0-9_]{1,48}$

  • idempotency_keystring

    min length 1 · max length 128 · pattern ^[A-Za-z0-9_.:-]+$

Responses

  • 200The ended call.
    Response fields
    • call_idstringrequired

      pattern ^acall_[0-9a-f]{32}$

    • state"queued" | "ringing" | "connected" | "ended" | "failed" | "missed"required
    • tostringrequired
    • clientstring | null
    • ring_planobjectrequired
    • ring_plan.dial_tone_msintegerrequired

      min 0

    • ring_plan.ringsintegerrequired

      Rings before the earliest pickup (random per call). min 1 · max 3

    • ring_plan.ring_msintegerrequired

      min 1

    • ring_plan.max_rings3required
    • queueobject | null
    • queue.positioninteger

      min 1

    • created_atstring | null (date-time)required
    • admitted_atstring | null (date-time)
    • ready_atstring | null (date-time)
    • pickup_atstring | null (date-time)

      When the call connects (end of a ring), once admitted and ready.

    • connected_atstring | null (date-time)
    • deadline_atstring | null (date-time)required

      End of ring 3: not connected by then is missed.

    • ended_atstring | null (date-time)
    • ended_by"person" | "agent" | "system" | null

      person: the creator hung up; agent: One hung up (Dials service credential); system: a miss, failure, lease lapse or the cap.

    • end_reasonstring | null

      no_capacity, warmup_not_ready, warmup_failed:<code>, lease_expired (billed to the last heartbeat), max_duration, or the caller's code.

    • call_secondsinteger | null

      min 0

    • lease_untilstring | null (date-time)
    • heartbeat_every_msinteger | null
    • poll_after_msinteger | null
    • server_timestring | null (date-time)required
    • idempotent_replayboolean
    • already_endedboolean
  • 400BY_IS_DERIVED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_KEY_MISMATCH or INVALID_BODY.
  • 401Missing or invalid signed identity or selection.
  • 403CALL_QUEUE_NOT_OPEN (organization not admitted), or NOT_CALL_PARTY (not the call's creator).
  • 404CALL_NOT_FOUND.
  • 409IDEMPOTENCY_KEY_REUSED.
  • 422INVALID_REASON.
  • 503CALL_QUEUE_DISABLED (dark), CALL_QUEUE_FULL, or CALL_STORE_FAILED.
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/dials/calls/$CALL_ID/end" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Heartbeat

Keep a connected call's slot

POST/v1/dials/calls/{call_id}/heartbeat

dials:writedials_heartbeatAgentCall

Renews a connected call's lease (send every heartbeat_every_ms). A connected call with no heartbeat for the lease (30 s) ends lease_expired and frees its slot; its call_seconds run to the last heartbeat, never to the lease end. Tenancy: the gateway-signed organization plus the signed project selection; a body or query scope is ignored. Roles: only the call's creator reads, heartbeats or ends it through Genesis (403 NOT_CALL_PARTY for anyone else in the same organization and project; another organization's or project's call is 404 CALL_NOT_FOUND). One's side of the call (warm-up ready, its end_call, its heartbeat) uses Dials' own service credential, not Genesis. Every route answers 403 CALL_QUEUE_NOT_OPEN for an organization not in DIALS_CALL_QUEUE_ORGS, before any lookup. Dark: 503 CALL_QUEUE_DISABLED until DIALS_CALL_QUEUE_ENABLED. Backend: Dials calls v2 C3 (DESIGN-one-voice-calls-v2 §1, §2, §6). Error codes are as Genesis callers receive them: Dials' refusal rendered in the gateway's error envelope, {"ok":false,"error":{"type":...,"code":"NOT_CALL_PARTY","layer":"dials",...}} (Dials' own internal API uses the lower-case form).

Parameters

  • call_idpath · stringrequired

    The agent call id from create.

Responses

  • 200The call.
    Response fields
    • call_idstringrequired

      pattern ^acall_[0-9a-f]{32}$

    • state"queued" | "ringing" | "connected" | "ended" | "failed" | "missed"required
    • tostringrequired
    • clientstring | null
    • ring_planobjectrequired
    • ring_plan.dial_tone_msintegerrequired

      min 0

    • ring_plan.ringsintegerrequired

      Rings before the earliest pickup (random per call). min 1 · max 3

    • ring_plan.ring_msintegerrequired

      min 1

    • ring_plan.max_rings3required
    • queueobject | null
    • queue.positioninteger

      min 1

    • created_atstring | null (date-time)required
    • admitted_atstring | null (date-time)
    • ready_atstring | null (date-time)
    • pickup_atstring | null (date-time)

      When the call connects (end of a ring), once admitted and ready.

    • connected_atstring | null (date-time)
    • deadline_atstring | null (date-time)required

      End of ring 3: not connected by then is missed.

    • ended_atstring | null (date-time)
    • ended_by"person" | "agent" | "system" | null

      person: the creator hung up; agent: One hung up (Dials service credential); system: a miss, failure, lease lapse or the cap.

    • end_reasonstring | null

      no_capacity, warmup_not_ready, warmup_failed:<code>, lease_expired (billed to the last heartbeat), max_duration, or the caller's code.

    • call_secondsinteger | null

      min 0

    • lease_untilstring | null (date-time)
    • heartbeat_every_msinteger | null
    • poll_after_msinteger | null
    • server_timestring | null (date-time)required
    • idempotent_replayboolean
    • already_endedboolean
  • 401Missing or invalid signed identity or selection.
  • 403CALL_QUEUE_NOT_OPEN (organization not admitted), or NOT_CALL_PARTY (not the call's creator).
  • 404CALL_NOT_FOUND.
  • 409CALL_ENDED.
  • 503CALL_QUEUE_DISABLED (dark), CALL_QUEUE_FULL, or CALL_STORE_FAILED.
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/dials/calls/$CALL_ID/heartbeat" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Console

Read the scoped Dials operating surface

GET/v1/dials/console/operating-surface

dials:readTested with an API keydials_getOperatingSurface

Parameters

  • organizationIdquery · stringrequired

    Must match the authenticated organization.

  • workspaceIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • projectIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • environmentIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

Responses

  • 200Success
    Response fields
    • okbooleanrequired
    • scopeobjectrequired
    • scope.platformId"dials"

      Dials platform identifier; defaults to dials when omitted.

    • scope.organizationIdstringrequired

      min length 1

    • scope.workspaceIdstring

      min length 1

    • scope.projectIdstring

      min length 1

    • scope.environmentIdstring

      min length 1

    • summaryobjectrequired
    • summary.okbooleanrequired
    • summary.scopeobjectrequired
    • summary.scope.platformId"dials"

      Dials platform identifier; defaults to dials when omitted.

    • summary.scope.organizationIdstringrequired

      min length 1

    • summary.scope.workspaceIdstring

      min length 1

    • summary.scope.projectIdstring

      min length 1

    • summary.scope.environmentIdstring

      min length 1

    • summary.callsobjectrequired
    • summary.calls.totalintegerrequired

      min 0

    • summary.calls.queuedintegerrequired

      min 0

    • summary.calls.activeintegerrequired

      min 0

    • summary.calls.completedintegerrequired

      min 0

    • summary.calls.failedintegerrequired

      min 0

    • summary.dispatchobjectrequired
    • summary.dispatch.totalintegerrequired

      min 0

    • summary.dispatch.pendingintegerrequired

      min 0

    • summary.dispatch.claimedintegerrequired

      min 0

    • summary.dispatch.dispatchedintegerrequired

      min 0

    • summary.dispatch.failedintegerrequired

      min 0

    • summary.peopleobjectrequired
    • summary.people.deployedintegerrequired

      min 0

    • summary.agentsobjectrequired
    • summary.agents.deployedintegerrequired

      min 0

    • summary.routesobjectrequired
    • summary.routes.deployedintegerrequired

      min 0

    • summary.numbersobjectrequired
    • summary.numbers.deployedintegerrequired

      min 0

    • summary.voiceobjectrequired
    • summary.voice.deployedintegerrequired

      min 0

    • summary.messagesobjectrequired
    • summary.messages.totalintegerrequired

      min 0

    • summary.messages.queuedintegerrequired

      min 0

    • summary.messages.deliveredintegerrequired

      min 0

    • summary.messages.failedintegerrequired

      min 0

    • summary.usageobjectrequired
    • summary.usage.totalintegerrequired

      min 0

    • summary.usage.quantitynumberrequired
    • summary.usage.lastMetricstring | nullrequired
    • summary.usage.lastResourceIdstring | nullrequired
    • surfacesobject[]required
    • surfaces[].[].keystringrequired
    • surfaces[].[].titlestringrequired
    • surfaces[].[].audiencestringrequired
    • surfaces[].[].statusstringrequired
    • surfaces[].[].hrefstringrequired
    • surfaces[].[].descriptionstringrequired
    • surfaces[].[].primaryActionstringrequired
    • surfaces[].[].backendResourcestringrequired
    • surfaces[].[].countintegerrequired

      min 0

  • 401Missing or invalid identity
  • 404Resource does not belong to the authenticated organization
  • 503Backend or carrier unavailable
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/dials/console/operating-surface?organizationId=$ORGANIZATION_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Read authoritative scoped Dials resource counts

GET/v1/dials/console/summary

dials:readTested with an API keydials_getConsoleSummary

Parameters

  • organizationIdquery · stringrequired

    Must match the authenticated organization.

  • workspaceIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • projectIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • environmentIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

Responses

  • 200Success
    Response fields
    • okbooleanrequired
    • scopeobjectrequired
    • scope.platformId"dials"

      Dials platform identifier; defaults to dials when omitted.

    • scope.organizationIdstringrequired

      min length 1

    • scope.workspaceIdstring

      min length 1

    • scope.projectIdstring

      min length 1

    • scope.environmentIdstring

      min length 1

    • callsobjectrequired
    • calls.totalintegerrequired

      min 0

    • calls.queuedintegerrequired

      min 0

    • calls.activeintegerrequired

      min 0

    • calls.completedintegerrequired

      min 0

    • calls.failedintegerrequired

      min 0

    • dispatchobjectrequired
    • dispatch.totalintegerrequired

      min 0

    • dispatch.pendingintegerrequired

      min 0

    • dispatch.claimedintegerrequired

      min 0

    • dispatch.dispatchedintegerrequired

      min 0

    • dispatch.failedintegerrequired

      min 0

    • peopleobjectrequired
    • people.deployedintegerrequired

      min 0

    • agentsobjectrequired
    • agents.deployedintegerrequired

      min 0

    • routesobjectrequired
    • routes.deployedintegerrequired

      min 0

    • numbersobjectrequired
    • numbers.deployedintegerrequired

      min 0

    • voiceobjectrequired
    • voice.deployedintegerrequired

      min 0

    • messagesobjectrequired
    • messages.totalintegerrequired

      min 0

    • messages.queuedintegerrequired

      min 0

    • messages.deliveredintegerrequired

      min 0

    • messages.failedintegerrequired

      min 0

    • usageobjectrequired
    • usage.totalintegerrequired

      min 0

    • usage.quantitynumberrequired
    • usage.lastMetricstring | nullrequired
    • usage.lastResourceIdstring | nullrequired
  • 401Missing or invalid identity
  • 404Resource does not belong to the authenticated organization
  • 503Backend or carrier unavailable
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/dials/console/summary?organizationId=$ORGANIZATION_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Human profiles

List saved humans in the selected scope

GET/v1/dials/human-profiles

dials:readTested with an API keydials_listHumanProfiles

Parameters

  • organizationIdquery · stringrequired

    Must match the authenticated organization.

  • workspaceIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • projectIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • environmentIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

Responses

  • 200Success
    Response fields
    • okbooleanrequired
    • humansobject[]required
    • humans[].[].idstringrequired
    • humans[].[].scopeobjectrequired
    • humans[].[].scope.platformId"dials"

      Dials platform identifier; defaults to dials when omitted.

    • humans[].[].scope.organizationIdstringrequired

      min length 1

    • humans[].[].scope.workspaceIdstring

      min length 1

    • humans[].[].scope.projectIdstring

      min length 1

    • humans[].[].scope.environmentIdstring

      min length 1

    • humans[].[].displayNamestringrequired
    • humans[].[].rolestringrequired

      Descriptive phone role, not a One account authorization grant.

    • humans[].[].emailstring | nullrequired
    • humans[].[].extensionstring | nullrequired
    • humans[].[].phoneNumberIdstring | nullrequired
    • humans[].[].contactE164string | nullrequired
    • humans[].[].presence"available" | "focus" | "after_hours" | "offline"required
    • humans[].[].escalationPriorityintegerrequired

      min 0 · max 1000

    • humans[].[].statusstringrequired
  • 401Missing or invalid identity
  • 404Resource does not belong to the authenticated organization
  • 503Backend or carrier unavailable
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/dials/human-profiles?organizationId=$ORGANIZATION_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Save an unassigned HumanProfile by scoped normalized name

POST/v1/dials/human-profiles

dials:writeTested with an API keydials_createHumanProfile

This POST upserts by full scope and trimmed,lowercased name. Omitted optional fields reset. Create unassigned and assign a number separately; never replay creation after an assignment failure. No invitation,model deployment or consent verification is implied.

Request body application/json

  • scopeobjectrequired
  • scope.platformId"dials"

    Dials platform identifier; defaults to dials when omitted.

  • scope.organizationIdstringrequired

    min length 1

  • scope.workspaceIdstring

    min length 1

  • scope.projectIdstring

    min length 1

  • scope.environmentIdstring

    min length 1

  • actorIdstringrequired

    min length 1

  • displayNamestringrequired

    min length 1

  • rolestringrequired

    min length 1

  • emailstring | null

    max length 320

  • extensionstring | null

    pattern ^[0-9]{0,8}$

  • contactE164string | null

    Actual destination handset; backend accepts international E164 or normalizes US10/11 digits.

  • presence"available" | "focus" | "after_hours" | "offline" | null
  • escalationPriorityinteger | null

    min 0 · max 1000

Responses

  • 200Success
    Response fields
    • okbooleanrequired
    • humanobjectrequired
    • human.idstringrequired
    • human.scopeobjectrequired
    • human.scope.platformId"dials"

      Dials platform identifier; defaults to dials when omitted.

    • human.scope.organizationIdstringrequired

      min length 1

    • human.scope.workspaceIdstring

      min length 1

    • human.scope.projectIdstring

      min length 1

    • human.scope.environmentIdstring

      min length 1

    • human.displayNamestringrequired
    • human.rolestringrequired

      Descriptive phone role, not a One account authorization grant.

    • human.emailstring | nullrequired
    • human.extensionstring | nullrequired
    • human.phoneNumberIdstring | nullrequired
    • human.contactE164string | nullrequired
    • human.presence"available" | "focus" | "after_hours" | "offline"required
    • human.escalationPriorityintegerrequired

      min 0 · max 1000

    • human.statusstringrequired
    • auditIdstringrequired
    • usageEventIdstringrequired
    • nextstringrequired
  • 401Missing or invalid identity
  • 404Resource does not belong to the authenticated organization
  • 422Invalid profile fields, missing consent/license attestation, or unsupported production model
  • 503Backend or carrier unavailable
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/dials/human-profiles" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "scope": {
      "organizationId": "string"
    },
    "actorId": "string",
    "displayName": "string",
    "role": "string"
  }'

Delete (archive) a saved human profile

DELETE/v1/dials/human-profiles/{human_id}

dials:writedials_deleteHumanProfile

Needs dials:write. Archives the human profile with this id in the verified scope (scope as query parameters, or a JSON body {"scope":{...}}). The row and its history are kept; the human leaves listHumanProfiles and the console counts, is never rung or chosen for escalation, and can no longer take a number. Unknown or other-scope ids are 404 human_profile_not_found; while a held number is assigned to the human the delete is 409 human_profile_in_use. A repeat answers the same 200.

Parameters

  • human_idpath · stringrequired
  • organizationIdquery · stringrequired

    Must match the authenticated organization.

  • workspaceIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • projectIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • environmentIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

Responses

  • 200Archived (or already archived by the owner).
    Response fields
    • idstringrequired
    • deletedtruerequired
    • archivedtruerequired
  • 400Invalid scope.
  • 401Missing or invalid identity, or a read-only credential.
  • 403The credential lacks dials:write (gateway SCOPE_MISSING).
  • 404agent_not_found: no such agent in the verified scope.
  • 409agent_in_use: a held number is still assigned to this agent.
  • 503Backend unavailable
  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/dials/human-profiles/$HUMAN_ID?organizationId=$ORGANIZATION_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Lines

List lines: each number with its seat, route, E911 binding and what it may do now

GET/v1/dials/lines

dials:readdials_listLines

Needs dials:read. Deny by default: dial.allowed is true only for an active number whose own emergency address is bound and carrier-validated (refusal emergency_address_not_bound; no fallback address); ring.allowed only when an enabled inbound routing rule covers the number or it is assigned to a seat (refusal did_unassigned).

Parameters

  • organizationIdquery · stringrequired

    Must match the authenticated organization.

  • workspaceIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • projectIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • environmentIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

Responses

  • 200Success
    Response fields
    • okbooleanrequired
    • linesobject[]required
    • lines[].[].numberIdstringrequired
    • lines[].[].e164stringrequired
    • lines[].[].providerstringrequired
    • lines[].[].statusstringrequired
    • lines[].[].seatobject | nullrequired
    • lines[].[].seat.kindstring
    • lines[].[].seat.idstring
    • lines[].[].callerNamestring | null
    • lines[].[].cnamStatusstringrequired
    • lines[].[].e911Statusstringrequired
    • lines[].[].dialobjectrequired
    • lines[].[].dial.allowedbooleanrequired
    • lines[].[].dial.refusalsstring[]required
    • lines[].[].ringobjectrequired
    • lines[].[].ring.allowedbooleanrequired
    • lines[].[].ring.routestringrequired

      routing_rule, routing_rule_conditional, assigned_<kind> or none.

    • lines[].[].ring.ruleIdstring
    • lines[].[].ring.refusalsstring[]required
    • lines[].[].messagingobject
  • 401Missing or invalid identity
  • 404Resource does not belong to the authenticated organization
  • 503Backend unavailable
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/dials/lines?organizationId=$ORGANIZATION_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Message templates

List scoped saved message templates

GET/v1/dials/message-templates

dials:readTested with an API keydials_listMessageTemplates

Parameters

  • organizationIdquery · stringrequired

    Must match the authenticated organization.

  • workspaceIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • projectIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • environmentIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • platformIdquery · string

    Selected data platform. Omitted defaults to dials in the backend; selection does not grant organization authority.

Responses

  • 200Actual durable operation result; no carrier delivery or graph execution is inferred.
    Response fields
    • okbooleanrequired
    • templatesobject[]required
    • templates[].[].idstringrequired
    • templates[].[].scopeobjectrequired
    • templates[].[].scope.platformId"dials"

      Dials platform identifier; defaults to dials when omitted.

    • templates[].[].scope.organizationIdstringrequired

      min length 1

    • templates[].[].scope.workspaceIdstring

      min length 1

    • templates[].[].scope.projectIdstring

      min length 1

    • templates[].[].scope.environmentIdstring

      min length 1

    • templates[].[].namestringrequired
    • templates[].[].channelstringrequired
    • templates[].[].categorystringrequired
    • templates[].[].bodystringrequired
    • templates[].[].statusstringrequired

      approved is locally saved template state, not carrier/compliance approval.

  • 400Invalid selected scope or request shape.
  • 401Missing or invalid verified identity.
  • 403Selected scope is not authorized by signed identity or lacks the required Dials grant.
  • 500Durable store failed.
  • 503Backend is not ready.
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/dials/message-templates?organizationId=$ORGANIZATION_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Save a scoped message template by normalized name

POST/v1/dials/message-templates

dials:writeTested with an API keydials_createMessageTemplate

Request body application/json

  • scopeobjectrequired
  • scope.platformId"dials"

    Dials platform identifier; defaults to dials when omitted.

  • scope.organizationIdstringrequired

    min length 1

  • scope.workspaceIdstring

    min length 1

  • scope.projectIdstring

    min length 1

  • scope.environmentIdstring

    min length 1

  • actorIdstringrequired

    min length 1

  • namestringrequired

    min length 1

  • channel"sms" | "mms"required

    Backend trims and lowercases sms/mms. This request has no media attachment field; mms does not imply attachment support.

  • categorystringrequired

    min length 1

  • bodystringrequired

    Nonblank body; the backend limits trimmed UTF-8 bytes to 5000, not only Unicode characters. min length 1 · max length 5000

Responses

  • 200Actual durable operation result; no carrier delivery or graph execution is inferred.
    Response fields
    • okbooleanrequired
    • templateobjectrequired
    • template.idstringrequired
    • template.scopeobjectrequired
    • template.scope.platformId"dials"

      Dials platform identifier; defaults to dials when omitted.

    • template.scope.organizationIdstringrequired

      min length 1

    • template.scope.workspaceIdstring

      min length 1

    • template.scope.projectIdstring

      min length 1

    • template.scope.environmentIdstring

      min length 1

    • template.namestringrequired
    • template.channelstringrequired
    • template.categorystringrequired
    • template.bodystringrequired
    • template.statusstringrequired

      approved is locally saved template state, not carrier/compliance approval.

    • auditIdstringrequired
    • usageEventIdstringrequired
    • nextstringrequired
  • 400Invalid selected scope or request shape.
  • 401Missing or invalid verified identity.
  • 403Selected scope is not authorized by signed identity or lacks the required Dials grant.
  • 422Validation or approval requirement refused.
  • 500Durable store failed.
  • 503Backend is not ready.
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/dials/message-templates" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "scope": {
      "organizationId": "string"
    },
    "actorId": "string",
    "name": "string",
    "channel": "sms",
    "category": "string",
    "body": "string"
  }'

Messages

List scoped saved messages and actual delivery state

GET/v1/dials/messages

dials:readTested with an API keydials_listMessages

Parameters

  • organizationIdquery · stringrequired

    Must match the authenticated organization.

  • workspaceIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • projectIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • environmentIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • platformIdquery · string

    Selected data platform. Omitted defaults to dials in the backend; selection does not grant organization authority.

Responses

  • 200Actual durable operation result; no carrier delivery or graph execution is inferred.
    Response fields
    • okbooleanrequired
    • messagesobject[]required
    • messages[].[].idstringrequired
    • messages[].[].scopeobjectrequired
    • messages[].[].scope.platformId"dials"

      Dials platform identifier; defaults to dials when omitted.

    • messages[].[].scope.organizationIdstringrequired

      min length 1

    • messages[].[].scope.workspaceIdstring

      min length 1

    • messages[].[].scope.projectIdstring

      min length 1

    • messages[].[].scope.environmentIdstring

      min length 1

    • messages[].[].direction"inbound" | "outbound"required
    • messages[].[].channelstringrequired
    • messages[].[].status"queued" | "sending" | "sent" | "delivered" | "undelivered" | "failed" | "received"required

      queued is durable admission, sending is adapter claim, sent is carrier acceptance, delivered is reported delivery; these are distinct. Never infer receipt from queueing.

    • messages[].[].fromNumberIdstringrequired

      The Dials-owned number in either direction; for inbound, this is the receiving number.

    • messages[].[].toE164stringrequired

      Literal destination; for inbound this can be the owned number.

    • messages[].[].remoteE164stringrequired

      Counterparty for inbound and outbound.

    • messages[].[].bodystringrequired
    • messages[].[].templateIdstring | nullrequired
    • messages[].[].providerstringrequired
    • messages[].[].providerMessageIdstring | nullrequired
    • messages[].[].providerStatusstring | nullrequired
    • messages[].[].segmentsinteger | null (int32)required

      Can be a local estimate at queue time, replaced by a carrier-reported count. It is not a price or proof of billing.

    • messages[].[].errorstring | nullrequired
    • messages[].[].errorCodestring | nullrequired
  • 400Invalid selected scope or request shape.
  • 401Missing or invalid verified identity.
  • 403Selected scope is not authorized by signed identity or lacks the required Dials grant.
  • 500Durable store failed.
  • 503Backend is not ready.
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/dials/messages?organizationId=$ORGANIZATION_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Queue an explicitly approved outbound message

POST/v1/dials/messages/outbound

dials:writeTested with an API keydials_createOutboundMessage

Persist one scoped message, dispatch job, audit and usage in a transaction. Returns queued, not delivered. No automatic retry, approval default or provider registration is supplied.

Request body application/json

  • scopeobjectrequired
  • scope.platformId"dials"

    Dials platform identifier; defaults to dials when omitted.

  • scope.organizationIdstringrequired

    min length 1

  • scope.workspaceIdstring

    min length 1

  • scope.projectIdstring

    min length 1

  • scope.environmentIdstring

    min length 1

  • actorIdstringrequired

    min length 1

  • fromNumberIdstringrequired

    min length 1

  • toE164stringrequired

    pattern ^\+[0-9]{8,15}$

  • channel"sms" | "mms"required

    Backend trims and lowercases sms/mms. This request has no media attachment field; mms does not imply attachment support.

  • bodystringrequired

    Nonblank body; the backend limits trimmed UTF-8 bytes to 5000, not only Unicode characters. min length 1 · max length 5000

  • templateIdstring | null
  • idempotencyKeystringrequired

    min length 1

  • registrationApprovedbooleanrequired
  • consentApprovedbooleanrequired
  • optOutPolicyApprovedbooleanrequired
  • purpose"marketing" | "transactional" | "informational" | "support" | "customer_care"

    What the contact is for. A marketing call or text (or a text from a template whose category is marketing) is refused outside 8:00-21:00 in the recipient's local time (from the area code; every zone of a split area code must be inside): 422 quiet_hours, or recipient_time_zone_unknown when the number cannot be placed.

Responses

  • 200Actual durable operation result; no carrier delivery or graph execution is inferred.
    Response fields
    • okbooleanrequired
    • messageobjectrequired
    • message.idstringrequired
    • message.scopeobjectrequired
    • message.scope.platformId"dials"

      Dials platform identifier; defaults to dials when omitted.

    • message.scope.organizationIdstringrequired

      min length 1

    • message.scope.workspaceIdstring

      min length 1

    • message.scope.projectIdstring

      min length 1

    • message.scope.environmentIdstring

      min length 1

    • message.direction"inbound" | "outbound"required
    • message.channelstringrequired
    • message.status"queued" | "sending" | "sent" | "delivered" | "undelivered" | "failed" | "received"required

      queued is durable admission, sending is adapter claim, sent is carrier acceptance, delivered is reported delivery; these are distinct. Never infer receipt from queueing.

    • message.fromNumberIdstringrequired

      The Dials-owned number in either direction; for inbound, this is the receiving number.

    • message.toE164stringrequired

      Literal destination; for inbound this can be the owned number.

    • message.remoteE164stringrequired

      Counterparty for inbound and outbound.

    • message.bodystringrequired
    • message.templateIdstring | nullrequired
    • message.providerstringrequired
    • message.providerMessageIdstring | nullrequired
    • message.providerStatusstring | nullrequired
    • message.segmentsinteger | null (int32)required

      Can be a local estimate at queue time, replaced by a carrier-reported count. It is not a price or proof of billing.

    • message.errorstring | nullrequired
    • message.errorCodestring | nullrequired
    • auditIdstringrequired
    • usageEventIdstringrequired
    • nextstringrequired
    • idempotentReplaybooleanrequired
  • 400Invalid selected scope or request shape.
  • 401Missing or invalid verified identity.
  • 403Selected scope is not authorized by signed identity or lacks the required Dials grant.
  • 404Referenced resource is absent from the verified organization and selected scope.
  • 409Existing scoped resource/assignment or idempotency conflict.
  • 422Validation or approval requirement refused.
  • 500Durable store failed.
  • 503Backend is not ready.
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/dials/messages/outbound" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "scope": {
      "organizationId": "string"
    },
    "actorId": "string",
    "fromNumberId": "string",
    "toE164": "string",
    "channel": "sms",
    "body": "string",
    "idempotencyKey": "string",
    "registrationApproved": true,
    "consentApproved": true,
    "optOutPolicyApproved": true
  }'

Ask whether a text can be sent now, without sending it

POST/v1/dials/messages/outbound/check

dials:writedials_checkOutboundMessage

Needs dials:write (backend action dials.messages.send). Runs the same decision as createOutboundMessage from Dials' own records, but sends nothing and consumes nothing. Call it before a send so a person is never asked to approve a text that would be refused. A caller never tells Dials that a text is registered, consented or allowed past opt-out; Dials reads the sending number's 10DLC registration, the recipient's STOP record, and whether the person texted this number in the last 24 hours. Answers 200 with decision: send (records allow it now; code open_conversation when the person texted this number in the last 24 hours), approve_first (everything allows it once the person approves this exact message; code consent_not_recorded; then send with that approval) or refused with one closed code: registration_pending, sender_not_bound, registration_blocked, recipient_opted_out, destination_not_allowed, approval_unavailable (no approval can be taken here, so a send would be refused) or, on rich channels, apple_no_open_conversation and the rich sender codes. The destination is never echoed. Rate limited to 30 checks per organization per minute (429 rate_limited). Same route, SDK and MCP call for every tenant.

Request body application/json

  • scopeobjectrequired
  • scope.platformId"dials"

    Dials platform identifier; defaults to dials when omitted.

  • scope.organizationIdstringrequired

    min length 1

  • scope.workspaceIdstring

    min length 1

  • scope.projectIdstring

    min length 1

  • scope.environmentIdstring

    min length 1

  • channel"sms" | "mms" | "rcs" | "apple"required

    Backend trims and lowercases.

  • fromNumberIdstring

    The scope's own sending number (sms, mms, rcs).

  • toE164string

    Strict E.164 destination (sms, mms, rcs). Never echoed; logged only as a hash.

  • senderIdstring | null

    The scope's own rich sender (rcs, apple).

  • toAppleIdstring | null

    The person's Apple Messages id (apple only).

Responses

  • 200The decision for this text from this scope's own records. Nothing sent, nothing consumed.
    Response fields
    • oktruerequired
    • decision"send" | "approve_first" | "refused"required
    • codestringrequired

      Closed code: open_conversation (send), consent_not_recorded (approve_first), or the refusal code.

  • 401Missing or invalid verified identity.
  • 403Selected scope is not authorized by signed identity or lacks the required Dials grant (resource_not_authorized).
  • 422Unknown channel (invalid_message_channel), toE164 not a strict E.164 on sms/mms (invalid_destination), or a malformed body (invalid_request_body). A body with unknown fields is refused.
  • 429More than 30 checks for this organization in the last minute (rate_limited).
  • 503Backend is not ready (backend_not_ready) or a record could not be read (registration_check_failed / opt_out_check_failed / consent_check_failed / sender_check_failed); nothing is decided.
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/dials/messages/outbound/check" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "scope": {
      "organizationId": "string"
    },
    "channel": "sms"
  }'

Show or clear a typing indicator in an open Apple Messages conversation

POST/v1/dials/messages/typing

dials:writedials_sendTyping

Needs dials:write (backend action dials.messages.send). Content-free: queues one Apple Messages for Business typing event (start or end) from the caller's own live Apple sender to a person who opened a conversation with that sender in the last 24 hours and has not sent STOP. Apple only. At most one typing event per person every 2 seconds: a quicker call coalesces with the pending one and the latest state wins (still 202). A job not handed to the messenger within 8 seconds is dropped unsent. Every refusal (no live Apple sender in this scope, no open conversation, STOP on record, Live messages refused for this org, Sandbox) is the same 409 typing_not_available. Each outcome is counted on the unpriced meter dials.apple_typing; no message row or body is stored.

Request body application/json

  • scopeobjectrequired
  • scope.platformId"dials"

    Dials platform identifier; defaults to dials when omitted.

  • scope.organizationIdstringrequired

    min length 1

  • scope.workspaceIdstring

    min length 1

  • scope.projectIdstring

    min length 1

  • scope.environmentIdstring

    min length 1

  • channel"apple"required

    Apple Messages for Business only.

  • toAppleIdstringrequired

    The person's Apple Messages id, as it arrived on their inbound message. min length 1

  • state"start" | "end"required

Responses

  • 202Accepted (or coalesced with a pending event). Best effort: not proof the indicator was shown.
    Response fields
    • oktruerequired
  • 400Invalid scope or request shape (invalid_body / invalid_scope).
  • 401Missing or invalid verified identity.
  • 403Selected scope is not authorized by signed identity or lacks the required Dials grant (resource_not_authorized).
  • 409No typing event is possible for this person from this scope (typing_not_available).
  • 422channel is not apple (typing_channel_not_supported), state is not start or end (invalid_typing_state), or toAppleId is not an Apple Messages id (invalid_apple_recipient). A body with unknown fields is refused.
  • 503Backend is not ready (backend_not_ready) or the typing store failed (typing_check_failed / typing_store_failed).
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/dials/messages/typing" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "scope": {
      "organizationId": "string"
    },
    "channel": "apple",
    "toAppleId": "string",
    "state": "start"
  }'

Messaging

List scoped messaging brand configuration

GET/v1/dials/messaging/brands

dials:readTested with an API keydials_listMessagingBrands

Parameters

  • organizationIdquery · stringrequired

    Must match the authenticated organization.

  • workspaceIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • projectIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • environmentIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • platformIdquery · string

    Selected data platform. Omitted defaults to dials in the backend; selection does not grant organization authority.

Responses

  • 200Actual durable operation result; no carrier delivery or graph execution is inferred.
    Response fields
    • okbooleanrequired
    • brandsobject[]required
    • brands[].[].idstringrequired
    • brands[].[].scopeobjectrequired
    • brands[].[].scope.platformId"dials"

      Dials platform identifier; defaults to dials when omitted.

    • brands[].[].scope.organizationIdstringrequired

      min length 1

    • brands[].[].scope.workspaceIdstring

      min length 1

    • brands[].[].scope.projectIdstring

      min length 1

    • brands[].[].scope.environmentIdstring

      min length 1

    • brands[].[].legalNamestringrequired
    • brands[].[].displayNamestringrequired
    • brands[].[].entityType"private_profit" | "public_profit" | "non_profit" | "government" | "sole_proprietor"required
    • brands[].[].taxIdstring | nullrequired

      Required by backend for all entity types except sole_proprietor.

    • brands[].[].taxIdCountrystringrequired
    • brands[].[].verticalstringrequired
    • brands[].[].emailstringrequired

      Backend requires an @ character; no email delivery occurs.

    • brands[].[].contactPhoneE164stringrequired

      Actual contact number; backend normalizes dialable input.

    • brands[].[].postalAddressstringrequired
    • brands[].[].websitestringrequired
    • brands[].[].statusstringrequired
    • brands[].[].providerstringrequired
    • brands[].[].providerBrandIdstring | nullrequired
    • brands[].[].errorstring | nullrequired
  • 400Invalid selected scope or request shape.
  • 401Missing or invalid verified identity.
  • 403Selected scope is not authorized by signed identity or lacks the required Dials grant.
  • 500Durable store failed.
  • 503Backend is not ready.
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/dials/messaging/brands?organizationId=$ORGANIZATION_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Save pending messaging brand configuration

POST/v1/dials/messaging/brands

dials:writeTested with an API keydials_createMessagingBrand

Local pending record only. No provider submission or verified registration is performed by this route.

Request body application/json

  • scopeobjectrequired
  • scope.platformId"dials"

    Dials platform identifier; defaults to dials when omitted.

  • scope.organizationIdstringrequired

    min length 1

  • scope.workspaceIdstring

    min length 1

  • scope.projectIdstring

    min length 1

  • scope.environmentIdstring

    min length 1

  • actorIdstringrequired

    min length 1

  • legalNamestringrequired

    min length 1

  • displayNamestringrequired

    min length 1

  • entityType"private_profit" | "public_profit" | "non_profit" | "government" | "sole_proprietor"required
  • taxIdstring | null

    Required by backend for all entity types except sole_proprietor.

  • taxIdCountrystringrequired

    min length 2 · max length 2

  • verticalstringrequired

    min length 1

  • emailstringrequired

    Backend requires an @ character; no email delivery occurs. min length 1

  • contactPhoneE164stringrequired

    Actual contact number; backend normalizes dialable input. min length 1

  • postalAddressstringrequired

    min length 1

  • websitestringrequired

    min length 1 · pattern ^https?://

Responses

  • 200Actual durable operation result; no carrier delivery or graph execution is inferred.
    Response fields
    • okbooleanrequired
    • brandobjectrequired
    • brand.idstringrequired
    • brand.scopeobjectrequired
    • brand.scope.platformId"dials"

      Dials platform identifier; defaults to dials when omitted.

    • brand.scope.organizationIdstringrequired

      min length 1

    • brand.scope.workspaceIdstring

      min length 1

    • brand.scope.projectIdstring

      min length 1

    • brand.scope.environmentIdstring

      min length 1

    • brand.legalNamestringrequired
    • brand.displayNamestringrequired
    • brand.entityType"private_profit" | "public_profit" | "non_profit" | "government" | "sole_proprietor"required
    • brand.taxIdstring | nullrequired

      Required by backend for all entity types except sole_proprietor.

    • brand.taxIdCountrystringrequired
    • brand.verticalstringrequired
    • brand.emailstringrequired

      Backend requires an @ character; no email delivery occurs.

    • brand.contactPhoneE164stringrequired

      Actual contact number; backend normalizes dialable input.

    • brand.postalAddressstringrequired
    • brand.websitestringrequired
    • brand.statusstringrequired
    • brand.providerstringrequired
    • brand.providerBrandIdstring | nullrequired
    • brand.errorstring | nullrequired
    • auditIdstringrequired
    • nextstringrequired
  • 400Invalid selected scope or request shape.
  • 401Missing or invalid verified identity.
  • 403Selected scope is not authorized by signed identity or lacks the required Dials grant.
  • 409Existing scoped resource/assignment or idempotency conflict.
  • 422Validation or approval requirement refused.
  • 500Durable store failed.
  • 503Backend is not ready.
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/dials/messaging/brands" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "scope": {
      "organizationId": "string"
    },
    "actorId": "string",
    "legalName": "string",
    "displayName": "string",
    "entityType": "private_profit",
    "taxIdCountry": "string",
    "vertical": "string",
    "email": "string",
    "contactPhoneE164": "string",
    "postalAddress": "string",
    "website": "string"
  }'

List scoped messaging campaign configuration

GET/v1/dials/messaging/campaigns

dials:readTested with an API keydials_listMessagingCampaigns

Parameters

  • organizationIdquery · stringrequired

    Must match the authenticated organization.

  • workspaceIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • projectIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • environmentIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • platformIdquery · string

    Selected data platform. Omitted defaults to dials in the backend; selection does not grant organization authority.

Responses

  • 200Actual durable operation result; no carrier delivery or graph execution is inferred.
    Response fields
    • okbooleanrequired
    • campaignsobject[]required
    • campaigns[].[].idstringrequired
    • campaigns[].[].scopeobjectrequired
    • campaigns[].[].scope.platformId"dials"

      Dials platform identifier; defaults to dials when omitted.

    • campaigns[].[].scope.organizationIdstringrequired

      min length 1

    • campaigns[].[].scope.workspaceIdstring

      min length 1

    • campaigns[].[].scope.projectIdstring

      min length 1

    • campaigns[].[].scope.environmentIdstring

      min length 1

    • campaigns[].[].brandIdstringrequired
    • campaigns[].[].namestringrequired
    • campaigns[].[].useCase"2fa" | "account_notification" | "customer_care" | "delivery_notification" | "fraud_alert" | "higher_education" | "marketing" | "polling_voting" | "public_service_announcement" | "security_alert" | "mixed"required
    • campaigns[].[].descriptionstringrequired
    • campaigns[].[].sampleMessagesstring[]required
    • campaigns[].[].optInProcessstringrequired
    • campaigns[].[].helpMessagestringrequired
    • campaigns[].[].optOutMessagestringrequired
    • campaigns[].[].directLendingbooleanrequired
    • campaigns[].[].embeddedLinkbooleanrequired
    • campaigns[].[].embeddedPhonebooleanrequired
    • campaigns[].[].ageGatedContentbooleanrequired
    • campaigns[].[].leadGenerationbooleanrequired
    • campaigns[].[].numberPoolingRequiredbooleanrequired
    • campaigns[].[].termsAcceptedbooleanrequired

      Explicit true required; no default acceptance.

    • campaigns[].[].statusstringrequired
    • campaigns[].[].providerstringrequired
    • campaigns[].[].providerCampaignIdstring | nullrequired
    • campaigns[].[].errorstring | nullrequired
  • 400Invalid selected scope or request shape.
  • 401Missing or invalid verified identity.
  • 403Selected scope is not authorized by signed identity or lacks the required Dials grant.
  • 500Durable store failed.
  • 503Backend is not ready.
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/dials/messaging/campaigns?organizationId=$ORGANIZATION_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Save a pending campaign for a verified owned brand

POST/v1/dials/messaging/campaigns

dials:writeTested with an API keydials_createMessagingCampaign

Request body application/json

  • scopeobjectrequired
  • scope.platformId"dials"

    Dials platform identifier; defaults to dials when omitted.

  • scope.organizationIdstringrequired

    min length 1

  • scope.workspaceIdstring

    min length 1

  • scope.projectIdstring

    min length 1

  • scope.environmentIdstring

    min length 1

  • actorIdstringrequired

    min length 1

  • brandIdstringrequired

    min length 1

  • namestringrequired

    min length 1

  • useCase"2fa" | "account_notification" | "customer_care" | "delivery_notification" | "fraud_alert" | "higher_education" | "marketing" | "polling_voting" | "public_service_announcement" | "security_alert" | "mixed"required
  • descriptionstringrequired

    Backend requires at least 40 trimmed UTF-8 bytes. min length 1

  • sampleMessagesstring[]required

    Backend trims and drops blank samples, then requires 2–5.

  • optInProcessstringrequired

    Backend requires at least 40 trimmed UTF-8 bytes. min length 1

  • helpMessagestringrequired

    Must contain HELP or INFO, case-insensitive. min length 1

  • optOutMessagestringrequired

    Must contain STOP, case-insensitive. min length 1

  • directLendingboolean

    default false

  • embeddedLinkboolean

    default false

  • embeddedPhoneboolean

    default false

  • ageGatedContentboolean

    default false

  • leadGenerationboolean

    default false

  • numberPoolingRequiredboolean

    default false

  • termsAcceptedbooleanrequired

    Explicit true required; no default acceptance.

Responses

  • 200Actual durable operation result; no carrier delivery or graph execution is inferred.
    Response fields
    • okbooleanrequired
    • campaignobjectrequired
    • campaign.idstringrequired
    • campaign.scopeobjectrequired
    • campaign.scope.platformId"dials"

      Dials platform identifier; defaults to dials when omitted.

    • campaign.scope.organizationIdstringrequired

      min length 1

    • campaign.scope.workspaceIdstring

      min length 1

    • campaign.scope.projectIdstring

      min length 1

    • campaign.scope.environmentIdstring

      min length 1

    • campaign.brandIdstringrequired
    • campaign.namestringrequired
    • campaign.useCase"2fa" | "account_notification" | "customer_care" | "delivery_notification" | "fraud_alert" | "higher_education" | "marketing" | "polling_voting" | "public_service_announcement" | "security_alert" | "mixed"required
    • campaign.descriptionstringrequired
    • campaign.sampleMessagesstring[]required
    • campaign.optInProcessstringrequired
    • campaign.helpMessagestringrequired
    • campaign.optOutMessagestringrequired
    • campaign.directLendingbooleanrequired
    • campaign.embeddedLinkbooleanrequired
    • campaign.embeddedPhonebooleanrequired
    • campaign.ageGatedContentbooleanrequired
    • campaign.leadGenerationbooleanrequired
    • campaign.numberPoolingRequiredbooleanrequired
    • campaign.termsAcceptedbooleanrequired

      Explicit true required; no default acceptance.

    • campaign.statusstringrequired
    • campaign.providerstringrequired
    • campaign.providerCampaignIdstring | nullrequired
    • campaign.errorstring | nullrequired
    • auditIdstringrequired
    • nextstringrequired
  • 400Invalid selected scope or request shape.
  • 401Missing or invalid verified identity.
  • 403Selected scope is not authorized by signed identity or lacks the required Dials grant.
  • 404Referenced resource is absent from the verified organization and selected scope.
  • 409Existing scoped resource/assignment or idempotency conflict.
  • 422Validation or approval requirement refused.
  • 500Durable store failed.
  • 503Backend is not ready.
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/dials/messaging/campaigns" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "scope": {
      "organizationId": "string"
    },
    "actorId": "string",
    "brandId": "string",
    "name": "string",
    "useCase": "2fa",
    "description": "string",
    "sampleMessages": [
      "string"
    ],
    "optInProcess": "string",
    "helpMessage": "string",
    "optOutMessage": "string",
    "termsAccepted": true
  }'

Save pending association of an owned number with an owned campaign

POST/v1/dials/messaging/campaigns/{campaign_id}/numbers

dials:writeTested with an API keydials_assignCampaignNumber

Parameters

  • campaign_idpath · stringrequired

Request body application/json

  • scopeobjectrequired
  • scope.platformId"dials"

    Dials platform identifier; defaults to dials when omitted.

  • scope.organizationIdstringrequired

    min length 1

  • scope.workspaceIdstring

    min length 1

  • scope.projectIdstring

    min length 1

  • scope.environmentIdstring

    min length 1

  • actorIdstringrequired

    min length 1

  • phoneNumberIdstringrequired

    min length 1

Responses

  • 200Actual durable operation result; no carrier delivery or graph execution is inferred.
    Response fields
    • okbooleanrequired
    • campaignIdstringrequired
    • phoneNumberIdstringrequired
    • auditIdstringrequired
    • nextstringrequired
  • 400Invalid selected scope or request shape.
  • 401Missing or invalid verified identity.
  • 403Selected scope is not authorized by signed identity or lacks the required Dials grant.
  • 404Referenced resource is absent from the verified organization and selected scope.
  • 409Existing scoped resource/assignment or idempotency conflict.
  • 500Durable store failed.
  • 503Backend is not ready.
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/dials/messaging/campaigns/$CAMPAIGN_ID/numbers" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "scope": {
      "organizationId": "string"
    },
    "actorId": "string",
    "phoneNumberId": "string"
  }'

Read the message-event endpoint at a scope level

GET/v1/dials/messaging/endpoint

dials:readdials_getMessagingEndpoint

Needs dials:read (backend action dials.messages.read) at the endpoint's own level: a key bound to an environment cannot read a project, workspace or organization endpoint. Returns the endpoint's host (never its path, query or any secret), events, state (active or paused), the last error code and the last 20 audited changes (old and new host). An endpoint that failed every delivery for 24 hours is paused. 404 endpoint_not_found when none is set at this level.

Parameters

  • organizationIdquery · stringrequired

    Must match the authenticated organization.

  • workspaceIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • projectIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • environmentIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • platformIdquery · string

    Selected data platform. Omitted defaults to dials in the backend; selection does not grant organization authority.

  • levelquery · "organization" | "workspace" | "project" | "environment"

    Which endpoint to read: the one set at this level of the scope. Omitted means environment (the full scope).

Responses

  • 200The endpoint and its changes.
    Response fields
    • oktruerequired
    • endpointobjectrequired

      A tenant's message-event delivery endpoint. No signing secret exists per endpoint: deliveries are signed with the platform keys from getMessageEventKeys.

    • endpoint.idstringrequired
    • endpoint.scopeobjectrequired

      The scope the endpoint is set at: the organization and the workspace, project and environment down to its level (null below it).

    • endpoint.scope.level"organization" | "workspace" | "project" | "environment"required
    • endpoint.scope.platformIdstringrequired
    • endpoint.scope.organizationIdstringrequired
    • endpoint.scope.workspaceIdstring | null
    • endpoint.scope.projectIdstring | null
    • endpoint.scope.environmentIdstring | null
    • endpoint.level"organization" | "workspace" | "project" | "environment"required
    • endpoint.hoststringrequired

      The URL's host only; the path, query and any token in it are never returned.

    • endpoint.events"message.received" | "message.status" | "consent.changed"[]required
    • endpoint.state"active" | "paused"required

      paused after every delivery failed for 24 hours.

    • endpoint.lastErrorCodestring | null
    • endpoint.failingSincestring | null (date-time)
    • endpoint.pausedAtstring | null (date-time)
    • endpoint.lastSuccessAtstring | null (date-time)
    • endpoint.createdAtstring (date-time)
    • endpoint.updatedAtstring (date-time)
    • changesobject[]required

      The last 20 audited changes, newest first.

    • changes[].[].actionstringrequired

      put or delete.

    • changes[].[].oldHoststring | null
    • changes[].[].newHoststring | null
    • changes[].[].atstring (date-time)required
  • 400Invalid scope or request shape (invalid_body / invalid_scope).
  • 401Missing or invalid verified identity.
  • 403Selected scope is not authorized by signed identity or lacks the required Dials grant (resource_not_authorized).
  • 404No endpoint at this level (endpoint_not_found).
  • 422invalid_level.
  • 500Durable store failed (endpoint_store_failed).
  • 503Backend is not ready (backend_not_ready).
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/dials/messaging/endpoint?organizationId=$ORGANIZATION_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Set the message-event delivery endpoint for a scope level

PUT/v1/dials/messaging/endpoint

dials:writedials_putMessagingEndpoint

Needs dials:write at the gateway and the manage grant at Dials: an API key must also carry dials:messages.events.manage (or an admin scope), and the backend checks action dials.messages.events.manage in Auth (an org owner or admin) at the endpoint's own level; a send-only key and an agent capability are refused 403. Creates or replaces the one endpoint at this level. The URL must be https on port 443 with no userinfo or fragment, and its host must resolve to public addresses only. Dials POSTs message.received, message.status and consent.changed events, signed with Ed25519 (see getMessageEventKeys), at least once and unordered: dedupe by event id. Each delivered event is counted on the unpriced meter dials.message_events. The change is audited with the old and new host. The response shows the host only, never the path or query.

Request body application/json

  • scopeobjectrequired
  • scope.platformId"dials"

    Dials platform identifier; defaults to dials when omitted.

  • scope.organizationIdstringrequired

    min length 1

  • scope.workspaceIdstring

    min length 1

  • scope.projectIdstring

    min length 1

  • scope.environmentIdstring

    min length 1

  • level"organization" | "workspace" | "project" | "environment"

    The scope level the endpoint is set at. Omitted means environment (the caller's full scope). Messages in the scope go to the most specific endpoint that contains it, and only that one.

  • urlstringrequired

    https, port 443, no userinfo or fragment; the host must resolve to public addresses only. min length 1 · max length 2048

  • events"message.received" | "message.status" | "consent.changed"[]

    Event types to deliver. Omitted means all three; duplicates are dropped.

Responses

  • 200Saved.
    Response fields
    • oktruerequired
    • endpointobjectrequired

      A tenant's message-event delivery endpoint. No signing secret exists per endpoint: deliveries are signed with the platform keys from getMessageEventKeys.

    • endpoint.idstringrequired
    • endpoint.scopeobjectrequired

      The scope the endpoint is set at: the organization and the workspace, project and environment down to its level (null below it).

    • endpoint.scope.level"organization" | "workspace" | "project" | "environment"required
    • endpoint.scope.platformIdstringrequired
    • endpoint.scope.organizationIdstringrequired
    • endpoint.scope.workspaceIdstring | null
    • endpoint.scope.projectIdstring | null
    • endpoint.scope.environmentIdstring | null
    • endpoint.level"organization" | "workspace" | "project" | "environment"required
    • endpoint.hoststringrequired

      The URL's host only; the path, query and any token in it are never returned.

    • endpoint.events"message.received" | "message.status" | "consent.changed"[]required
    • endpoint.state"active" | "paused"required

      paused after every delivery failed for 24 hours.

    • endpoint.lastErrorCodestring | null
    • endpoint.failingSincestring | null (date-time)
    • endpoint.pausedAtstring | null (date-time)
    • endpoint.lastSuccessAtstring | null (date-time)
    • endpoint.createdAtstring (date-time)
    • endpoint.updatedAtstring (date-time)
  • 400Invalid scope or request shape (invalid_body / invalid_scope).
  • 401Missing or invalid verified identity.
  • 403Selected scope is not authorized by signed identity or lacks the required Dials grant (resource_not_authorized).
  • 422endpoint_url_invalid, endpoint_url_not_public, invalid_level or invalid_events.
  • 500Durable store failed (endpoint_store_failed).
  • 503Backend is not ready (backend_not_ready) or message events are not configured (message_events_unconfigured).
  • 4xx 5xxThe error envelope.
curl -X PUT "https://os.one.ml/api/v1/dials/messaging/endpoint" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "scope": {
      "organizationId": "string"
    },
    "url": "string"
  }'

Remove the message-event endpoint at a scope level

DELETE/v1/dials/messaging/endpoint

dials:writedials_deleteMessagingEndpoint

Same grants as putMessagingEndpoint (dials:write plus dials:messages.events.manage or admin on a key; Auth action dials.messages.events.manage). Removes the endpoint at this level; nothing more is delivered to it. Audited. Scope and level are in the JSON body. 404 endpoint_not_found when none is set at this level.

Request body application/json

  • scopeobjectrequired
  • scope.platformId"dials"

    Dials platform identifier; defaults to dials when omitted.

  • scope.organizationIdstringrequired

    min length 1

  • scope.workspaceIdstring

    min length 1

  • scope.projectIdstring

    min length 1

  • scope.environmentIdstring

    min length 1

  • level"organization" | "workspace" | "project" | "environment"

    The scope level the endpoint is set at. Omitted means environment (the caller's full scope). Messages in the scope go to the most specific endpoint that contains it, and only that one.

Responses

  • 200Removed.
    Response fields
    • oktruerequired
    • deletedstringrequired

      The removed endpoint's id.

  • 400Invalid scope or request shape (invalid_body / invalid_scope).
  • 401Missing or invalid verified identity.
  • 403Selected scope is not authorized by signed identity or lacks the required Dials grant (resource_not_authorized).
  • 404No endpoint at this level (endpoint_not_found).
  • 422invalid_level.
  • 500Durable store failed (endpoint_store_failed).
  • 503Backend is not ready (backend_not_ready).
  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/dials/messaging/endpoint" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "scope": {
      "organizationId": "string"
    }
  }'

List the public keys message events are signed with

GET/v1/dials/messaging/event-keys

dials:readdials_getMessageEventKeys

Needs dials:read through the gateway (the Dials route itself is public and cacheable for an hour). Returns the Ed25519 public keys deliveries are signed with: the current key and, during a rotation, the previous one. A delivery carries headers dials-event-id, dials-timestamp, dials-endpoint-id, dials-key-id and dials-signature: v1=<base64>; the signature is over <dials-timestamp>.<dials-event-id>.<dials-endpoint-id>.<raw body>. Refuse a timestamp more than maxSkewSeconds from your clock, and check that dials-endpoint-id and the body's scope are your own. No secret is ever returned.

Responses

  • 200The published keys.
    Response fields
    • oktruerequired
    • algorithm"Ed25519"required
    • signedContentstringrequired
    • signatureHeaderstringrequired
    • maxSkewSecondsintegerrequired
    • keysobject[]required

      Empty when message events are not configured.

    • keys[].[].keyIdstringrequired

      Matches the dials-key-id header.

    • keys[].[].algorithm"Ed25519"required
    • keys[].[].publicKeystringrequired

      The 32-byte Ed25519 public key, base64.

    • keys[].[].status"current" | "previous"required
  • 401Missing or invalid verified identity.
  • 403Lacks the required Dials grant.
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/dials/messaging/event-keys" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Numbers

List numbers in the authorized scope

GET/v1/dials/numbers

dials:readTested with an API keydials_listNumbers

Parameters

  • organizationIdquery · stringrequired

    Must match the authenticated organization.

  • workspaceIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • projectIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • environmentIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

Responses

  • 200Success
    Response fields
    • okbooleanrequired
    • numbersobject[]required
    • numbers[].[].idstringrequired
    • numbers[].[].e164stringrequired
    • numbers[].[].statusstringrequired
    • numbers[].[].providerstringrequired
    • numbers[].[].cnamStatusstring
    • numbers[].[].e911Statusstring
    • numbers[].[].releaseStatestring
    • numbers[].[].scopeobject
    • numbers[].[].scope.platformId"dials"

      Dials platform identifier; defaults to dials when omitted.

    • numbers[].[].scope.organizationIdstringrequired

      min length 1

    • numbers[].[].scope.workspaceIdstring

      min length 1

    • numbers[].[].scope.projectIdstring

      min length 1

    • numbers[].[].scope.environmentIdstring

      min length 1

    • numbers[].[].assignedResourceIdstring | null
    • numbers[].[].assignedResourceKindstring | null
    • numbers[].[].providerNumberIdstring | null
    • numbers[].[].callerIdNamestring | null
    • numbers[].[].messagingobject

      Whether this number can text yet, as Dials last read it from the carrier. Say a text can be sent or answered only on ready; every other state names why in reasonCode. A number on no campaign is not_registered only when it is a US local (10DLC) number; a toll-free or non-US number reads pending because Dials does not track that registration yet.

    • numbers[].[].messaging.state"ready" | "pending" | "not_registered" | "voice_only" | "blocked"required
    • numbers[].[].messaging.reasonCodestringrequired

      A code, e.g. campaign_active, campaign_in_review, no_campaign, campaign_rejected, toll_free_registration_not_tracked. Treat an unknown code as not ready.

    • numbers[].[].messaging.sincestring (date-time)

      When the state last changed, where a record holds it.

  • 401Missing or invalid identity
  • 404Resource does not belong to the authenticated organization
  • 503Backend or carrier unavailable
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/dials/numbers?organizationId=$ORGANIZATION_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Release an owned number at its carrier through DELETE

DELETE/v1/dials/numbers/{number_id}

dials:writeTested with an API keydials_deleteNumber

Path number_id plus selected scope, actorId and optional reason in query. Uses the existing release implementation: carrier success/absence is checked before local release. A non-carrier-backed deployment can report unsupported release; inspect the returned number rather than infer carrier cancellation. Preserve uncertain replies and reconcile before retry.

Parameters

  • number_idpath · stringrequired
  • organizationIdquery · stringrequired

    Must match the authenticated organization.

  • workspaceIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • projectIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • environmentIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • actorIdquery · stringrequired
  • reasonquery · string
  • platformIdquery · string

    Selected data platform. Omitted defaults to dials in the backend; selection does not grant organization authority.

Responses

  • 200Actual durable operation result; no carrier delivery or graph execution is inferred.
    Response fields
    • okbooleanrequired
    • numberobjectrequired
    • number.idstringrequired
    • number.e164stringrequired
    • number.statusstringrequired
    • number.providerstringrequired
    • number.cnamStatusstring
    • number.e911Statusstring
    • number.releaseStatestring
    • number.scopeobject
    • number.scope.platformId"dials"

      Dials platform identifier; defaults to dials when omitted.

    • number.scope.organizationIdstringrequired

      min length 1

    • number.scope.workspaceIdstring

      min length 1

    • number.scope.projectIdstring

      min length 1

    • number.scope.environmentIdstring

      min length 1

    • number.assignedResourceIdstring | null
    • number.assignedResourceKindstring | null
    • number.providerNumberIdstring | null
    • number.callerIdNamestring | null
    • number.messagingobject

      Whether this number can text yet, as Dials last read it from the carrier. Say a text can be sent or answered only on ready; every other state names why in reasonCode. A number on no campaign is not_registered only when it is a US local (10DLC) number; a toll-free or non-US number reads pending because Dials does not track that registration yet.

    • number.messaging.state"ready" | "pending" | "not_registered" | "voice_only" | "blocked"required
    • number.messaging.reasonCodestringrequired

      A code, e.g. campaign_active, campaign_in_review, no_campaign, campaign_rejected, toll_free_registration_not_tracked. Treat an unknown code as not ready.

    • number.messaging.sincestring (date-time)

      When the state last changed, where a record holds it.

    • auditIdstringrequired
    • usageEventIdstringrequired
    • nextstringrequired
  • 400Invalid selected scope or request shape.
  • 401Missing or invalid verified identity.
  • 403Selected scope is not authorized by signed identity or lacks the required Dials grant.
  • 404Referenced resource is absent from the verified organization and selected scope.
  • 409Existing scoped resource/assignment or idempotency conflict.
  • 422Validation or approval requirement refused.
  • 500Durable store failed.
  • 501Carrier release unsupported or unconfigured.
  • 502Carrier release unavailable or unconfirmed.
  • 503Backend is not ready.
  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/dials/numbers/$NUMBER_ID?organizationId=$ORGANIZATION_ID&actorId=$ACTOR_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Assign an owned number

POST/v1/dials/numbers/assign

dials:writeTested with an API keydials_assignNumber

Request body application/json

  • scopeobjectrequired
  • scope.platformId"dials"

    Dials platform identifier; defaults to dials when omitted.

  • scope.organizationIdstringrequired

    min length 1

  • scope.workspaceIdstring

    min length 1

  • scope.projectIdstring

    min length 1

  • scope.environmentIdstring

    min length 1

  • actorIdstringrequired

    min length 1

  • numberIdstringrequired

    min length 1

  • resourceKind"agent_profile" | "human_profile" | null

    Only scoped human/agent targets are exposed. Omit or null both target fields to unassign.

  • resourceIdstring | null

Responses

  • 200Success
    Response fields

    A JSON object.

  • 401Missing or invalid identity
  • 404Resource does not belong to the authenticated organization
  • 503Backend or carrier unavailable
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/dials/numbers/assign" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "scope": {
      "organizationId": "string"
    },
    "actorId": "string",
    "numberId": "string"
  }'

Update the caller name of an owned number

PUT/v1/dials/numbers/cnam

dials:writeTested with an API keydials_updateNumberCallerName

Request body application/json

  • scopeobjectrequired
  • scope.platformId"dials"

    Dials platform identifier; defaults to dials when omitted.

  • scope.organizationIdstringrequired

    min length 1

  • scope.workspaceIdstring

    min length 1

  • scope.projectIdstring

    min length 1

  • scope.environmentIdstring

    min length 1

  • actorIdstringrequired
  • numberIdstringrequired
  • callerIdNamestringrequired

    min length 1 · max length 15 · pattern ^[A-Za-z0-9 \-&.]+$

Responses

  • 200Success
    Response fields
    • okbooleanrequired
    • numberobjectrequired
    • number.idstringrequired
    • number.e164stringrequired
    • number.statusstringrequired
    • number.providerstringrequired
    • number.cnamStatusstring
    • number.e911Statusstring
    • number.releaseStatestring
    • number.scopeobject
    • number.scope.platformId"dials"

      Dials platform identifier; defaults to dials when omitted.

    • number.scope.organizationIdstringrequired

      min length 1

    • number.scope.workspaceIdstring

      min length 1

    • number.scope.projectIdstring

      min length 1

    • number.scope.environmentIdstring

      min length 1

    • number.assignedResourceIdstring | null
    • number.assignedResourceKindstring | null
    • number.providerNumberIdstring | null
    • number.callerIdNamestring | null
    • number.messagingobject

      Whether this number can text yet, as Dials last read it from the carrier. Say a text can be sent or answered only on ready; every other state names why in reasonCode. A number on no campaign is not_registered only when it is a US local (10DLC) number; a toll-free or non-US number reads pending because Dials does not track that registration yet.

    • number.messaging.state"ready" | "pending" | "not_registered" | "voice_only" | "blocked"required
    • number.messaging.reasonCodestringrequired

      A code, e.g. campaign_active, campaign_in_review, no_campaign, campaign_rejected, toll_free_registration_not_tracked. Treat an unknown code as not ready.

    • number.messaging.sincestring (date-time)

      When the state last changed, where a record holds it.

    • auditIdstringrequired
    • nextstringrequired
  • 401Missing or invalid identity
  • 404Resource does not belong to the authenticated organization
  • 503Backend or carrier unavailable
  • 4xx 5xxThe error envelope.
curl -X PUT "https://os.one.ml/api/v1/dials/numbers/cnam" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "scope": {
      "organizationId": "string"
    },
    "actorId": "string",
    "numberId": "string",
    "callerIdName": "string"
  }'

List scoped inventory drift

GET/v1/dials/numbers/drift

dials:readTested with an API keydials_listNumberDrift

Parameters

  • organizationIdquery · stringrequired

    Must match the authenticated organization.

  • workspaceIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • projectIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • environmentIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

Responses

  • 200Success
    Response fields
    • okbooleanrequired
    • driftobject[]required
    • drift[].[].idstringrequired
    • drift[].[].scopeobjectrequired
    • drift[].[].scope.platformId"dials"

      Dials platform identifier; defaults to dials when omitted.

    • drift[].[].scope.organizationIdstringrequired

      min length 1

    • drift[].[].scope.workspaceIdstring

      min length 1

    • drift[].[].scope.projectIdstring

      min length 1

    • drift[].[].scope.environmentIdstring

      min length 1

    • drift[].[].reconciliationIdstringrequired
    • drift[].[].kindstringrequired
    • drift[].[].phoneNumberIdstring | nullrequired
    • drift[].[].e164Numberstringrequired
    • drift[].[].providerstringrequired
    • drift[].[].expectedstring | nullrequired
    • drift[].[].observedstring | nullrequired
    • drift[].[].resolvedbooleanrequired
  • 401Missing or invalid identity
  • 404Resource does not belong to the authenticated organization
  • 503Backend or carrier unavailable
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/dials/numbers/drift?organizationId=$ORGANIZATION_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Register and bind the dispatchable emergency address for an owned number

POST/v1/dials/numbers/e911

dials:writeTested with an API keydials_registerEmergencyAddress

Register the operator-provided dispatchable address, or set statusOnly:true to check an existing saved binding with the identical address. A refresh performs carrier GETs only, persists the returned state locally, and requires dials:write. Pending, unsupported or uncertain status never permits a call; do not automatically correct the address or repeat provider writes.

Request body application/json

  • scopeobjectrequired
  • scope.platformId"dials"

    Dials platform identifier; defaults to dials when omitted.

  • scope.organizationIdstringrequired

    min length 1

  • scope.workspaceIdstring

    min length 1

  • scope.projectIdstring

    min length 1

  • scope.environmentIdstring

    min length 1

  • actorIdstringrequired

    min length 1

  • numberIdstringrequired

    min length 1

  • callerNamestringrequired

    min length 1

  • streetNumberstringrequired

    min length 1

  • streetNamestringrequired

    min length 1

  • citystringrequired

    min length 1

  • regionstringrequired

    min length 1

  • postalCodestringrequired

    min length 1

  • addressLine2string | null
  • countrystring | null

    Two-letter country code; omitted or null defaults to US. min length 2 · max length 2 · pattern ^[A-Za-z]{2}$

  • statusOnlyboolean

    Refresh only an already saved exact-address provider binding for the owned number in the selected scope. The carrier is read with GET only; no address creation, assignment or reassignment occurs. Local status/address/audit persistence still occurs and dials:write is required. Missing binding, changed address or unavailable/mismatched carrier binding fails closed. Omitted or false retains registration behavior. default false

Responses

  • 200Carrier registration result; unsupported status is not an active binding
    Response fields
    • okbooleanrequired
    • numberobjectrequired
    • number.idstringrequired
    • number.e164stringrequired
    • number.statusstringrequired
    • number.providerstringrequired
    • number.cnamStatusstring
    • number.e911Statusstring
    • number.releaseStatestring
    • number.scopeobject
    • number.scope.platformId"dials"

      Dials platform identifier; defaults to dials when omitted.

    • number.scope.organizationIdstringrequired

      min length 1

    • number.scope.workspaceIdstring

      min length 1

    • number.scope.projectIdstring

      min length 1

    • number.scope.environmentIdstring

      min length 1

    • number.assignedResourceIdstring | null
    • number.assignedResourceKindstring | null
    • number.providerNumberIdstring | null
    • number.callerIdNamestring | null
    • number.messagingobject

      Whether this number can text yet, as Dials last read it from the carrier. Say a text can be sent or answered only on ready; every other state names why in reasonCode. A number on no campaign is not_registered only when it is a US local (10DLC) number; a toll-free or non-US number reads pending because Dials does not track that registration yet.

    • number.messaging.state"ready" | "pending" | "not_registered" | "voice_only" | "blocked"required
    • number.messaging.reasonCodestringrequired

      A code, e.g. campaign_active, campaign_in_review, no_campaign, campaign_rejected, toll_free_registration_not_tracked. Treat an unknown code as not ready.

    • number.messaging.sincestring (date-time)

      When the state last changed, where a record holds it.

    • addressobjectrequired
    • address.scopeobjectrequired
    • address.scope.platformId"dials"

      Dials platform identifier; defaults to dials when omitted.

    • address.scope.organizationIdstringrequired

      min length 1

    • address.scope.workspaceIdstring

      min length 1

    • address.scope.projectIdstring

      min length 1

    • address.scope.environmentIdstring

      min length 1

    • address.idstringrequired
    • address.phoneNumberIdstringrequired
    • address.callerNamestringrequired
    • address.streetNumberstringrequired
    • address.streetNamestringrequired
    • address.citystringrequired
    • address.regionstringrequired
    • address.postalCodestringrequired
    • address.countrystringrequired
    • address.providerstringrequired
    • address.statusstringrequired
    • address.addressLine2string | null
    • address.providerAddressIdstring | null
    • address.validationStatusstring | null
    • address.errorstring | null
    • auditIdstringrequired
    • nextstringrequired
  • 401Missing or invalid identity
  • 404Number does not belong to the authenticated organization and selected scope
  • 422Carrier validation refusal. Suggestions are advisory: preserve the original address; explicitly edit and confirm before a new request. Never apply or submit candidates automatically. statusOnly additionally requires an exact saved binding; otherwise422 existing_emergency_binding_required. This mode never creates or assigns a carrier address.
  • 501Carrier does not support emergency address registration
  • 502Carrier registration failed
  • 503Backend unavailable
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/dials/numbers/e911" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "scope": {
      "organizationId": "string"
    },
    "actorId": "string",
    "numberId": "string",
    "callerName": "string",
    "streetNumber": "string",
    "streetName": "string",
    "city": "string",
    "region": "string",
    "postalCode": "string"
  }'

Check an address is dispatchable for E911 before binding it

POST/v1/dials/numbers/e911/validate-address

dials:writedials_validateEmergencyAddress

Needs dials:write. Asks the carrier (Telnyx address validation; a read, nothing is created or charged) whether a US or Canadian address can be validated for emergency use. Binds nothing: POST /v1/numbers/e911 binds an address to a number.

Request body application/json

  • scopeobjectrequired
  • streetNumberstringrequired
  • streetNamestringrequired
  • addressLine2string
  • citystringrequired
  • regionstringrequired
  • postalCodestringrequired
  • country"US" | "CA"

Responses

  • 200The carrier's verdict
    Response fields
    • okbooleanrequired
    • providerstringrequired
    • validbooleanrequired
    • reasonstring
    • carrierCodesstring[]
    • suggestedobject
    • nextstringrequired
  • 401Missing or invalid identity
  • 404Resource does not belong to the authenticated organization
  • 422invalid_address or invalid_country
  • 502carrier_validation_failed
  • 503Backend unavailable
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/dials/numbers/e911/validate-address" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "scope": {},
    "streetNumber": "string",
    "streetName": "string",
    "city": "string",
    "region": "string",
    "postalCode": "string"
  }'

Provision a carrier number with an idempotency key

POST/v1/dials/numbers/provision

dials:writeFailed with an API keydials_provisionNumber

Request body application/json

  • scopeobjectrequired
  • scope.platformId"dials"

    Dials platform identifier; defaults to dials when omitted.

  • scope.organizationIdstringrequired

    min length 1

  • scope.workspaceIdstring

    min length 1

  • scope.projectIdstring

    min length 1

  • scope.environmentIdstring

    min length 1

  • actorIdstringrequired

    min length 1

  • e164stringrequired

    min length 1

  • idempotencyKeystringrequired

    min length 1

Responses

  • 200Success
    Response fields

    A JSON object.

  • 401Missing or invalid identity
  • 404Resource does not belong to the authenticated organization
  • 503Backend or carrier unavailable
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/dials/numbers/provision" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "scope": {
      "organizationId": "string"
    },
    "actorId": "string",
    "e164": "string",
    "idempotencyKey": "string"
  }'

Reconcile owned inventory against configured carriers

POST/v1/dials/numbers/reconcile

dials:writeTested with an API keydials_reconcileNumberInventory

Request body application/json

  • scopeobjectrequired
  • scope.platformId"dials"

    Dials platform identifier; defaults to dials when omitted.

  • scope.organizationIdstringrequired

    min length 1

  • scope.workspaceIdstring

    min length 1

  • scope.projectIdstring

    min length 1

  • scope.environmentIdstring

    min length 1

  • actorIdstringrequired

Responses

  • 200Success
    Response fields
    • okbooleanrequired
    • reconciliationsobject[]required
    • reconciliations[].[].idstringrequired
    • reconciliations[].[].scopeobjectrequired
    • reconciliations[].[].scope.platformId"dials"

      Dials platform identifier; defaults to dials when omitted.

    • reconciliations[].[].scope.organizationIdstringrequired

      min length 1

    • reconciliations[].[].scope.workspaceIdstring

      min length 1

    • reconciliations[].[].scope.projectIdstring

      min length 1

    • reconciliations[].[].scope.environmentIdstring

      min length 1

    • reconciliations[].[].providerstringrequired
    • reconciliations[].[].statusstringrequired
    • reconciliations[].[].carrierNumberCountintegerrequired

      min 0

    • reconciliations[].[].localNumberCountintegerrequired

      min 0

    • reconciliations[].[].driftCountintegerrequired

      min 0

    • reconciliations[].[].errorstring | nullrequired
    • driftobject[]required
    • drift[].[].idstringrequired
    • drift[].[].scopeobjectrequired
    • drift[].[].scope.platformId"dials"

      Dials platform identifier; defaults to dials when omitted.

    • drift[].[].scope.organizationIdstringrequired

      min length 1

    • drift[].[].scope.workspaceIdstring

      min length 1

    • drift[].[].scope.projectIdstring

      min length 1

    • drift[].[].scope.environmentIdstring

      min length 1

    • drift[].[].reconciliationIdstringrequired
    • drift[].[].kindstringrequired
    • drift[].[].phoneNumberIdstring | nullrequired
    • drift[].[].e164Numberstringrequired
    • drift[].[].providerstringrequired
    • drift[].[].expectedstring | nullrequired
    • drift[].[].observedstring | nullrequired
    • drift[].[].resolvedbooleanrequired
    • orphanCountintegerrequired

      min 0

    • auditIdstringrequired
    • nextstringrequired
  • 401Missing or invalid identity
  • 404Resource does not belong to the authenticated organization
  • 503Backend or carrier unavailable
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/dials/numbers/reconcile" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "scope": {
      "organizationId": "string"
    },
    "actorId": "string"
  }'

List scoped carrier reconciliation receipts

GET/v1/dials/numbers/reconciliations

dials:readTested with an API keydials_listNumberReconciliations

Parameters

  • organizationIdquery · stringrequired

    Must match the authenticated organization.

  • workspaceIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • projectIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • environmentIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

Responses

  • 200Success
    Response fields
    • okbooleanrequired
    • reconciliationsobject[]required
    • reconciliations[].[].idstringrequired
    • reconciliations[].[].scopeobjectrequired
    • reconciliations[].[].scope.platformId"dials"

      Dials platform identifier; defaults to dials when omitted.

    • reconciliations[].[].scope.organizationIdstringrequired

      min length 1

    • reconciliations[].[].scope.workspaceIdstring

      min length 1

    • reconciliations[].[].scope.projectIdstring

      min length 1

    • reconciliations[].[].scope.environmentIdstring

      min length 1

    • reconciliations[].[].providerstringrequired
    • reconciliations[].[].statusstringrequired
    • reconciliations[].[].carrierNumberCountintegerrequired

      min 0

    • reconciliations[].[].localNumberCountintegerrequired

      min 0

    • reconciliations[].[].driftCountintegerrequired

      min 0

    • reconciliations[].[].errorstring | nullrequired
  • 401Missing or invalid identity
  • 404Resource does not belong to the authenticated organization
  • 503Backend or carrier unavailable
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/dials/numbers/reconciliations?organizationId=$ORGANIZATION_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Release an owned number

POST/v1/dials/numbers/release

dials:writeTested with an API keydials_releaseNumber

Request body application/json

  • scopeobjectrequired
  • scope.platformId"dials"

    Dials platform identifier; defaults to dials when omitted.

  • scope.organizationIdstringrequired

    min length 1

  • scope.workspaceIdstring

    min length 1

  • scope.projectIdstring

    min length 1

  • scope.environmentIdstring

    min length 1

  • actorIdstringrequired

    min length 1

  • numberIdstringrequired

    min length 1

  • reasonstring

Responses

  • 200Success
    Response fields

    A JSON object.

  • 401Missing or invalid identity
  • 404Resource does not belong to the authenticated organization
  • 503Backend or carrier unavailable
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/dials/numbers/release" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "scope": {
      "organizationId": "string"
    },
    "actorId": "string",
    "numberId": "string"
  }'

Search carrier number inventory (US and Canada, local and toll-free)

GET/v1/dials/numbers/search

dials:readTested with an API keydials_searchNumbers

Searches the provisioning carrier (SignalWire). When it holds nothing for the filter, Telnyx's inventory for the same filter is returned, marked orderable: false. numberType=toll-free (also toll_free) works on its own; an 8xx areaCode (800, 833, 844, 855, 866, 877, 888) is a toll-free search. In a Sandbox scope the Sandbox carrier's numbers (+1 NPA 555-01XX, provider sandbox) come first, then real inventory read-only.

Pass at least one search filter, such as areaCode; a search with none answers 400 invalid_number_search.

Parameters

  • organizationIdquery · stringrequired

    Must match the authenticated organization.

  • workspaceIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • projectIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • environmentIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • areaCodequery · string
  • exchangeCodequery · string
  • startsWithquery · string

    At least three national digits; SignalWire receives at most seven and the full requested prefix is checked locally.

  • endsWithquery · string
  • containsquery · string
  • repeatingDigitquery · string
  • repeatingDigitCountquery · integer
  • numberTypequery · "local" | "toll-free" | "toll_free" | "tollfree"
  • distancequery · integer
  • limitquery · integer
  • localCallingAreaquery · boolean
  • excludeAddressRequiredquery · boolean
  • excludeLocalAddressRequiredquery · boolean
  • excludeForeignAddressRequiredquery · boolean
  • betaquery · boolean
  • voicequery · boolean
  • smsquery · boolean
  • mmsquery · boolean
  • faxquery · boolean
  • regionquery · string
  • localityquery · string
  • postalCodequery · string
  • rateCenterquery · string
  • lataquery · string
  • nearNumberquery · string
  • nearLatLongquery · string

Responses

  • 200Success
    Response fields
    • okbooleanrequired
    • numbersobject[]required
    • numbers[].[].regionstring | nullrequired
    • numbers[].[].rateCenterstring | nullrequired
    • numbers[].[].localitystring | nullrequired
    • numbers[].[].postalCodestring | nullrequired
    • numbers[].[].latastring | nullrequired
    • numbers[].[].numberTypestring | nullrequired
    • numbers[].[].addressRequirementsstring | nullrequired
    • numbers[].[].providerReferencestring | nullrequired
    • numbers[].[].latitudenumber | nullrequired
    • numbers[].[].longitudenumber | nullrequired
    • numbers[].[].betaboolean | nullrequired
    • numbers[].[].monthlyCostCentsintegerrequired

      min 0

    • numbers[].[].inboundPerMinuteMicrosintegerrequired

      min 0

    • numbers[].[].outboundPerMinuteMicrosintegerrequired

      min 0

    • numbers[].[].e911MonthlyCostCentsinteger | nullrequired

      min 0

    • numbers[].[].e164stringrequired
    • numbers[].[].countryCodestringrequired
    • numbers[].[].providerstringrequired

      signalwire (provisionable), telnyx (read-only inventory, orderable: false) or sandbox (the Sandbox carrier's fictional numbers).

    • numbers[].[].capabilitiesobjectrequired
    • numbers[].[].capabilities.voicebooleanrequired
    • numbers[].[].capabilities.smsbooleanrequired
    • numbers[].[].capabilities.mmsbooleanrequired
    • numbers[].[].capabilities.faxbooleanrequired
    • numbers[].[].orderableboolean

      Present and false when Dials cannot provision this number for you: Telnyx inventory shown when the provisioning carrier has none for the filter, and real inventory in a Sandbox scope (Sandbox provisions only its own +1 NPA 555-01XX numbers, provider sandbox). Absent = provisionable.

  • 401Missing or invalid identity
  • 404Resource does not belong to the authenticated organization
  • 503Backend or carrier unavailable
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/dials/numbers/search?organizationId=$ORGANIZATION_ID&areaCode=415" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Set which voice handler answers an owned number

PUT/v1/dials/numbers/voice-handler

dials:writedials_setNumberVoiceHandler

Needs dials:write. Points the inbound voice webhook of one owned SignalWire number at a Dials handler: one_phone (the One phone line, POST /v1/webhooks/signalwire/voice/one-phone) or default (the deployment's configured handler). Dials updates that number's call_handler (laml_webhooks) and call_request_url at SignalWire, in the verified org/workspace/project/environment only. SignalWire numbers only: a number held through another carrier (BulkVS) is refused with 409. Repeating the same handler is idempotent. Backend: Dials D3 (ONE-PHONE-DESIGN, contract C-3).

Request body application/json

  • scopeobjectrequired
  • scope.platformId"dials"

    Dials platform identifier; defaults to dials when omitted.

  • scope.organizationIdstringrequired

    min length 1

  • scope.workspaceIdstring

    min length 1

  • scope.projectIdstring

    min length 1

  • scope.environmentIdstring

    min length 1

  • phoneNumberIdstringrequired

    min length 1 · max length 256

  • handler"one_phone" | "default"required

Responses

  • 200The number's voice handler as Dials set it at SignalWire.
    Response fields
    • oktruerequired
    • phoneNumberIdstringrequired
    • handler"one_phone" | "default"required
    • auditIdstring
    • nextstring
  • 400Invalid scope, number id or handler.
  • 401Missing or invalid verified identity.
  • 403Selected scope is not authorized by signed identity or lacks dials:write.
  • 404No number with this id in the authorized scope.
  • 409The number is not a SignalWire number (for example BulkVS), or it is released.
  • 503Backend or carrier unavailable.
  • 4xx 5xxThe error envelope.
curl -X PUT "https://os.one.ml/api/v1/dials/numbers/voice-handler" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "scope": {
      "organizationId": "string"
    },
    "phoneNumberId": "string",
    "handler": "one_phone"
  }'

One numbers

Activate the phone number of your One (One Line)

POST/v1/dials/one-numbers/activate

dials:writedials_activateOneNumber

The person's default One Line number, chosen and bought by Dials: the area code, then (unless fallback: "none") InRegion=region, then Dials' own auto (the verified phone, then the sign-in city). The number texts through One Line (its SMS webhook) and is assigned to the 10DLC campaign; state pending_campaign until the assignment completes. One per account: a person who already holds a number gets it back (nothing is bought). Idempotent on idempotencyKey. Money controls, all before any purchase: the global cap (DIALS_ONE_NUMBERS_MAX), a hard stop at 45 numbers, the monthly spend ceiling, the carrier balance (a failed read refuses), the daily caps and the reconciliation block. The person is not charged. One calls it from a background job after the person's mobile is verified; an agent never calls it (the MCP refuses this operation as human consent). A person's own One number: the gateway admits the person's own token (dials:write). Backend: Dials D5 One Line numbers (dark: DIALS_ONE_NUMBERS_PROVISION_ENABLED).

Request body application/json

  • areaCodestring

    The NPA of the mobile the person verified (never the number). pattern ^[2-9][0-9]{2}$

  • regionstring

    The state or province to search (InRegion) when the area code has nothing. pattern ^[A-Z]{2}$

  • country"US" | "CA"
  • idempotencyKeystringrequired

    min length 8 · max length 128 · pattern ^[A-Za-z0-9_:.-]+$

  • purpose"line"
  • fallback"none" | "region"

    none: the area code only (needs areaCode; nothing found is 404 none_available, nothing bought). region (default): the area code, then InRegion=region, then Dials' auto. default "region"

Responses

  • 200The person's One Line number, new or already held (one per account).
    Response fields
    • state"chosen" | "reserved_intent" | "active" | "pending_campaign" | "campaign_stuck" | "retiring" | "cooldown" | "releasing" | "released"required
    • numberobject
    • number.e164stringrequired

      E.164 North American number. pattern ^\+1[2-9][0-9]{2}[2-9][0-9]{6}$

    • number.displaystring
    • number.localitystring
    • number.regionstring
    • number.state"reserved_intent" | "active" | "releasing" | "released"required
    • number.chosenAtstring | null (date-time)
    • campaign"pending" | "complete" | "manual" | "stuck" | null

      10DLC campaign assignment of a One Line number: pending (ordered by API), complete (can text from it), manual (the registry refused; assigned by an operator in the dashboard), stuck (not complete after 48 h).

    • retiringobject | null
  • 400Invalid body, area code, country, fallback or idempotency key.
  • 401Missing or invalid verified identity.
  • 403Not a person's own token (person_required), or the Dials grant is missing.
  • 404No number in the area, region or auto search (none_available).
  • 409Another purchase for this person is in flight (provisioning_in_progress), or the key was reused (idempotency_key_reused).
  • 422A Canadian number while Canada is off (ca_off).
  • 429Daily limits (provisioning_cap, owner_order_limit), with retryAt.
  • 502The carrier search or order failed (carrier_search_failed, carrier_order_failed); retry later.
  • 503Refused, nothing bought: provision_off, numbers_cap, pooling_stop, spend_ceiling, balance_low, balance_unavailable, carrier_limit, reconciliation_pending, one_numbers_not_configured, one_phone_disabled.
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/dials/one-numbers/activate" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "idempotencyKey": "string"
  }'

Choose the phone number for your One

POST/v1/dials/one-numbers/choose

dials:writedials_chooseOneNumber

Makes e164 (a number from the suggestions) the person's own One number. One active number per person and one person per number; choosing again replaces the person's number once the new one is active. Idempotent on idempotencyKey. While Dials number provisioning is off (DIALS_ONE_NUMBERS_PROVISION_ENABLED), the choice is recorded as reserved_intent (202) and no order is placed. 409 taken, 429 provisioning_cap, 503 carrier_limit. With purpose: "line" it is a One Line number with the same money controls as activate (and 409 provisioning_in_progress, 422 quarantined/ca_off/not_geographic, 429 swap_wait with retryAt: at most one swap per 30 days; the old number retires for 30 days before release, still routing to its owner). The person chooses; an agent never chooses for them (the MCP refuses this operation as human consent). A person's own One number: the gateway admits the person's own token (a signed-in person, scope as the generic Dials lane forwards: dials:read for GET, dials:write otherwise); Dials keys the number to the verified person. Backend: Dials D5 (ONE-PHONE-CONTRACTS Delta 2).

Request body application/json

  • e164stringrequired

    E.164 North American number. pattern ^\+1[2-9][0-9]{2}[2-9][0-9]{6}$

  • idempotencyKeystringrequired

    min length 8 · max length 128 · pattern ^[A-Za-z0-9_:.-]+$

  • purpose"line"

    line: a One Line number (texts from One's own number; One's take, a swap when the person already has one). Absent: the onboarding form's choose, refused 403 line_only while DIALS_ONE_NUMBERS_LINE_ONLY=1.

Responses

  • 200Chosen and active.
    Response fields
    • state"chosen" | "reserved_intent" | "active" | "pending_campaign" | "campaign_stuck" | "retiring" | "cooldown" | "releasing" | "released"required
    • numberobject
    • number.e164stringrequired

      E.164 North American number. pattern ^\+1[2-9][0-9]{2}[2-9][0-9]{6}$

    • number.displaystring
    • number.localitystring
    • number.regionstring
    • number.state"reserved_intent" | "active" | "releasing" | "released"required
    • number.chosenAtstring | null (date-time)
    • campaign"pending" | "complete" | "manual" | "stuck" | null

      10DLC campaign assignment of a One Line number: pending (ordered by API), complete (can text from it), manual (the registry refused; assigned by an operator in the dashboard), stuck (not complete after 48 h).

    • retiringobject | null
  • 202Recorded as reserved_intent while provisioning is off; no order was placed.
    Response fields
    • state"chosen" | "reserved_intent" | "active" | "pending_campaign" | "campaign_stuck" | "retiring" | "cooldown" | "releasing" | "released"required
    • numberobject
    • number.e164stringrequired

      E.164 North American number. pattern ^\+1[2-9][0-9]{2}[2-9][0-9]{6}$

    • number.displaystring
    • number.localitystring
    • number.regionstring
    • number.state"reserved_intent" | "active" | "releasing" | "released"required
    • number.chosenAtstring | null (date-time)
    • campaign"pending" | "complete" | "manual" | "stuck" | null

      10DLC campaign assignment of a One Line number: pending (ordered by API), complete (can text from it), manual (the registry refused; assigned by an operator in the dashboard), stuck (not complete after 48 h).

    • retiringobject | null
  • 400Invalid e164 or idempotency key.
  • 401Missing or invalid verified identity.
  • 403Not a person's own token, or the Dials grant is missing.
  • 409The number was taken (taken).
  • 422The number was released in the last 90 days (quarantined), is Canadian while Canada is off (ca_off), or is not a geographic US number (not_geographic).
  • 429The daily provisioning cap is reached (provisioning_cap).
  • 503The carrier account's number limit is reached (carrier_limit), or the backend is unavailable.
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/dials/one-numbers/choose" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "e164": "string",
    "idempotencyKey": "string"
  }'

Get the phone number of your One

GET/v1/dials/one-numbers/mine

dials:readdials_getMyOneNumber

The person's own One number (or null), their plan, days since the last call, a One Line number's campaign state and any retiring number with its release date. There is no idle release. A person's own One number: the gateway admits the person's own token (a signed-in person, scope as the generic Dials lane forwards: dials:read for GET, dials:write otherwise); Dials keys the number to the verified person. Backend: Dials D5 (ONE-PHONE-CONTRACTS Delta 2).

Responses

  • 200Your One number, or null.
    Response fields
    • numberobject | nullrequired
    • planstring
    • idleDaysinteger | null

      min 0

    • releaseAtstring | null (date-time)

      When a retiring or cooldown One Line number is released. There is no idle release.

    • campaign"pending" | "complete" | "manual" | "stuck" | null

      10DLC campaign assignment of a One Line number: pending (ordered by API), complete (can text from it), manual (the registry refused; assigned by an operator in the dashboard), stuck (not complete after 48 h).

    • retiringobject[]
    • retiring[].[].numberobjectrequired
    • retiring[].[].number.e164stringrequired

      E.164 North American number. pattern ^\+1[2-9][0-9]{2}[2-9][0-9]{6}$

    • retiring[].[].number.displaystring
    • retiring[].[].number.localitystring
    • retiring[].[].number.regionstring
    • retiring[].[].number.state"reserved_intent" | "active" | "releasing" | "released"required
    • retiring[].[].number.chosenAtstring | null (date-time)
    • retiring[].[].releaseAtstring | null (date-time)
  • 401Missing or invalid verified identity.
  • 403Not a person's own token, or the Dials grant is missing.
  • 503Backend unavailable.
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/dials/one-numbers/mine" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Release the phone number of your One

DELETE/v1/dials/one-numbers/mine

dials:writedials_releaseMyOneNumber

Releases the person's own One number at the carrier. The number cannot be recovered once released. The person releases it; an agent never does (the MCP refuses this operation as human consent). A person's own One number: the gateway admits the person's own token (a signed-in person, scope as the generic Dials lane forwards: dials:read for GET, dials:write otherwise); Dials keys the number to the verified person. Backend: Dials D5 (ONE-PHONE-CONTRACTS Delta 2).

Responses

  • 200Releasing or released.
    Response fields
    • state"releasing" | "released"required
    • numberobject | null
  • 401Missing or invalid verified identity.
  • 403Not a person's own token, or the Dials grant is missing.
  • 404The person has no One number.
  • 503Backend or carrier unavailable.
  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/dials/one-numbers/mine" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Suggest phone numbers for your One

POST/v1/dials/one-numbers/suggestions

dials:readdials_listOneNumberSuggestions

Up to five available local numbers the person can choose for their own One. The body is a JSON object {areaCode?, text?, lat?, lng?}; lat and lng travel in the body, never in the URL or query, and a lone lat or lng is 400. With an empty body ({}) Dials uses the area code of the person's verified phone, then the city of the sign-in IP address (resolved from the request and never stored), else answers none_found; areaCode searches that area code; text searches numbers matching the text; lat with lng uses device coordinates only when the app sends them after the operating system's permission. Searches the carrier only: nothing is ordered or held. A person's own One number: the gateway admits the person's own token (a signed-in person, scope as the generic Dials lane forwards: dials:write for a POST); Dials keys the number to the verified person. Backend: Dials D5 (ONE-PHONE-CONTRACTS Delta 2); Dials must accept this POST body.

Request body application/json

  • areaCodestring

    pattern ^[2-9][0-9]{2}$

  • textstring

    min length 1 · max length 32

  • latnumber

    min -90 · max 90

  • lngnumber

    min -180 · max 180

  • containsstring

    Digits the number must contain; combines with any other field. pattern ^[0-9]{2,7}$

Responses

  • 200Suggestions, or none_found.
    Response fields
    • state"suggestions" | "none_found"required
    • source"verified_phone" | "ip_city" | "device" | "search"required
    • areaCodestring | null
    • citystring | null
    • numbersobject[]required
    • numbers[].[].e164stringrequired

      E.164 North American number. pattern ^\+1[2-9][0-9]{2}[2-9][0-9]{6}$

    • numbers[].[].displaystringrequired
    • numbers[].[].localitystring
    • numbers[].[].regionstring
  • 400Invalid area code, text or coordinates (a lone lat or lng, or any coordinate outside the range).
  • 401Missing or invalid verified identity.
  • 403Not a person's own token, or the Dials grant is missing.
  • 503Backend or carrier unavailable.
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/dials/one-numbers/suggestions" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

List the texts sent from your own text line, and which job sent each

GET/v1/dials/one-numbers/text/messages

Person onlydials_listOwnTextLineSends

Your sends from your own text line, newest first, 200 a page, so you can see every text a scheduled job sent on its standing grant (rule 11). nextBefore is set whenever a page holds 200 (the following page may be empty, with nextBefore null): pass it as before for the older sends. jobId lists one job's sends only. Any other query, or a malformed one, is 400 INVALID_QUERY. The query only narrows your own sends. Each send: at, via (person = you sent it on your own card; job_standing = a scheduled One job sent it on its standing grant), jobId (the job, for job_standing; else null), messageId and state (the message's status). Ids and states only: no phone number and no body (every send goes to your own verified phone). A send still being made is not listed. Person only: your own signed-in session (bridge_session, a person h_…, with Auth's session id) on the Console or One, selected in your own organization with no fleet, signed by the gateway for this exact request. API keys, agent tokens, delegations, phone calls, One job children (including a job's standing credential) and service credentials are refused (401 PERSON_SESSION_REQUIRED); a person's credential with scopes is 403 SCOPED_CREDENTIAL. 30 reads a minute per person on each Dials instance (429 RATE_LIMITED). Same route, SDK and CLI for every tenant (rule 15). Error codes are as Genesis callers receive them: Dials' refusal in the gateway's error envelope, upper case, layer dials.

Parameters

  • beforequery · string

    The nextBefore of the previous page: the sends older than its last one.

  • jobIdquery · string

    Only this job's sends (job_ + 26 of a-z2-7).

Responses

  • 200Your own sends.
    Response fields
    • oktruerequired
    • sendsobject[]required
    • sends[].[].atstring (date-time)required
    • sends[].[].via"person" | "job_standing"required
    • sends[].[].jobIdstring | nullrequired

      The One job that sent it (via: job_standing); null for your own send.

    • sends[].[].messageIdstringrequired
    • sends[].[].statestring | nullrequired

      The message's status (queued, sent, delivered, failed, ...).

    • nextBeforestring | null

      Set whenever this page holds 200: the before for the older sends (that page may be empty). Null when this page holds fewer.

  • 400INVALID_REQUEST (a body on a GET), INVALID_QUERY (a query other than one before and one jobId, or a malformed one) or STANDING_NEEDS_JOB_CREDENTIAL (an x-one-standing header on your session).
  • 401PERSON_SESSION_REQUIRED.
  • 403SCOPED_CREDENTIAL.
  • 429RATE_LIMITED (30 a minute per person on each Dials instance).
  • 503ONE_PHONE_DISABLED, TEXT_LINES_OFF, ONE_NUMBERS_NOT_CONFIGURED, PERSON_SESSION_NOT_CONFIGURED or ONE_NUMBERS_STORE_FAILED.
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/dials/one-numbers/text/messages" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Text your own phone from your own text line, on your approval

POST/v1/dials/one-numbers/text/messages

Person onlydials_sendOwnTextLineMessage

Sends one SMS from your own text line to your own Auth-verified phone. Two callers, never both on one request: (1) your own signed-in session (bridge_session, a person h_…, with Auth's session id) on the Console or One, selected in your own organization with no fleet, with x-one-approval (the Taps item of your card for exactly this request), consumed once by Dials, bound to your organization, you, POST, this path and the exact body bytes: no approval is 409 APPROVAL_REQUIRED, an approval for anything else is 409 CONSENT_NOT_RECORDED, and your session naming x-one-standing is 400 STANDING_NEEDS_JOB_CREDENTIAL; (2) a scheduled One job on its standing grant: Auth's job standing child for that job (scope exactly dials:standing_text, minted by One's server inside the job's own wake, selected in your own pf_one org in Sandbox) with x-one-standing (the Taps standing item) and periodS in the body, never x-one-approval and never a query; the gateway signs a job-standing proof (its job id from Auth only), and Dials sends at most 3 per period per job after Taps answers the grant active (a refusal is 409 APPROVAL_REQUIRED with standing_code, and never a card; an Auto deny for a job is never approvable). API keys, agent tokens, delegations, phone calls, every other One job child and service credentials are refused (401 PERSON_SESSION_REQUIRED or JOB_STANDING_REQUIRED); a person's credential with scopes is 403 SCOPED_CREDENTIAL. Refusals for both: the check's codes as errors (409 NO_TEXT_LINE / TEXT_LINE_PENDING / RECIPIENT_OPTED_OUT, 403 TEXT_LINE_SELF_ONLY / NOT_PERSONAL_ORG / LIVE_DESTINATION_REFUSED, 429 DAILY_CAP_REACHED (your own and your jobs' sends together), 503 OWN_PHONE_UNREADABLE / OPTOUT_UNREADABLE), the Live spend and Auto gates; job path only: 400 QUERY_NOT_ALLOWED, 429 STANDING_CAP_REACHED, 503 JOB_STANDING_NOT_CONFIGURED, 503 APPROVAL_UNAVAILABLE (Taps unreadable). Idempotency-Key is the body's idempotencyKey, scoped to you: the same caller with the same key and body replays the first answer; another body, or another caller (your own send vs a job, or another job), is 409 IDEMPOTENCY_CONFLICT; while the first is running 409 SEND_IN_PROGRESS; 409 SEND_UNCONFIRMED means the message was written but its records were not confirmed (it may still be delivered): do not say it was sent. Answers {ok, message: {id, state}} only once Dials has queued it. Never retried by the gateway. Same route, SDK and CLI for every tenant (rule 15). After a gateway 502/504, resend once with the same idempotencyKey: Dials replays the first answer or answers SEND_UNCONFIRMED, and never sends twice.

Parameters

  • x-one-approvalheader · string (uuid)

    The Taps item id of your approval of exactly this request. Required on your own send; never sent with x-one-standing.

  • x-one-standingheader · string (uuid)

    A scheduled job's standing item (Taps oneos.speaks.standing_text), lowercase UUID. Only with Auth's job standing child for that job; never with x-one-approval.

Request body application/json

  • toE164stringrequired

    Your own verified phone, +1 and ten digits. Any other recipient is refused.

  • bodystringrequired

    The text (at most 1600 bytes). min length 1 · max length 1600

  • idempotencyKeystringrequired

    One per intended text, scoped to you. The same key and body replay the first answer and never send twice. pattern ^[A-Za-z0-9_\-:.]{8,128}$

  • periodSinteger

    A scheduled job's period in seconds, as its standing card named it. Required on a job's standing send; refused (FIELD_NOT_ALLOWED) on your own send. min 60 · max 604800

Responses

  • 200Queued from your own text line.
    Response fields
    • okbooleanrequired
    • messageobjectrequired
    • message.idstringrequired
    • message.statestringrequired
  • 400FIELD_NOT_ALLOWED or INVALID_REQUEST.
  • 401PERSON_SESSION_REQUIRED.
  • 403SCOPED_CREDENTIAL, NOT_PERSONAL_ORG, TEXT_LINE_SELF_ONLY, LIVE_DESTINATION_REFUSED; Live spend LIVE_NOT_AVAILABLE, LIVE_SPEND_CAP_REACHED, SANDBOX_NOT_AVAILABLE; Auto AUTHORITY_DENIED (with approvable and reasons) or CHARTER_MISSING.
  • 409APPROVAL_REQUIRED, CONSENT_NOT_RECORDED, NO_TEXT_LINE, TEXT_LINE_PENDING, RECIPIENT_OPTED_OUT, IDEMPOTENCY_CONFLICT, SEND_IN_PROGRESS or SEND_UNCONFIRMED.
  • 422A message validation code (for example MESSAGE_BODY_TOO_LONG).
  • 429DAILY_CAP_REACHED (50 a day per person).
  • 500MESSAGE_STORE_FAILED or another store failure. Nothing was sent.
  • 503OWN_PHONE_UNREADABLE, OPTOUT_UNREADABLE, CONSENT_CHECK_FAILED, LIVE_SPEND_UNAVAILABLE, AUTHORITY_UNAVAILABLE, ONE_PHONE_DISABLED, TEXT_LINES_OFF, ONE_NUMBERS_NOT_CONFIGURED or PERSON_SESSION_NOT_CONFIGURED.
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/dials/one-numbers/text/messages" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "toE164": "string",
    "body": "string",
    "idempotencyKey": "string"
  }'

Ask whether a text to your own phone can go from your own text line, without sending it

POST/v1/dials/one-numbers/text/messages/check

Person onlydials_checkOwnTextLineMessage

The sender is always your own text line (/v1/dials/one-numbers/text), never a number you name: the body takes only toE164 and body (any other field is 400 FIELD_NOT_ALLOWED). Answers 200 with decision: approve_first (code approval_required: everything allows it once you approve this exact message on your card) or refused with one closed code: no_text_line, text_line_pending, not_personal_org, text_line_self_only (only your own verified phone), live_destination_refused, recipient_opted_out, own_phone_unreadable, optout_unreadable, daily_cap_reached (50 a day) or approval_unavailable. Nothing is sent, spent or consumed; an x-one-approval on a check is ignored. 30 checks a minute per person (429 RATE_LIMITED). Person only: the caller's own signed-in session (bridge_session, a person h_…, with Auth's session id) on the Console or One, selected in their own organization with no fleet, signed by the gateway for this exact request and body. API keys, agent tokens, delegations, phone calls, One job children and service credentials are refused (401 PERSON_SESSION_REQUIRED); a credential with scopes is 403 SCOPED_CREDENTIAL. A scheduled run reaches this only through a standing grant (a later design), never with a server credential. Same route, SDK and CLI for every tenant (rule 15).

Request body application/json

  • toE164stringrequired

    Your own verified phone, +1 and ten digits. Any other recipient is refused.

  • bodystringrequired

    The text (at most 1600 bytes). min length 1 · max length 1600

Responses

  • 200The decision. Nothing sent, nothing consumed.
    Response fields
    • okbooleanrequired
    • decision"approve_first" | "refused"required
    • codestringrequired
  • 400FIELD_NOT_ALLOWED or INVALID_REQUEST.
  • 401PERSON_SESSION_REQUIRED.
  • 403SCOPED_CREDENTIAL.
  • 429RATE_LIMITED.
  • 500A store failure.
  • 503ONE_PHONE_DISABLED, TEXT_LINES_OFF, ONE_NUMBERS_NOT_CONFIGURED or PERSON_SESSION_NOT_CONFIGURED.
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/dials/one-numbers/text/messages/check" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "toE164": "string",
    "body": "string"
  }'

Own calls

Ring your own phone with a voice agent of your organization

POST/v1/dials/own-calls

Idempotency-Key requiredPerson onlydials_placeOwnCall

Places one call through a live registered voice agent, to one of the caller's own verified phones. The person may call from any of their own sessions: the caller's organization is not compared with the agent's. The call's organization is the AGENT's (caps, grant, token org, consume, audit). Checks, in order: the dark switch, the person session (signed over this body), the organization switch (caller's and agent's), a one-time use of this signed request (409 REQUEST_REPLAYED), the body, the agent is live (404 VOICE_AGENT_NOT_FOUND), the person's own live approval of that agent, always required (403 AGENT_NOT_APPROVED), the caller ID (through One's agent the person's own active One number, otherwise the number bound to the agent in its own organization; 409 NO_CALLER_NUMBER, CHOOSE_NUMBER), the destination (403 NO_VERIFIED_PHONE, SAME_NUMBER, EMERGENCY_BLOCKED; 409 CHOOSE_PHONE), then the caps in one transaction: per person one at a time and 3 a day, the agent organization's concurrency and day share, the global concurrency, and the people reserve (429 with limit and resets_at for a day cap). Idempotency-Key is required for a real call (ignored for a dry run) and scoped to (organization, person) for 24 h: the same key and body replays the first answer (placed, refused or DIAL_UNCERTAIN) and never rings again; another body is 409 IDEMPOTENCY_MISMATCH; while the first request with that key is still running, 409 CALL_IN_PROGRESS (may be ringing: wait, never resend with a new key). Real calls are limited to 10 a minute per person and the limit counts replays, so after an outcome-unknown answer (502 DIAL_UNCERTAIN, any gateway 504/502 with outcome: unknown) wait at least 1 s and resend at most once, with the same key, never in a loop. 409 REQUEST_REPLAYED means the same signed request arrived twice within the same second, and the first may be ringing: wait at least 1 s and resend with the SAME key, never a new one. The gateway never retries this call and gives it 30 s. Only Dials' own answers with the named not-dialled codes (503 OWN_CALLS_DISABLED, OWN_CALLS_NOT_CONFIGURED, PERSON_SESSION_NOT_CONFIGURED, AUTH_UNAVAILABLE, STORE_UNAVAILABLE, CARRIER_NOT_CONFIGURED, PUBLIC_BASE_URL_MISSING, SID_KEY_MISSING, SIP_CREDENTIAL_MISSING, TOKEN_TOO_LONG) come before the grant: nothing was dialled, the key is freed, and the same key may be used again. Any other 5xx (an infrastructure 503/504, an unknown code, an unreadable body) reaches the caller as 502 with outcome: unknown. Until it is priced through the normal price review, a developer organization's calls are recorded, not charged. Person only: the caller's own signed-in session (bridge_session, a person h_…, with Auth's session id) on the Console or One, selected in their own organization with no fleet, signed by the gateway for this exact request and body. API keys, agent tokens, delegations, phone calls, One job children and service credentials are refused (401 PERSON_SESSION_REQUIRED). Dark: 503 OWN_CALLS_DISABLED until Dials' DIALS_OWN_CALLS_ENABLED, and the gateway forwards the person signature only with GATEWAY_DIALS_OWN_CALLS. Same route, SDK and CLI for every tenant (rule 15). Error codes are as Genesis callers receive them: Dials' refusal in the gateway's error envelope, upper case, layer dials ({"ok":false,"error":{"type":...,"code":"OWNER_DAILY_CAP","layer":"dials",...},"limit":3,"resets_at":"..."}); fields Dials puts beside its code (limit, resets_at) stay at the top level. Dials' own internal API uses the lower-case form.

Parameters

  • Idempotency-Keyheader · stringrequired

    8-128 of A-Za-z0-9_-:., one per intended call. Reuse it after an uncertain outcome; it never rings twice.

Request body application/json

  • voice_agent_idstringrequired

    A registered voice agent's id. pattern ^va_[0-9a-f]{32}$

  • to_phone_idstring

    From listOwnPhones. Optional only when the caller has exactly one verified phone (otherwise 409 CHOOSE_PHONE). pattern ^ph_[A-Za-z0-9_-]{1,64}$

  • max_secondsinteger

    Call-length ceiling in seconds. min 30 · max 840

  • dry_runboolean

    Run every check as reads only and answer what a real call would (200 {ok, dry_run} or the same refusal). Takes no cap, no idempotency key, no slot; binds, mints and dials nothing. 30 per minute per person.

Responses

  • 200dry_run: every check passed, the leg checks included; nothing was taken, bound, minted or dialled.
    Response fields
    • oktruerequired
    • dry_runtruerequired
  • 201Placed: the grant is made, the token minted and the carrier dialled.
    Response fields
    • oktruerequired
    • call_idstringrequired

      Dials' call id (the start-of-call token's sub). The call's organization is the agent's.

    • provider_call_idstringrequired

      The carrier's call id.

  • 400INVALID_REQUEST (body, unknown field, max_seconds out of range) or IDEMPOTENCY_KEY_REQUIRED. Not dialled.
  • 401PERSON_SESSION_REQUIRED. Not dialled.
  • 403AGENT_NOT_APPROVED, NO_VERIFIED_PHONE, SAME_NUMBER or EMERGENCY_BLOCKED. Not dialled.
  • 404VOICE_AGENT_NOT_FOUND. Not dialled.
  • 409NO_CALLER_NUMBER, CHOOSE_NUMBER, CHOOSE_PHONE or IDEMPOTENCY_MISMATCH (not dialled; fix the request); REQUEST_REPLAYED (the same signed request arrived twice within the same second; the first may be ringing: wait at least 1 s and resend with the SAME key, never a new one); or CALL_IN_PROGRESS (the same key's first request is still running: may be ringing; wait, never resend with a new key).
  • 429OWNER_DAILY_CAP, ORG_DAILY_CAP or GLOBAL_DAILY_CAP (each with limit and resets_at), OWNER_BUSY, ORG_BUSY (the agent organization's concurrency), GLOBAL_BUSY (global concurrency), or RATE_LIMITED (10 real calls or 30 dry runs a minute; replays count). Not dialled.
  • 502DIAL_UNCERTAIN with call_id and outcome: unknown (may be ringing: never place another; wait at least 1 s and resend once with the same key, which replays this answer), CARRIER_FAILED (not rung; you may ask again with a NEW key), or a gateway 502 with outcome: unknown (the request to Dials started, or any 5xx other than the named not-dialled codes came back; wait at least 1 s and resend once with the same key).
  • 503Only these Dials codes, which come before the grant (certainly not dialled; the key is freed): OWN_CALLS_DISABLED (dark, or the caller's or agent's organization switched off), OWN_CALLS_NOT_CONFIGURED, PERSON_SESSION_NOT_CONFIGURED, AUTH_UNAVAILABLE, STORE_UNAVAILABLE, CARRIER_NOT_CONFIGURED, PUBLIC_BASE_URL_MISSING, SID_KEY_MISSING, SIP_CREDENTIAL_MISSING or TOKEN_TOO_LONG. Any other 503 is answered 502 outcome: unknown.
  • 504UPSTREAM_TIMEOUT (gateway, outcome: unknown): wait at least 1 s and resend once with the same key.
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/dials/own-calls" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "voice_agent_id": "string"
  }'

Export your own call records and approvals

GET/v1/dials/own-calls/records

Person onlydials_listOwnCallRecords

The caller's own audit rows (each grant and refusal: action, code, agent id, time) and voice-agent approvals, so the person can see and export what Dials keeps about their own calls (rule 11). No numbers, no session ids. 30 per minute per person (429 RATE_LIMITED). Person only: the caller's own signed-in session (bridge_session, a person h_…, with Auth's session id) on the Console or One, selected in their own organization with no fleet, signed by the gateway for this exact request and body. API keys, agent tokens, delegations, phone calls, One job children and service credentials are refused (401 PERSON_SESSION_REQUIRED). Dark: 503 OWN_CALLS_DISABLED until Dials' DIALS_OWN_CALLS_ENABLED, and the gateway forwards the person signature only with GATEWAY_DIALS_OWN_CALLS. Same route, SDK and CLI for every tenant (rule 15). Error codes are as Genesis callers receive them: Dials' refusal in the gateway's error envelope, upper case, layer dials ({"ok":false,"error":{"type":...,"code":"OWNER_DAILY_CAP","layer":"dials",...},"limit":3,"resets_at":"..."}); fields Dials puts beside its code (limit, resets_at) stay at the top level. Dials' own internal API uses the lower-case form.

Responses

  • 200The caller's own records.
    Response fields
    • oktruerequired
    • recordsobject[]required
    • records[].[].actionstringrequired
    • records[].[].codestringrequired
    • records[].[].orgstring
    • records[].[].voice_agent_idstring | null
    • records[].[].atstring (date-time)required
    • approvalsobject[]required
    • approvals[].[].idstringrequired
    • approvals[].[].voice_agent_idstringrequired

      A registered voice agent's id. pattern ^va_[0-9a-f]{32}$

    • approvals[].[].agent_namestringrequired
    • approvals[].[].orgstringrequired

      The agent's organization id.

    • approvals[].[].sourcestringrequired
    • approvals[].[].created_atstring (date-time)required
  • 401PERSON_SESSION_REQUIRED.
  • 429RATE_LIMITED (30 a minute per person).
  • 503OWN_CALLS_DISABLED (dark or the organization switched off), OWN_CALLS_NOT_CONFIGURED, PERSON_SESSION_NOT_CONFIGURED or STORE_UNAVAILABLE.
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/dials/own-calls/records" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Own phones

List your own verified phones (id and last four digits)

GET/v1/dials/own-phones

Person onlydials_listOwnPhones

The caller's own Auth-verified phones as {id, last4}; pass an id to placeOwnCall as to_phone_id. Never logged. 30 per minute per person (429 RATE_LIMITED). Person only: the caller's own signed-in session (bridge_session, a person h_…, with Auth's session id) on the Console or One, selected in their own organization with no fleet, signed by the gateway for this exact request and body. API keys, agent tokens, delegations, phone calls, One job children and service credentials are refused (401 PERSON_SESSION_REQUIRED). Dark: 503 OWN_CALLS_DISABLED until Dials' DIALS_OWN_CALLS_ENABLED, and the gateway forwards the person signature only with GATEWAY_DIALS_OWN_CALLS. Same route, SDK and CLI for every tenant (rule 15). Error codes are as Genesis callers receive them: Dials' refusal in the gateway's error envelope, upper case, layer dials ({"ok":false,"error":{"type":...,"code":"OWNER_DAILY_CAP","layer":"dials",...},"limit":3,"resets_at":"..."}); fields Dials puts beside its code (limit, resets_at) stay at the top level. Dials' own internal API uses the lower-case form.

Responses

  • 200The caller's own phones.
    Response fields
    • oktruerequired
    • phonesobject[]required
    • phones[].[].idstringrequired

      Stable per person and number (keyed hash); pass it as to_phone_id. pattern ^ph_[A-Za-z0-9_-]{1,64}$

    • phones[].[].last4stringrequired

      pattern ^[0-9]{4}$

  • 401PERSON_SESSION_REQUIRED.
  • 429RATE_LIMITED (30 a minute per person).
  • 503OWN_CALLS_DISABLED (dark), OWN_CALLS_NOT_CONFIGURED, PERSON_SESSION_NOT_CONFIGURED, AUTH_UNAVAILABLE or STORE_UNAVAILABLE.
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/dials/own-phones" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Routing

List managed inbound policies in the verified scope

GET/v1/dials/routing/rules

dials:readTested with an API keydials_listRoutingRules

Includes enabled and disabled managed policies; workflow descriptors are separate. Reads do not reconcile an unconfirmed original creation request.

Parameters

  • organizationIdquery · stringrequired

    Must match the authenticated organization.

  • workspaceIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • projectIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • environmentIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • platformIdquery · string

    Selected data platform. Omitted defaults to dials in the backend; selection does not grant organization authority.

Responses

  • 200Authenticated scoped result; not proof of an inbound call
    Response fields
    • oktruerequired
    • scopeobjectrequired
    • scope.platformId"dials"

      Dials platform identifier; defaults to dials when omitted.

    • scope.organizationIdstringrequired

      min length 1

    • scope.workspaceIdstring

      min length 1

    • scope.projectIdstring

      min length 1

    • scope.environmentIdstring

      min length 1

    • rulesobject[]required
    • rules[].[].idstringrequired

      min length 1 · max length 128

    • rules[].[].scopeobjectrequired
    • rules[].[].scope.platformId"dials"

      Dials platform identifier; defaults to dials when omitted.

    • rules[].[].scope.organizationIdstringrequired

      min length 1

    • rules[].[].scope.workspaceIdstring

      min length 1

    • rules[].[].scope.projectIdstring

      min length 1

    • rules[].[].scope.environmentIdstring

      min length 1

    • rules[].[].namestringrequired

      min length 1 · max length 128

    • rules[].[].phoneNumberIdstringrequired

      min length 1 · max length 128

    • rules[].[].didstringrequired

      pattern ^\+[1-9]\d{7,14}$

    • rules[].[].priorityintegerrequired

      min 0 · max 10000

    • rules[].[].enabledbooleanrequired
    • rules[].[].actionobject | object | object | objectrequired
  • 400Invalid scope or request shape
  • 401Missing or invalid verified identity
  • 404Number or managed rule not found in the authorized scope
  • 409Original UUID conflicts with stored request, rule name exists, or stored record is invalid
  • 422Invalid action, destination, priority or creation UUID
  • 500Routing store failed; preserve the original request
  • 503Backend unavailable
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/dials/routing/rules?organizationId=$ORGANIZATION_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Create an enabled owned-number inbound policy with durable UUID idempotency

POST/v1/dials/routing/rules

dials:writedials_createRoutingRule

Uses an active owned number. Bridge connects to an explicit E.164 other than the source. Answer parks a channel; echo is diagnostic; neither runs an agent. Highest priority wins. A UUID is bound to the complete normalized body and verified actor. A replay returns the immutable original creation snapshot, even if the rule was subsequently disabled or the number released; it does not reactivate or assert current state. Lost acknowledgements must preserve the exact original body and UUID; there is no automatic retry.

Request body application/json

  • scopeobjectrequired
  • scope.platformId"dials"

    Dials platform identifier; defaults to dials when omitted.

  • scope.organizationIdstringrequired

    min length 1

  • scope.workspaceIdstring

    min length 1

  • scope.projectIdstring

    min length 1

  • scope.environmentIdstring

    min length 1

  • actorIdstring

    Optional compatibility field; the backend derives the actual actor from the verified method-bound gateway identity and never trusts this value.

  • namestringrequired

    min length 1 · max length 128

  • phoneNumberIdstringrequired

    min length 1 · max length 128

  • priorityintegerrequired

    min 0 · max 10000

  • idempotencyKeystring (uuid)required

    Canonical UUID, persisted with the complete original body before the first POST. Reuse only for the exact same original request.

  • actionobject | object | object | objectrequired

Responses

  • 200Authenticated scoped result; not proof of an inbound call
    Response fields
    • oktruerequired
    • ruleobjectrequired
    • rule.idstringrequired

      min length 1 · max length 128

    • rule.scopeobjectrequired
    • rule.scope.platformId"dials"

      Dials platform identifier; defaults to dials when omitted.

    • rule.scope.organizationIdstringrequired

      min length 1

    • rule.scope.workspaceIdstring

      min length 1

    • rule.scope.projectIdstring

      min length 1

    • rule.scope.environmentIdstring

      min length 1

    • rule.namestringrequired

      min length 1 · max length 128

    • rule.phoneNumberIdstringrequired

      min length 1 · max length 128

    • rule.didstringrequired

      pattern ^\+[1-9]\d{7,14}$

    • rule.priorityintegerrequired

      min 0 · max 10000

    • rule.enabledbooleanrequired
    • rule.actionobject | object | object | objectrequired
    • auditIdstringrequired

      min length 1 · max length 128

    • idempotentReplaybooleanrequired
  • 400Invalid scope or request shape
  • 401Missing or invalid verified identity
  • 404Number or managed rule not found in the authorized scope
  • 409Original UUID conflicts with stored request, rule name exists, or stored record is invalid
  • 422Invalid action, destination, priority or creation UUID
  • 500Routing store failed; preserve the original request
  • 503Backend unavailable
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/dials/routing/rules" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "scope": {
      "organizationId": "string"
    },
    "name": "string",
    "phoneNumberId": "string",
    "priority": 0,
    "idempotencyKey": "00000000-0000-4000-8000-000000000000",
    "action": {
      "type": "bridge",
      "targetE164": "string"
    }
  }'

Disable an owned managed inbound policy while retaining its record

DELETE/v1/dials/routing/rules/{rule_id}

dials:writedials_disableRoutingRule

Soft-disables only the managed rule in the verified org/workspace/project/environment. Repeating the exact DELETE is idempotent; returns the retained disabled rule and audit receipt. Workflow descriptors and foreign rules are not modified. Scope is required in the JSON body, not query parameters.

Parameters

  • rule_idpath · stringrequired

Request body application/json

  • scopeobjectrequired
  • scope.platformId"dials"

    Dials platform identifier; defaults to dials when omitted.

  • scope.organizationIdstringrequired

    min length 1

  • scope.workspaceIdstring

    min length 1

  • scope.projectIdstring

    min length 1

  • scope.environmentIdstring

    min length 1

  • actorIdstring | null

    Optional compatibility field; actual actor comes from the verified gateway identity.

Responses

  • 200Authenticated scoped result; not proof of an inbound call
    Response fields
    • oktruerequired
    • ruleobjectrequired
    • rule.idstringrequired

      min length 1 · max length 128

    • rule.scopeobjectrequired
    • rule.scope.platformId"dials"

      Dials platform identifier; defaults to dials when omitted.

    • rule.scope.organizationIdstringrequired

      min length 1

    • rule.scope.workspaceIdstring

      min length 1

    • rule.scope.projectIdstring

      min length 1

    • rule.scope.environmentIdstring

      min length 1

    • rule.namestringrequired

      min length 1 · max length 128

    • rule.phoneNumberIdstringrequired

      min length 1 · max length 128

    • rule.didstringrequired

      pattern ^\+[1-9]\d{7,14}$

    • rule.priorityintegerrequired

      min 0 · max 10000

    • rule.enabledbooleanrequired
    • rule.actionobject | object | object | objectrequired
    • auditIdstring | nullrequired

      Recorded disable audit ID, or null for an already-disabled imported record with no recorded disable audit.

    • idempotentReplaybooleanrequired
  • 400Invalid scope or request shape
  • 401Missing or invalid verified identity
  • 404Number or managed rule not found in the authorized scope
  • 409Original UUID conflicts with stored request, rule name exists, or stored record is invalid
  • 422Invalid action, destination, priority or creation UUID
  • 500Routing store failed; preserve the original request
  • 503Backend unavailable
  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/dials/routing/rules/$RULE_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "scope": {
      "organizationId": "string"
    }
  }'

Voice agent approvals

List the voice agents you approved to ring you

GET/v1/dials/voice-agent-approvals

Person onlydials_listVoiceAgentApprovals

The caller's own live approvals, never another person's. Person only: the caller's own signed-in session (bridge_session, a person h_…, with Auth's session id) on the Console or One, selected in their own organization with no fleet, signed by the gateway for this exact request and body. API keys, agent tokens, delegations, phone calls, One job children and service credentials are refused (401 PERSON_SESSION_REQUIRED). Dark: 503 OWN_CALLS_DISABLED until Dials' DIALS_OWN_CALLS_ENABLED, and the gateway forwards the person signature only with GATEWAY_DIALS_OWN_CALLS. Same route, SDK and CLI for every tenant (rule 15). Error codes are as Genesis callers receive them: Dials' refusal in the gateway's error envelope, upper case, layer dials ({"ok":false,"error":{"type":...,"code":"OWNER_DAILY_CAP","layer":"dials",...},"limit":3,"resets_at":"..."}); fields Dials puts beside its code (limit, resets_at) stay at the top level. Dials' own internal API uses the lower-case form.

Responses

  • 200The caller's own approvals.
    Response fields
    • oktruerequired
    • approvalsobject[]required
    • approvals[].[].idstringrequired
    • approvals[].[].voice_agent_idstringrequired

      A registered voice agent's id. pattern ^va_[0-9a-f]{32}$

    • approvals[].[].agent_namestringrequired
    • approvals[].[].orgstringrequired

      The agent's organization id.

    • approvals[].[].sourcestringrequired
    • approvals[].[].created_atstring (date-time)required
  • 401PERSON_SESSION_REQUIRED.
  • 503OWN_CALLS_DISABLED (dark), OWN_CALLS_NOT_CONFIGURED, PERSON_SESSION_NOT_CONFIGURED or STORE_UNAVAILABLE.
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/dials/voice-agent-approvals" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Approve

Approve a voice agent to ring you (your passkey)

POST/v1/dials/voice-agents/{voice_agent_id}/approve

Person onlydials_approveVoiceAgent

The gateway forwards it only for the person's own signed-in Console session (own organization, no fleet, unexpired selection); every other principal, One's own session (pf_one) included, is 403 PERSON_ONLY. Dials requires the person's own passkey press on a Taps item bound to this agent; until Taps consumes passkey items it answers 503 APPROVAL_PASSKEY_REQUIRED for every request. Person only: the caller's own signed-in session (bridge_session, a person h_…, with Auth's session id) on the Console or One, selected in their own organization with no fleet, signed by the gateway for this exact request and body. API keys, agent tokens, delegations, phone calls, One job children and service credentials are refused (401 PERSON_SESSION_REQUIRED). Dark: 503 OWN_CALLS_DISABLED until Dials' DIALS_OWN_CALLS_ENABLED, and the gateway forwards the person signature only with GATEWAY_DIALS_OWN_CALLS. Same route, SDK and CLI for every tenant (rule 15). Error codes are as Genesis callers receive them: Dials' refusal in the gateway's error envelope, upper case, layer dials ({"ok":false,"error":{"type":...,"code":"OWNER_DAILY_CAP","layer":"dials",...},"limit":3,"resets_at":"..."}); fields Dials puts beside its code (limit, resets_at) stay at the top level. Dials' own internal API uses the lower-case form.

Parameters

  • voice_agent_idpath · stringrequired

Request body application/json

  • taps_item_idstring (uuid)required

    The person's own approved Taps passkey item for this agent.

Responses

  • 200Already approved.
    Response fields
    • oktruerequired
    • approvalobjectrequired
    • approval.idstringrequired
    • approval.voice_agent_idstringrequired

      A registered voice agent's id. pattern ^va_[0-9a-f]{32}$

    • approval.agent_namestringrequired
    • approval.orgstringrequired

      The agent's organization id.

    • approval.sourcestringrequired
    • approval.created_atstring (date-time)required
  • 201Approved.
    Response fields
    • oktruerequired
    • approvalobjectrequired
    • approval.idstringrequired
    • approval.voice_agent_idstringrequired

      A registered voice agent's id. pattern ^va_[0-9a-f]{32}$

    • approval.agent_namestringrequired
    • approval.orgstringrequired

      The agent's organization id.

    • approval.sourcestringrequired
    • approval.created_atstring (date-time)required
  • 400INVALID_REQUEST.
  • 401PERSON_SESSION_REQUIRED.
  • 403PERSON_ONLY (gateway), APPROVAL_PASSKEY_REQUIRED or APPROVAL_REFUSED.
  • 404VOICE_AGENT_NOT_FOUND.
  • 503APPROVAL_PASSKEY_REQUIRED (closed in this release), APPROVAL_UNAVAILABLE, OWN_CALLS_DISABLED (dark) or STORE_UNAVAILABLE.
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/dials/voice-agents/$VOICE_AGENT_ID/approve" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "taps_item_id": "00000000-0000-4000-8000-000000000000"
  }'

Revoke your approval of a voice agent

DELETE/v1/dials/voice-agents/{voice_agent_id}/approve

Person onlydials_revokeVoiceAgent

Revokes the caller's own approval (no press needed: it only lowers). The gateway forwards it only for the person's own signed-in Console session; every other principal, One's own session (pf_one) included, is 403 PERSON_ONLY. Person only: the caller's own signed-in session (bridge_session, a person h_…, with Auth's session id) on the Console or One, selected in their own organization with no fleet, signed by the gateway for this exact request and body. API keys, agent tokens, delegations, phone calls, One job children and service credentials are refused (401 PERSON_SESSION_REQUIRED). Dark: 503 OWN_CALLS_DISABLED until Dials' DIALS_OWN_CALLS_ENABLED, and the gateway forwards the person signature only with GATEWAY_DIALS_OWN_CALLS. Same route, SDK and CLI for every tenant (rule 15). Error codes are as Genesis callers receive them: Dials' refusal in the gateway's error envelope, upper case, layer dials ({"ok":false,"error":{"type":...,"code":"OWNER_DAILY_CAP","layer":"dials",...},"limit":3,"resets_at":"..."}); fields Dials puts beside its code (limit, resets_at) stay at the top level. Dials' own internal API uses the lower-case form.

Parameters

  • voice_agent_idpath · stringrequired

Responses

  • 200Revoked.
    Response fields
    • oktruerequired
    • voice_agent_idstringrequired

      A registered voice agent's id. pattern ^va_[0-9a-f]{32}$

    • revokedtruerequired
  • 401PERSON_SESSION_REQUIRED.
  • 403PERSON_ONLY (gateway).
  • 404APPROVAL_NOT_FOUND.
  • 503OWN_CALLS_DISABLED (dark) or STORE_UNAVAILABLE.
  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/dials/voice-agents/$VOICE_AGENT_ID/approve" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Voice profiles

List saved voiceProfiles in the selected scope

GET/v1/dials/voice-profiles

dials:readTested with an API keydials_listVoiceProfiles

Parameters

  • organizationIdquery · stringrequired

    Must match the authenticated organization.

  • workspaceIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • projectIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • environmentIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

Responses

  • 200Success
    Response fields
    • okbooleanrequired
    • voiceProfilesobject[]required
    • voiceProfiles[].[].idstringrequired
    • voiceProfiles[].[].scopeobjectrequired
    • voiceProfiles[].[].scope.platformId"dials"

      Dials platform identifier; defaults to dials when omitted.

    • voiceProfiles[].[].scope.organizationIdstringrequired

      min length 1

    • voiceProfiles[].[].scope.workspaceIdstring

      min length 1

    • voiceProfiles[].[].scope.projectIdstring

      min length 1

    • voiceProfiles[].[].scope.environmentIdstring

      min length 1

    • voiceProfiles[].[].namestringrequired
    • voiceProfiles[].[].modelIdstringrequired
    • voiceProfiles[].[].profileKind"synthetic" | "cloned" | "bring_your_own"required
    • voiceProfiles[].[].languagestringrequired
    • voiceProfiles[].[].latencyBudgetMsintegerrequired
    • voiceProfiles[].[].consentRecordIdstring | nullrequired
    • voiceProfiles[].[].watermarkRequiredbooleanrequired
    • voiceProfiles[].[].commercialLicenseAttestedbooleanrequired
    • voiceProfiles[].[].deploymentTier"production" | "benchmark" | "edge"required
    • voiceProfiles[].[].statusstringrequired
  • 401Missing or invalid identity
  • 404Resource does not belong to the authenticated organization
  • 503Backend or carrier unavailable
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/dials/voice-profiles?organizationId=$ORGANIZATION_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Save an unassigned VoiceProfile by scoped normalized name

POST/v1/dials/voice-profiles

dials:writeTested with an API keydials_createVoiceProfile

This POST upserts by full scope and trimmed,lowercased name. Omitted optional fields reset. Create unassigned and assign a number separately; never replay creation after an assignment failure. No invitation,model deployment or consent verification is implied.

Request body application/json

  • scopeobjectrequired
  • scope.platformId"dials"

    Dials platform identifier; defaults to dials when omitted.

  • scope.organizationIdstringrequired

    min length 1

  • scope.workspaceIdstring

    min length 1

  • scope.projectIdstring

    min length 1

  • scope.environmentIdstring

    min length 1

  • actorIdstringrequired

    min length 1

  • namestringrequired

    min length 1

  • modelId"chatterbox-turbo" | "cosyvoice-2-05b" | "fish-audio-s2" | "kokoro-82m" | "dials-blockwise-mimi"required
  • profileKind"synthetic" | "cloned" | "bring_your_own" | null
  • languagestring | null

    min length 2 · max length 16 · pattern ^(?=.*[A-Za-z])[A-Za-z0-9-]+$

  • latencyBudgetMsinteger | null

    min 50 · max 1000

  • consentRecordIdstring | null

    Real reference required for cloned/BYO. Backend validates presence, not registry ownership.

  • watermarkRequiredboolean | null

    Defaults true and must be true for cloned/BYO.

  • commercialLicenseAttestedboolean | null

    Defaults false. Explicit attestation required for production Fish Audio.

  • deploymentTier"production" | "benchmark" | "edge" | null

Responses

  • 200Success
    Response fields
    • okbooleanrequired
    • voiceProfileobjectrequired
    • voiceProfile.idstringrequired
    • voiceProfile.scopeobjectrequired
    • voiceProfile.scope.platformId"dials"

      Dials platform identifier; defaults to dials when omitted.

    • voiceProfile.scope.organizationIdstringrequired

      min length 1

    • voiceProfile.scope.workspaceIdstring

      min length 1

    • voiceProfile.scope.projectIdstring

      min length 1

    • voiceProfile.scope.environmentIdstring

      min length 1

    • voiceProfile.namestringrequired
    • voiceProfile.modelIdstringrequired
    • voiceProfile.profileKind"synthetic" | "cloned" | "bring_your_own"required
    • voiceProfile.languagestringrequired
    • voiceProfile.latencyBudgetMsintegerrequired
    • voiceProfile.consentRecordIdstring | nullrequired
    • voiceProfile.watermarkRequiredbooleanrequired
    • voiceProfile.commercialLicenseAttestedbooleanrequired
    • voiceProfile.deploymentTier"production" | "benchmark" | "edge"required
    • voiceProfile.statusstringrequired
    • auditIdstringrequired
    • usageEventIdstringrequired
    • nextstringrequired
  • 401Missing or invalid identity
  • 404Resource does not belong to the authenticated organization
  • 422Invalid profile fields, missing consent/license attestation, or unsupported production model
  • 503Backend or carrier unavailable
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/dials/voice-profiles" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "scope": {
      "organizationId": "string"
    },
    "actorId": "string",
    "name": "string",
    "modelId": "chatterbox-turbo"
  }'

Voice tokens

Consume a start-of-call token (receiving server)

POST/v1/dials/voice-tokens/consume

dials:writedials_consumeVoiceToken

For the receiver of an own call, never a person: called with an API key (or service credential) with scopes of the AGENT's organization. A person session is 403 RECEIVER_REQUIRED. Verifies the start-of-call token Dials minted (signature against the current or previous key, aud a live voice agent of the caller's organization, org that organization, not expired) and spends it once: a second use is 409 TOKEN_USED. A byte-identical resend of the same signed request is 409 REQUEST_REPLAYED. Answers who placed the call and the keyed hash of their session, never the raw session id. Tokens can also be verified offline against Dials' JWKS (/.well-known/voice-jwks.json). Dark: 503 OWN_CALLS_DISABLED (also for an organization switched off). Error codes are as Genesis callers receive them: Dials' refusal in the gateway's error envelope, upper case, layer dials ({"ok":false,"error":{"type":...,"code":"OWNER_DAILY_CAP","layer":"dials",...},"limit":3,"resets_at":"..."}); fields Dials puts beside its code (limit, resets_at) stay at the top level. Dials' own internal API uses the lower-case form.

Request body application/json

  • tokenstringrequired

    The start-of-call token the voice vendor handed the agent's start-of-call webhook. min length 1 · max length 4096

Responses

  • 200Consumed.
    Response fields
    • oktruerequired
    • call_idstringrequired
    • ownerstringrequired

      The person (h_…) who placed the call.

    • sid_hashstringrequired

      HMAC-SHA256 under the organization's sid key (domain dials.voice.sid.v1) of the caller's Auth session id; never the raw id.

    • sid_kvintegerrequired

      Which version of the organization's sid key made sid_hash.

  • 400INVALID_REQUEST.
  • 401MISSING_PLATFORM_CREDENTIAL, or TOKEN_INVALID (signature, audience, expiry or shape).
  • 403RECEIVER_REQUIRED (a person session, or no scopes) or AGENT_NOT_ORG (the token's agent is not of the receiver's organization).
  • 409TOKEN_USED or REQUEST_REPLAYED.
  • 503OWN_CALLS_DISABLED (dark or switched off), OWN_CALLS_NOT_CONFIGURED, PERSON_SESSION_NOT_CONFIGURED or STORE_UNAVAILABLE.
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/dials/voice-tokens/consume" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "token": "string"
  }'

Workflows

List scoped saved workflow routing descriptors

GET/v1/dials/workflows

dials:readTested with an API keydials_listWorkflows

Parameters

  • organizationIdquery · stringrequired

    Must match the authenticated organization.

  • workspaceIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • projectIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • environmentIdquery · string

    Optional with an org API key: Dials fills it from the key's signed binding, and a value that differs from the binding is refused. A login session with a selected project is pinned to that selection.

  • platformIdquery · string

    Selected data platform. Omitted defaults to dials in the backend; selection does not grant organization authority.

Responses

  • 200Actual durable operation result; no carrier delivery or graph execution is inferred.
    Response fields
    • okbooleanrequired
    • workflowsobject[]required
    • workflows[].[].idstringrequired

      min length 1

    • workflows[].[].namestringrequired

      min length 1

    • workflows[].[].descriptionstringrequired
    • workflows[].[].nodesobject[]required
    • workflows[].[].nodes[].[].idstringrequired

      min length 1

    • workflows[].[].nodes[].[].labelstringrequired

      min length 1

    • workflows[].[].nodes[].[].kindstringrequired

      Stored node descriptor; this API does not validate a supported execution engine kind. min length 1

    • workflows[].[].nodes[].[].descriptionstringrequired
    • workflows[].[].nodes[].[].statusstringrequired
    • workflows[].[].nodes[].[].xinteger (int32)required
    • workflows[].[].nodes[].[].yinteger (int32)required
    • workflows[].[].edgesobject[]required
    • workflows[].[].edges[].[].idstringrequired

      min length 1

    • workflows[].[].edges[].[].sourcestringrequired

      min length 1

    • workflows[].[].edges[].[].targetstringrequired

      min length 1

    • workflows[].[].edges[].[].labelstringrequired
    • workflows[].[].statusstring

      default "draft"

    • workflows[].[].routeIdstring | null
  • 400Invalid selected scope or request shape.
  • 401Missing or invalid verified identity.
  • 403Selected scope is not authorized by signed identity or lacks the required Dials grant.
  • 500Durable store failed.
  • 503Backend is not ready.
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/dials/workflows?organizationId=$ORGANIZATION_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Delete an owned workflow and its routing descriptor

DELETE/v1/dials/workflows/{workflow_id}

dials:writedials_deleteWorkflow

Needs dials:write. Deletes the workflow with this id (the id you deployed it with) and every routing-rule descriptor row it was deployed as, in the verified org/workspace/project/environment only, and records a workflows.delete audit event whose actor is the verified gateway identity. Another organization's, workspace's, project's or environment's workflow, and a repeat delete, are 404 workflow_not_found. If a held (not released) number is assigned to the workflow (kind workflow or routing_rule), the delete is refused with 409 workflow_number_attached and nothing changes: unassign the number first with assignNumber and no resource. Managed inbound policies (/v1/routing/rules) are never deleted here. Scope is required in the JSON body, not query parameters.

Parameters

  • workflow_idpath · stringrequired

Request body application/json

  • scopeobjectrequired
  • scope.platformId"dials"

    Dials platform identifier; defaults to dials when omitted.

  • scope.organizationIdstringrequired

    min length 1

  • scope.workspaceIdstring

    min length 1

  • scope.projectIdstring

    min length 1

  • scope.environmentIdstring

    min length 1

  • actorIdstring | null

    Optional compatibility field; the actual actor comes from the verified gateway identity.

Responses

  • 200Deleted. The descriptor rows are gone; audit records are kept.
    Response fields
    • oktruerequired
    • deletedtruerequired
    • workflowobjectrequired

      Graph configuration. Backend normalizes labels, requires nonempty nodes and checks edge endpoints. It saves an enabled routing-rule descriptor; status deployed does not establish that arbitrary node logic executed.

    • workflow.idstringrequired

      min length 1

    • workflow.namestringrequired

      min length 1

    • workflow.descriptionstringrequired
    • workflow.nodesobject[]required
    • workflow.nodes[].[].idstringrequired

      min length 1

    • workflow.nodes[].[].labelstringrequired

      min length 1

    • workflow.nodes[].[].kindstringrequired

      Stored node descriptor; this API does not validate a supported execution engine kind. min length 1

    • workflow.nodes[].[].descriptionstringrequired
    • workflow.nodes[].[].statusstringrequired
    • workflow.nodes[].[].xinteger (int32)required
    • workflow.nodes[].[].yinteger (int32)required
    • workflow.edgesobject[]required
    • workflow.edges[].[].idstringrequired

      min length 1

    • workflow.edges[].[].sourcestringrequired

      min length 1

    • workflow.edges[].[].targetstringrequired

      min length 1

    • workflow.edges[].[].labelstringrequired
    • workflow.statusstring

      default "draft"

    • workflow.routeIdstring | null
    • routeIdsstring[]required

      The routing-rule descriptor ids that were deleted.

    • auditIdstringrequired
    • next"workflow_deleted"required
  • 400Invalid scope or request shape.
  • 401Missing or invalid verified identity.
  • 403Selected scope is not authorized by signed identity or lacks the required Dials grant.
  • 404No workflow with this id in the authorized scope (workflow_not_found).
  • 409A held number is assigned to this workflow (workflow_number_attached); unassign it first.
  • 500Durable store failed.
  • 503Backend is not ready.
  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/dials/workflows/$WORKFLOW_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "scope": {
      "organizationId": "string"
    }
  }'

Save a normalized workflow and enabled routing descriptor

POST/v1/dials/workflows/deploy

dials:writeTested with an API keydials_deployWorkflow

Upsert by selected scope/workflow ID. A deployed descriptor is not proof of arbitrary graph or media execution.

Request body application/json

  • scopeobjectrequired
  • scope.platformId"dials"

    Dials platform identifier; defaults to dials when omitted.

  • scope.organizationIdstringrequired

    min length 1

  • scope.workspaceIdstring

    min length 1

  • scope.projectIdstring

    min length 1

  • scope.environmentIdstring

    min length 1

  • actorIdstringrequired

    min length 1

  • workflowobjectrequired

    Graph configuration. Backend normalizes labels, requires nonempty nodes and checks edge endpoints. It saves an enabled routing-rule descriptor; status deployed does not establish that arbitrary node logic executed.

  • workflow.idstringrequired

    min length 1

  • workflow.namestringrequired

    min length 1

  • workflow.descriptionstringrequired
  • workflow.nodesobject[]required
  • workflow.nodes[].[].idstringrequired

    min length 1

  • workflow.nodes[].[].labelstringrequired

    min length 1

  • workflow.nodes[].[].kindstringrequired

    Stored node descriptor; this API does not validate a supported execution engine kind. min length 1

  • workflow.nodes[].[].descriptionstringrequired
  • workflow.nodes[].[].statusstringrequired
  • workflow.nodes[].[].xinteger (int32)required
  • workflow.nodes[].[].yinteger (int32)required
  • workflow.edgesobject[]required
  • workflow.edges[].[].idstringrequired

    min length 1

  • workflow.edges[].[].sourcestringrequired

    min length 1

  • workflow.edges[].[].targetstringrequired

    min length 1

  • workflow.edges[].[].labelstringrequired
  • workflow.statusstring

    default "draft"

  • workflow.routeIdstring | null

Responses

  • 200Actual durable operation result; no carrier delivery or graph execution is inferred.
    Response fields
    • okbooleanrequired
    • workflowobjectrequired

      Graph configuration. Backend normalizes labels, requires nonempty nodes and checks edge endpoints. It saves an enabled routing-rule descriptor; status deployed does not establish that arbitrary node logic executed.

    • workflow.idstringrequired

      min length 1

    • workflow.namestringrequired

      min length 1

    • workflow.descriptionstringrequired
    • workflow.nodesobject[]required
    • workflow.nodes[].[].idstringrequired

      min length 1

    • workflow.nodes[].[].labelstringrequired

      min length 1

    • workflow.nodes[].[].kindstringrequired

      Stored node descriptor; this API does not validate a supported execution engine kind. min length 1

    • workflow.nodes[].[].descriptionstringrequired
    • workflow.nodes[].[].statusstringrequired
    • workflow.nodes[].[].xinteger (int32)required
    • workflow.nodes[].[].yinteger (int32)required
    • workflow.edgesobject[]required
    • workflow.edges[].[].idstringrequired

      min length 1

    • workflow.edges[].[].sourcestringrequired

      min length 1

    • workflow.edges[].[].targetstringrequired

      min length 1

    • workflow.edges[].[].labelstringrequired
    • workflow.statusstring

      default "draft"

    • workflow.routeIdstring | null
    • auditIdstringrequired
    • usageEventIdstringrequired
    • nextstringrequired
    • routeobjectrequired
    • route.idstringrequired

      min length 1 · max length 128

    • route.scopeobjectrequired
    • route.scope.platformId"dials"

      Dials platform identifier; defaults to dials when omitted.

    • route.scope.organizationIdstringrequired

      min length 1

    • route.scope.workspaceIdstring

      min length 1

    • route.scope.projectIdstring

      min length 1

    • route.scope.environmentIdstring

      min length 1

    • route.namestringrequired

      min length 1 · max length 128

    • route.phoneNumberIdstringrequired

      min length 1 · max length 128

    • route.didstringrequired

      pattern ^\+[1-9]\d{7,14}$

    • route.priorityintegerrequired

      min 0 · max 10000

    • route.enabledbooleanrequired
    • route.actionobject | object | object | objectrequired
  • 400Invalid selected scope or request shape.
  • 401Missing or invalid verified identity.
  • 403Selected scope is not authorized by signed identity or lacks the required Dials grant.
  • 422Validation or approval requirement refused.
  • 500Durable store failed.
  • 503Backend is not ready.
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/dials/workflows/deploy" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "scope": {
      "organizationId": "string"
    },
    "actorId": "string",
    "workflow": {
      "id": "string",
      "name": "string",
      "description": "string",
      "nodes": [
        {
          "id": "string",
          "label": "string",
          "kind": "string",
          "description": "string",
          "status": "string",
          "x": 1,
          "y": 1
        }
      ],
      "edges": []
    }
  }'

L1fe AI Inc. · Built from Genesis 0.3.3 and the live gateway on 2026-10-25. Support