Skip to content
Navigation

Add a channel

Add a channel. web creates a website chat or form (the widget) from its complete configuration (widget: mode, texts, fields, colors and fonts, allowed origins, publicLink for its own hosted page); it is the one kind an AI tool creates. Create it with inboundEnabled: false to review it before publishing, then publish or pause it with update_channel; publication says whether visitors can reach it and where. whatsapp creates a pending channel and a setup link (setup.url) where the business connects its WhatsApp number; call verify_channel once that is done. voice connects a platform phone number (platform_number) or the organization's own carrier over SIP (sip_trunk) at once (SIP credentials are passed on once and never stored). A person adds WhatsApp and voice channels in Settings → Channels or with the REST API: over MCP they fail with CHANNEL_CREATION_IN_APP. With an Agent, traffic is on by default. Not idempotent: after an unknown outcome, list_channels before trying again.

  • Scope: raiz:channels:write
  • Credentials: an API key, a client-credentials token or a person's access token
  • Effect: writes; not idempotent: check the outcome before you retry
  • Limits: request body up to 32 KB, response up to 1 MB
  • CLI: arbol raiz channels create · MCP tool: raiz_channels_create
POST
https://api.getarbol.com/v1/raiz/channels

Authorization

  • Authorization
    string
    required
    Bearer <token>, where the token is an API key, a client-credentials token or a person's access token with the scope raiz:channels:write. Get an API key.

Request body JSON required

One of the following:

  • object
  • object
  • object

Returns

200

Successful operation.

