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

# Integration

The integration is the connection between your agent service and the API you already operate. Every operation an agent performs is ultimately carried out by your API, so the integration defines where that API is, how its availability is monitored, how your customers are identified and how your API can be certain that each request it receives was sent by Mitu.

Because the integration points at your existing API, there is nothing new to build or host. The same endpoints that serve your website, mobile applications and partners serve agents too, and your API continues to apply its own data, validation and business rules to every request. The integration is configured under **Integration** in the **Agents** area of the [Mitu dashboard](https://app.mitu.ai).

## What the integration covers

1. **Connection**\
   The base URL of your API, to which the path of every [tool](/platform/your-agent-service/tools/overview) is appended, and an optional health check that shows whether your API is available.
2. **Customer authentication**\
   How customers identify themselves when an agent acts on their behalf, either by signing in with your own OAuth or with a customer key. [Authentication](/platform/your-agent-service/integration/authentication/overview) covers this in full.
3. **Requests from Mitu**\
   How Mitu authenticates to your API, through a signature on every request and, where your API requires one, an additional credential of your choice.

## Configuring the integration

#### Connect your API

Enter the base URL of your API. Every tool you add is defined by a path relative to this address, so an operation at `/orders` is called at the base URL followed by that path.

```text
https://api.yourcompany.com
```

Select **Test connection** to confirm that Mitu can reach your API before you add any tools.

#### Add a health check

Optionally, enter the path of a health check endpoint, such as `/health`. Mitu checks it and shows the result in the dashboard, so an outage or degradation in your API is visible before it affects agents and the customers they serve. Leave the path empty to skip the check.

#### Choose how customers connect

Select whether requests may be made without identifying a customer, or whether customers sign in with your own identity provider. Customer keys are always available in addition to either choice. Follow [Authentication](/platform/your-agent-service/integration/authentication/overview) to configure [OAuth](/platform/your-agent-service/integration/authentication/oauth) or issue [customer keys](/platform/your-agent-service/integration/authentication/customer-keys).

#### Choose how Mitu authenticates to your API

Every request Mitu sends to your API carries a signature. If your API also requires a credential of its own before it accepts a request, Mitu can present one with every call.

| Option       | What your API receives                                              |
| ------------ | ------------------------------------------------------------------- |
| None         | The signature only.                                                 |
| API key      | A key in a header whose name you choose, alongside the signature.   |
| Bearer token | A fixed token in the Authorization header, alongside the signature. |

Store the key or token under **Secrets**, where it is encrypted and never displayed again. These options are unavailable while customers sign in with OAuth, because the Authorization header then carries the signed in customer's own access token.

#### Store your signing secret

The signing secret allows your API to confirm that each request genuinely came from Mitu and has not been altered or replayed. It is displayed only at the moment it is created, so store it alongside your other server credentials immediately. Use **Rotate secret** if it is ever exposed, and update your API with the new value. [Request verification](/platform/security/request-verification) describes how to check each request, with examples in several languages.

## Connection health

When a health check path is set, the dashboard shows the current state of your API.

| State       | Meaning                                                                        |
| ----------- | ------------------------------------------------------------------------------ |
| Reachable   | Your API responded to its health check as expected.                            |
| Degraded    | Your API responded, but not as expected. Investigate before it affects agents. |
| Unreachable | Mitu could not reach your API. Agent requests will fail until it is restored.  |
| Not checked | No health check path is set.                                                   |

## Security considerations

1. **Verify every request**\
   Treat a request as genuine only after its signature has been verified. Anyone who discovers your API could otherwise send requests that appear to come from Mitu.
2. **Expose only what agents need**\
   Agents can reach only the operations you publish as tools. The rest of your API remains private, even though it shares the same base URL.
3. **Keep credentials out of code**\
   Hold your signing secret in your own secrets manager, and any credential Mitu presents to your API under **Secrets**, so neither is ever stored in source code or logs.

A well configured integration lets your API remain the single authority on your products, customers and rules, while Mitu handles every aspect of the agent-facing connection. Your existing systems are extended to a new channel rather than duplicated for it, so the same logic, data and safeguards apply whether a request comes from a person in your app or an agent acting on their behalf.