Skip to navigation

Integration

Connect the API that runs your business, so every agent request is delivered to it securely and reliably.
View as Markdown

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.

What the integration covers

  1. Connection
    The base URL of your API, to which the path of every tool 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 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

1

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.

https://api.yourcompany.com

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

2

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.

3

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 to configure OAuth or issue customer keys.

4

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.

OptionWhat your API receives
NoneThe signature only.
API keyA key in a header whose name you choose, alongside the signature.
Bearer tokenA 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.

5

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 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.

StateMeaning
ReachableYour API responded to its health check as expected.
DegradedYour API responded, but not as expected. Investigate before it affects agents.
UnreachableMitu could not reach your API. Agent requests will fail until it is restored.
Not checkedNo 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.