JSON
  • success
    boolean
    required
  • data
    object
    required
    • address
      string | null
      required

      E.164 number for voice and WhatsApp; for web, the first https origin the widget may be embedded in. Null while a WhatsApp setup is pending.

    • agent
      required

      One of the following:

      • RaizChannelAgent
        • id
          string
          required

          Agent id.

          pattern: ^agt_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$
        • name
          string
          required
      • null
    • channelType
      voice
      or
      whatsapp
      or
      web
      required

      voice: a phone number or the organization's own carrier, for calls. whatsapp: a WhatsApp number. web: the chat widget on the organization's sites.

    • aiCoveragePercent
      integer
      required

      Percentage of new inbound WhatsApp conversations assigned to AI. Zero keeps conversations human-managed until explicitly activated. Existing assignments stay unchanged.

      maximum: 100 · minimum: 0
    • businessHours
      required

      One of the following:

      • RaizBusinessHours
        • closedDates
          array of
          string
          required

          Local dates (YYYY-MM-DD) closed all day, such as holidays.

          format: date
        • outsideHoursMessage
          string
          required

          What whoever writes outside the hours receives, once per number and closed period (until the hours open again), whether the conversation's AI is on, off or paused. With outsideHoursTemplate, the template goes instead, and this text only when WhatsApp refuses the template. The notice is never taken as an answer: the AI answers what the contact wrote when a person turns it on or resumes it in business hours.

          maxLength: 1000 · minLength: 1
        • timeZone
          string | null
          required

          IANA time zone of the windows. Null uses the organization's.

          maxLength: 64 · pattern: ^[A-Za-z]+(/[A-Za-z0-9_+-]+)*$
        • windows
          array of
          object
          required

          Several windows may share a day, for a break at midday or an afternoon shift.

          • days
            array of
            MO
            or
            TU
            or
            WE
            or
            TH
            or
            FR
            or
            SA
            +1 more
            required

            RFC 5545 weekdays the window applies to.

          • from
            string
            required

            Local wall-clock time HH:MM (24-hour).

            pattern: ^([01][0-9]|2[0-3]):[0-5][0-9]$
          • to
            string
            required

            Closing time HH:MM, exclusive; 24:00 closes at midnight. Must be after from: split a window that crosses midnight in two.

            pattern: ^(([01][0-9]|2[0-3]):[0-5][0-9]|24:00)$
        • closingGraceMinutes
          optional
          15
          or
          30
          or
          60
          or
          120
          or
          null

          Minutes after a closing during which a conversation in progress at it is still attended: the AI keeps answering, with its tools, and no notice is sent. In progress: the contact wrote before the closing, and the AI or a person answered within these minutes before it, or since (a notice is not an answer). New conversations get the notice as always. Null or absent: off.

        • outsideHoursTemplate
          optional

          Send the notice as this approved WhatsApp template instead of outsideHoursMessage: a template of the number's account with no variables and no document, image or video header (in list_templates: sendable, with parameterCount 0). WhatsApp's approval is checked when the hours are saved. If WhatsApp refuses the template when a notice goes (deleted, paused or disabled since), outsideHoursMessage goes instead. Null or absent: the notice is outsideHoursMessage.

          One of the following:

          • RaizOutsideHoursTemplate
          • null
      • null
    • createdAt
      string
      required

      An instant in RFC 3339 format, in UTC.

      format: date-time
    • id
      string
      required

      Channel id.

      pattern: ^(?:chn_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))|(?:agc)_(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$
    • inboundEnabled
      boolean
      required

      Calls and messages from people are answered. Off: inbound traffic is ignored (a web widget is switched off).

    • name
      string | null
      required
    • outboundEnabled
      boolean
      required

      The organization may start calls or WhatsApp conversations from this channel.

    • provider
      phone
      or
      sip
      or
      whatsapp
      or
      web
      required

      What the endpoint is: phone (a phone number: the platform's, or one on the organization's own telephony account when providerAccountId is set), sip (the organization's own number and carrier, over SIP), whatsapp (a WhatsApp number) or web (the chat widget, served by Raíz).

    • providerAccountId
      string | null
      required

      The organization's own account the endpoint runs on (its own telephony account, for example); null: the platform's.

      pattern: ^pac_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$
    • ready
      boolean
      required

      Active with enabled traffic; WhatsApp outbound notifications do not need an Agent.

    • setupExpiresAt
      string | null
      required

      An instant in RFC 3339 format, in UTC.

      format: date-time
    • status
      pending
      or
      active
      or
      degraded
      required

      pending: a WhatsApp number whose setup the customer has not finished. active: connected. degraded: connected, but the last provider check failed; verifyChannel checks again.

    • updatedAt
      string
      required

      An instant in RFC 3339 format, in UTC.

      format: date-time
    • version
      integer
      required
      minimum: 1
    • publication
      required

      One of the following:

      • RaizWidgetPublication
        • live
          boolean
          required

          Visitors can start now: no problems. The hosted page answers at url, and the widget runs on its allowedOrigins.

        • problems
          array of
          CHANNEL_INACTIVE
          or
          PAUSED
          or
          AGENT_REQUIRED
          or
          AGENT_PAUSED
          or
          NOT_PLACED
          required

          Why it is not live: CHANNEL_INACTIVE (the channel is not active), PAUSED (inboundEnabled is off), AGENT_REQUIRED (no Agent assigned), AGENT_PAUSED (its Agent is paused), NOT_PLACED (no hosted page and no https site may embed it).

        • url
          string | null
          required

          The widget's own hosted page (publicLink on), live or not; null when it runs only on the allowed sites.

      • null
    • widget
      required

      One of the following:

      • RaizWidgetSettings
        • allowedOrigins
          array of
          string
          required

          Exact origins allowed to embed the widget. The Dashboard may always preview it.

          maxLength: 256 · pattern: ^(https://[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*|http://(localhost|127\.0\.0\.1))(:[0-9]{1,5})?$
        • title
          string
          required
          maxLength: 80 · minLength: 1
        • policyRevision
          integer
          required

          Increases when a policy field, the channel's Agent or its inbound switch changes; sessions opened under an older revision end.

          minimum: 1
        • agents
          optional
          array of
          object

          Up to 6 more Agents the visitor may pick; each Agent at most once.

          default: []
          • agentId
            string
            required

            A text Agent of the same organization.

            pattern: ^agt_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$
          • label
            string
            required
            maxLength: 60 · minLength: 1
          • description
            optional
            string
            maxLength: 120 · default: ""
        • allowBusinessTools
          optional
          boolean

          Let the Agent use its business tools (its integration tools) with anonymous visitors.

          default: false
        • animation
          optional
          slide
          or
          fade
          or
          scale
          or
          none
          default: "slide"
        • askFirstMessage
          optional
          boolean

          The pre-chat form asks for the first message, which opens the conversation.

          default: true
        • assistantColor
          optional
          string

          Background behind the Agent's messages; the background color shows them as plain text. A color in #RRGGBB form.

          pattern: ^#[0-9a-fA-F]{6}$ · default: "#FFFFFF"
        • assistantTextColor
          optional
          string | null

          Text of the Agent's messages; null: textColor. A color in #RRGGBB form, or null to derive it.

          pattern: ^#[0-9a-fA-F]{6}$ · default: null
        • attachmentsEnabled
          optional
          boolean
          default: false
        • attachmentTypes
          optional
          array of
          image/png
          or
          image/jpeg
          or
          application/pdf
          or
          text/plain
          default: ["image/png","image/jpeg","application/pdf","text/plain"]
        • avatarUrl
          optional
          default: null

          One of the following:

          • RaizHttpsUrl
          • null
        • backgroundColor
          optional
          string

          A color in #RRGGBB form.

          pattern: ^#[0-9a-fA-F]{6}$ · default: "#F6F8F5"
        • borderColor
          optional
          string

          A color in #RRGGBB form.

          pattern: ^#[0-9a-fA-F]{6}$ · default: "#CAD4CD"
        • borderWidth
          optional
          integer
          maximum: 4 · minimum: 0 · default: 1
        • clientTools
          optional
          array of
          object

          Up to 8 browser tools with unique names.

          default: []
          • description
            string
            required
            maxLength: 400 · minLength: 1
          • name
            string
            required
            pattern: ^[a-z][a-z0-9_]{0,39}$
          • parameters
            array of
            object
            required
            • name
              string
              required
              pattern: ^[a-zA-Z][a-zA-Z0-9_]{0,39}$
            • required
              boolean
              required
            • type
              string
              or
              number
              or
              boolean
              required
        • controlRadius
          optional
          integer | null

          Corner radius of fields and buttons, in pixels; 24 makes pill-shaped buttons. Null: derived from radius.

          maximum: 24 · minimum: 0 · default: null
        • consentText
          optional
          string
          maxLength: 500 · minLength: 1 · default: "Acepto compartir estos datos y esta conversación con esta organización."
        • customCss
          optional
          string

          A stylesheet applied inside the panel only; the launcher uses the style fields.

          maxLength: 8000 · default: ""
        • errorColor
          optional
          string

          Field errors and failures the visitor must see. A color in #RRGGBB form.

          pattern: ^#[0-9a-fA-F]{6}$ · default: "#B42318"
        • fields
          optional
          array of
          object

          Up to 40 form fields with unique names, asked before the conversation (or alone, in form mode).

          default: []
          • label
            string
            required
            maxLength: 80 · minLength: 1
          • name
            string
            required
            pattern: ^[a-zA-Z][a-zA-Z0-9_]{0,39}$
          • required
            boolean
            required
          • type
            text
            or
            textarea
            or
            email
            or
            tel
            or
            number
            or
            date
            +4 more
            required
          • description
            optional
            string

            Help shown under the label.

            maxLength: 300 · default: ""
          • options
            optional
            array of
            string
            maxLength: 80 · minLength: 1 · default: []
          • placeholder
            optional
            string
            maxLength: 120 · default: ""
          • width
            optional
            full
            or
            half

            half sets two consecutive half fields side by side on wide screens.

            default: "full"
        • firstMessageLabel
          optional
          string
          maxLength: 60 · minLength: 1 · default: "Mensaje"
        • font
          optional
          arbol
          or
          system
          or
          serif
          or
          rounded
          or
          page
          or
          custom

          The text typeface: arbol (bundled), system (the device's), serif, rounded, page (the embedding page's) or custom (fontFamily, with an optional fontUrl).

          default: "arbol"
        • fontFamily
          optional
          string

          The CSS font-family of font: custom.

          maxLength: 200 · pattern: ^[a-zA-Z0-9 ,"'_-]*$ · default: ""
        • fontSize
          optional
          integer
          maximum: 20 · minimum: 12 · default: 15
        • fontUrl
          optional
          default: null

          One of the following:

          • RaizHttpsUrl
          • null
        • formTitle
          optional
          string
          maxLength: 120 · default: "Antes de empezar"
        • greeting
          optional
          string
          maxLength: 500 · default: "¡Hola! ¿En qué te podemos ayudar?"
        • headerColor
          optional
          string

          A color in #RRGGBB form.

          pattern: ^#[0-9a-fA-F]{6}$ · default: "#F6F8F5"
        • headerTextColor
          optional
          string

          A color in #RRGGBB form.

          pattern: ^#[0-9a-fA-F]{6}$ · default: "#182D24"
        • headingFont
          optional
          text
          or
          arbol
          or
          system
          or
          serif
          or
          rounded
          or
          page
          +1 more

          The headings' typeface: text (the same as font) or one of font's choices, with headingFontFamily and headingFontUrl for custom.

          default: "text"
        • headingFontFamily
          optional
          string

          The CSS font-family of headingFont: custom.

          maxLength: 200 · pattern: ^[a-zA-Z0-9 ,"'_-]*$ · default: ""
        • headingFontUrl
          optional
          default: null

          One of the following:

          • RaizHttpsUrl
          • null
        • headingWeight
          optional
          integer

          The headings' weight, from 300 (light) to 800 (heavy).

          maximum: 800 · minimum: 300 · default: 500
        • inputBorderColor
          optional
          string | null

          The border of form fields and of the message box. A color in #RRGGBB form, or null to derive it.

          pattern: ^#[0-9a-fA-F]{6}$ · default: null
        • inputColor
          optional
          string | null

          The background of form fields and of the message box. A color in #RRGGBB form, or null to derive it.

          pattern: ^#[0-9a-fA-F]{6}$ · default: null
        • language
          optional
          es
          or
          en

          The visitor interface language when the browser asks for none of the translated ones.

          default: "es"
        • launcherIcon
          optional
          chat
          or
          sparkle
          or
          question
          or
          logo
          default: "chat"
        • launcherLabel
          optional
          string
          maxLength: 60 · minLength: 1 · default: "Escríbenos"
        • launcherStyle
          optional
          icon
          or
          label

          label shows the launcher text next to the icon; icon keeps it as the accessible name.

          default: "icon"
        • linkColor
          optional
          string | null

          Links; null: primaryColor. A color in #RRGGBB form, or null to derive it.

          pattern: ^#[0-9a-fA-F]{6}$ · default: null
        • logoObjectKey
          optional
          string | null

          The stored logo, managed by Raíz: updateChannel's widgetLogo sets it. Send back the value you read, or null to remove the logo; any other key is refused.

          maxLength: 512 · pattern: ^[A-Za-z0-9][A-Za-z0-9/_.-]{0,511}$ · default: null
        • maxTurns
          optional
          integer

          Visitor messages per session.

          maximum: 100 · minimum: 1 · default: 30
        • mutedTextColor
          optional
          string | null

          Secondary text: descriptions, hints and times. A color in #RRGGBB form, or null to derive it.

          pattern: ^#[0-9a-fA-F]{6}$ · default: null
        • mobileMode
          optional
          sheet
          or
          fullscreen
          default: "fullscreen"
        • mode
          optional
          chat
          or
          form
          or
          form-chat

          chat: conversation only. form: the form only, no conversation. form-chat: the form, then the conversation.

          default: "chat"
        • position
          optional
          left
          or
          right
          default: "right"
        • primaryColor
          optional
          string

          A color in #RRGGBB form.

          pattern: ^#[0-9a-fA-F]{6}$ · default: "#24664C"
        • privacyUrl
          optional
          default: null

          One of the following:

          • RaizHttpsUrl
          • null
        • publicLink
          optional
          boolean

          Also serve the widget on its own hosted page, outside any embedding site.

          default: false
        • radius
          optional
          integer
          maximum: 28 · minimum: 0 · default: 20
        • sessionMinutes
          optional
          integer
          maximum: 60 · minimum: 5 · default: 30
        • sessionsPerDay
          optional
          integer
          maximum: 10000 · minimum: 1 · default: 100
        • sharePageContext
          optional
          boolean

          Send the embedding page's title, URL and visible text with each message.

          default: false
        • showBranding
          optional
          boolean
          default: true
        • speakReplies
          optional
          boolean
          default: false
        • speechInput
          optional
          boolean
          default: false
        • streaming
          optional
          boolean
          default: true
        • style
          optional
          soft
          or
          flat

          flat removes shadows and tightens corners for minimal sites.

          default: "soft"
        • submitLabel
          optional
          string
          maxLength: 60 · minLength: 1 · default: "Continuar"
        • subtitle
          optional
          string
          maxLength: 180 · default: "¿Cómo te podemos ayudar?"
        • suggestions
          optional
          array of
          string

          Starter questions offered before the first message.

          maxLength: 80 · minLength: 1 · default: []
        • textColor
          optional
          string

          A color in #RRGGBB form.

          pattern: ^#[0-9a-fA-F]{6}$ · default: "#182D24"
        • thankYou
          optional
          string
          maxLength: 500 · default: "Gracias. Recibimos tu información."
        • translations
          optional
          object

          Copy overrides per language.

          default: {}
          • en
            optional
            object
            • consentText
              optional
              string
              maxLength: 500 · minLength: 1
            • firstMessageLabel
              optional
              string
              maxLength: 60 · minLength: 1
            • formTitle
              optional
              string
              maxLength: 120
            • greeting
              optional
              string
              maxLength: 500
            • launcherLabel
              optional
              string
              maxLength: 60 · minLength: 1
            • submitLabel
              optional
              string
              maxLength: 60 · minLength: 1
            • subtitle
              optional
              string
              maxLength: 180
            • thankYou
              optional
              string
              maxLength: 500
            • title
              optional
              string
              maxLength: 80 · minLength: 1
            • welcomeText
              optional
              string
              maxLength: 300
            • welcomeTitle
              optional
              string
              maxLength: 80
          • es
            optional
            object
            • consentText
              optional
              string
              maxLength: 500 · minLength: 1
            • firstMessageLabel
              optional
              string
              maxLength: 60 · minLength: 1
            • formTitle
              optional
              string
              maxLength: 120
            • greeting
              optional
              string
              maxLength: 500
            • launcherLabel
              optional
              string
              maxLength: 60 · minLength: 1
            • submitLabel
              optional
              string
              maxLength: 60 · minLength: 1
            • subtitle
              optional
              string
              maxLength: 180
            • thankYou
              optional
              string
              maxLength: 500
            • title
              optional
              string
              maxLength: 80 · minLength: 1
            • welcomeText
              optional
              string
              maxLength: 300
            • welcomeTitle
              optional
              string
              maxLength: 80
        • turnsPerDay
          optional
          integer
          maximum: 100000 · minimum: 1 · default: 1000
        • userTextColor
          optional
          string

          Text on primaryColor: buttons and the launcher. A color in #RRGGBB form.

          pattern: ^#[0-9a-fA-F]{6}$ · default: "#FFFFFF"
        • visitorColor
          optional
          string | null

          Background of the visitor's own messages; null: a light tint of textColor. A color in #RRGGBB form, or null to derive it.

          pattern: ^#[0-9a-fA-F]{6}$ · default: null
        • visitorTextColor
          optional
          string | null

          Text of the visitor's own messages; null: textColor. A color in #RRGGBB form, or null to derive it.

          pattern: ^#[0-9a-fA-F]{6}$ · default: null
        • voiceMessages
          optional
          boolean

          Let visitors record a voice message; Raíz transcribes it and the Agent answers the transcript.

          default: false
        • welcomeText
          optional
          string
          maxLength: 300 · default: "Pregúntanos lo que necesites. Solemos responder en minutos."
        • welcomeTitle
          optional
          string
          maxLength: 80 · default: "¡Hola! 👋"
      • null
    • profile
      optional
      object | null

      What people see when they tap the business's name in WhatsApp. Present only when expanded; null for channels that are not connected WhatsApp numbers.

      • about
        string | null
        required
      • address
        string | null
        required
      • description
        string | null
        required
      • email
        string | null
        required
      • pictureUrl
        string | null
        required

        The profile picture (read only).

      • vertical
        string | null
        required

        The business category.

      • websites
        array of
        string
        required
    • setup
      optional
      object

      Present only in the response of the action that issued the link: createChannel, renewChannelSetup, or a verifyChannel that replaced an expired one.

      • expiresAt
        string | null
        required

        An instant in RFC 3339 format, in UTC.

        format: date-time
      • url
        string
        required

        Send the customer here to connect their WhatsApp number. Anyone with the link can connect a number to this channel: share it only with the customer.

  • error
    null
    required
  • metadata
    object
    required
    • requestId
      string
      required

      Request correlation identifier, also sent as X-Request-Id.

400

  • INVALID_INPUT: The request does not match the published schema.
  • REPORT_FILTER_UNSUPPORTED: A filter does not apply to the selected report.
  • REPORT_RANGE_INVALID: The report range is invalid: from must not be after to.
  • INVALID_CURSOR: The cursor is malformed or belongs to a different list.
JSON
  • error
    required

    One of the following:

    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object

401

UNAUTHORIZED: A valid access token is required.
JSON
  • error
    required

    One of the following:

    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object

403

  • FORBIDDEN: The token does not authorize this operation.
  • CHANNEL_CREATION_IN_APP: An AI tool creates website chats and forms only. A person adds WhatsApp numbers and phone numbers in Settings → Channels, or through the REST API.
  • CONVERSATION_VIEW_AUTHOR_ONLY: Only the person who saved this view can make it private; it would disappear for the rest of the team.
  • WHATSAPP_CHANNEL_REFUSED: Only the WhatsApp Agent Worker delivers through this service, and only Agent messages of a WhatsApp conversation.
  • WIDGET_REFUSED: This widget session is unavailable.
JSON
  • error
    required

    One of the following:

    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object

404

  • NOT_FOUND: The requested operation does not exist.
  • TEMPLATE_NOT_FOUND: The template does not exist in this channel's WhatsApp Business Account.
  • RESOURCE_NOT_FOUND: The requested resource does not exist in this organization.
JSON
  • error
    required

    One of the following:

    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object

405

HTTP_METHOD_NOT_ALLOWED: The HTTP method is not supported for this resource.
JSON
  • error
    required

    One of the following:

    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object

409

  • AGENT_NOT_TEXT: Only a text Agent can hold a web conversation.
  • CALL_IN_PROGRESS: A voice conversation closes by itself when its call ends; it cannot be closed by hand.
  • CONVERSATION_CLOSED: The conversation is closed. Start a new conversation to write again.
  • CONVERSATION_NOT_HANDED_OFF: The AI has not handed this conversation to the team, so there is nothing to give back to it.
  • CONVERSATION_OPEN: The conversation is still open. Close it first.
  • DAILY_REPORT_IN_PROGRESS: The daily report you asked for is still on its way; it arrives within a minute.
  • DEFINITION_NOT_ACTIVE: Facts can be asserted only under an active definition.
  • DEFINITION_RETIRED: The definition is retired and can no longer change.
  • DEFINITION_TYPE_LOCKED: The value type and subject of a definition cannot change once it has facts. Retire it and create a new one instead.
  • HANDOFF_ALREADY_CONTINUED: This handoff was already given back to the AI to continue. It continues once per handoff; a new escalation can be given back again.
  • REPLY_IN_PROGRESS: The Agent is still replying in this conversation. Try again once the reply is delivered.
  • OUTSIDE_CONTACT_HOURS: The profile's contact hours do not allow starting a conversation now. Try again within them.
  • PROVIDER_ACCOUNT_EXISTS: This provider account is already registered.
  • PROVIDER_ACCOUNT_IN_USE: Channels or Agents still use this provider account. Move them to another account first.
  • SOURCE_CONVERSATION_OPEN: A fact can cite only a closed conversation as its source.
  • SUPPRESSION_EXISTS: This organization already has this suppression rule.
  • TASK_NOT_RETRYABLE: This task cannot be retried: its kind never retries, or it already used every attempt. Start it again from its resource.
  • CHANNEL_AGENT_REQUIRED: Inbound traffic requires an assigned Agent. Outbound traffic requires one except on WhatsApp notification channels.
  • CHANNEL_ENDPOINT_IN_USE: Another channel already uses this number or endpoint.
  • CHANNEL_NOT_READY: The channel is not connected yet, or this kind of traffic is not enabled on it.
  • CHANNEL_TYPE_MISMATCH: This operation or field does not apply to this channel's type.
  • CONVERSATION_VIEW_LIMIT_REACHED: The organization already has 200 saved views. Delete one before saving another.
  • CONVERSATION_VIEW_NAME_TAKEN: Another saved view already has this name. Choose a different name.
  • TEMPLATE_NOT_APPROVED: The template is not approved for sending: it is pending review, rejected, paused or disabled.
  • WHATSAPP_AI_PAUSED: Automatic replies are paused or this conversation can no longer receive them.
  • WHATSAPP_MARKETING_STOPPED: The contact chose to stop receiving marketing messages from this business.
  • WHATSAPP_WINDOW_CLOSED: More than 24 hours passed since the contact last wrote. Start the conversation with an approved template.
  • PROVIDER_ACCOUNT_MISMATCH: The number and the Agent belong to different voice accounts. A voice Agent answers and dials only numbers of its own account.
  • PROVIDER_SECRET_UNAVAILABLE: The organization's connection to this integration couldn't complete the request. Don't retry it automatically; if it keeps happening, contact your Arbol team.
  • VOICE_AGENT_NOT_READY: The Agent cannot take calls yet: it must be an active voice Agent with instructions, published for calls.
  • VOICE_LINE_UNAVAILABLE: No voice line can place this call. Give an active outbound voice channel, or assign one to the Agent.
  • VOICE_NUMBER_IN_USE: This number is already connected to another voice service. Release it there first.
  • AGENT_IN_USE: The Agent still has channels or active campaigns. Unassign them before deleting it.
  • AGENT_MODALITY_LOCKED: The Agent's modality cannot change while it has channels or is published for calls. Create a new Agent instead.
  • BULLETIN_LIMIT_REACHED: The organization already has 30 bulletins in force or scheduled. End or delete one before adding another.
  • EVAL_CASES_UNAVAILABLE: The Agent has no kept evaluation case to replay, or a named case is not one of its kept cases.
  • EVAL_GATE_UNMET: This Agent requires a completed evaluation run of exactly this content, in which every case passed, before what its model reads changes. Create one with createEvalRun and send its id as evalRunId.
  • WIDGET_CONFLICT: The request cannot be repeated or another turn is active.
  • ADDRESS_IN_USE: Another contact in this organization already uses this address.
  • IDENTIFIER_IN_USE: Another contact in this organization already has this identity document.
  • INVALID_STATE: The resource is not in a state that allows this operation.
  • KEY_IN_USE: Another active resource in this organization already uses this key.
  • CONTACT_SUPPRESSED: A suppression rule of this organization forbids contacting this address.
  • VERSION_CONFLICT: The resource changed after it was read. Read it again and retry with the new version.
JSON
  • error
    required

    One of the following:

    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object

413

  • REQUEST_TOO_LARGE: The request exceeds the allowed size.
  • IMPORT_FILE_TOO_LARGE: The import file is larger than 12 MB. Split it into several files.
JSON
  • error
    required

    One of the following:

    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object

415

UNSUPPORTED_MEDIA_TYPE: The request content type is not supported.
JSON
  • error
    required

    One of the following:

    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object

422

  • CONTACT_UNREACHABLE: The contact has no phone number. Give the destination number in to.
  • DAILY_REPORT_RECIPIENTS_MISSING: The daily report has no recipients. Add them in settings.dailyReport.recipients first.
  • DEFINITION_OPTIONS_INVALID: Only a definition whose value type is option has options; it needs at least one, and option keys must be unique.
  • FACT_SUBJECT_MISMATCH: The fact's subject (a contact or a conversation) does not match what its definition describes.
  • FACT_VALUE_INVALID: The value does not match the definition's value type, or names no active option.
  • IMPORT_FILE_INVALID: The import file is not valid base64 of UTF-8 text. Save the spreadsheet as CSV UTF-8 and try again.
  • IP_NETWORK_INVALID: The IP network is not a valid IPv4 or IPv6 address or CIDR block.
  • PROFILE_VARIABLE_MISSING: The profile's template parameters reference a variable that variables does not give.
  • TIME_ZONE_UNKNOWN: The time zone is not in the IANA time zone database.
  • CHANNEL_AGENT_MISMATCH: This Agent cannot serve this channel: voice channels need a voice Agent; WhatsApp and web channels need a text Agent.
  • TEMPLATE_HEADER_MISMATCH: The header file does not fit the template: a document header takes a PDF, an image header a JPEG or PNG, a video header an MP4, and a template without a media header takes no file.
  • TEMPLATE_HEADER_REQUIRED: The template's header is a document, image or video: send its file with the template.
  • TEMPLATE_PARAMETERS_MISMATCH: The number of parameters does not match the variables of the template's body.
  • TEMPLATE_UNSUPPORTED: The template needs header text variables, a location header or button parameters, which cannot be sent yet.
  • WHATSAPP_MEDIA_REJECTED: WhatsApp could not use the attachment. Check its type and size limits.
  • WHATSAPP_MESSAGE_UNSUPPORTED: This message cannot be sent on WhatsApp: it allows one attachment per message, up to three buttons or ten list options, and text of up to 4096 characters.
  • WHATSAPP_RECIPIENT_UNAVAILABLE: The recipient cannot receive WhatsApp messages from this number.
  • CALL_REJECTED: The call could not be placed. Check the destination number and the line.
  • PROVIDER_ACCOUNT_UNSUPPORTED: This deployment cannot use provider accounts of this provider yet; the platform's own account is used instead.
  • PROVIDER_CREDENTIALS_REJECTED: The organization's connection to this integration couldn't complete the request. Don't retry it automatically; if it keeps happening, contact your Arbol team.
  • VOICE_NUMBER_NOT_OWNED: The platform's telephony account does not own a voice-capable number with this value.
  • AGENT_PROCEDURES_INVALID: A procedure is incomplete, references a tool, document or procedure the Agent does not have, or breaks the structured step rules. issues says where.
  • AGENT_SETTINGS_INVALID: The settings do not apply to this Agent's modality, or two settings contradict each other.
  • BULLETIN_PERIOD_INVALID: A bulletin must end after it starts, and a new one must end in the future.
  • INTEGRATION_PROCEDURE_UNAVAILABLE: A procedure does not exist in this organization's connections, Raíz cannot run its connection, or the Agent is not a text Agent.
  • INTEGRATION_TOOL_UNAVAILABLE: An integration tool does not exist in this organization's connections, or Raíz cannot run it.
  • KNOWLEDGE_DOCUMENT_UNAVAILABLE: A Knowledge document does not exist in this organization.
  • KNOWLEDGE_FILE_INVALID: The file is not valid base64, exceeds the size limit or does not match its declared type.
  • KNOWLEDGE_KIND_MISMATCH: The change does not apply to this kind of Knowledge document.
  • WEBSITE_NOT_APPROVED: This website's origin is not approved for crawling in this deployment.
  • WIDGET_VOICE_UNHEARD: The voice message could not be understood. Record it again or write the message.
  • PROVIDER_REJECTED: The provider refused the request. Check the configuration and try again.
JSON
  • error
    required

    One of the following:

    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object

429

  • RATE_LIMITED: The request rate limit was exceeded. Try again later.
  • WHATSAPP_RATE_LIMITED: WhatsApp is limiting messages from this number. Try again later.
  • WIDGET_LIMIT_REACHED: This widget reached its conversations or messages for today. It takes visitors again after 00:00 UTC.
JSON
  • error
    required

    One of the following:

    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object

500

  • INTERNAL_ERROR: The service could not complete the operation.
  • WHATSAPP_CHANNEL_INTERNAL: The delivery outcome could not be read back. Asking again never sends the message twice.
  • WHATSAPP_NOT_SENT: The message was stored but never handed to WhatsApp. It was not sent.
  • WIDGET_INTERNAL: The request outcome could not be confirmed. Do not repeat it with a new identifier.
JSON
  • error
    required

    One of the following:

    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object

502

  • OUTCOME_UNKNOWN: The operation may have been applied; check its result before repeating it.
  • WHATSAPP_DELIVERY_FAILED: WhatsApp did not deliver the message.
JSON
  • error
    required

    One of the following:

    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object

503

  • UPSTREAM_UNAVAILABLE: The upstream service could not complete the request.
  • VOICE_UNAVAILABLE: Calls are unavailable right now. Try again in a few minutes.
  • FEEDBACK_PROPOSAL_UNAVAILABLE: A usable improvement could not be prepared. The Agent has not changed. Try again later.
  • INTEGRATIONS_UNAVAILABLE: The organization's integrations cannot be read right now. Try again shortly.
JSON
  • error
    required

    One of the following:

    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object

504

  • UPSTREAM_TIMEOUT: The upstream service did not respond before its deadline.
  • WHATSAPP_DELIVERY_UNCONFIRMED: WhatsApp never confirmed whether the message was sent. It was not sent again.
JSON
  • error
    required

    One of the following:

    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object
    • object

Escribe para buscar…

↑↓ navegar↵ seleccionarEsc cerrar