Skip to main content
Scalysis lets you fire a single outbound AI call programmatically in seconds. Whether you’re confirming a cash-on-delivery order, following up on a lead, or running a quick notification, the trigger endpoint places the call immediately and returns a unique order_id you can use to retrieve the outcome once the conversation is complete.

Prerequisites

Before you make your first call, make sure you have the following:
  • API key — Generate one from your Scalysis dashboard. Pass it as a Bearer token in every request.
  • Script ID — Open the script you want the AI to use in the dashboard and copy its numeric ID (e.g. 2207). Every call must be tied to a script.
  • Phone number in the correct format — see the tip at the bottom of this page.

1

Build the request payload

The request body is a JSON object. The table below describes every field.
If your script uses a {{brand_name}} placeholder and you omit the brand_name field, the API returns a 400 error:
Check your script in the dashboard for any {{ }} variable placeholders and include a matching field for each one in your request body.
2

Send the request

Use the curl command below as a starting point. Replace YOUR_API_KEY with your real key and adjust the field values as needed.
Phone number format: Include the country dialing code when calling numbers outside your default region. For Indian numbers, prefix with 91 — for example, 919149874123. Do not include +, spaces, or hyphens; pass the digits only as a plain string.
3

Handle the response

On success, the API returns HTTP 200 with a JSON body similar to this:
Here’s what each field means:
Store the order_id in your database or application state right away. Without it, you cannot retrieve the call transcript, outcome, or cost.
4

What happens next

The moment Scalysis accepts your request, the AI dials the customer immediately — there is no additional step required to initiate the call. Your job now is to wait for the call to finish and then retrieve the result.
  • Typical calls last 30 seconds to a few minutes depending on the script and conversation flow.
  • Once the call ends, use your saved order_id to call the Get Outcome endpoint and read the transcript, call outcome, and cost.
  • See Fetch Call Outcomes for the full walkthrough.