> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chamelio.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Chamelio API

> Connect Chamelio to any system through the Chamelio API, webhooks and MCP server: start workflows from other tools, send results back, search contracts, ask the Agent and get real-time events.

Chamelio is built to connect. Chamelio connects to more than the tools on the [Integrations](https://docs.chamelio.ai/guides/integrations/summary.md) page: almost everything your team does in Chamelio is also available through the Chamelio API, so your own systems, scripts, and AI assistants can work with your legal processes directly. If a system can call an API or receive a webhook, it can work with Chamelio.

## What you can do with it

> [card] Start and run workflows
>
> Start any published workflow from another system, with its request details already filled in. Follow every request as it moves: read its status and steps, approve or cancel it, add comments and attachments, send it for signature, and pull its negotiation versions and full activity history.

> [card] Contracts and the Knowledge Center
>
> Upload contracts and other documents, update their attributes, search the repository, and read the contract data Chamelio extracts, along with your document types and fields.

> [card] Files and signed documents
>
> Download the files attached to a request and the signed documents a workflow produces, so the final version lands wherever it's needed.

> [card] Ask the Agent
>
> Hand a plain-language question to the Chamelio Agent from your own application, follow up on its answer, and approve the actions it proposes. Search across workflows, contracts, and files in one call.

> [card] Users and groups
>
> Read and create users and groups, so the people in Chamelio stay in step with the rest of your organization.

> [card] Clickwrap
>
> Serve your click-through agreements, record each acceptance, and look up who accepted which version and when.

## Start a workflow from another system

Every workflow begins with an **Intake** step. When the Intake starts from **Manual** and the workflow is published, it can be started in two ways: by someone filling in the request form in Chamelio, or by another system sending the same fields through the API. From there, the workflow runs exactly as you built it.

That means a request can begin wherever your teams already work. A few examples:

Built with

How it works

## Real-time events with webhooks

Chamelio can tell your systems the moment something happens, with 15 event types to choose from in **Settings** > **Developer** > **Webhooks**. For example, when a document is uploaded, updated, or deleted, when a request is created, moves to a new step, gets a comment or a new negotiation version, or completes, and when a clickwrap agreement is accepted. Your systems stay in sync without anyone copying details from one tool to another.

The connection works in both directions. Your systems can also [look up a task](https://docs.chamelio.ai/api-reference/endpoint/tasks/get.md) or [get its signed documents](https://docs.chamelio.ai/api-reference/endpoint/tasks/signed-documents.md) through the API. See [Webhooks](https://docs.chamelio.ai/api-reference/webhooks/introduction.md) for every event.

## AI assistants (beta)

The Chamelio MCP server lets AI assistants that support the Model Context Protocol, such as Claude, work with Chamelio for a signed-in user: find workflows and start requests, check on tasks, search contracts, download signed documents, and ask the Chamelio Agent. See [AI assistants (MCP)](https://docs.chamelio.ai/guides/integrations/claude-mcp.md).

## Secure by design

* **Two ways to connect.** An organization API key for trusted server-to-server integrations, or an OAuth 2.1 application that acts on behalf of one user, limited to the permissions that user granted.
* **Your permissions still apply.** An OAuth application can only reach what its user can see in Chamelio.
* **Signed events.** Every webhook is signed, so your systems can confirm it came from Chamelio.
* **Fair use.** Requests are rate limited, with the current limits returned on every response.

## Plan a connection with us

Every company's systems are set up differently, so connections are planned together with your team. Your Chamelio legal engineer helps you choose which workflows to connect, which details each system sends and receives, and how to set up access.

Using a system that isn't mentioned here? Ask your Chamelio legal engineer. If it can call an API or receive a webhook, we can work with you to connect it.

> [card] [Chamelio API reference](https://docs.chamelio.ai/api-reference/introduction.md)
>
> For developers: authentication, endpoints, and webhooks.

## Common questions

> [accordion] Where do I create an API key?
>
> Go to **Settings** > **Developer**. The **API Key** tab has **Create API Key**. The same page holds **Applications** (OAuth) and **Webhooks**. If you don't see **Developer**, it isn't turned on for your organization: ask your Chamelio legal engineer to turn it on. See [API keys](https://docs.chamelio.ai/api-reference/api-keys.md).

> [accordion] Does Chamelio connect natively to our CRM?
>
> Yes for Salesforce. HubSpot also has a native integration, but it is off by default: ask your Chamelio legal engineer to turn it on. Other CRMs have no native integration: connect them through the Chamelio API, as described on this page. See [Salesforce](https://docs.chamelio.ai/guides/integrations/salesforce.md).

> [accordion] How do I use Chamelio from Claude or another AI assistant?
>
> Connect the assistant to Chamelio's MCP server at `https://mcp.chamelio.ai/mcp`, after an Admin turns on **Settings** > **Beta features** > **MCP**. See [AI assistants (MCP)](https://docs.chamelio.ai/guides/integrations/claude-mcp.md) for the steps.

> [accordion] Can an Agent Hub agent start from Slack or email?
>
> Yes. In the agent's **Trigger**, choose **Slack** or **Email**.

> [accordion] How do I link a record in another system to a contract?
>
> Use the API, or add the link as a field on the contract. To add a field, go to **Settings** > **Fields** > **Attributes** > **Add Fields** and choose **Attribute Type** **Link**.

> [accordion] Do dashboards include requests that came from other systems?
>
> Yes. Dashboards count tasks from flows of every intake source. You can't filter a widget by intake source; filter by **Flow** instead.

> [accordion] How do I add a clickwrap to our website?
>
> Create it in **Settings** > **Clickwrap** with **Create Clickwrap**, then have your developers embed it on your site. The clickwrap's **Embed** tab has the steps for the Chamelio clickwrap SDK (Vanilla JS or React), and the **API Keys** tab has the public API key it uses. To keep a contract record for each acceptance, turn on **Save to contracts** in the clickwrap's **Details**.

> [accordion] What access does the Slack bot need?
>
> The bot needs read and write access in channels and access to attachments. It requests these scopes: `app_mentions:read`, `chat:write`, `files:read`, `files:write`, `im:*`, `users:read`, `users:read.email`, channels and groups history and read, pins, reactions, links, commands, and `assistant:write`.

> [accordion] What access does the HubSpot app need?
>
> It requests read and update access on Contacts, Companies, and Deals, read access to schemas, and Files.

> [accordion] What access does Salesforce need?
>
> Chamelio requests these OAuth scopes: `api`, `refresh_token`, `offline_access`, `id`, `profile`, `email`, `address`, and `phone`. The Salesforce objects it reads and writes are listed on the [Salesforce](https://docs.chamelio.ai/guides/integrations/salesforce.md) page.
