Docs/Quick Start/Introduction to the Dalil AI API

Introduction to the Dalil AI API

The Dalil AI REST API gives you programmatic access to contacts, deals, sequences, and AI capabilities. Build automations, sync data, and extend Dalil to fit your workflow.

Last updated April 20, 20262 min read

The Dalil AI API is a RESTful API that uses standard HTTP methods, JSON request and response bodies, and Bearer token authentication.

Base URL

All API requests should be made to:

https://api.usedalil.ai/v1

What You Can Build

The API gives you full access to:

  • Contacts: Create, read, update, delete, and enrich contacts
  • Deals: Manage your pipeline programmatically
  • Sequences: Start, pause, and monitor email sequences
  • Analytics: Pull performance data into your own dashboards
  • AI enrichment: Trigger enrichment jobs on demand
  • Webhooks: Receive real-time events when things happen in Dalil

Core Concepts

Resources

Every object in Dalil (a contact, deal, sequence) is a resource with a unique ID.

{
  "id": "cnt_01HXY8Z9A0B1C2D3E4F5G6H7J",
  "type": "contact",
  "email": "sarah@acmecorp.com",
  "first_name": "Sarah",
  "last_name": "Chen",
  "company": "Acme Corp",
  "created_at": "2026-04-15T10:30:00Z"
}

IDs are prefixed by resource type: cnt_ for contacts, deal_ for deals, seq_ for sequences.

Pagination

List endpoints return paginated results:

{
  "data": [...],
  "meta": {
    "total": 1247,
    "page": 1,
    "per_page": 50,
    "next_cursor": "eyJpZCI6ImNudF8wMUhYWThaOUEwQjF..."
  }
}

Use cursor-based pagination for large datasets. Pass cursor=... as a query parameter to get the next page.

Errors

All errors follow a consistent format:

{
  "error": {
    "code": "contact_not_found",
    "message": "No contact found with ID cnt_01HXY8Z9A0B1C2D3E4F5G6H7J",
    "status": 404,
    "request_id": "req_7f8g9h0i"
  }
}

See Errors & Status Codes for the full list.

SDKs

Official SDKs are available for:

LanguagePackageInstall
JavaScript / TypeScript@dalilai/sdknpm install @dalilai/sdk
Pythondalilaipip install dalilai
Gogithub.com/dalil-ai/go-sdkgo get github.com/dalil-ai/go-sdk

Getting Your API Key

  1. Log in to app.usedalil.ai
  2. Go to Settings → API Keys
  3. Click Create new API key
  4. Name your key and set permission scopes
  5. Copy the key — it's only shown once
⚠️

Store your API key securely. Never commit it to source control. Use environment variables in your application.

Next Steps