Saltar al contenido
Qomni

Agents

Crea un agente, dale voz y ponlo a atender: REST para las llamadas y un WebSocket para hablar con él en tiempo real desde tu app.

URL base
https://api.qomni.ai/agents/v1
Clave
sk_agents_test_…
curl https://api.qomni.ai/agents/v1/calls \
  -H "Authorization: Bearer sk_agents_test_…"

Novedades

Navegación

Create call

Place an outbound call with an agent.

In test mode the magic numbers decide the outcome: +15005550001 completed, +15005550002 busy, +15005550003 no-answer.

POST
https://api.qomni.ai/agents/v1/calls

Autorización

  • apiKeyHTTP Bearer (sk_agents_{live|test}_{cell}_{body}{checksum})Obligatorio

Cuerpo de la peticiónJSONObligatorio

  • tostringObligatorio

    E.164, ASCII digits only.

    pattern: ^\+[1-9][0-9]{6,14}$

Devuelve

201

The call.

JSON
  • idstringObligatorio
    pattern: ^call_[0-9a-z]+$
  • tostringObligatorio
  • statusqueuedorcompletedorbusyorno-answerObligatorio
  • livemodebooleanObligatorio
  • created_atstringObligatorio
    format: date-time
  • cellOpcionalstring
  • regionOpcionalstring

401

Missing or invalid credentials (unauthenticated).
JSON
  • errorobjectObligatorio
    • codestringObligatorio

      Stable, machine-readable; each operation lists the codes it can return.

      pattern: ^[a-z][a-z0-9_]*$
    • messagestringObligatorio

      For people; may change at any time.

    • request_idOpcionalstring
    • fieldsOpcionalmap ofarray<string>

      Only for validation_failed, the messages per field.

403

Valid credentials that may not do this (insufficient_scope, api_key_wrong_product…).
JSON
  • errorobjectObligatorio
    • codestringObligatorio

      Stable, machine-readable; each operation lists the codes it can return.

      pattern: ^[a-z][a-z0-9_]*$
    • messagestringObligatorio

      For people; may change at any time.

    • request_idOpcionalstring
    • fieldsOpcionalmap ofarray<string>

      Only for validation_failed, the messages per field.

422

The request does not match the contract (validation_failed).
JSON
  • errorobjectObligatorio
    • codestringObligatorio

      Stable, machine-readable; each operation lists the codes it can return.

      pattern: ^[a-z][a-z0-9_]*$
    • messagestringObligatorio

      For people; may change at any time.

    • request_idOpcionalstring
    • fieldsOpcionalmap ofarray<string>

      Only for validation_failed, the messages per field.

429

Too many requests for this key (rate_limited); retry after Retry-After seconds.
JSON
  • errorobjectObligatorio
    • codestringObligatorio

      Stable, machine-readable; each operation lists the codes it can return.

      pattern: ^[a-z][a-z0-9_]*$
    • messagestringObligatorio

      For people; may change at any time.

    • request_idOpcionalstring
    • fieldsOpcionalmap ofarray<string>

      Only for validation_failed, the messages per field.

Nuevo

2 de 7 pasos hechosSigue: la plataforma en producción

Qomni está en beta privada

La API y la app todavía no están abiertas. Mira qué está hecho, qué falta y cómo se abre, paso a paso hasta el primer cliente.

Escribe para buscar…

↑↓ moverte↵ abrirEsc para cerrar