Back to Home

API Documentation

Complete reference for the NextLeapAI REST API

Quick Start

1. Get Your API Key

Generate an API key from your dashboard settings

API Key
sk_live_abc123...

2. Make Your First Request

curl https://api.nextleapai.com/v1/agents \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"

3. Handle the Response

{
  "data": [
    {
      "id": "agent_123",
      "name": "Support Agent",
      "status": "active",
      "created_at": "2025-01-15T10:00:00Z"
    }
  ]
}

API Endpoints

POST
/v1/agents

Create a new AI agent

GET
/v1/agents

List all agents

GET
/v1/agents/:id

Get agent details

PATCH
/v1/agents/:id

Update an agent

DELETE
/v1/agents/:id

Delete an agent

POST
/v1/calls

Initiate a call

GET
/v1/calls/:id

Get call details

GET
/v1/analytics

Get analytics data

Official SDKs

Use our official libraries for your favorite language

Node.js

npm install @nextleapai/sdk

Python

pip install nextleapai

Ruby

gem install nextleapai

PHP

composer require nextleapai/sdk

Need Help?

Check out our guides or contact support