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
Bearertoken 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.
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.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_idto call the Get Outcome endpoint and read the transcript, call outcome, and cost. - See Fetch Call Outcomes for the full walkthrough.