# message_channel

Source: <https://everruns.com/docs/api/operations/message_channel/>

POST

/v1/channels/{channel\_id}/fcp

Select code samplecURL (shell:curl)

```js
const url = 'https://app.everruns.com/api/v1/channels/example/fcp';
const options = {method: 'POST', headers: {'Content-Type': 'text/plain'}, body: 'example'};


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

```sh
curl --request POST \
  --url https://app.everruns.com/api/v1/channels/example/fcp \
  --header 'Content-Type: text/plain' \
  --data example
```

* Production APIapp.everruns.com/api/v1/channels/{channel\_id}/fcp

Send a message to a published FCP endpoint. Authenticate with Authorization: Bearer or X-Everruns-FCP-Token when the endpoint requires a token.

## Parameters

### Path Parameters

**channel\_id**

required

string

FCP endpoint channel ID

## Request Bodyrequired

Plain UTF-8 text or JSON with a message field. Maximum 256 KiB.

Media typetext/plain

string

## Responses

### 200

Agent reply as Markdown

Media typetext/markdown

### 400

Malformed or empty message

Media typetext/markdown

### 401

Missing or invalid FCP token

Media typetext/markdown

### 404

Channel not found, app not published, or channel disabled

Media typetext/markdown

### 410

FCP session expired

Media typetext/markdown

### 413

Body exceeds 256 KiB

Media typetext/markdown

### 429

Per-channel FCP rate limit exceeded

Media typetext/markdown

### 504

Agent response timeout

Media typetext/markdown