Setup
Navigate to the settings page in Levers app, and scroll to the API keys section. Click on Add API key.


Integration
API Authentication
Learn how to authenticate your API requests using your client credentials.
Quickstart Code
Get started with sample code for making your first API call.
API Authentication
To authenticate with the Levers API, you need to obtain a bearer token using your client credentials.Step 1: Get Your Access Token
Step 2: Use the Access Token
Include the access token in theAuthorization header for all subsequent API requests:
Quickstart Code
Install the following packages:.env file in the root directory of your project and add the following variables:
main.py in the root directory of your project and copy the following code into it:
A contact is automatically created (or matched by phone number) the first time you call a number — there’s no separate contact-creation step. See Call single phone number for the full set of options, including linking to an existing
contactUuid, promptTags, and metadata.Integrating AI Phone Calls
Call single number
Initiate an AI call to a single phone number — best for real-time, user-triggered calls.
Call bulk numbers
Dispatch AI calls to a list of phone numbers in one request — best for outreach campaigns.

