message_endpoint
POST
/v1/e/{channel_id}/fcp
const url = 'https://app.everruns.com/api/v1/e/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);}curl --request POST \ --url https://app.everruns.com/api/v1/e/example/fcp \ --header 'Content-Type: text/plain' \ --data exampleSend a message to a published FCP endpoint. Authenticate with Authorization: Bearer or X-Everruns-FCP-Token when the endpoint requires a token.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”channel_id
required
string
FCP endpoint channel ID
Request Bodyrequired
Section titled “Request Bodyrequired”Plain UTF-8 text or JSON with a message field. Maximum 256 KiB.
Media typetext/plain
string
Responses
Section titled “Responses”Agent reply as Markdown
Media typetext/markdown
Malformed or empty message
Media typetext/markdown
Missing or invalid FCP token
Media typetext/markdown
Endpoint not found, app not published, or channel disabled
Media typetext/markdown
FCP session expired
Media typetext/markdown
Body exceeds 256 KiB
Media typetext/markdown
Per-channel FCP rate limit exceeded
Media typetext/markdown
Agent response timeout
Media typetext/markdown