> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developer.jelliu.co/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developer.jelliu.co/_mcp/server.

# Send a webchat message

POST https://api.jelliu.co/api/webchat/message
Content-Type: application/json

Sends a visitor's message into a webchat conversation and returns the AI agent's reply in
the same response. The call blocks while the model writes, typically a few seconds.

**Choosing the thread.** Send `visitorId` to start or continue the thread keyed
`webchat_<visitorId>`, or `conversationId` (from a previous response) to continue that exact
conversation. At least one is required. If `conversationId` does not exist in the workspace,
a thread keyed by `visitorId` (or by the id itself) is used, **creating a new conversation
with a different id**. Always keep the `conversationId` from the latest response. A
`closed` thread is reopened by the next message.

**Agent.** `agentId` picks the agent that answers and binds it to a thread that has none yet.
It never replaces an agent already bound. Without any agent, a generic assistant answers
without inventing business details. A paused agent, a deleted agent or a visitor on the
exclusion list get a fixed notice instead of an AI reply.

Messages longer than 4000 characters are truncated to 4000 before processing. A message made
only of whitespace passes validation but fails processing, so trim before sending.

**Side effects.** Stores the visitor's message and the reply. Calls the LLM (or the agent's
voice-engine chat agent) and may run the agent's tools and knowledge-base lookups. Each
model-written reply spends **one AI message** of the plan's monthly allowance. Fixed notices
spend none. Broadcasts a realtime update to the dashboard and writes an audit entry.

**Idempotency.** Not idempotent. A retry stores the visitor's message again, generates a new
reply and spends another AI message.

**Webhook events.** `audit.log_recorded` for subscribers that selected it explicitly. See [Webhooks](/webhooks).

**Access**

* **Required scope:** `write`.
* **Rate limit:** General API (120–600 requests/min per workspace by plan) **and** the webchat limiter — 20 requests/min per client IP. See [Rate limits](/rate-limits).
* **Plan:** Available on every plan. Requires an active plan with AI messages left; otherwise 403 `BILLING_ERROR`.

Reference: https://developer.jelliu.co/api-reference/webchat/post-webchat-message

## Authentication

- `Authorization` header (bearer token, required) — Workspace API key: `jl_` followed by 64 lowercase hex characters, created by the workspace owner in the dashboard (**Settings → API Keys**) and sent as `Authorization: Bearer jl_...`. The plaintext is shown once, at creation; Jelliu stores only a SHA-256 hash. A workspace can hold up to 25 active keys. | Scope | GET / HEAD | POST / PUT / PATCH / DELETE | Admin-only routes | | --- | --- | --- | --- | | `read` | Yes | No | No | | `write` | Yes | Yes | No | | `full` | Yes | Yes | Yes | Operations restricted to admins or owners reject keys without the `full` scope with `403`, and say so in their description. No key, whatever its scope, can mint or revoke API keys or rotate a webhook secret — that requires a signed-in owner session. A revoked key stops authenticating within about 10 seconds. See [Authentication](/authentication).

## Request

### Body (application/json)

This endpoint expects an object.

- `message` (string, required) — The visitor's text. Accepted up to 5000 characters, but only the first 4000 are processed and stored.
- `conversationId` (string, optional) — Id of the conversation to continue, as returned by a previous call. Takes precedence over `visitorId` when it exists in the workspace.
- `visitorId` (string, optional) — Your stable key for the visitor (letters, digits, `_`, `-`). Trimmed. An empty string is treated as absent.
- `agentId` (string, optional) — Agent that answers. Must be a non-deleted agent of the workspace, or the call returns 403. Only binds threads that have no agent yet.
- `metadata` (map from string to string, optional) — Accepted for forward compatibility; currently ignored and not stored.

## Response

### 200

The agent's reply.

- `data` (object, required)
  - `conversationId` (string, required) — The conversation the turn was stored in. Send it on the next call.
  - `reply` (string, required) — The agent's answer, or a fixed notice (paused agent, exclusion list).

## Errors

### 400 Bad Request Error

