[← All integrations](/integrations/)

Custom API integration

# Call any API, live, mid-call.

Give your agent a web service and it can check a booking, find an order or write a note while the caller is still on the line. You define the request yourself; no Sempera staff step is needed.

[Start building](https://app.sempera.org/sign-up)[Talk to our technology team](/demo/?cta=integrations)

Status today: available now. You set up a custom API tool yourself and it runs on live calls, with no Sempera staff step needed.

### Any web service, not a fixed list

A custom API tool is how your agent reaches a system we have no ready-made connection for: a booking system, a job tracker, your own server. It is the route behind real client integrations built so far, and it works today without our involvement.

### Reusable requests, plain HTTP methods

You define a request once, with its address, method and headers, and attach it to the agents that should use it. GET, POST, PUT, PATCH and DELETE are supported, and addresses must be HTTPS. An agent can have up to forty tools attached.

### Secrets stay out of the request

A key or token is stored once as a workspace secret and referenced by name where the request needs it. The credential itself is never typed into the tool, and the runtime fills it in when the call needs it. Rotating a key means updating the secret.

### Details taken from the conversation

Parameters can go in the path, the query, a header or the body. The agent fills them from what the caller said, such as a name, a date or an order number.

### What comes back goes back into the call

The agent reads the response and uses it in what it says next, for example confirming a time that was found. We confirm with you how a given response is read so that the right fields are used, and test it on a call before launch.

### Plan for failure, not just success

Each request has a time limit and a bounded number of retries. You decide how an error is handled, and the agent can tell the caller plainly that it could not check, then hand over to a person or take a message.

## Connect your API

Four steps, all in the tools area.

1. 01

   Open the tools area, add a custom API tool and enter the HTTPS address of the service. Store any key or token as a workspace secret first, and note its name.

2. 02

   Choose the method, add any headers, and reference the secret by name where the service expects its credential. Use the content type the service accepts.

3. 03

   Describe each parameter the agent should supply: where it goes in the request, whether it is required and what it means, so the agent asks the caller for the right things.

4. 04

   Decide what the agent should do with the answer and with errors, test the tool with example values, then attach it to the agent and make a test call.

Our technology team works with you to define the connection, fit it to your existing systems, and support the launch.

[Talk to our technology team](/demo/?cta=integrations)

## Drop Sempera into your editor.

Use the REST API, the command line or the hosted MCP endpoint from the tools you already work in. Every example reads your key from the environment.

[Read the API docs](https://docs.sempera.org/)

### cURL

### JavaScript

### CLI

### MCP Copy code 1 curl --fail-with-body https://api.sempera.org/v1/me \
2 -H "Authorization: Bearer $SEMPERA_API_KEY"

Reads the account behind your key. It places no call and sends no message. [API reference](https://docs.sempera.org/)

## Frequently asked questions

###

### When does the agent call my API?

When a caller's request needs it, based on the description you wrote for the tool. A clear description, such as "look up an order by its number", matters more than anything else in getting it used at the right moment.

###

### Can I import a cURL command?

We have not built a cURL import. You enter the address, method, headers and parameters in the tool form. If you have a working cURL command, our technology team can help turn it into a tool.

###

### How are my keys handled?

Keys are stored as workspace secrets and referenced by name. The tool form refuses a credential typed straight into a header or the address, so a key does not end up sitting in the request itself.

###

### What does the caller hear while the API is working?

You can set a short line the agent says before it starts, or turn that off. Each request has a time limit, and if the service is slow or fails, the agent says so rather than going silent.

###

### Should I use a built-in connection or a custom API?

Use a built-in connection when one exists for your system, since it is set up for you. Use a custom API when none does, or when you need something specific from your own service.

## Related integrations

[ MCP Connect an AI assistant to Sempera over MCP, or point your phone agent at your own MCP server so its tools work on live calls. ](/integrations/mcp/)[ Zapier Start a Zap when a call ends, start a call from a Zap, or let your agent hand a Zap a request mid-call. ](/integrations/zapier/)[ Pipedream Run your own Pipedream workflow code when a call ends, start calls from a workflow, or hand one a request mid-call. ](/integrations/pipedream/) [View all integrations →](/integrations/)

## Our technology team scopes the integration with you.

They map Sempera to your stack, design the rollout, and stay with you through go-live.

[Talk to us](/demo/?cta=integrations)[See Enterprise pricing](/pricing/)

## Build with Sempera in your editor.

Connect through the API, command line or hosted MCP endpoint. Start with the setup guide for your development environment.

[Start building](https://app.sempera.org/sign-up)[Read the API docs](https://docs.sempera.org/)
