Skip to main content

ZeroPipeline

AI-native CRM and sales pipeline management. Build deal pipelines, track customers, automate workflows, and get revenue analytics — all powered by ZeroDB.

Base URL: https://pipeline.ainative.studio/api/v1 Interactive docs: https://pipeline.ainative.studio/api/v1/docs

Authentication

Authorization: Bearer YOUR_JWT_TOKEN

Or use an API key created via POST /api/v1/api-keys.

# Login
curl -X POST https://pipeline.ainative.studio/api/v1/auth/login \
-H "Content-Type: application/json" \
-d '{"email":"user@example.com","password":"yourpassword"}'

# Response
{
"access_token": "eyJ...",
"refresh_token": "eyJ...",
"token_type": "bearer"
}

Pipelines

MethodPathDescription
POST/pipelinesCreate a pipeline
GET/pipelinesList all pipelines
GET/pipelines/{id}Get pipeline details
PUT/pipelines/{id}Update pipeline
DELETE/pipelines/{id}Delete pipeline
GET/pipelines/{id}/stagesList stages for a pipeline

Stages

MethodPathDescription
POST/stagesCreate a stage
GET/stages/{id}Get stage
PUT/stages/{id}Update stage
DELETE/stages/{id}Delete stage
POST/stages/{id}/reorderReorder stage position

Deals

MethodPathDescription
POST/dealsCreate a deal
GET/dealsList deals (filterable by pipeline, stage, owner)
GET/deals/{id}Get deal
PUT/deals/{id}Update deal
DELETE/deals/{id}Delete deal
POST/deals/{id}/moveMove deal to a different stage
GET/deals/{id}/activitiesList activities on a deal

Customers

MethodPathDescription
POST/customersCreate a customer
GET/customersList customers
GET/customers/{id}Get customer
PUT/customers/{id}Update customer
DELETE/customers/{id}Delete customer
GET/customers/{id}/dealsList deals for a customer

Tasks

MethodPathDescription
POST/tasksCreate a task
GET/tasksList tasks (filter by deal, assignee, due date)
GET/tasks/{id}Get task
PUT/tasks/{id}Update task
DELETE/tasks/{id}Delete task
POST/tasks/{id}/completeMark task complete

Activities

MethodPathDescription
POST/activitiesLog an activity (call, email, meeting, note)
GET/activitiesList activities
GET/activities/{id}Get activity
DELETE/activities/{id}Delete activity

Automations

MethodPathDescription
POST/automationsCreate an automation rule
GET/automationsList automations
PUT/automations/{id}Update automation
DELETE/automations/{id}Delete automation
POST/automations/{id}/toggleEnable or disable automation

Analytics

MethodPathDescription
GET/analytics/revenueRevenue by period
GET/analytics/pipelinePipeline velocity and conversion rates
GET/analytics/dealsDeal win/loss breakdown
GET/analytics/leaderboardRep performance leaderboard

Error Format

{
"detail": "Deal not found",
"error_code": "NOT_FOUND",
"next_action": null
}

Quick Start

# 1. Create a pipeline
curl -X POST https://pipeline.ainative.studio/api/v1/pipelines \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"name": "Sales Q2", "description": "Q2 outbound deals"}'

# 2. Add a stage
curl -X POST https://pipeline.ainative.studio/api/v1/stages \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"pipeline_id": "PIPELINE_ID", "name": "Qualified", "position": 1}'

# 3. Create a deal
curl -X POST https://pipeline.ainative.studio/api/v1/deals \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"pipeline_id": "PIPELINE_ID", "stage_id": "STAGE_ID", "title": "Acme Corp", "value": 15000}'