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:readdials:write- API keys
- 1 failed with an API key · 3 untested · 34 tested with an API key
- SDK
genesis.call('dials_listAgents', …)· helpers undergenesis.dials- MCP
- 54 tools; the other 15 through
genesis_call
Operations
Agents
List saved agents in the selected scope
GET/v1/dials/agents
Parameters
organizationIdquery · stringrequiredMust match the authenticated organization.
workspaceIdquery · stringOptional 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 · stringOptional 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 · stringOptional 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
okbooleanrequiredagentsobject[]requiredagents[].[].idstringrequiredagents[].[].scopeobjectrequiredagents[].[].scope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
agents[].[].scope.organizationIdstringrequiredmin length 1
agents[].[].scope.workspaceIdstringmin length 1
agents[].[].scope.projectIdstringmin length 1
agents[].[].scope.environmentIdstringmin length 1
agents[].[].namestringrequiredagents[].[].rolestringrequiredagents[].[].voiceModelIdstringrequiredOpaque model identifier; not a validated voice-profile binding.
agents[].[].mode"autonomous" | "copilot" | "human_handoff"requiredagents[].[].phoneNumberIdstring | nullrequiredagents[].[].systemPromptstringrequiredagents[].[].statusstringrequiredSaved 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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_listAgents', {
organizationId: '<organizationId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_listAgents",
"arguments": {
"organizationId": "<organizationId>"
}
}
}Save an unassigned AgentProfile by scoped normalized name
POST/v1/dials/agents
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
scopeobjectrequiredscope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
scope.organizationIdstringrequiredmin length 1
scope.workspaceIdstringmin length 1
scope.projectIdstringmin length 1
scope.environmentIdstringmin length 1
actorIdstringrequiredmin length 1
namestringrequiredmin length 1
rolestringrequiredmin length 1
voiceModelIdstringrequiredModel string; never substitute a governed voice profile ID. min length 1
mode"autonomous" | "copilot" | "human_handoff"requiredsystemPromptstring | null
Responses
- 200Success
Response fields
okbooleanrequiredagentobjectrequiredagent.idstringrequiredagent.scopeobjectrequiredagent.scope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
agent.scope.organizationIdstringrequiredmin length 1
agent.scope.workspaceIdstringmin length 1
agent.scope.projectIdstringmin length 1
agent.scope.environmentIdstringmin length 1
agent.namestringrequiredagent.rolestringrequiredagent.voiceModelIdstringrequiredOpaque model identifier; not a validated voice-profile binding.
agent.mode"autonomous" | "copilot" | "human_handoff"requiredagent.phoneNumberIdstring | nullrequiredagent.systemPromptstringrequiredagent.statusstringrequiredSaved backend status does not establish a running model or voice runtime.
auditIdstringrequiredusageEventIdstringrequirednextstringrequired
- 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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_createAgent', {
body: {
scope: {
organizationId: 'string',
},
actorId: 'string',
name: 'string',
role: 'string',
voiceModelId: 'string',
mode: 'autonomous',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_createAgent",
"arguments": {
"body": {
"scope": {
"organizationId": "string"
},
"actorId": "string",
"name": "string",
"role": "string",
"voiceModelId": "string",
"mode": "autonomous"
}
}
}
}Delete (archive) a saved agent
DELETE/v1/dials/agents/{agent_id}
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 · stringrequiredorganizationIdquery · stringrequiredMust match the authenticated organization.
workspaceIdquery · stringOptional 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 · stringOptional 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 · stringOptional 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
idstringrequireddeletedtruerequiredarchivedtruerequired
- 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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_deleteAgent', {
agent_id: '<agent_id>',
organizationId: '<organizationId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_deleteAgent",
"arguments": {
"agent_id": "<agent_id>",
"organizationId": "<organizationId>"
}
}
}Calls
List real call lifecycle and carrier outcomes
GET/v1/dials/calls
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 · stringrequiredMust match the authenticated organization.
workspaceIdquery · stringOptional 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 · stringOptional 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 · stringOptional 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
okbooleanrequiredcallsobject[]requiredcalls[].[].idstringrequiredcalls[].[].scopeobjectrequiredcalls[].[].scope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
calls[].[].scope.organizationIdstringrequiredmin length 1
calls[].[].scope.workspaceIdstringmin length 1
calls[].[].scope.projectIdstringmin length 1
calls[].[].scope.environmentIdstringmin length 1
calls[].[].direction"inbound" | "outbound" | "on_net"requiredcalls[].[].status"created" | "compliance_checked" | "queued" | "dialing" | "ringing" | "answered" | "bridged" | "held" | "completed" | "failed" | "blocked"requiredCall lifecycle only. A queued lifecycle can coexist with uncertain or recovery_required dispatchState; it is not proof that another worker should execute it.
calls[].[].phoneNumberIdstringrequiredcalls[].[].remoteE164stringrequiredcalls[].[].callControlobject | objectCustomer-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 | nullrequiredcalls[].[].sipStatusinteger | null (int32)requiredcalls[].[].hangupCausestring | nullrequiredcalls[].[].durationSecondsinteger | null (int32)requiredcalls[].[].billedSecondsinteger | null (int32)requiredcalls[].[].answeredbooleanrequiredWhether the far end was observed to answer; false alone is not a terminal result.
calls[].[].recordingIdstring | nullrequiredcalls[].[].dispatchState"pending" | "claimed" | "dispatched" | "failed" | "uncertain" | "recovery_required" | nullSubmission 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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_listCalls', {
organizationId: '<organizationId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_listCalls",
"arguments": {
"organizationId": "<organizationId>"
}
}
}Call One or an agent (dial tone, 1-3 rings, queue)
POST/v1/dials/calls
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 · stringSame as the body's idempotency_key; when both are sent they must match.
Request body application/json
tostringrequiredone, or an agent id. min length 1 · max length 128 · pattern^[A-Za-z0-9_.:-]+$client"ios" | "web" | "desktop" | "watch" | "tv" | "api"mediastringThe client's media hint (today
http); not used yet.idempotency_keystringmin length 1 · max length 128 · pattern
^[A-Za-z0-9_.:-]+$
Responses
- 200Idempotent replay of the same call.
Response fields
call_idstringrequiredpattern
^acall_[0-9a-f]{32}$state"queued" | "ringing" | "connected" | "ended" | "failed" | "missed"requiredtostringrequiredclientstring | nullring_planobjectrequiredring_plan.dial_tone_msintegerrequiredmin 0
ring_plan.ringsintegerrequiredRings before the earliest pickup (random per call). min 1 · max 3
ring_plan.ring_msintegerrequiredmin 1
ring_plan.max_rings3requiredqueueobject | nullqueue.positionintegermin 1
created_atstring | null (date-time)requiredadmitted_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)requiredEnd of ring 3: not connected by then is missed.
ended_atstring | null (date-time)ended_by"person" | "agent" | "system" | nullperson: the creator hung up; agent: One hung up (Dials service credential); system: a miss, failure, lease lapse or the cap.
end_reasonstring | nullno_capacity, warmup_not_ready, warmup_failed:<code>, lease_expired (billed to the last heartbeat), max_duration, or the caller's code.
call_secondsinteger | nullmin 0
lease_untilstring | null (date-time)heartbeat_every_msinteger | nullpoll_after_msinteger | nullserver_timestring | null (date-time)requiredidempotent_replaybooleanalready_endedboolean
- 201Placed: ringing, or queued with a position.
Response fields
call_idstringrequiredpattern
^acall_[0-9a-f]{32}$state"queued" | "ringing" | "connected" | "ended" | "failed" | "missed"requiredtostringrequiredclientstring | nullring_planobjectrequiredring_plan.dial_tone_msintegerrequiredmin 0
ring_plan.ringsintegerrequiredRings before the earliest pickup (random per call). min 1 · max 3
ring_plan.ring_msintegerrequiredmin 1
ring_plan.max_rings3requiredqueueobject | nullqueue.positionintegermin 1
created_atstring | null (date-time)requiredadmitted_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)requiredEnd of ring 3: not connected by then is missed.
ended_atstring | null (date-time)ended_by"person" | "agent" | "system" | nullperson: the creator hung up; agent: One hung up (Dials service credential); system: a miss, failure, lease lapse or the cap.
end_reasonstring | nullno_capacity, warmup_not_ready, warmup_failed:<code>, lease_expired (billed to the last heartbeat), max_duration, or the caller's code.
call_secondsinteger | nullmin 0
lease_untilstring | null (date-time)heartbeat_every_msinteger | nullpoll_after_msinteger | nullserver_timestring | null (date-time)requiredidempotent_replaybooleanalready_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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('dials_createAgentCall', {
body: {
to: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "dials_createAgentCall",
"arguments": {
"body": {
"to": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}
}Get your agent call now
GET/v1/dials/calls/{call_id}
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 · stringrequiredThe agent call id from create.
Responses
- 200The call.
Response fields
call_idstringrequiredpattern
^acall_[0-9a-f]{32}$state"queued" | "ringing" | "connected" | "ended" | "failed" | "missed"requiredtostringrequiredclientstring | nullring_planobjectrequiredring_plan.dial_tone_msintegerrequiredmin 0
ring_plan.ringsintegerrequiredRings before the earliest pickup (random per call). min 1 · max 3
ring_plan.ring_msintegerrequiredmin 1
ring_plan.max_rings3requiredqueueobject | nullqueue.positionintegermin 1
created_atstring | null (date-time)requiredadmitted_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)requiredEnd of ring 3: not connected by then is missed.
ended_atstring | null (date-time)ended_by"person" | "agent" | "system" | nullperson: the creator hung up; agent: One hung up (Dials service credential); system: a miss, failure, lease lapse or the cap.
end_reasonstring | nullno_capacity, warmup_not_ready, warmup_failed:<code>, lease_expired (billed to the last heartbeat), max_duration, or the caller's code.
call_secondsinteger | nullmin 0
lease_untilstring | null (date-time)heartbeat_every_msinteger | nullpoll_after_msinteger | nullserver_timestring | null (date-time)requiredidempotent_replaybooleanalready_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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_getAgentCall', {
call_id: '<call_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_getAgentCall",
"arguments": {
"call_id": "<call_id>"
}
}
}Your organization's share of the call slot pool
GET/v1/dials/calls/capacity
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
okbooleanrequiredorgobjectrequiredorg.slotsintegerrequiredorg.in_useintegerrequiredorg.queuedintegerrequiredglobalobjectrequiredglobal.freeintegerrequiredmin 0
ring_planobjectrequiredring_plan.dial_tone_msintegerring_plan.ring_msintegerring_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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_getAgentCallCapacity'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_getAgentCallCapacity",
"arguments": {}
}
}Queue an approved outbound call with an idempotency key
POST/v1/dials/calls/outbound
Request body application/json
scopeobjectrequiredscope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
scope.organizationIdstringrequiredmin length 1
scope.workspaceIdstringmin length 1
scope.projectIdstringmin length 1
scope.environmentIdstringmin length 1
actorIdstringrequiredmin length 1
toE164stringrequiredmin length 1
fromNumberIdstringrequiredmin length 1
idempotencyKeystringrequiredmin length 1
complianceApprovedbooleanrequireddisclosureApprovedbooleanrequiredrecordingPolicyApprovedbooleanrequiredemergencyAddressBoundbooleanOptional 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 explicitfalseis refused like a missing binding.callControlobject | objectrequiredCustomer-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
marketingcall or text (or a text from a template whose category ismarketing) 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): 422quiet_hours, orrecipient_time_zone_unknownwhen the number cannot be placed.
Responses
- 200Success
Response fields
okbooleanrequiredcallobjectrequiredSaved call session. Admission/recovery receipts return this session without the separate carrier outcome fields in calls.list.
call.idstringrequiredcall.scopeobjectrequiredcall.scope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
call.scope.organizationIdstringrequiredmin length 1
call.scope.workspaceIdstringmin length 1
call.scope.projectIdstringmin length 1
call.scope.environmentIdstringmin length 1
call.direction"inbound" | "outbound" | "on_net"requiredcall.status"created" | "compliance_checked" | "queued" | "dialing" | "ringing" | "answered" | "bridged" | "held" | "completed" | "failed" | "blocked"requiredCall lifecycle only. A queued lifecycle can coexist with uncertain or recovery_required dispatchState; it is not proof that another worker should execute it.
call.phoneNumberIdstringrequiredcall.remoteE164stringrequiredcall.callControlobject | objectCustomer-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.
auditIdstringrequireddispatchJobIdstringrequiredusageEventIdstringrequirednextstringrequiredidempotentReplaybooleanrequired
- 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"
}
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_createOutboundCall', {
body: {
scope: {
organizationId: 'string',
},
actorId: 'string',
toE164: 'string',
fromNumberId: 'string',
idempotencyKey: 'string',
complianceApproved: true,
disclosureApproved: true,
recordingPolicyApproved: true,
callControl: {
type: 'speak',
text: 'string',
},
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_createOutboundCall",
"arguments": {
"body": {
"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
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
scopeobjectrequiredscope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
scope.organizationIdstringrequiredmin length 1
scope.workspaceIdstringmin length 1
scope.projectIdstringmin length 1
scope.environmentIdstringmin length 1
actorIdstringrequiredmin length 1
toE164stringrequiredmin length 1
fromNumberIdstringrequiredmin length 1
idempotencyKeystringrequiredmin length 1
complianceApprovedbooleanrequireddisclosureApprovedbooleanrequiredrecordingPolicyApprovedbooleanrequiredemergencyAddressBoundbooleanOptional 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 explicitfalseis refused like a missing binding.callControlobject | objectrequiredCustomer-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
marketingcall or text (or a text from a template whose category ismarketing) 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): 422quiet_hours, orrecipient_time_zone_unknownwhen the number cannot be placed.
Responses
- 200Existing saved admission receipt; idempotentReplay:true only. Carrier acceptance/current state is not established.
Response fields
okbooleanrequiredcallobjectrequiredSaved call session. Admission/recovery receipts return this session without the separate carrier outcome fields in calls.list.
call.idstringrequiredcall.scopeobjectrequiredcall.scope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
call.scope.organizationIdstringrequiredmin length 1
call.scope.workspaceIdstringmin length 1
call.scope.projectIdstringmin length 1
call.scope.environmentIdstringmin length 1
call.direction"inbound" | "outbound" | "on_net"requiredcall.status"created" | "compliance_checked" | "queued" | "dialing" | "ringing" | "answered" | "bridged" | "held" | "completed" | "failed" | "blocked"requiredCall lifecycle only. A queued lifecycle can coexist with uncertain or recovery_required dispatchState; it is not proof that another worker should execute it.
call.phoneNumberIdstringrequiredcall.remoteE164stringrequiredcall.callControlobject | objectCustomer-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.
auditIdstringrequireddispatchJobIdstringrequiredusageEventIdstringrequirednextstringrequiredidempotentReplaytruerequired
- 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"
}
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_recoverOutboundCall', {
body: {
scope: {
organizationId: 'string',
},
actorId: 'string',
toE164: 'string',
fromNumberId: 'string',
idempotencyKey: 'string',
complianceApproved: true,
disclosureApproved: true,
recordingPolicyApproved: true,
callControl: {
type: 'speak',
text: 'string',
},
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_recoverOutboundCall",
"arguments": {
"body": {
"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
Request body application/json
scopeobjectrequiredscope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
scope.organizationIdstringrequiredmin length 1
scope.workspaceIdstringmin length 1
scope.projectIdstringmin length 1
scope.environmentIdstringmin length 1
actorIdstringrequiredmin length 1
toE164stringrequiredmin length 1
fromNumberIdstringrequiredmin length 1
idempotencyKeystringrequiredmin length 1
complianceApprovedbooleanrequireddisclosureApprovedbooleanrequiredrecordingPolicyApprovedbooleanrequiredemergencyAddressBoundbooleanOptional 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 explicitfalseis refused like a missing binding.callControlobject | objectrequiredCustomer-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
marketingcall or text (or a text from a template whose category ismarketing) 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): 422quiet_hours, orrecipient_time_zone_unknownwhen 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"
}
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_validateOutboundCall', {
body: {
scope: {
organizationId: 'string',
},
actorId: 'string',
toE164: 'string',
fromNumberId: 'string',
idempotencyKey: 'string',
complianceApproved: true,
disclosureApproved: true,
recordingPolicyApproved: true,
callControl: {
type: 'speak',
text: 'string',
},
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_validateOutboundCall",
"arguments": {
"body": {
"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
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 · stringrequiredThe agent call id from create.
Idempotency-Keyheader · stringSame as the body's idempotency_key; when both are sent they must match.
Request body application/json
reasonstringdefault
"hung_up"· pattern^[a-z0-9_]{1,48}$idempotency_keystringmin length 1 · max length 128 · pattern
^[A-Za-z0-9_.:-]+$
Responses
- 200The ended call.
Response fields
call_idstringrequiredpattern
^acall_[0-9a-f]{32}$state"queued" | "ringing" | "connected" | "ended" | "failed" | "missed"requiredtostringrequiredclientstring | nullring_planobjectrequiredring_plan.dial_tone_msintegerrequiredmin 0
ring_plan.ringsintegerrequiredRings before the earliest pickup (random per call). min 1 · max 3
ring_plan.ring_msintegerrequiredmin 1
ring_plan.max_rings3requiredqueueobject | nullqueue.positionintegermin 1
created_atstring | null (date-time)requiredadmitted_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)requiredEnd of ring 3: not connected by then is missed.
ended_atstring | null (date-time)ended_by"person" | "agent" | "system" | nullperson: the creator hung up; agent: One hung up (Dials service credential); system: a miss, failure, lease lapse or the cap.
end_reasonstring | nullno_capacity, warmup_not_ready, warmup_failed:<code>, lease_expired (billed to the last heartbeat), max_duration, or the caller's code.
call_secondsinteger | nullmin 0
lease_untilstring | null (date-time)heartbeat_every_msinteger | nullpoll_after_msinteger | nullserver_timestring | null (date-time)requiredidempotent_replaybooleanalready_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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('dials_endAgentCall', {
call_id: '<call_id>',
body: {},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_endAgentCall",
"arguments": {
"call_id": "<call_id>",
"body": {},
"idempotency_key": "<a stable key per change>"
}
}
}Heartbeat
Keep a connected call's slot
POST/v1/dials/calls/{call_id}/heartbeat
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 · stringrequiredThe agent call id from create.
Responses
- 200The call.
Response fields
call_idstringrequiredpattern
^acall_[0-9a-f]{32}$state"queued" | "ringing" | "connected" | "ended" | "failed" | "missed"requiredtostringrequiredclientstring | nullring_planobjectrequiredring_plan.dial_tone_msintegerrequiredmin 0
ring_plan.ringsintegerrequiredRings before the earliest pickup (random per call). min 1 · max 3
ring_plan.ring_msintegerrequiredmin 1
ring_plan.max_rings3requiredqueueobject | nullqueue.positionintegermin 1
created_atstring | null (date-time)requiredadmitted_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)requiredEnd of ring 3: not connected by then is missed.
ended_atstring | null (date-time)ended_by"person" | "agent" | "system" | nullperson: the creator hung up; agent: One hung up (Dials service credential); system: a miss, failure, lease lapse or the cap.
end_reasonstring | nullno_capacity, warmup_not_ready, warmup_failed:<code>, lease_expired (billed to the last heartbeat), max_duration, or the caller's code.
call_secondsinteger | nullmin 0
lease_untilstring | null (date-time)heartbeat_every_msinteger | nullpoll_after_msinteger | nullserver_timestring | null (date-time)requiredidempotent_replaybooleanalready_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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_heartbeatAgentCall', {
call_id: '<call_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "dials_heartbeatAgentCall",
"arguments": {
"call_id": "<call_id>"
}
}
}
}Console
Read the scoped Dials operating surface
GET/v1/dials/console/operating-surface
Parameters
organizationIdquery · stringrequiredMust match the authenticated organization.
workspaceIdquery · stringOptional 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 · stringOptional 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 · stringOptional 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
okbooleanrequiredscopeobjectrequiredscope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
scope.organizationIdstringrequiredmin length 1
scope.workspaceIdstringmin length 1
scope.projectIdstringmin length 1
scope.environmentIdstringmin length 1
summaryobjectrequiredsummary.okbooleanrequiredsummary.scopeobjectrequiredsummary.scope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
summary.scope.organizationIdstringrequiredmin length 1
summary.scope.workspaceIdstringmin length 1
summary.scope.projectIdstringmin length 1
summary.scope.environmentIdstringmin length 1
summary.callsobjectrequiredsummary.calls.totalintegerrequiredmin 0
summary.calls.queuedintegerrequiredmin 0
summary.calls.activeintegerrequiredmin 0
summary.calls.completedintegerrequiredmin 0
summary.calls.failedintegerrequiredmin 0
summary.dispatchobjectrequiredsummary.dispatch.totalintegerrequiredmin 0
summary.dispatch.pendingintegerrequiredmin 0
summary.dispatch.claimedintegerrequiredmin 0
summary.dispatch.dispatchedintegerrequiredmin 0
summary.dispatch.failedintegerrequiredmin 0
summary.peopleobjectrequiredsummary.people.deployedintegerrequiredmin 0
summary.agentsobjectrequiredsummary.agents.deployedintegerrequiredmin 0
summary.routesobjectrequiredsummary.routes.deployedintegerrequiredmin 0
summary.numbersobjectrequiredsummary.numbers.deployedintegerrequiredmin 0
summary.voiceobjectrequiredsummary.voice.deployedintegerrequiredmin 0
summary.messagesobjectrequiredsummary.messages.totalintegerrequiredmin 0
summary.messages.queuedintegerrequiredmin 0
summary.messages.deliveredintegerrequiredmin 0
summary.messages.failedintegerrequiredmin 0
summary.usageobjectrequiredsummary.usage.totalintegerrequiredmin 0
summary.usage.quantitynumberrequiredsummary.usage.lastMetricstring | nullrequiredsummary.usage.lastResourceIdstring | nullrequiredsurfacesobject[]requiredsurfaces[].[].keystringrequiredsurfaces[].[].titlestringrequiredsurfaces[].[].audiencestringrequiredsurfaces[].[].statusstringrequiredsurfaces[].[].hrefstringrequiredsurfaces[].[].descriptionstringrequiredsurfaces[].[].primaryActionstringrequiredsurfaces[].[].backendResourcestringrequiredsurfaces[].[].countintegerrequiredmin 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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_getOperatingSurface', {
organizationId: '<organizationId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_getOperatingSurface",
"arguments": {
"organizationId": "<organizationId>"
}
}
}Read authoritative scoped Dials resource counts
GET/v1/dials/console/summary
Parameters
organizationIdquery · stringrequiredMust match the authenticated organization.
workspaceIdquery · stringOptional 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 · stringOptional 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 · stringOptional 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
okbooleanrequiredscopeobjectrequiredscope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
scope.organizationIdstringrequiredmin length 1
scope.workspaceIdstringmin length 1
scope.projectIdstringmin length 1
scope.environmentIdstringmin length 1
callsobjectrequiredcalls.totalintegerrequiredmin 0
calls.queuedintegerrequiredmin 0
calls.activeintegerrequiredmin 0
calls.completedintegerrequiredmin 0
calls.failedintegerrequiredmin 0
dispatchobjectrequireddispatch.totalintegerrequiredmin 0
dispatch.pendingintegerrequiredmin 0
dispatch.claimedintegerrequiredmin 0
dispatch.dispatchedintegerrequiredmin 0
dispatch.failedintegerrequiredmin 0
peopleobjectrequiredpeople.deployedintegerrequiredmin 0
agentsobjectrequiredagents.deployedintegerrequiredmin 0
routesobjectrequiredroutes.deployedintegerrequiredmin 0
numbersobjectrequirednumbers.deployedintegerrequiredmin 0
voiceobjectrequiredvoice.deployedintegerrequiredmin 0
messagesobjectrequiredmessages.totalintegerrequiredmin 0
messages.queuedintegerrequiredmin 0
messages.deliveredintegerrequiredmin 0
messages.failedintegerrequiredmin 0
usageobjectrequiredusage.totalintegerrequiredmin 0
usage.quantitynumberrequiredusage.lastMetricstring | nullrequiredusage.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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_getConsoleSummary', {
organizationId: '<organizationId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_getConsoleSummary",
"arguments": {
"organizationId": "<organizationId>"
}
}
}Human profiles
List saved humans in the selected scope
GET/v1/dials/human-profiles
Parameters
organizationIdquery · stringrequiredMust match the authenticated organization.
workspaceIdquery · stringOptional 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 · stringOptional 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 · stringOptional 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
okbooleanrequiredhumansobject[]requiredhumans[].[].idstringrequiredhumans[].[].scopeobjectrequiredhumans[].[].scope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
humans[].[].scope.organizationIdstringrequiredmin length 1
humans[].[].scope.workspaceIdstringmin length 1
humans[].[].scope.projectIdstringmin length 1
humans[].[].scope.environmentIdstringmin length 1
humans[].[].displayNamestringrequiredhumans[].[].rolestringrequiredDescriptive phone role, not a One account authorization grant.
humans[].[].emailstring | nullrequiredhumans[].[].extensionstring | nullrequiredhumans[].[].phoneNumberIdstring | nullrequiredhumans[].[].contactE164string | nullrequiredhumans[].[].presence"available" | "focus" | "after_hours" | "offline"requiredhumans[].[].escalationPriorityintegerrequiredmin 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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_listHumanProfiles', {
organizationId: '<organizationId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_listHumanProfiles",
"arguments": {
"organizationId": "<organizationId>"
}
}
}Save an unassigned HumanProfile by scoped normalized name
POST/v1/dials/human-profiles
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
scopeobjectrequiredscope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
scope.organizationIdstringrequiredmin length 1
scope.workspaceIdstringmin length 1
scope.projectIdstringmin length 1
scope.environmentIdstringmin length 1
actorIdstringrequiredmin length 1
displayNamestringrequiredmin length 1
rolestringrequiredmin length 1
emailstring | nullmax length 320
extensionstring | nullpattern
^[0-9]{0,8}$contactE164string | nullActual destination handset; backend accepts international E164 or normalizes US10/11 digits.
presence"available" | "focus" | "after_hours" | "offline" | nullescalationPriorityinteger | nullmin 0 · max 1000
Responses
- 200Success
Response fields
okbooleanrequiredhumanobjectrequiredhuman.idstringrequiredhuman.scopeobjectrequiredhuman.scope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
human.scope.organizationIdstringrequiredmin length 1
human.scope.workspaceIdstringmin length 1
human.scope.projectIdstringmin length 1
human.scope.environmentIdstringmin length 1
human.displayNamestringrequiredhuman.rolestringrequiredDescriptive phone role, not a One account authorization grant.
human.emailstring | nullrequiredhuman.extensionstring | nullrequiredhuman.phoneNumberIdstring | nullrequiredhuman.contactE164string | nullrequiredhuman.presence"available" | "focus" | "after_hours" | "offline"requiredhuman.escalationPriorityintegerrequiredmin 0 · max 1000
human.statusstringrequiredauditIdstringrequiredusageEventIdstringrequirednextstringrequired
- 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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_createHumanProfile', {
body: {
scope: {
organizationId: 'string',
},
actorId: 'string',
displayName: 'string',
role: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_createHumanProfile",
"arguments": {
"body": {
"scope": {
"organizationId": "string"
},
"actorId": "string",
"displayName": "string",
"role": "string"
}
}
}
}Delete (archive) a saved human profile
DELETE/v1/dials/human-profiles/{human_id}
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 · stringrequiredorganizationIdquery · stringrequiredMust match the authenticated organization.
workspaceIdquery · stringOptional 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 · stringOptional 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 · stringOptional 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
idstringrequireddeletedtruerequiredarchivedtruerequired
- 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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_deleteHumanProfile', {
human_id: '<human_id>',
organizationId: '<organizationId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_deleteHumanProfile",
"arguments": {
"human_id": "<human_id>",
"organizationId": "<organizationId>"
}
}
}Lines
List lines: each number with its seat, route, E911 binding and what it may do now
GET/v1/dials/lines
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 · stringrequiredMust match the authenticated organization.
workspaceIdquery · stringOptional 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 · stringOptional 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 · stringOptional 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
okbooleanrequiredlinesobject[]requiredlines[].[].numberIdstringrequiredlines[].[].e164stringrequiredlines[].[].providerstringrequiredlines[].[].statusstringrequiredlines[].[].seatobject | nullrequiredlines[].[].seat.kindstringlines[].[].seat.idstringlines[].[].callerNamestring | nulllines[].[].cnamStatusstringrequiredlines[].[].e911Statusstringrequiredlines[].[].dialobjectrequiredlines[].[].dial.allowedbooleanrequiredlines[].[].dial.refusalsstring[]requiredlines[].[].ringobjectrequiredlines[].[].ring.allowedbooleanrequiredlines[].[].ring.routestringrequiredrouting_rule,routing_rule_conditional,assigned_<kind>ornone.lines[].[].ring.ruleIdstringlines[].[].ring.refusalsstring[]requiredlines[].[].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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_listLines', {
organizationId: '<organizationId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_listLines",
"arguments": {
"organizationId": "<organizationId>"
}
}
}Message templates
List scoped saved message templates
GET/v1/dials/message-templates
Parameters
organizationIdquery · stringrequiredMust match the authenticated organization.
workspaceIdquery · stringOptional 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 · stringOptional 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 · stringOptional 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 · stringSelected 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
okbooleanrequiredtemplatesobject[]requiredtemplates[].[].idstringrequiredtemplates[].[].scopeobjectrequiredtemplates[].[].scope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
templates[].[].scope.organizationIdstringrequiredmin length 1
templates[].[].scope.workspaceIdstringmin length 1
templates[].[].scope.projectIdstringmin length 1
templates[].[].scope.environmentIdstringmin length 1
templates[].[].namestringrequiredtemplates[].[].channelstringrequiredtemplates[].[].categorystringrequiredtemplates[].[].bodystringrequiredtemplates[].[].statusstringrequiredapproved 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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_listMessageTemplates', {
organizationId: '<organizationId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_listMessageTemplates",
"arguments": {
"organizationId": "<organizationId>"
}
}
}Save a scoped message template by normalized name
POST/v1/dials/message-templates
Request body application/json
scopeobjectrequiredscope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
scope.organizationIdstringrequiredmin length 1
scope.workspaceIdstringmin length 1
scope.projectIdstringmin length 1
scope.environmentIdstringmin length 1
actorIdstringrequiredmin length 1
namestringrequiredmin length 1
channel"sms" | "mms"requiredBackend trims and lowercases sms/mms. This request has no media attachment field; mms does not imply attachment support.
categorystringrequiredmin length 1
bodystringrequiredNonblank 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
okbooleanrequiredtemplateobjectrequiredtemplate.idstringrequiredtemplate.scopeobjectrequiredtemplate.scope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
template.scope.organizationIdstringrequiredmin length 1
template.scope.workspaceIdstringmin length 1
template.scope.projectIdstringmin length 1
template.scope.environmentIdstringmin length 1
template.namestringrequiredtemplate.channelstringrequiredtemplate.categorystringrequiredtemplate.bodystringrequiredtemplate.statusstringrequiredapproved is locally saved template state, not carrier/compliance approval.
auditIdstringrequiredusageEventIdstringrequirednextstringrequired
- 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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_createMessageTemplate', {
body: {
scope: {
organizationId: 'string',
},
actorId: 'string',
name: 'string',
channel: 'sms',
category: 'string',
body: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_createMessageTemplate",
"arguments": {
"body": {
"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
Parameters
organizationIdquery · stringrequiredMust match the authenticated organization.
workspaceIdquery · stringOptional 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 · stringOptional 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 · stringOptional 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 · stringSelected 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
okbooleanrequiredmessagesobject[]requiredmessages[].[].idstringrequiredmessages[].[].scopeobjectrequiredmessages[].[].scope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
messages[].[].scope.organizationIdstringrequiredmin length 1
messages[].[].scope.workspaceIdstringmin length 1
messages[].[].scope.projectIdstringmin length 1
messages[].[].scope.environmentIdstringmin length 1
messages[].[].direction"inbound" | "outbound"requiredmessages[].[].channelstringrequiredmessages[].[].status"queued" | "sending" | "sent" | "delivered" | "undelivered" | "failed" | "received"requiredqueued is durable admission, sending is adapter claim, sent is carrier acceptance, delivered is reported delivery; these are distinct. Never infer receipt from queueing.
messages[].[].fromNumberIdstringrequiredThe Dials-owned number in either direction; for inbound, this is the receiving number.
messages[].[].toE164stringrequiredLiteral destination; for inbound this can be the owned number.
messages[].[].remoteE164stringrequiredCounterparty for inbound and outbound.
messages[].[].bodystringrequiredmessages[].[].templateIdstring | nullrequiredmessages[].[].providerstringrequiredmessages[].[].providerMessageIdstring | nullrequiredmessages[].[].providerStatusstring | nullrequiredmessages[].[].segmentsinteger | null (int32)requiredCan be a local estimate at queue time, replaced by a carrier-reported count. It is not a price or proof of billing.
messages[].[].errorstring | nullrequiredmessages[].[].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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_listMessages', {
organizationId: '<organizationId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_listMessages",
"arguments": {
"organizationId": "<organizationId>"
}
}
}Queue an explicitly approved outbound message
POST/v1/dials/messages/outbound
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
scopeobjectrequiredscope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
scope.organizationIdstringrequiredmin length 1
scope.workspaceIdstringmin length 1
scope.projectIdstringmin length 1
scope.environmentIdstringmin length 1
actorIdstringrequiredmin length 1
fromNumberIdstringrequiredmin length 1
toE164stringrequiredpattern
^\+[0-9]{8,15}$channel"sms" | "mms"requiredBackend trims and lowercases sms/mms. This request has no media attachment field; mms does not imply attachment support.
bodystringrequiredNonblank body; the backend limits trimmed UTF-8 bytes to 5000, not only Unicode characters. min length 1 · max length 5000
templateIdstring | nullidempotencyKeystringrequiredmin length 1
registrationApprovedbooleanrequiredconsentApprovedbooleanrequiredoptOutPolicyApprovedbooleanrequiredpurpose"marketing" | "transactional" | "informational" | "support" | "customer_care"What the contact is for. A
marketingcall or text (or a text from a template whose category ismarketing) 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): 422quiet_hours, orrecipient_time_zone_unknownwhen the number cannot be placed.
Responses
- 200Actual durable operation result; no carrier delivery or graph execution is inferred.
Response fields
okbooleanrequiredmessageobjectrequiredmessage.idstringrequiredmessage.scopeobjectrequiredmessage.scope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
message.scope.organizationIdstringrequiredmin length 1
message.scope.workspaceIdstringmin length 1
message.scope.projectIdstringmin length 1
message.scope.environmentIdstringmin length 1
message.direction"inbound" | "outbound"requiredmessage.channelstringrequiredmessage.status"queued" | "sending" | "sent" | "delivered" | "undelivered" | "failed" | "received"requiredqueued is durable admission, sending is adapter claim, sent is carrier acceptance, delivered is reported delivery; these are distinct. Never infer receipt from queueing.
message.fromNumberIdstringrequiredThe Dials-owned number in either direction; for inbound, this is the receiving number.
message.toE164stringrequiredLiteral destination; for inbound this can be the owned number.
message.remoteE164stringrequiredCounterparty for inbound and outbound.
message.bodystringrequiredmessage.templateIdstring | nullrequiredmessage.providerstringrequiredmessage.providerMessageIdstring | nullrequiredmessage.providerStatusstring | nullrequiredmessage.segmentsinteger | null (int32)requiredCan be a local estimate at queue time, replaced by a carrier-reported count. It is not a price or proof of billing.
message.errorstring | nullrequiredmessage.errorCodestring | nullrequiredauditIdstringrequiredusageEventIdstringrequirednextstringrequiredidempotentReplaybooleanrequired
- 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
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_createOutboundMessage', {
body: {
scope: {
organizationId: 'string',
},
actorId: 'string',
fromNumberId: 'string',
toE164: 'string',
channel: 'sms',
body: 'string',
idempotencyKey: 'string',
registrationApproved: true,
consentApproved: true,
optOutPolicyApproved: true,
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_createOutboundMessage",
"arguments": {
"body": {
"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
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
scopeobjectrequiredscope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
scope.organizationIdstringrequiredmin length 1
scope.workspaceIdstringmin length 1
scope.projectIdstringmin length 1
scope.environmentIdstringmin length 1
channel"sms" | "mms" | "rcs" | "apple"requiredBackend trims and lowercases.
fromNumberIdstringThe scope's own sending number (sms, mms, rcs).
toE164stringStrict E.164 destination (sms, mms, rcs). Never echoed; logged only as a hash.
senderIdstring | nullThe scope's own rich sender (rcs, apple).
toAppleIdstring | nullThe 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
oktruerequireddecision"send" | "approve_first" | "refused"requiredcodestringrequiredClosed 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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_checkOutboundMessage', {
body: {
scope: {
organizationId: 'string',
},
channel: 'sms',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_checkOutboundMessage",
"arguments": {
"body": {
"scope": {
"organizationId": "string"
},
"channel": "sms"
}
}
}
}Show or clear a typing indicator in an open Apple Messages conversation
POST/v1/dials/messages/typing
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
scopeobjectrequiredscope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
scope.organizationIdstringrequiredmin length 1
scope.workspaceIdstringmin length 1
scope.projectIdstringmin length 1
scope.environmentIdstringmin length 1
channel"apple"requiredApple Messages for Business only.
toAppleIdstringrequiredThe 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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_sendTyping', {
body: {
scope: {
organizationId: 'string',
},
channel: 'apple',
toAppleId: 'string',
state: 'start',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_sendTyping",
"arguments": {
"body": {
"scope": {
"organizationId": "string"
},
"channel": "apple",
"toAppleId": "string",
"state": "start"
}
}
}
}Messaging
List scoped messaging brand configuration
GET/v1/dials/messaging/brands
Parameters
organizationIdquery · stringrequiredMust match the authenticated organization.
workspaceIdquery · stringOptional 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 · stringOptional 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 · stringOptional 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 · stringSelected 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
okbooleanrequiredbrandsobject[]requiredbrands[].[].idstringrequiredbrands[].[].scopeobjectrequiredbrands[].[].scope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
brands[].[].scope.organizationIdstringrequiredmin length 1
brands[].[].scope.workspaceIdstringmin length 1
brands[].[].scope.projectIdstringmin length 1
brands[].[].scope.environmentIdstringmin length 1
brands[].[].legalNamestringrequiredbrands[].[].displayNamestringrequiredbrands[].[].entityType"private_profit" | "public_profit" | "non_profit" | "government" | "sole_proprietor"requiredbrands[].[].taxIdstring | nullrequiredRequired by backend for all entity types except sole_proprietor.
brands[].[].taxIdCountrystringrequiredbrands[].[].verticalstringrequiredbrands[].[].emailstringrequiredBackend requires an @ character; no email delivery occurs.
brands[].[].contactPhoneE164stringrequiredActual contact number; backend normalizes dialable input.
brands[].[].postalAddressstringrequiredbrands[].[].websitestringrequiredbrands[].[].statusstringrequiredbrands[].[].providerstringrequiredbrands[].[].providerBrandIdstring | nullrequiredbrands[].[].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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_listMessagingBrands', {
organizationId: '<organizationId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_listMessagingBrands",
"arguments": {
"organizationId": "<organizationId>"
}
}
}Save pending messaging brand configuration
POST/v1/dials/messaging/brands
Local pending record only. No provider submission or verified registration is performed by this route.
Request body application/json
scopeobjectrequiredscope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
scope.organizationIdstringrequiredmin length 1
scope.workspaceIdstringmin length 1
scope.projectIdstringmin length 1
scope.environmentIdstringmin length 1
actorIdstringrequiredmin length 1
legalNamestringrequiredmin length 1
displayNamestringrequiredmin length 1
entityType"private_profit" | "public_profit" | "non_profit" | "government" | "sole_proprietor"requiredtaxIdstring | nullRequired by backend for all entity types except sole_proprietor.
taxIdCountrystringrequiredmin length 2 · max length 2
verticalstringrequiredmin length 1
emailstringrequiredBackend requires an @ character; no email delivery occurs. min length 1
contactPhoneE164stringrequiredActual contact number; backend normalizes dialable input. min length 1
postalAddressstringrequiredmin length 1
websitestringrequiredmin length 1 · pattern
^https?://
Responses
- 200Actual durable operation result; no carrier delivery or graph execution is inferred.
Response fields
okbooleanrequiredbrandobjectrequiredbrand.idstringrequiredbrand.scopeobjectrequiredbrand.scope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
brand.scope.organizationIdstringrequiredmin length 1
brand.scope.workspaceIdstringmin length 1
brand.scope.projectIdstringmin length 1
brand.scope.environmentIdstringmin length 1
brand.legalNamestringrequiredbrand.displayNamestringrequiredbrand.entityType"private_profit" | "public_profit" | "non_profit" | "government" | "sole_proprietor"requiredbrand.taxIdstring | nullrequiredRequired by backend for all entity types except sole_proprietor.
brand.taxIdCountrystringrequiredbrand.verticalstringrequiredbrand.emailstringrequiredBackend requires an @ character; no email delivery occurs.
brand.contactPhoneE164stringrequiredActual contact number; backend normalizes dialable input.
brand.postalAddressstringrequiredbrand.websitestringrequiredbrand.statusstringrequiredbrand.providerstringrequiredbrand.providerBrandIdstring | nullrequiredbrand.errorstring | nullrequiredauditIdstringrequirednextstringrequired
- 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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_createMessagingBrand', {
body: {
scope: {
organizationId: 'string',
},
actorId: 'string',
legalName: 'string',
displayName: 'string',
entityType: 'private_profit',
taxIdCountry: 'string',
vertical: 'string',
email: 'string',
contactPhoneE164: 'string',
postalAddress: 'string',
website: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_createMessagingBrand",
"arguments": {
"body": {
"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
Parameters
organizationIdquery · stringrequiredMust match the authenticated organization.
workspaceIdquery · stringOptional 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 · stringOptional 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 · stringOptional 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 · stringSelected 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
okbooleanrequiredcampaignsobject[]requiredcampaigns[].[].idstringrequiredcampaigns[].[].scopeobjectrequiredcampaigns[].[].scope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
campaigns[].[].scope.organizationIdstringrequiredmin length 1
campaigns[].[].scope.workspaceIdstringmin length 1
campaigns[].[].scope.projectIdstringmin length 1
campaigns[].[].scope.environmentIdstringmin length 1
campaigns[].[].brandIdstringrequiredcampaigns[].[].namestringrequiredcampaigns[].[].useCase"2fa" | "account_notification" | "customer_care" | "delivery_notification" | "fraud_alert" | "higher_education" | "marketing" | "polling_voting" | "public_service_announcement" | "security_alert" | "mixed"requiredcampaigns[].[].descriptionstringrequiredcampaigns[].[].sampleMessagesstring[]requiredcampaigns[].[].optInProcessstringrequiredcampaigns[].[].helpMessagestringrequiredcampaigns[].[].optOutMessagestringrequiredcampaigns[].[].directLendingbooleanrequiredcampaigns[].[].embeddedLinkbooleanrequiredcampaigns[].[].embeddedPhonebooleanrequiredcampaigns[].[].ageGatedContentbooleanrequiredcampaigns[].[].leadGenerationbooleanrequiredcampaigns[].[].numberPoolingRequiredbooleanrequiredcampaigns[].[].termsAcceptedbooleanrequiredExplicit true required; no default acceptance.
campaigns[].[].statusstringrequiredcampaigns[].[].providerstringrequiredcampaigns[].[].providerCampaignIdstring | nullrequiredcampaigns[].[].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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_listMessagingCampaigns', {
organizationId: '<organizationId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_listMessagingCampaigns",
"arguments": {
"organizationId": "<organizationId>"
}
}
}Save a pending campaign for a verified owned brand
POST/v1/dials/messaging/campaigns
Request body application/json
scopeobjectrequiredscope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
scope.organizationIdstringrequiredmin length 1
scope.workspaceIdstringmin length 1
scope.projectIdstringmin length 1
scope.environmentIdstringmin length 1
actorIdstringrequiredmin length 1
brandIdstringrequiredmin length 1
namestringrequiredmin length 1
useCase"2fa" | "account_notification" | "customer_care" | "delivery_notification" | "fraud_alert" | "higher_education" | "marketing" | "polling_voting" | "public_service_announcement" | "security_alert" | "mixed"requireddescriptionstringrequiredBackend requires at least 40 trimmed UTF-8 bytes. min length 1
sampleMessagesstring[]requiredBackend trims and drops blank samples, then requires 2–5.
optInProcessstringrequiredBackend requires at least 40 trimmed UTF-8 bytes. min length 1
helpMessagestringrequiredMust contain HELP or INFO, case-insensitive. min length 1
optOutMessagestringrequiredMust contain STOP, case-insensitive. min length 1
directLendingbooleandefault
falseembeddedLinkbooleandefault
falseembeddedPhonebooleandefault
falseageGatedContentbooleandefault
falseleadGenerationbooleandefault
falsenumberPoolingRequiredbooleandefault
falsetermsAcceptedbooleanrequiredExplicit true required; no default acceptance.
Responses
- 200Actual durable operation result; no carrier delivery or graph execution is inferred.
Response fields
okbooleanrequiredcampaignobjectrequiredcampaign.idstringrequiredcampaign.scopeobjectrequiredcampaign.scope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
campaign.scope.organizationIdstringrequiredmin length 1
campaign.scope.workspaceIdstringmin length 1
campaign.scope.projectIdstringmin length 1
campaign.scope.environmentIdstringmin length 1
campaign.brandIdstringrequiredcampaign.namestringrequiredcampaign.useCase"2fa" | "account_notification" | "customer_care" | "delivery_notification" | "fraud_alert" | "higher_education" | "marketing" | "polling_voting" | "public_service_announcement" | "security_alert" | "mixed"requiredcampaign.descriptionstringrequiredcampaign.sampleMessagesstring[]requiredcampaign.optInProcessstringrequiredcampaign.helpMessagestringrequiredcampaign.optOutMessagestringrequiredcampaign.directLendingbooleanrequiredcampaign.embeddedLinkbooleanrequiredcampaign.embeddedPhonebooleanrequiredcampaign.ageGatedContentbooleanrequiredcampaign.leadGenerationbooleanrequiredcampaign.numberPoolingRequiredbooleanrequiredcampaign.termsAcceptedbooleanrequiredExplicit true required; no default acceptance.
campaign.statusstringrequiredcampaign.providerstringrequiredcampaign.providerCampaignIdstring | nullrequiredcampaign.errorstring | nullrequiredauditIdstringrequirednextstringrequired
- 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
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_createMessagingCampaign', {
body: {
scope: {
organizationId: 'string',
},
actorId: 'string',
brandId: 'string',
name: 'string',
useCase: '2fa',
description: 'string',
sampleMessages: [
'string',
],
optInProcess: 'string',
helpMessage: 'string',
optOutMessage: 'string',
termsAccepted: true,
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_createMessagingCampaign",
"arguments": {
"body": {
"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
Parameters
campaign_idpath · stringrequired
Request body application/json
scopeobjectrequiredscope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
scope.organizationIdstringrequiredmin length 1
scope.workspaceIdstringmin length 1
scope.projectIdstringmin length 1
scope.environmentIdstringmin length 1
actorIdstringrequiredmin length 1
phoneNumberIdstringrequiredmin length 1
Responses
- 200Actual durable operation result; no carrier delivery or graph execution is inferred.
Response fields
okbooleanrequiredcampaignIdstringrequiredphoneNumberIdstringrequiredauditIdstringrequirednextstringrequired
- 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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_assignCampaignNumber', {
campaign_id: '<campaign_id>',
body: {
scope: {
organizationId: 'string',
},
actorId: 'string',
phoneNumberId: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_assignCampaignNumber",
"arguments": {
"campaign_id": "<campaign_id>",
"body": {
"scope": {
"organizationId": "string"
},
"actorId": "string",
"phoneNumberId": "string"
}
}
}
}Read the message-event endpoint at a scope level
GET/v1/dials/messaging/endpoint
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 · stringrequiredMust match the authenticated organization.
workspaceIdquery · stringOptional 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 · stringOptional 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 · stringOptional 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 · stringSelected 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
oktruerequiredendpointobjectrequiredA tenant's message-event delivery endpoint. No signing secret exists per endpoint: deliveries are signed with the platform keys from getMessageEventKeys.
endpoint.idstringrequiredendpoint.scopeobjectrequiredThe 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"requiredendpoint.scope.platformIdstringrequiredendpoint.scope.organizationIdstringrequiredendpoint.scope.workspaceIdstring | nullendpoint.scope.projectIdstring | nullendpoint.scope.environmentIdstring | nullendpoint.level"organization" | "workspace" | "project" | "environment"requiredendpoint.hoststringrequiredThe URL's host only; the path, query and any token in it are never returned.
endpoint.events"message.received" | "message.status" | "consent.changed"[]requiredendpoint.state"active" | "paused"requiredpaused after every delivery failed for 24 hours.
endpoint.lastErrorCodestring | nullendpoint.failingSincestring | null (date-time)endpoint.pausedAtstring | null (date-time)endpoint.lastSuccessAtstring | null (date-time)endpoint.createdAtstring (date-time)endpoint.updatedAtstring (date-time)changesobject[]requiredThe last 20 audited changes, newest first.
changes[].[].actionstringrequiredput or delete.
changes[].[].oldHoststring | nullchanges[].[].newHoststring | nullchanges[].[].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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_getMessagingEndpoint', {
organizationId: '<organizationId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_getMessagingEndpoint",
"arguments": {
"organizationId": "<organizationId>"
}
}
}Set the message-event delivery endpoint for a scope level
PUT/v1/dials/messaging/endpoint
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
scopeobjectrequiredscope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
scope.organizationIdstringrequiredmin length 1
scope.workspaceIdstringmin length 1
scope.projectIdstringmin length 1
scope.environmentIdstringmin 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.
urlstringrequiredhttps, 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
oktruerequiredendpointobjectrequiredA tenant's message-event delivery endpoint. No signing secret exists per endpoint: deliveries are signed with the platform keys from getMessageEventKeys.
endpoint.idstringrequiredendpoint.scopeobjectrequiredThe 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"requiredendpoint.scope.platformIdstringrequiredendpoint.scope.organizationIdstringrequiredendpoint.scope.workspaceIdstring | nullendpoint.scope.projectIdstring | nullendpoint.scope.environmentIdstring | nullendpoint.level"organization" | "workspace" | "project" | "environment"requiredendpoint.hoststringrequiredThe URL's host only; the path, query and any token in it are never returned.
endpoint.events"message.received" | "message.status" | "consent.changed"[]requiredendpoint.state"active" | "paused"requiredpaused after every delivery failed for 24 hours.
endpoint.lastErrorCodestring | nullendpoint.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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_putMessagingEndpoint', {
body: {
scope: {
organizationId: 'string',
},
url: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_putMessagingEndpoint",
"arguments": {
"body": {
"scope": {
"organizationId": "string"
},
"url": "string"
}
}
}
}Remove the message-event endpoint at a scope level
DELETE/v1/dials/messaging/endpoint
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
scopeobjectrequiredscope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
scope.organizationIdstringrequiredmin length 1
scope.workspaceIdstringmin length 1
scope.projectIdstringmin length 1
scope.environmentIdstringmin 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
oktruerequireddeletedstringrequiredThe 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"
}
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_deleteMessagingEndpoint', {
body: {
scope: {
organizationId: 'string',
},
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_deleteMessagingEndpoint",
"arguments": {
"body": {
"scope": {
"organizationId": "string"
}
}
}
}
}List the public keys message events are signed with
GET/v1/dials/messaging/event-keys
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
oktruerequiredalgorithm"Ed25519"requiredsignedContentstringrequiredsignatureHeaderstringrequiredmaxSkewSecondsintegerrequiredkeysobject[]requiredEmpty when message events are not configured.
keys[].[].keyIdstringrequiredMatches the dials-key-id header.
keys[].[].algorithm"Ed25519"requiredkeys[].[].publicKeystringrequiredThe 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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_getMessageEventKeys'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_getMessageEventKeys",
"arguments": {}
}
}Numbers
List numbers in the authorized scope
GET/v1/dials/numbers
Parameters
organizationIdquery · stringrequiredMust match the authenticated organization.
workspaceIdquery · stringOptional 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 · stringOptional 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 · stringOptional 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
okbooleanrequirednumbersobject[]requirednumbers[].[].idstringrequirednumbers[].[].e164stringrequirednumbers[].[].statusstringrequirednumbers[].[].providerstringrequirednumbers[].[].cnamStatusstringnumbers[].[].e911Statusstringnumbers[].[].releaseStatestringnumbers[].[].scopeobjectnumbers[].[].scope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
numbers[].[].scope.organizationIdstringrequiredmin length 1
numbers[].[].scope.workspaceIdstringmin length 1
numbers[].[].scope.projectIdstringmin length 1
numbers[].[].scope.environmentIdstringmin length 1
numbers[].[].assignedResourceIdstring | nullnumbers[].[].assignedResourceKindstring | nullnumbers[].[].providerNumberIdstring | nullnumbers[].[].callerIdNamestring | nullnumbers[].[].messagingobjectWhether 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 inreasonCode. A number on no campaign isnot_registeredonly when it is a US local (10DLC) number; a toll-free or non-US number readspendingbecause Dials does not track that registration yet.numbers[].[].messaging.state"ready" | "pending" | "not_registered" | "voice_only" | "blocked"requirednumbers[].[].messaging.reasonCodestringrequiredA 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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_listNumbers', {
organizationId: '<organizationId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_listNumbers",
"arguments": {
"organizationId": "<organizationId>"
}
}
}Release an owned number at its carrier through DELETE
DELETE/v1/dials/numbers/{number_id}
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 · stringrequiredorganizationIdquery · stringrequiredMust match the authenticated organization.
workspaceIdquery · stringOptional 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 · stringOptional 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 · stringOptional 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 · stringrequiredreasonquery · stringplatformIdquery · stringSelected 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
okbooleanrequirednumberobjectrequirednumber.idstringrequirednumber.e164stringrequirednumber.statusstringrequirednumber.providerstringrequirednumber.cnamStatusstringnumber.e911Statusstringnumber.releaseStatestringnumber.scopeobjectnumber.scope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
number.scope.organizationIdstringrequiredmin length 1
number.scope.workspaceIdstringmin length 1
number.scope.projectIdstringmin length 1
number.scope.environmentIdstringmin length 1
number.assignedResourceIdstring | nullnumber.assignedResourceKindstring | nullnumber.providerNumberIdstring | nullnumber.callerIdNamestring | nullnumber.messagingobjectWhether 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 inreasonCode. A number on no campaign isnot_registeredonly when it is a US local (10DLC) number; a toll-free or non-US number readspendingbecause Dials does not track that registration yet.number.messaging.state"ready" | "pending" | "not_registered" | "voice_only" | "blocked"requirednumber.messaging.reasonCodestringrequiredA 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.
auditIdstringrequiredusageEventIdstringrequirednextstringrequired
- 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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_deleteNumber', {
number_id: '<number_id>',
organizationId: '<organizationId>',
actorId: '<actorId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_deleteNumber",
"arguments": {
"number_id": "<number_id>",
"organizationId": "<organizationId>",
"actorId": "<actorId>"
}
}
}Assign an owned number
POST/v1/dials/numbers/assign
Request body application/json
scopeobjectrequiredscope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
scope.organizationIdstringrequiredmin length 1
scope.workspaceIdstringmin length 1
scope.projectIdstringmin length 1
scope.environmentIdstringmin length 1
actorIdstringrequiredmin length 1
numberIdstringrequiredmin length 1
resourceKind"agent_profile" | "human_profile" | nullOnly 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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_assignNumber', {
body: {
scope: {
organizationId: 'string',
},
actorId: 'string',
numberId: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_assignNumber",
"arguments": {
"body": {
"scope": {
"organizationId": "string"
},
"actorId": "string",
"numberId": "string"
}
}
}
}Update the caller name of an owned number
PUT/v1/dials/numbers/cnam
Request body application/json
scopeobjectrequiredscope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
scope.organizationIdstringrequiredmin length 1
scope.workspaceIdstringmin length 1
scope.projectIdstringmin length 1
scope.environmentIdstringmin length 1
actorIdstringrequirednumberIdstringrequiredcallerIdNamestringrequiredmin length 1 · max length 15 · pattern
^[A-Za-z0-9 \-&.]+$
Responses
- 200Success
Response fields
okbooleanrequirednumberobjectrequirednumber.idstringrequirednumber.e164stringrequirednumber.statusstringrequirednumber.providerstringrequirednumber.cnamStatusstringnumber.e911Statusstringnumber.releaseStatestringnumber.scopeobjectnumber.scope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
number.scope.organizationIdstringrequiredmin length 1
number.scope.workspaceIdstringmin length 1
number.scope.projectIdstringmin length 1
number.scope.environmentIdstringmin length 1
number.assignedResourceIdstring | nullnumber.assignedResourceKindstring | nullnumber.providerNumberIdstring | nullnumber.callerIdNamestring | nullnumber.messagingobjectWhether 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 inreasonCode. A number on no campaign isnot_registeredonly when it is a US local (10DLC) number; a toll-free or non-US number readspendingbecause Dials does not track that registration yet.number.messaging.state"ready" | "pending" | "not_registered" | "voice_only" | "blocked"requirednumber.messaging.reasonCodestringrequiredA 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.
auditIdstringrequirednextstringrequired
- 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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_updateNumberCallerName', {
body: {
scope: {
organizationId: 'string',
},
actorId: 'string',
numberId: 'string',
callerIdName: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_updateNumberCallerName",
"arguments": {
"body": {
"scope": {
"organizationId": "string"
},
"actorId": "string",
"numberId": "string",
"callerIdName": "string"
}
}
}
}List scoped inventory drift
GET/v1/dials/numbers/drift
Parameters
organizationIdquery · stringrequiredMust match the authenticated organization.
workspaceIdquery · stringOptional 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 · stringOptional 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 · stringOptional 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
okbooleanrequireddriftobject[]requireddrift[].[].idstringrequireddrift[].[].scopeobjectrequireddrift[].[].scope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
drift[].[].scope.organizationIdstringrequiredmin length 1
drift[].[].scope.workspaceIdstringmin length 1
drift[].[].scope.projectIdstringmin length 1
drift[].[].scope.environmentIdstringmin length 1
drift[].[].reconciliationIdstringrequireddrift[].[].kindstringrequireddrift[].[].phoneNumberIdstring | nullrequireddrift[].[].e164Numberstringrequireddrift[].[].providerstringrequireddrift[].[].expectedstring | nullrequireddrift[].[].observedstring | nullrequireddrift[].[].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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_listNumberDrift', {
organizationId: '<organizationId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_listNumberDrift",
"arguments": {
"organizationId": "<organizationId>"
}
}
}Register and bind the dispatchable emergency address for an owned number
POST/v1/dials/numbers/e911
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
scopeobjectrequiredscope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
scope.organizationIdstringrequiredmin length 1
scope.workspaceIdstringmin length 1
scope.projectIdstringmin length 1
scope.environmentIdstringmin length 1
actorIdstringrequiredmin length 1
numberIdstringrequiredmin length 1
callerNamestringrequiredmin length 1
streetNumberstringrequiredmin length 1
streetNamestringrequiredmin length 1
citystringrequiredmin length 1
regionstringrequiredmin length 1
postalCodestringrequiredmin length 1
addressLine2string | nullcountrystring | nullTwo-letter country code; omitted or null defaults to US. min length 2 · max length 2 · pattern
^[A-Za-z]{2}$statusOnlybooleanRefresh 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
okbooleanrequirednumberobjectrequirednumber.idstringrequirednumber.e164stringrequirednumber.statusstringrequirednumber.providerstringrequirednumber.cnamStatusstringnumber.e911Statusstringnumber.releaseStatestringnumber.scopeobjectnumber.scope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
number.scope.organizationIdstringrequiredmin length 1
number.scope.workspaceIdstringmin length 1
number.scope.projectIdstringmin length 1
number.scope.environmentIdstringmin length 1
number.assignedResourceIdstring | nullnumber.assignedResourceKindstring | nullnumber.providerNumberIdstring | nullnumber.callerIdNamestring | nullnumber.messagingobjectWhether 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 inreasonCode. A number on no campaign isnot_registeredonly when it is a US local (10DLC) number; a toll-free or non-US number readspendingbecause Dials does not track that registration yet.number.messaging.state"ready" | "pending" | "not_registered" | "voice_only" | "blocked"requirednumber.messaging.reasonCodestringrequiredA 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.
addressobjectrequiredaddress.scopeobjectrequiredaddress.scope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
address.scope.organizationIdstringrequiredmin length 1
address.scope.workspaceIdstringmin length 1
address.scope.projectIdstringmin length 1
address.scope.environmentIdstringmin length 1
address.idstringrequiredaddress.phoneNumberIdstringrequiredaddress.callerNamestringrequiredaddress.streetNumberstringrequiredaddress.streetNamestringrequiredaddress.citystringrequiredaddress.regionstringrequiredaddress.postalCodestringrequiredaddress.countrystringrequiredaddress.providerstringrequiredaddress.statusstringrequiredaddress.addressLine2string | nulladdress.providerAddressIdstring | nulladdress.validationStatusstring | nulladdress.errorstring | nullauditIdstringrequirednextstringrequired
- 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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_registerEmergencyAddress', {
body: {
scope: {
organizationId: 'string',
},
actorId: 'string',
numberId: 'string',
callerName: 'string',
streetNumber: 'string',
streetName: 'string',
city: 'string',
region: 'string',
postalCode: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_registerEmergencyAddress",
"arguments": {
"body": {
"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
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
scopeobjectrequiredstreetNumberstringrequiredstreetNamestringrequiredaddressLine2stringcitystringrequiredregionstringrequiredpostalCodestringrequiredcountry"US" | "CA"
Responses
- 200The carrier's verdict
Response fields
okbooleanrequiredproviderstringrequiredvalidbooleanrequiredreasonstringcarrierCodesstring[]suggestedobjectnextstringrequired
- 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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_validateEmergencyAddress', {
body: {
scope: {},
streetNumber: 'string',
streetName: 'string',
city: 'string',
region: 'string',
postalCode: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_validateEmergencyAddress",
"arguments": {
"body": {
"scope": {},
"streetNumber": "string",
"streetName": "string",
"city": "string",
"region": "string",
"postalCode": "string"
}
}
}
}Provision a carrier number with an idempotency key
POST/v1/dials/numbers/provision
Request body application/json
scopeobjectrequiredscope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
scope.organizationIdstringrequiredmin length 1
scope.workspaceIdstringmin length 1
scope.projectIdstringmin length 1
scope.environmentIdstringmin length 1
actorIdstringrequiredmin length 1
e164stringrequiredmin length 1
idempotencyKeystringrequiredmin 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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_provisionNumber', {
body: {
scope: {
organizationId: 'string',
},
actorId: 'string',
e164: 'string',
idempotencyKey: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_provisionNumber",
"arguments": {
"body": {
"scope": {
"organizationId": "string"
},
"actorId": "string",
"e164": "string",
"idempotencyKey": "string"
}
}
}
}Reconcile owned inventory against configured carriers
POST/v1/dials/numbers/reconcile
Request body application/json
scopeobjectrequiredscope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
scope.organizationIdstringrequiredmin length 1
scope.workspaceIdstringmin length 1
scope.projectIdstringmin length 1
scope.environmentIdstringmin length 1
actorIdstringrequired
Responses
- 200Success
Response fields
okbooleanrequiredreconciliationsobject[]requiredreconciliations[].[].idstringrequiredreconciliations[].[].scopeobjectrequiredreconciliations[].[].scope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
reconciliations[].[].scope.organizationIdstringrequiredmin length 1
reconciliations[].[].scope.workspaceIdstringmin length 1
reconciliations[].[].scope.projectIdstringmin length 1
reconciliations[].[].scope.environmentIdstringmin length 1
reconciliations[].[].providerstringrequiredreconciliations[].[].statusstringrequiredreconciliations[].[].carrierNumberCountintegerrequiredmin 0
reconciliations[].[].localNumberCountintegerrequiredmin 0
reconciliations[].[].driftCountintegerrequiredmin 0
reconciliations[].[].errorstring | nullrequireddriftobject[]requireddrift[].[].idstringrequireddrift[].[].scopeobjectrequireddrift[].[].scope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
drift[].[].scope.organizationIdstringrequiredmin length 1
drift[].[].scope.workspaceIdstringmin length 1
drift[].[].scope.projectIdstringmin length 1
drift[].[].scope.environmentIdstringmin length 1
drift[].[].reconciliationIdstringrequireddrift[].[].kindstringrequireddrift[].[].phoneNumberIdstring | nullrequireddrift[].[].e164Numberstringrequireddrift[].[].providerstringrequireddrift[].[].expectedstring | nullrequireddrift[].[].observedstring | nullrequireddrift[].[].resolvedbooleanrequiredorphanCountintegerrequiredmin 0
auditIdstringrequirednextstringrequired
- 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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_reconcileNumberInventory', {
body: {
scope: {
organizationId: 'string',
},
actorId: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_reconcileNumberInventory",
"arguments": {
"body": {
"scope": {
"organizationId": "string"
},
"actorId": "string"
}
}
}
}List scoped carrier reconciliation receipts
GET/v1/dials/numbers/reconciliations
Parameters
organizationIdquery · stringrequiredMust match the authenticated organization.
workspaceIdquery · stringOptional 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 · stringOptional 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 · stringOptional 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
okbooleanrequiredreconciliationsobject[]requiredreconciliations[].[].idstringrequiredreconciliations[].[].scopeobjectrequiredreconciliations[].[].scope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
reconciliations[].[].scope.organizationIdstringrequiredmin length 1
reconciliations[].[].scope.workspaceIdstringmin length 1
reconciliations[].[].scope.projectIdstringmin length 1
reconciliations[].[].scope.environmentIdstringmin length 1
reconciliations[].[].providerstringrequiredreconciliations[].[].statusstringrequiredreconciliations[].[].carrierNumberCountintegerrequiredmin 0
reconciliations[].[].localNumberCountintegerrequiredmin 0
reconciliations[].[].driftCountintegerrequiredmin 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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_listNumberReconciliations', {
organizationId: '<organizationId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_listNumberReconciliations",
"arguments": {
"organizationId": "<organizationId>"
}
}
}Release an owned number
POST/v1/dials/numbers/release
Request body application/json
scopeobjectrequiredscope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
scope.organizationIdstringrequiredmin length 1
scope.workspaceIdstringmin length 1
scope.projectIdstringmin length 1
scope.environmentIdstringmin length 1
actorIdstringrequiredmin length 1
numberIdstringrequiredmin 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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_releaseNumber', {
body: {
scope: {
organizationId: 'string',
},
actorId: 'string',
numberId: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_releaseNumber",
"arguments": {
"body": {
"scope": {
"organizationId": "string"
},
"actorId": "string",
"numberId": "string"
}
}
}
}Search carrier number inventory (US and Canada, local and toll-free)
GET/v1/dials/numbers/search
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 · stringrequiredMust match the authenticated organization.
workspaceIdquery · stringOptional 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 · stringOptional 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 · stringOptional 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 · stringexchangeCodequery · stringstartsWithquery · stringAt least three national digits; SignalWire receives at most seven and the full requested prefix is checked locally.
endsWithquery · stringcontainsquery · stringrepeatingDigitquery · stringrepeatingDigitCountquery · integernumberTypequery · "local" | "toll-free" | "toll_free" | "tollfree"distancequery · integerlimitquery · integerlocalCallingAreaquery · booleanexcludeAddressRequiredquery · booleanexcludeLocalAddressRequiredquery · booleanexcludeForeignAddressRequiredquery · booleanbetaquery · booleanvoicequery · booleansmsquery · booleanmmsquery · booleanfaxquery · booleanregionquery · stringlocalityquery · stringpostalCodequery · stringrateCenterquery · stringlataquery · stringnearNumberquery · stringnearLatLongquery · string
Responses
- 200Success
Response fields
okbooleanrequirednumbersobject[]requirednumbers[].[].regionstring | nullrequirednumbers[].[].rateCenterstring | nullrequirednumbers[].[].localitystring | nullrequirednumbers[].[].postalCodestring | nullrequirednumbers[].[].latastring | nullrequirednumbers[].[].numberTypestring | nullrequirednumbers[].[].addressRequirementsstring | nullrequirednumbers[].[].providerReferencestring | nullrequirednumbers[].[].latitudenumber | nullrequirednumbers[].[].longitudenumber | nullrequirednumbers[].[].betaboolean | nullrequirednumbers[].[].monthlyCostCentsintegerrequiredmin 0
numbers[].[].inboundPerMinuteMicrosintegerrequiredmin 0
numbers[].[].outboundPerMinuteMicrosintegerrequiredmin 0
numbers[].[].e911MonthlyCostCentsinteger | nullrequiredmin 0
numbers[].[].e164stringrequirednumbers[].[].countryCodestringrequirednumbers[].[].providerstringrequiredsignalwire(provisionable),telnyx(read-only inventory,orderable: false) orsandbox(the Sandbox carrier's fictional numbers).numbers[].[].capabilitiesobjectrequirednumbers[].[].capabilities.voicebooleanrequirednumbers[].[].capabilities.smsbooleanrequirednumbers[].[].capabilities.mmsbooleanrequirednumbers[].[].capabilities.faxbooleanrequirednumbers[].[].orderablebooleanPresent 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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_searchNumbers', {
organizationId: '<organizationId>',
areaCode: '415',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_searchNumbers",
"arguments": {
"organizationId": "<organizationId>",
"areaCode": "415"
}
}
}Set which voice handler answers an owned number
PUT/v1/dials/numbers/voice-handler
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
scopeobjectrequiredscope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
scope.organizationIdstringrequiredmin length 1
scope.workspaceIdstringmin length 1
scope.projectIdstringmin length 1
scope.environmentIdstringmin length 1
phoneNumberIdstringrequiredmin length 1 · max length 256
handler"one_phone" | "default"required
Responses
- 200The number's voice handler as Dials set it at SignalWire.
Response fields
oktruerequiredphoneNumberIdstringrequiredhandler"one_phone" | "default"requiredauditIdstringnextstring
- 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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_setNumberVoiceHandler', {
body: {
scope: {
organizationId: 'string',
},
phoneNumberId: 'string',
handler: 'one_phone',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_setNumberVoiceHandler",
"arguments": {
"body": {
"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
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
areaCodestringThe NPA of the mobile the person verified (never the number). pattern
^[2-9][0-9]{2}$regionstringThe state or province to search (InRegion) when the area code has nothing. pattern
^[A-Z]{2}$country"US" | "CA"idempotencyKeystringrequiredmin length 8 · max length 128 · pattern
^[A-Za-z0-9_:.-]+$purpose"line"fallback"none" | "region"none: the area code only (needsareaCode; nothing found is 404none_available, nothing bought).region(default): the area code, thenInRegion=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"requirednumberobjectnumber.e164stringrequiredE.164 North American number. pattern
^\+1[2-9][0-9]{2}[2-9][0-9]{6}$number.displaystringnumber.localitystringnumber.regionstringnumber.state"reserved_intent" | "active" | "releasing" | "released"requirednumber.chosenAtstring | null (date-time)campaign"pending" | "complete" | "manual" | "stuck" | null10DLC 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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_activateOneNumber', {
body: {
idempotencyKey: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "dials_activateOneNumber",
"arguments": {
"body": {
"idempotencyKey": "string"
}
}
}
}
}Choose the phone number for your One
POST/v1/dials/one-numbers/choose
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
e164stringrequiredE.164 North American number. pattern
^\+1[2-9][0-9]{2}[2-9][0-9]{6}$idempotencyKeystringrequiredmin 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 403line_onlywhileDIALS_ONE_NUMBERS_LINE_ONLY=1.
Responses
- 200Chosen and active.
Response fields
state"chosen" | "reserved_intent" | "active" | "pending_campaign" | "campaign_stuck" | "retiring" | "cooldown" | "releasing" | "released"requirednumberobjectnumber.e164stringrequiredE.164 North American number. pattern
^\+1[2-9][0-9]{2}[2-9][0-9]{6}$number.displaystringnumber.localitystringnumber.regionstringnumber.state"reserved_intent" | "active" | "releasing" | "released"requirednumber.chosenAtstring | null (date-time)campaign"pending" | "complete" | "manual" | "stuck" | null10DLC 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"requirednumberobjectnumber.e164stringrequiredE.164 North American number. pattern
^\+1[2-9][0-9]{2}[2-9][0-9]{6}$number.displaystringnumber.localitystringnumber.regionstringnumber.state"reserved_intent" | "active" | "releasing" | "released"requirednumber.chosenAtstring | null (date-time)campaign"pending" | "complete" | "manual" | "stuck" | null10DLC 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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_chooseOneNumber', {
body: {
e164: 'string',
idempotencyKey: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "dials_chooseOneNumber",
"arguments": {
"body": {
"e164": "string",
"idempotencyKey": "string"
}
}
}
}
}Get the phone number of your One
GET/v1/dials/one-numbers/mine
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 | nullrequiredplanstringidleDaysinteger | nullmin 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" | null10DLC 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[].[].numberobjectrequiredretiring[].[].number.e164stringrequiredE.164 North American number. pattern
^\+1[2-9][0-9]{2}[2-9][0-9]{6}$retiring[].[].number.displaystringretiring[].[].number.localitystringretiring[].[].number.regionstringretiring[].[].number.state"reserved_intent" | "active" | "releasing" | "released"requiredretiring[].[].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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_getMyOneNumber'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_getMyOneNumber",
"arguments": {}
}
}Release the phone number of your One
DELETE/v1/dials/one-numbers/mine
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"requirednumberobject | 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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_releaseMyOneNumber'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "dials_releaseMyOneNumber",
"arguments": {}
}
}
}Suggest phone numbers for your One
POST/v1/dials/one-numbers/suggestions
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
areaCodestringpattern
^[2-9][0-9]{2}$textstringmin length 1 · max length 32
latnumbermin -90 · max 90
lngnumbermin -180 · max 180
containsstringDigits 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"requiredsource"verified_phone" | "ip_city" | "device" | "search"requiredareaCodestring | nullcitystring | nullnumbersobject[]requirednumbers[].[].e164stringrequiredE.164 North American number. pattern
^\+1[2-9][0-9]{2}[2-9][0-9]{6}$numbers[].[].displaystringrequirednumbers[].[].localitystringnumbers[].[].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 '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_listOneNumberSuggestions', {
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_listOneNumberSuggestions",
"arguments": {
"body": {}
}
}
}List the texts sent from your own text line, and which job sent each
GET/v1/dials/one-numbers/text/messages
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 · stringThe
nextBeforeof the previous page: the sends older than its last one.jobIdquery · stringOnly this job's sends (
job_+ 26 of a-z2-7).
Responses
- 200Your own sends.
Response fields
oktruerequiredsendsobject[]requiredsends[].[].atstring (date-time)requiredsends[].[].via"person" | "job_standing"requiredsends[].[].jobIdstring | nullrequiredThe One job that sent it (
via: job_standing); null for your own send.sends[].[].messageIdstringrequiredsends[].[].statestring | nullrequiredThe message's status (queued, sent, delivered, failed, ...).
nextBeforestring | nullSet whenever this page holds 200: the
beforefor 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
beforeand onejobId, or a malformed one) or STANDING_NEEDS_JOB_CREDENTIAL (anx-one-standingheader 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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_listOwnTextLineSends'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "dials_listOwnTextLineSends",
"arguments": {}
}
}
}Text your own phone from your own text line, on your approval
POST/v1/dials/one-numbers/text/messages
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
toE164stringrequiredYour own verified phone,
+1and ten digits. Any other recipient is refused.bodystringrequiredThe text (at most 1600 bytes). min length 1 · max length 1600
idempotencyKeystringrequiredOne 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}$periodSintegerA 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
okbooleanrequiredmessageobjectrequiredmessage.idstringrequiredmessage.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
approvableandreasons) 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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_sendOwnTextLineMessage', {
body: {
toE164: 'string',
body: 'string',
idempotencyKey: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "dials_sendOwnTextLineMessage",
"arguments": {
"body": {
"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
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
toE164stringrequiredYour own verified phone,
+1and ten digits. Any other recipient is refused.bodystringrequiredThe text (at most 1600 bytes). min length 1 · max length 1600
Responses
- 200The decision. Nothing sent, nothing consumed.
Response fields
okbooleanrequireddecision"approve_first" | "refused"requiredcodestringrequired
- 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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_checkOwnTextLineMessage', {
body: {
toE164: 'string',
body: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "dials_checkOwnTextLineMessage",
"arguments": {
"body": {
"toE164": "string",
"body": "string"
}
}
}
}
}Own calls
Ring your own phone with a voice agent of your organization
POST/v1/dials/own-calls
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 · stringrequired8-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_idstringrequiredA registered voice agent's id. pattern
^va_[0-9a-f]{32}$to_phone_idstringFrom listOwnPhones. Optional only when the caller has exactly one verified phone (otherwise 409 CHOOSE_PHONE). pattern
^ph_[A-Za-z0-9_-]{1,64}$max_secondsintegerCall-length ceiling in seconds. min 30 · max 840
dry_runbooleanRun 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
oktruerequireddry_runtruerequired
- 201Placed: the grant is made, the token minted and the carrier dialled.
Response fields
oktruerequiredcall_idstringrequiredDials' call id (the start-of-call token's
sub). The call's organization is the agent's.provider_call_idstringrequiredThe 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
limitandresets_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_idandoutcome: 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 withoutcome: 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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('dials_placeOwnCall', {
body: {
voice_agent_id: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "dials_placeOwnCall",
"arguments": {
"body": {
"voice_agent_id": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}
}Export your own call records and approvals
GET/v1/dials/own-calls/records
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
oktruerequiredrecordsobject[]requiredrecords[].[].actionstringrequiredrecords[].[].codestringrequiredrecords[].[].orgstringrecords[].[].voice_agent_idstring | nullrecords[].[].atstring (date-time)requiredapprovalsobject[]requiredapprovals[].[].idstringrequiredapprovals[].[].voice_agent_idstringrequiredA registered voice agent's id. pattern
^va_[0-9a-f]{32}$approvals[].[].agent_namestringrequiredapprovals[].[].orgstringrequiredThe agent's organization id.
approvals[].[].sourcestringrequiredapprovals[].[].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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_listOwnCallRecords'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "dials_listOwnCallRecords",
"arguments": {}
}
}
}Own phones
List your own verified phones (id and last four digits)
GET/v1/dials/own-phones
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
oktruerequiredphonesobject[]requiredphones[].[].idstringrequiredStable per person and number (keyed hash); pass it as
to_phone_id. pattern^ph_[A-Za-z0-9_-]{1,64}$phones[].[].last4stringrequiredpattern
^[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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_listOwnPhones'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "dials_listOwnPhones",
"arguments": {}
}
}
}Routing
List managed inbound policies in the verified scope
GET/v1/dials/routing/rules
Includes enabled and disabled managed policies; workflow descriptors are separate. Reads do not reconcile an unconfirmed original creation request.
Parameters
organizationIdquery · stringrequiredMust match the authenticated organization.
workspaceIdquery · stringOptional 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 · stringOptional 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 · stringOptional 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 · stringSelected 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
oktruerequiredscopeobjectrequiredscope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
scope.organizationIdstringrequiredmin length 1
scope.workspaceIdstringmin length 1
scope.projectIdstringmin length 1
scope.environmentIdstringmin length 1
rulesobject[]requiredrules[].[].idstringrequiredmin length 1 · max length 128
rules[].[].scopeobjectrequiredrules[].[].scope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
rules[].[].scope.organizationIdstringrequiredmin length 1
rules[].[].scope.workspaceIdstringmin length 1
rules[].[].scope.projectIdstringmin length 1
rules[].[].scope.environmentIdstringmin length 1
rules[].[].namestringrequiredmin length 1 · max length 128
rules[].[].phoneNumberIdstringrequiredmin length 1 · max length 128
rules[].[].didstringrequiredpattern
^\+[1-9]\d{7,14}$rules[].[].priorityintegerrequiredmin 0 · max 10000
rules[].[].enabledbooleanrequiredrules[].[].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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_listRoutingRules', {
organizationId: '<organizationId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_listRoutingRules",
"arguments": {
"organizationId": "<organizationId>"
}
}
}Create an enabled owned-number inbound policy with durable UUID idempotency
POST/v1/dials/routing/rules
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
scopeobjectrequiredscope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
scope.organizationIdstringrequiredmin length 1
scope.workspaceIdstringmin length 1
scope.projectIdstringmin length 1
scope.environmentIdstringmin length 1
actorIdstringOptional compatibility field; the backend derives the actual actor from the verified method-bound gateway identity and never trusts this value.
namestringrequiredmin length 1 · max length 128
phoneNumberIdstringrequiredmin length 1 · max length 128
priorityintegerrequiredmin 0 · max 10000
idempotencyKeystring (uuid)requiredCanonical 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
oktruerequiredruleobjectrequiredrule.idstringrequiredmin length 1 · max length 128
rule.scopeobjectrequiredrule.scope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
rule.scope.organizationIdstringrequiredmin length 1
rule.scope.workspaceIdstringmin length 1
rule.scope.projectIdstringmin length 1
rule.scope.environmentIdstringmin length 1
rule.namestringrequiredmin length 1 · max length 128
rule.phoneNumberIdstringrequiredmin length 1 · max length 128
rule.didstringrequiredpattern
^\+[1-9]\d{7,14}$rule.priorityintegerrequiredmin 0 · max 10000
rule.enabledbooleanrequiredrule.actionobject | object | object | objectrequiredauditIdstringrequiredmin 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"
}
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_createRoutingRule', {
body: {
scope: {
organizationId: 'string',
},
name: 'string',
phoneNumberId: 'string',
priority: 0,
idempotencyKey: '00000000-0000-4000-8000-000000000000',
action: {
type: 'bridge',
targetE164: 'string',
},
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_createRoutingRule",
"arguments": {
"body": {
"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}
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
scopeobjectrequiredscope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
scope.organizationIdstringrequiredmin length 1
scope.workspaceIdstringmin length 1
scope.projectIdstringmin length 1
scope.environmentIdstringmin length 1
actorIdstring | nullOptional compatibility field; actual actor comes from the verified gateway identity.
Responses
- 200Authenticated scoped result; not proof of an inbound call
Response fields
oktruerequiredruleobjectrequiredrule.idstringrequiredmin length 1 · max length 128
rule.scopeobjectrequiredrule.scope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
rule.scope.organizationIdstringrequiredmin length 1
rule.scope.workspaceIdstringmin length 1
rule.scope.projectIdstringmin length 1
rule.scope.environmentIdstringmin length 1
rule.namestringrequiredmin length 1 · max length 128
rule.phoneNumberIdstringrequiredmin length 1 · max length 128
rule.didstringrequiredpattern
^\+[1-9]\d{7,14}$rule.priorityintegerrequiredmin 0 · max 10000
rule.enabledbooleanrequiredrule.actionobject | object | object | objectrequiredauditIdstring | nullrequiredRecorded 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"
}
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_disableRoutingRule', {
rule_id: '<rule_id>',
body: {
scope: {
organizationId: 'string',
},
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_disableRoutingRule",
"arguments": {
"rule_id": "<rule_id>",
"body": {
"scope": {
"organizationId": "string"
}
}
}
}
}Voice agent approvals
List the voice agents you approved to ring you
GET/v1/dials/voice-agent-approvals
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
oktruerequiredapprovalsobject[]requiredapprovals[].[].idstringrequiredapprovals[].[].voice_agent_idstringrequiredA registered voice agent's id. pattern
^va_[0-9a-f]{32}$approvals[].[].agent_namestringrequiredapprovals[].[].orgstringrequiredThe agent's organization id.
approvals[].[].sourcestringrequiredapprovals[].[].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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_listVoiceAgentApprovals'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "dials_listVoiceAgentApprovals",
"arguments": {}
}
}
}Approve
Approve a voice agent to ring you (your passkey)
POST/v1/dials/voice-agents/{voice_agent_id}/approve
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)requiredThe person's own approved Taps passkey item for this agent.
Responses
- 200Already approved.
Response fields
oktruerequiredapprovalobjectrequiredapproval.idstringrequiredapproval.voice_agent_idstringrequiredA registered voice agent's id. pattern
^va_[0-9a-f]{32}$approval.agent_namestringrequiredapproval.orgstringrequiredThe agent's organization id.
approval.sourcestringrequiredapproval.created_atstring (date-time)required
- 201Approved.
Response fields
oktruerequiredapprovalobjectrequiredapproval.idstringrequiredapproval.voice_agent_idstringrequiredA registered voice agent's id. pattern
^va_[0-9a-f]{32}$approval.agent_namestringrequiredapproval.orgstringrequiredThe agent's organization id.
approval.sourcestringrequiredapproval.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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_approveVoiceAgent', {
voice_agent_id: '<voice_agent_id>',
body: {
taps_item_id: '00000000-0000-4000-8000-000000000000',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "dials_approveVoiceAgent",
"arguments": {
"voice_agent_id": "<voice_agent_id>",
"body": {
"taps_item_id": "00000000-0000-4000-8000-000000000000"
}
}
}
}
}Revoke your approval of a voice agent
DELETE/v1/dials/voice-agents/{voice_agent_id}/approve
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
oktruerequiredvoice_agent_idstringrequiredA 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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_revokeVoiceAgent', {
voice_agent_id: '<voice_agent_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "dials_revokeVoiceAgent",
"arguments": {
"voice_agent_id": "<voice_agent_id>"
}
}
}
}Voice profiles
List saved voiceProfiles in the selected scope
GET/v1/dials/voice-profiles
Parameters
organizationIdquery · stringrequiredMust match the authenticated organization.
workspaceIdquery · stringOptional 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 · stringOptional 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 · stringOptional 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
okbooleanrequiredvoiceProfilesobject[]requiredvoiceProfiles[].[].idstringrequiredvoiceProfiles[].[].scopeobjectrequiredvoiceProfiles[].[].scope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
voiceProfiles[].[].scope.organizationIdstringrequiredmin length 1
voiceProfiles[].[].scope.workspaceIdstringmin length 1
voiceProfiles[].[].scope.projectIdstringmin length 1
voiceProfiles[].[].scope.environmentIdstringmin length 1
voiceProfiles[].[].namestringrequiredvoiceProfiles[].[].modelIdstringrequiredvoiceProfiles[].[].profileKind"synthetic" | "cloned" | "bring_your_own"requiredvoiceProfiles[].[].languagestringrequiredvoiceProfiles[].[].latencyBudgetMsintegerrequiredvoiceProfiles[].[].consentRecordIdstring | nullrequiredvoiceProfiles[].[].watermarkRequiredbooleanrequiredvoiceProfiles[].[].commercialLicenseAttestedbooleanrequiredvoiceProfiles[].[].deploymentTier"production" | "benchmark" | "edge"requiredvoiceProfiles[].[].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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_listVoiceProfiles', {
organizationId: '<organizationId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_listVoiceProfiles",
"arguments": {
"organizationId": "<organizationId>"
}
}
}Save an unassigned VoiceProfile by scoped normalized name
POST/v1/dials/voice-profiles
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
scopeobjectrequiredscope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
scope.organizationIdstringrequiredmin length 1
scope.workspaceIdstringmin length 1
scope.projectIdstringmin length 1
scope.environmentIdstringmin length 1
actorIdstringrequiredmin length 1
namestringrequiredmin length 1
modelId"chatterbox-turbo" | "cosyvoice-2-05b" | "fish-audio-s2" | "kokoro-82m" | "dials-blockwise-mimi"requiredprofileKind"synthetic" | "cloned" | "bring_your_own" | nulllanguagestring | nullmin length 2 · max length 16 · pattern
^(?=.*[A-Za-z])[A-Za-z0-9-]+$latencyBudgetMsinteger | nullmin 50 · max 1000
consentRecordIdstring | nullReal reference required for cloned/BYO. Backend validates presence, not registry ownership.
watermarkRequiredboolean | nullDefaults true and must be true for cloned/BYO.
commercialLicenseAttestedboolean | nullDefaults false. Explicit attestation required for production Fish Audio.
deploymentTier"production" | "benchmark" | "edge" | null
Responses
- 200Success
Response fields
okbooleanrequiredvoiceProfileobjectrequiredvoiceProfile.idstringrequiredvoiceProfile.scopeobjectrequiredvoiceProfile.scope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
voiceProfile.scope.organizationIdstringrequiredmin length 1
voiceProfile.scope.workspaceIdstringmin length 1
voiceProfile.scope.projectIdstringmin length 1
voiceProfile.scope.environmentIdstringmin length 1
voiceProfile.namestringrequiredvoiceProfile.modelIdstringrequiredvoiceProfile.profileKind"synthetic" | "cloned" | "bring_your_own"requiredvoiceProfile.languagestringrequiredvoiceProfile.latencyBudgetMsintegerrequiredvoiceProfile.consentRecordIdstring | nullrequiredvoiceProfile.watermarkRequiredbooleanrequiredvoiceProfile.commercialLicenseAttestedbooleanrequiredvoiceProfile.deploymentTier"production" | "benchmark" | "edge"requiredvoiceProfile.statusstringrequiredauditIdstringrequiredusageEventIdstringrequirednextstringrequired
- 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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_createVoiceProfile', {
body: {
scope: {
organizationId: 'string',
},
actorId: 'string',
name: 'string',
modelId: 'chatterbox-turbo',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_createVoiceProfile",
"arguments": {
"body": {
"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
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
tokenstringrequiredThe 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
oktruerequiredcall_idstringrequiredownerstringrequiredThe person (
h_…) who placed the call.sid_hashstringrequiredHMAC-SHA256 under the organization's sid key (domain
dials.voice.sid.v1) of the caller's Auth session id; never the raw id.sid_kvintegerrequiredWhich 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"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_consumeVoiceToken', {
body: {
token: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "dials_consumeVoiceToken",
"arguments": {
"body": {
"token": "string"
}
}
}
}
}Workflows
List scoped saved workflow routing descriptors
GET/v1/dials/workflows
Parameters
organizationIdquery · stringrequiredMust match the authenticated organization.
workspaceIdquery · stringOptional 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 · stringOptional 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 · stringOptional 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 · stringSelected 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
okbooleanrequiredworkflowsobject[]requiredworkflows[].[].idstringrequiredmin length 1
workflows[].[].namestringrequiredmin length 1
workflows[].[].descriptionstringrequiredworkflows[].[].nodesobject[]requiredworkflows[].[].nodes[].[].idstringrequiredmin length 1
workflows[].[].nodes[].[].labelstringrequiredmin length 1
workflows[].[].nodes[].[].kindstringrequiredStored node descriptor; this API does not validate a supported execution engine kind. min length 1
workflows[].[].nodes[].[].descriptionstringrequiredworkflows[].[].nodes[].[].statusstringrequiredworkflows[].[].nodes[].[].xinteger (int32)requiredworkflows[].[].nodes[].[].yinteger (int32)requiredworkflows[].[].edgesobject[]requiredworkflows[].[].edges[].[].idstringrequiredmin length 1
workflows[].[].edges[].[].sourcestringrequiredmin length 1
workflows[].[].edges[].[].targetstringrequiredmin length 1
workflows[].[].edges[].[].labelstringrequiredworkflows[].[].statusstringdefault
"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"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_listWorkflows', {
organizationId: '<organizationId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_listWorkflows",
"arguments": {
"organizationId": "<organizationId>"
}
}
}Delete an owned workflow and its routing descriptor
DELETE/v1/dials/workflows/{workflow_id}
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
scopeobjectrequiredscope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
scope.organizationIdstringrequiredmin length 1
scope.workspaceIdstringmin length 1
scope.projectIdstringmin length 1
scope.environmentIdstringmin length 1
actorIdstring | nullOptional compatibility field; the actual actor comes from the verified gateway identity.
Responses
- 200Deleted. The descriptor rows are gone; audit records are kept.
Response fields
oktruerequireddeletedtruerequiredworkflowobjectrequiredGraph 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.idstringrequiredmin length 1
workflow.namestringrequiredmin length 1
workflow.descriptionstringrequiredworkflow.nodesobject[]requiredworkflow.nodes[].[].idstringrequiredmin length 1
workflow.nodes[].[].labelstringrequiredmin length 1
workflow.nodes[].[].kindstringrequiredStored node descriptor; this API does not validate a supported execution engine kind. min length 1
workflow.nodes[].[].descriptionstringrequiredworkflow.nodes[].[].statusstringrequiredworkflow.nodes[].[].xinteger (int32)requiredworkflow.nodes[].[].yinteger (int32)requiredworkflow.edgesobject[]requiredworkflow.edges[].[].idstringrequiredmin length 1
workflow.edges[].[].sourcestringrequiredmin length 1
workflow.edges[].[].targetstringrequiredmin length 1
workflow.edges[].[].labelstringrequiredworkflow.statusstringdefault
"draft"workflow.routeIdstring | nullrouteIdsstring[]requiredThe routing-rule descriptor ids that were deleted.
auditIdstringrequirednext"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"
}
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_deleteWorkflow', {
workflow_id: '<workflow_id>',
body: {
scope: {
organizationId: 'string',
},
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_deleteWorkflow",
"arguments": {
"workflow_id": "<workflow_id>",
"body": {
"scope": {
"organizationId": "string"
}
}
}
}
}Save a normalized workflow and enabled routing descriptor
POST/v1/dials/workflows/deploy
Upsert by selected scope/workflow ID. A deployed descriptor is not proof of arbitrary graph or media execution.
Request body application/json
scopeobjectrequiredscope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
scope.organizationIdstringrequiredmin length 1
scope.workspaceIdstringmin length 1
scope.projectIdstringmin length 1
scope.environmentIdstringmin length 1
actorIdstringrequiredmin length 1
workflowobjectrequiredGraph 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.idstringrequiredmin length 1
workflow.namestringrequiredmin length 1
workflow.descriptionstringrequiredworkflow.nodesobject[]requiredworkflow.nodes[].[].idstringrequiredmin length 1
workflow.nodes[].[].labelstringrequiredmin length 1
workflow.nodes[].[].kindstringrequiredStored node descriptor; this API does not validate a supported execution engine kind. min length 1
workflow.nodes[].[].descriptionstringrequiredworkflow.nodes[].[].statusstringrequiredworkflow.nodes[].[].xinteger (int32)requiredworkflow.nodes[].[].yinteger (int32)requiredworkflow.edgesobject[]requiredworkflow.edges[].[].idstringrequiredmin length 1
workflow.edges[].[].sourcestringrequiredmin length 1
workflow.edges[].[].targetstringrequiredmin length 1
workflow.edges[].[].labelstringrequiredworkflow.statusstringdefault
"draft"workflow.routeIdstring | null
Responses
- 200Actual durable operation result; no carrier delivery or graph execution is inferred.
Response fields
okbooleanrequiredworkflowobjectrequiredGraph 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.idstringrequiredmin length 1
workflow.namestringrequiredmin length 1
workflow.descriptionstringrequiredworkflow.nodesobject[]requiredworkflow.nodes[].[].idstringrequiredmin length 1
workflow.nodes[].[].labelstringrequiredmin length 1
workflow.nodes[].[].kindstringrequiredStored node descriptor; this API does not validate a supported execution engine kind. min length 1
workflow.nodes[].[].descriptionstringrequiredworkflow.nodes[].[].statusstringrequiredworkflow.nodes[].[].xinteger (int32)requiredworkflow.nodes[].[].yinteger (int32)requiredworkflow.edgesobject[]requiredworkflow.edges[].[].idstringrequiredmin length 1
workflow.edges[].[].sourcestringrequiredmin length 1
workflow.edges[].[].targetstringrequiredmin length 1
workflow.edges[].[].labelstringrequiredworkflow.statusstringdefault
"draft"workflow.routeIdstring | nullauditIdstringrequiredusageEventIdstringrequirednextstringrequiredrouteobjectrequiredroute.idstringrequiredmin length 1 · max length 128
route.scopeobjectrequiredroute.scope.platformId"dials"Dials platform identifier; defaults to dials when omitted.
route.scope.organizationIdstringrequiredmin length 1
route.scope.workspaceIdstringmin length 1
route.scope.projectIdstringmin length 1
route.scope.environmentIdstringmin length 1
route.namestringrequiredmin length 1 · max length 128
route.phoneNumberIdstringrequiredmin length 1 · max length 128
route.didstringrequiredpattern
^\+[1-9]\d{7,14}$route.priorityintegerrequiredmin 0 · max 10000
route.enabledbooleanrequiredroute.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": []
}
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('dials_deployWorkflow', {
body: {
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: [],
},
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dials_deployWorkflow",
"arguments": {
"body": {
"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