Skip to main content
You add an API action under Agent Settings → APIs, send a test to your endpoint and then switch it on. A new action is saved switched off, so no live call can reach it until a test has worked. At the end your agent can look something up in your own system while it talks to a caller. You will have: one working API action on one agent. Time: about 10 minutes. You need: the Power Tools add-on (see Add-ons) and a role that can edit Tools. You also need the HTTPS address of your endpoint (a public address with a valid certificate), plus its key if it needs one.
In the app: Sidebar → Agent Settings → APIs (/home?settings=http_tools), then Add API action.

How do I add an API action?

1

Open APIs

In the sidebar, click Agent Settings. The agent settings drawer opens. In its left rail, click APIs, just below Connectors. You see two tabs, API actions and Keys.
APIs screen in Agent Settings with an empty API actions listAPIs screen in Agent Settings with an empty API actions list

Open Agent Settings, then APIs

2

Click Add API action

Click Add API action. A window offers Set it up with AI, which sends the request to the Home chat, and Set it up manually, which opens the form. Choose Set it up manually. You see the form with five sections: Details, Connection, Inputs, Request and Access.
Add API action window offering AI setup or manual setupAdd API action window offering AI setup or manual setup

Choose Set it up manually

3

Fill in Details

Type a Name, for example Order status. Under it SmartAlex shows the Function name it derives, such as order_status. In When to use write what the action looks up and when the agent should run it, for example “Look up an order by its number. Use it when the caller asks where their order is. Returns the status and the delivery date.” Leave Lookup only off unless the action only reads data.
Details section of the API action formDetails section of the API action form

Fill in Details

4

Fill in Connection

Choose a Format. Custom request suits an existing API, and SmartAlex standard suits an endpoint you build for us. Type the URL, starting with https://. For a custom request, pick GET or POST in front of it. Then add the key under API key. You see the key row change to match the format.
Connection section of the API action formConnection section of the API action form

Fill in Connection

5

Add the key

For a custom request, click the key field and paste the key. Then write ${vault.token} in the body, a header or the query so the request carries it (the Request section below shows where). Used in then lists where it appears. For the standard format, choose Sent as, such as Bearer token (most common), and paste the key. A key you saved before for the same site appears as a choice, so you do not paste it twice.
6

Describe the inputs

In Inputs, click Add input. Type the input name, for example order_number, pick its type and write what the agent should put there. Repeat for each input. Fill from an example writes inputs from a sample, and Edit as JSON shows them as a schema.
Inputs section with one input definedInputs section with one input defined

Describe the inputs

7

Write the request (custom request)

In Request, write the Body. Click Insert to add the caller’s number, today’s date, or an input as ${arg.order_number}. Click Format to tidy the JSON. Preview shows exactly what will be sent, with the key hidden. For a GET, put the values in the query of the $request entry. See Request and response.
Request section with a JSON body and a previewRequest section with a JSON body and a preview

Write the request

8

Choose Access

Under Access → Agents, keep Only followed by your agent’s name (for example Only Front Desk), or choose Every agent with APIs on or Chosen agents.
Access section choosing which agents may use the actionAccess section choosing which agents may use the action

Choose Access

9

Click Add and test

Click Add and test. You see the action’s Test tab. The note beside the button said “Added switched off, so you can test it first.”
10

Save the signing secret (standard format only)

The first time you add a standard-format action, a window shows your workspace’s signing secret, which starts with shs_. Click the copy button, store it in your secrets store, then click I’ve saved it. See Signature verification.
11

Send a test

On Test, type sample values for each input. For a request that uses the caller’s number, type a Caller number in international form such as +27215550123. Click Send test. You see the request, your endpoint’s reply, the status and the time.
12

Switch it on

Turn on the Live switch at the top of the action. Click APIs in the back link, then switch APIs on for the agent: the switch reads “On for” and the agent’s name. You see “APIs switched on for” the agent.
If APIs will not switch on, the agent has used its tool slots. Switch another tool off first. See How many tools an agent can have.

What does each setting do?

Details

Connection

Inputs

Request

Access

The action’s own controls

What are keys?

The Keys tab of APIs lists every key by name with its site and status, so one key can serve several actions. Click Add key and choose Key (a value you paste, sent as it is) or Sign-in (a username and password SmartAlex uses to get a token and renew it). Use Test sign-in to check a sign-in key. A key that an action uses cannot be deleted until you pick another key on that action.

Check it worked

Place a test call to the agent and ask something the action answers. Open the action and click Requests. You see a row with the result OK, the status, the time and the inputs the agent sent. Click it to see the request and the reply. A failed row says why; see Error codes.

Questions people ask

On purpose. A new action is saved off so no live call can reach one that has never worked. Test it, then turn on Live.
On the API actions tab open Signing secret and limits and click Reveal, then confirm. Or click Rotate for a new one, which stops the old one at once.
Yes. Set Access to every agent or to chosen agents. Each agent still needs APIs switched on.
Turn off Live. Open the action and click Edit to find Delete API action if you want it gone.

Next

Request and response

The exact request and what to reply.

Troubleshooting

When the test fails.

Connect your own MCP server

Use an MCP server instead of an API.
Last modified on November 27, 2026