---
title: "Chat Agent"
method: POST
path: "/salesforce/chat"
tags: ["Salesforce"]
---

# Chat Agent

`POST /salesforce/chat`

## Request

- Base URL: `https://backend.ressl.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://backend.ressl.ai/salesforce/chat`
- Auth: HTTP bearer

Chat endpoint that streams Claude responses (and tool calls) to the client using
Server-Sent Events (SSE).

Supports both Auth0 JWT authentication (Authorization: Bearer) and API key
authentication (X-API-Key header) for service-to-service integrations.

Each SSE event has the following format:

    event: <text|tool_use|tool_result>

    data: <JSON-encoded payload>


Where the payload structure corresponds to the event type, e.g.
    {"text": "Hello"} for text,
    {"name": "get_weather", "args": {...}} for tool_use, and
    {"name": "get_weather", "content": "72F and sunny"} for tool_result.

## Query parameters

- `organization_id` string, nullable: Organization ID

## Headers

- `X-API-Key` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/ressl/apis/ressl-api.md) - [All operations](https://skmtc.dev/ressl/apis/ressl-api/llms.txt) - [OpenAPI document](https://skmtc.dev/ressl/apis/ressl-api/revisions/51e8b599d597?raw)
