Saltar al contenido principal
POST
/
{slug}
/
conversation
/
mailbox
curl --request POST \
  --url https://app.1to1.ai/api/v1/public/{slug}/conversation/mailbox \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "conversation": {
    "phone": "+525512345678"
  },
  "mailbox": {
    "uuid": "550e8400-e29b-41d4-a716-446655440000"
  }
}
'
{
  "conversation": {
    "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  },
  "mailbox": {
    "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "Ventas · Turno matutino"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.1to1ai.com/llms.txt

Use this file to discover all available pages before exploring further.

Autorizaciones

Authorization
string
header
requerido

API token emitido desde Settings → API Token del dashboard 1TO1 AI. Enviar en header Authorization: Bearer sk_1to1_...

Parámetros de ruta

slug
string
requerido

Slug del business, case-insensitive. Debe coincidir con el business del token.

Ejemplo:

"acme"

Cuerpo

application/json
conversation
object
requerido

Identificador de la conversación — al menos UNO de los tres campos debe venir. Orden de resolución: uuid > whatsapp_user_id > phone. El lookup filtra por el business del token (defense in depth cross-tenant).

mailbox
object
requerido

Respuesta

Buzón asignado correctamente.

conversation
object
requerido
mailbox
object
requerido