Body failed validation (`Invalid input`, field map in `details`).

- `error` (object, required) — The error object. Always has `code` and `message`.
  - `code` (string, required) — Stable machine-readable error code (for example `VALIDATION_FAILED`, `UNAUTHORIZED`, `FORBIDDEN`, `NOT_FOUND`, `BILLING_ERROR`, `COMPLIANCE_BLOCKED`, `RATE_LIMIT_EXCEEDED`, `INTERNAL_ERROR`). Switch on this, not on `message`. See [Errors](/errors).
  - `message` (string, required) — Human-readable explanation. English or Spanish depending on the route; may change without notice.
  - `details` (object or list of object, optional) — Present on `VALIDATION_FAILED` only. Its shape depends on how the route validates: * a field map, either Zod's `flatten()` output (`{ "formErrors": [], "fieldErrors": { "name": ["..."] } }`) or just its `fieldErrors` part (`{ "name": ["..."] }`); * an issue list, where each issue has at least `path`, `message` and `code`. `path` is a dot-separated string on routes that let the schema throw, and an array of keys on routes that forward Zod's raw issues (those also carry Zod's extra issue fields).
    - Field map
      - `formErrors` (list of string, optional)
      - `fieldErrors` (map from string to list of string, optional)
  - `metadata` (map from string to any, optional) — Structured detail exposed for a small allowlist of codes only — for example `BILLING_ERROR` carries `limit`, `current` and `tier` (resource caps) or `tier` and `feature` (feature gates).

### 401 Unauthorized Error

No usable credential. Either the `Authorization` header is missing or is not a well-formed `Bearer jl_…` key, or the key is unknown, revoked or expired. Do not retry with the same key. See [Authentication](/authentication#401-unauthorized).

- `error` (object, required) — The error object. Always has `code` and `message`.
  - `code` (string, required) — Stable machine-readable error code (for example `VALIDATION_FAILED`, `UNAUTHORIZED`, `FORBIDDEN`, `NOT_FOUND`, `BILLING_ERROR`, `COMPLIANCE_BLOCKED`, `RATE_LIMIT_EXCEEDED`, `INTERNAL_ERROR`). Switch on this, not on `message`. See [Errors](/errors).
  - `message` (string, required) — Human-readable explanation. English or Spanish depending on the route; may change without notice.
  - `details` (object or list of object, optional) — Present on `VALIDATION_FAILED` only. Its shape depends on how the route validates: * a field map, either Zod's `flatten()` output (`{ "formErrors": [], "fieldErrors": { "name": ["..."] } }`) or just its `fieldErrors` part (`{ "name": ["..."] }`); * an issue list, where each issue has at least `path`, `message` and `code`. `path` is a dot-separated string on routes that let the schema throw, and an array of keys on routes that forward Zod's raw issues (those also carry Zod's extra issue fields).
    - Field map
      - `formErrors` (list of string, optional)
      - `fieldErrors` (map from string to list of string, optional)
  - `metadata` (map from string to any, optional) — Structured detail exposed for a small allowlist of codes only — for example `BILLING_ERROR` carries `limit`, `current` and `tier` (resource caps) or `tier` and `feature` (feature gates).

### 403 Forbidden Error

`agentId` is not an agent of this workspace, the plan's AI-message allowance is used up, the workspace has no active plan (`BILLING_ERROR`, with `limit`, `current` and `tier` in `metadata`), or the API key lacks the `write` scope.

- `error` (object, required) — The error object. Always has `code` and `message`.
  - `code` (string, required) — Stable machine-readable error code (for example `VALIDATION_FAILED`, `UNAUTHORIZED`, `FORBIDDEN`, `NOT_FOUND`, `BILLING_ERROR`, `COMPLIANCE_BLOCKED`, `RATE_LIMIT_EXCEEDED`, `INTERNAL_ERROR`). Switch on this, not on `message`. See [Errors](/errors).
  - `message` (string, required) — Human-readable explanation. English or Spanish depending on the route; may change without notice.
  - `details` (object or list of object, optional) — Present on `VALIDATION_FAILED` only. Its shape depends on how the route validates: * a field map, either Zod's `flatten()` output (`{ "formErrors": [], "fieldErrors": { "name": ["..."] } }`) or just its `fieldErrors` part (`{ "name": ["..."] }`); * an issue list, where each issue has at least `path`, `message` and `code`. `path` is a dot-separated string on routes that let the schema throw, and an array of keys on routes that forward Zod's raw issues (those also carry Zod's extra issue fields).
    - Field map
      - `formErrors` (list of string, optional)
      - `fieldErrors` (map from string to list of string, optional)
  - `metadata` (map from string to any, optional) — Structured detail exposed for a small allowlist of codes only — for example `BILLING_ERROR` carries `limit`, `current` and `tier` (resource caps) or `tier` and `feature` (feature gates).

### 429 Too Many Requests Error

The webchat limiter (20/min per IP) or the general API limiter was exceeded.

- `error` (object, required) — The error object. Always has `code` and `message`.
  - `code` (string, required) — Stable machine-readable error code (for example `VALIDATION_FAILED`, `UNAUTHORIZED`, `FORBIDDEN`, `NOT_FOUND`, `BILLING_ERROR`, `COMPLIANCE_BLOCKED`, `RATE_LIMIT_EXCEEDED`, `INTERNAL_ERROR`). Switch on this, not on `message`. See [Errors](/errors).
  - `message` (string, required) — Human-readable explanation. English or Spanish depending on the route; may change without notice.
  - `details` (object or list of object, optional) — Present on `VALIDATION_FAILED` only. Its shape depends on how the route validates: * a field map, either Zod's `flatten()` output (`{ "formErrors": [], "fieldErrors": { "name": ["..."] } }`) or just its `fieldErrors` part (`{ "name": ["..."] }`); * an issue list, where each issue has at least `path`, `message` and `code`. `path` is a dot-separated string on routes that let the schema throw, and an array of keys on routes that forward Zod's raw issues (those also carry Zod's extra issue fields).
    - Field map
      - `formErrors` (list of string, optional)
      - `fieldErrors` (map from string to list of string, optional)
  - `metadata` (map from string to any, optional) — Structured detail exposed for a small allowlist of codes only — for example `BILLING_ERROR` carries `limit`, `current` and `tier` (resource caps) or `tier` and `feature` (feature gates).

### 500 Internal Server Error

The reply could not be generated (e.g. a whitespace-only message or a model failure). Nothing is charged.

- `error` (object, required) — The error object. Always has `code` and `message`.
  - `code` (string, required) — Stable machine-readable error code (for example `VALIDATION_FAILED`, `UNAUTHORIZED`, `FORBIDDEN`, `NOT_FOUND`, `BILLING_ERROR`, `COMPLIANCE_BLOCKED`, `RATE_LIMIT_EXCEEDED`, `INTERNAL_ERROR`). Switch on this, not on `message`. See [Errors](/errors).
  - `message` (string, required) — Human-readable explanation. English or Spanish depending on the route; may change without notice.
  - `details` (object or list of object, optional) — Present on `VALIDATION_FAILED` only. Its shape depends on how the route validates: * a field map, either Zod's `flatten()` output (`{ "formErrors": [], "fieldErrors": { "name": ["..."] } }`) or just its `fieldErrors` part (`{ "name": ["..."] }`); * an issue list, where each issue has at least `path`, `message` and `code`. `path` is a dot-separated string on routes that let the schema throw, and an array of keys on routes that forward Zod's raw issues (those also carry Zod's extra issue fields).
    - Field map
      - `formErrors` (list of string, optional)
      - `fieldErrors` (map from string to list of string, optional)
  - `metadata` (map from string to any, optional) — Structured detail exposed for a small allowlist of codes only — for example `BILLING_ERROR` carries `limit`, `current` and `tier` (resource caps) or `tier` and `feature` (feature gates).

## Examples

### Webchat_postWebchatMessage_example

**Request**

```json
undefined
```

**Response**

```json
{
  "data": {
    "conversationId": "3f1c2a9e-5b7d-4e8f-9a01-2c3d4e5f6a7b",
    "reply": "Sí, el sábado tenemos espacio de 9:00 a 13:00. ¿Qué hora te sirve?"
  }
}
```

**SDK Code**

```python Webchat_postWebchatMessage_example
import requests

url = "https://api.jelliu.co/api/webchat/message"

headers = {"Authorization": "Bearer <token>"}

response = requests.post(url, headers=headers)

print(response.json())
```

```javascript Webchat_postWebchatMessage_example
const url = 'https://api.jelliu.co/api/webchat/message';
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Webchat_postWebchatMessage_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.jelliu.co/api/webchat/message"

	req, _ := http.NewRequest("POST", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Webchat_postWebchatMessage_example
require 'uri'
require 'net/http'

url = URI("https://api.jelliu.co/api/webchat/message")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java Webchat_postWebchatMessage_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.jelliu.co/api/webchat/message")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Webchat_postWebchatMessage_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.jelliu.co/api/webchat/message', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp Webchat_postWebchatMessage_example
using RestSharp;

var client = new RestClient("https://api.jelliu.co/api/webchat/message");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Webchat_postWebchatMessage_example
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.jelliu.co/api/webchat/message")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### First turn with a visitor id

**Request**

```json
{
  "message": "Hola, ¿tienen disponibilidad el sábado en la mañana?",
  "visitorId": "visitor_8f3a2c",
  "agentId": "c4a7e2f1-8b3d-4e6a-9f0c-5d2b1a3e7c9f"
}
```

**Response**

```json
{
  "data": {
    "conversationId": "3f1c2a9e-5b7d-4e8f-9a01-2c3d4e5f6a7b",
    "reply": "Sí, el sábado tenemos espacio de 9:00 a 13:00. ¿Qué hora te sirve?"
  }
}
```

**SDK Code**

```python First turn with a visitor id
import requests

url = "https://api.jelliu.co/api/webchat/message"

payload = {
    "message": "Hola, ¿tienen disponibilidad el sábado en la mañana?",
    "visitorId": "visitor_8f3a2c",
    "agentId": "c4a7e2f1-8b3d-4e6a-9f0c-5d2b1a3e7c9f"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript First turn with a visitor id
const url = 'https://api.jelliu.co/api/webchat/message';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"message":"Hola, ¿tienen disponibilidad el sábado en la mañana?","visitorId":"visitor_8f3a2c","agentId":"c4a7e2f1-8b3d-4e6a-9f0c-5d2b1a3e7c9f"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go First turn with a visitor id
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.jelliu.co/api/webchat/message"

	payload := strings.NewReader("{\n  \"message\": \"Hola, ¿tienen disponibilidad el sábado en la mañana?\",\n  \"visitorId\": \"visitor_8f3a2c\",\n  \"agentId\": \"c4a7e2f1-8b3d-4e6a-9f0c-5d2b1a3e7c9f\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby First turn with a visitor id
require 'uri'
require 'net/http'

url = URI("https://api.jelliu.co/api/webchat/message")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"message\": \"Hola, ¿tienen disponibilidad el sábado en la mañana?\",\n  \"visitorId\": \"visitor_8f3a2c\",\n  \"agentId\": \"c4a7e2f1-8b3d-4e6a-9f0c-5d2b1a3e7c9f\"\n}"

response = http.request(request)
puts response.read_body
```

```java First turn with a visitor id
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.jelliu.co/api/webchat/message")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"message\": \"Hola, ¿tienen disponibilidad el sábado en la mañana?\",\n  \"visitorId\": \"visitor_8f3a2c\",\n  \"agentId\": \"c4a7e2f1-8b3d-4e6a-9f0c-5d2b1a3e7c9f\"\n}")
  .asString();
```

```php First turn with a visitor id
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.jelliu.co/api/webchat/message', [
  'body' => '{
  "message": "Hola, ¿tienen disponibilidad el sábado en la mañana?",
  "visitorId": "visitor_8f3a2c",
  "agentId": "c4a7e2f1-8b3d-4e6a-9f0c-5d2b1a3e7c9f"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp First turn with a visitor id
using RestSharp;

var client = new RestClient("https://api.jelliu.co/api/webchat/message");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"message\": \"Hola, ¿tienen disponibilidad el sábado en la mañana?\",\n  \"visitorId\": \"visitor_8f3a2c\",\n  \"agentId\": \"c4a7e2f1-8b3d-4e6a-9f0c-5d2b1a3e7c9f\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift First turn with a visitor id
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "message": "Hola, ¿tienen disponibilidad el sábado en la mañana?",
  "visitorId": "visitor_8f3a2c",
  "agentId": "c4a7e2f1-8b3d-4e6a-9f0c-5d2b1a3e7c9f"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.jelliu.co/api/webchat/message")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Follow-up turn on a known conversation

**Request**

```json
{
  "message": "A las 10 me sirve. Soy Andrés Gómez.",
  "conversationId": "3f1c2a9e-5b7d-4e8f-9a01-2c3d4e5f6a7b"
}
```

**Response**

```json
{
  "data": {
    "conversationId": "3f1c2a9e-5b7d-4e8f-9a01-2c3d4e5f6a7b",
    "reply": "Sí, el sábado tenemos espacio de 9:00 a 13:00. ¿Qué hora te sirve?"
  }
}
```

**SDK Code**

```python Follow-up turn on a known conversation
import requests

url = "https://api.jelliu.co/api/webchat/message"

payload = {
    "message": "A las 10 me sirve. Soy Andrés Gómez.",
    "conversationId": "3f1c2a9e-5b7d-4e8f-9a01-2c3d4e5f6a7b"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Follow-up turn on a known conversation
const url = 'https://api.jelliu.co/api/webchat/message';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"message":"A las 10 me sirve. Soy Andrés Gómez.","conversationId":"3f1c2a9e-5b7d-4e8f-9a01-2c3d4e5f6a7b"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Follow-up turn on a known conversation
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.jelliu.co/api/webchat/message"

	payload := strings.NewReader("{\n  \"message\": \"A las 10 me sirve. Soy Andrés Gómez.\",\n  \"conversationId\": \"3f1c2a9e-5b7d-4e8f-9a01-2c3d4e5f6a7b\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Follow-up turn on a known conversation
require 'uri'
require 'net/http'

url = URI("https://api.jelliu.co/api/webchat/message")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"message\": \"A las 10 me sirve. Soy Andrés Gómez.\",\n  \"conversationId\": \"3f1c2a9e-5b7d-4e8f-9a01-2c3d4e5f6a7b\"\n}"

response = http.request(request)
puts response.read_body
```

```java Follow-up turn on a known conversation
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.jelliu.co/api/webchat/message")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"message\": \"A las 10 me sirve. Soy Andrés Gómez.\",\n  \"conversationId\": \"3f1c2a9e-5b7d-4e8f-9a01-2c3d4e5f6a7b\"\n}")
  .asString();
```

```php Follow-up turn on a known conversation
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.jelliu.co/api/webchat/message', [
  'body' => '{
  "message": "A las 10 me sirve. Soy Andrés Gómez.",
  "conversationId": "3f1c2a9e-5b7d-4e8f-9a01-2c3d4e5f6a7b"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Follow-up turn on a known conversation
using RestSharp;

var client = new RestClient("https://api.jelliu.co/api/webchat/message");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"message\": \"A las 10 me sirve. Soy Andrés Gómez.\",\n  \"conversationId\": \"3f1c2a9e-5b7d-4e8f-9a01-2c3d4e5f6a7b\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Follow-up turn on a known conversation
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "message": "A las 10 me sirve. Soy Andrés Gómez.",
  "conversationId": "3f1c2a9e-5b7d-4e8f-9a01-2c3d4e5f6a7b"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.jelliu.co/api/webchat/message")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```