> This page is for API Reference & Tools.

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

# Conversations API overview

> The Moveworks Conversations API lets your application create conversations with the assistant, send messages on behalf of your users, and receive responses over polling or streaming.

> **Info**
>
> The Conversations API is in **Controlled Availability**. Endpoints, behaviors, and configuration surfaces may change during CA. Contact your Moveworks account team to participate.

The Conversations API is a REST interface for creating and interacting with Moveworks Assistant conversations from your own application. Your service sends a user's message, the assistant plans and executes actions against connected systems, and you receive the assistant's response back, either by polling or over a streaming connection.

Every request runs on behalf of a specific user, so responses reflect that user's roster identity, permissions, connected content, and conversation history.

## What you can build with it

The API is intentionally general-purpose. Two common patterns:

* **Custom user-facing chat surfaces.** Embed the assistant in a product you already own, such as a customer portal, an internal web app, a mobile app, or a voice or messaging surface. Users sign in with your identity provider, and your application exchanges their token for a Moveworks bearer that scopes each request to the signed-in user.
* **Backend and workflow integrations.** Trigger assistant conversations from a service that already knows which user each action is on behalf of. Examples include ambient monitoring, batch processing, ticket-driven automation, or systems that need to consume assistant output programmatically. Authentication is handled by a backend credential rather than an interactive sign-in.

## Before you start

Two things have to be in place before any request will succeed:

1. Your account team enables the Conversations API for your org. Requests return `404` until they have.
2. You [create the Conversations API chatbot](/api-reference/conversations-api/create-the-chatbot) in Moveworks Setup. This produces the Bot Name you send in the `Assistant-Name` header on every request, and it is an input to each authentication guide below.

## Choosing an authentication path

Every conversation runs as a specific user. How your application obtains a token that identifies that user depends on how your integration is architected.

| Your integration                                                                       | Recommended setup                                                | Guide                                                                                                                           |
| -------------------------------------------------------------------------------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| Users sign in with Okta and each request represents that signed-in user                | Interactive OAuth flow against your Okta authorization server    | [Set up authentication with Okta](/api-reference/conversations-api/set-up-authentication-with-okta)                             |
| Users sign in with Azure AD (Entra ID) and each request represents that signed-in user | Interactive OAuth flow against your Entra tenant                 | [Set up authentication with Azure AD (Entra ID)](/api-reference/conversations-api/set-up-authentication-with-azure-ad-entra-id) |
| A backend service acts on behalf of provisioned users without an interactive sign-in   | Self-signed JWT bearer, exchanged for a Moveworks token per user | [Set up service-to-service authentication](/api-reference/conversations-api/set-up-service-to-service-authentication)           |

All three paths land at the same Moveworks token endpoint (`POST /oauth/v1/token`) and produce a bearer token you use on every Conversations API request.

## Interaction patterns

Once authenticated, every conversation follows the same shape:

1. **Create a conversation** with `POST /conversations`. You get back a `conversation_id` that scopes all subsequent activity.
2. **Send a message** with `POST /conversations/{conversation_id}/responses` (for polling) or `POST /conversations/{conversation_id}/responses/stream` (for streaming).
3. **Read the response** by polling until the status is `COMPLETED`, or by consuming Server-Sent Events on the streaming endpoint.
4. **Continue the conversation** by sending more messages on the same `conversation_id`. Conversation history is preserved server-side.

Streaming is recommended for user-facing surfaces where perceived latency matters. Polling is simpler to implement and appropriate for backend integrations where progressive rendering is not needed. Both patterns are documented alongside their endpoints in the [API reference](/api-reference/conversations-api/conversations-api).

## Sample code

The [Conversations API starter](https://github.com/moveworks/conversations-api-starter) is Python sample code for this API. It includes a client library, a runnable example for each authentication path, and a reference chat app.

The [Conversations API demo app](https://github.com/moveworks/conversations-api-demo-app) is a styled chat app built on the starter.

## Next steps

* [Create the Conversations API chatbot](/api-reference/conversations-api/create-the-chatbot) and record its Bot Name.
* Pick the [authentication path](#choosing-an-authentication-path) that matches your integration and follow its setup guide.
* Once you have a bearer, walk the [API reference](/api-reference/conversations-api/conversations-api) to see every endpoint, request shape, and response schema.
* Confirm the smoke-test flow at the end of each auth guide works end to end before wiring the API into production traffic.
* If your integration needs to receive messages the assistant initiates, such as approval requests or async action outcomes, read [Proactive notifications](/api-reference/conversations-api/proactive-notifications/overview). Routing behavior there is the most commonly misunderstood part of the API.