Skip to content
Navigation

Start a conversation

Checks the Turnstile token and opens a web conversation on the door. Answers a cvs_ session token. The Origin must be an origin of the door.

POST
https://{org}.cloudraker.run/_cv/start/{embed_key}
Try it
Path parameters
Request body
Live API request

This request can change data or incur charges for the selected organization.

Path parameters

  • embed_key
    string
    required

    The public rek_ embed key of a front door.

    pattern: ^rek_[A-Za-z0-9]{24}$

Request body JSON required

  • turnstile_token
    string
    required

    The token from the challenge frame. Single use.

    maxLength: 4096
  • lang
    optional
    string

    Must be in the door languages.

  • variables
    optional
    map of
    boolean | number | string

    Session variables of the door. A string only for an enum value.

  • gate_accepted
    optional
    boolean

    Required true when the door has a gate.

Returns

201

The conversation and its session token.

JSON
  • conversation_id
    string
    required
  • session_token
    string
    required

    cvs_ session token of this conversation.

  • expires_at
    string
    required
    format: date-time
  • socket_url
    string
    required
    format: uri
  • items_url
    string
    required
    format: uri
  • stream_url
    string
    required
    format: uri
  • door
    object
    required

    The browser view of a front door. No guard, router, agent or limit leaves the server.

    • id
      string
      required
    • name
      string
      required
    • languages
      array | null
      required
    • lang
      string | null
      required
    • variables
      map of
      object
      required
    • theme
      object | null
      required

      channels.web.theme of the door.

    • gate
      object | null
      required

      channels.web.gate of the door: title, body, accept, links.

    • greeting
      string | null
      required
    • files
      boolean
      required

      The chat may send files.

503

Error. See the code table in the guides.
JSON
  • error
    object
    required
    • code
      string
      required
    • message
      string
      required
    • run_id
      optional
      string
    • details
      optional
      unknown

4XX

Error. See the code table in the guides.
JSON
  • error
    object
    required
    • code
      string
      required
    • message
      string
      required
    • run_id
      optional
      string
    • details
      optional
      unknown

Type to search…

↑↓ navigate↵ selectEsc close