Skip to main content

Welcome to the Adapter API

The Adapter API allows you to programmatically interact with your connected data sources. Query your data, manage connections, and build intelligent applications powered by concept understanding and knowledge graphs.

Base URL

All API requests should be made to:
https://api.adapter.com/v1

Authentication

All API endpoints require authentication using an API key in the Authorization header:
curl https://api.adapter.com/v1/connections \
  -H "Authorization: Bearer ak_live_your_api_key_here"
Never expose your API keys in client-side code or public repositories. Always use environment variables.

API Keys & Permissions

API keys can have different permission levels:
  • Read-Only: Can only query and retrieve data
  • Write: Can query and modify data
  • Full Access: Complete access including deleting connections
See the API Keys Guide for more information on creating and managing keys.

Response Format

All responses are returned in JSON format:
{
  "data": { ... },
  "total": 10
}

Errors

The API uses standard HTTP status codes and returns error details in JSON:
{
  "error": "unauthorized",
  "message": "Invalid or missing API key",
  "details": {
    "code": "INVALID_KEY"
  }
}

Common Status Codes

CodeDescription
200Success
201Created
204No Content (successful deletion)
400Bad Request - Invalid parameters
401Unauthorized - Invalid or missing API key
403Forbidden - Insufficient permissions
404Not Found
429Too Many Requests - Rate limit exceeded
500Internal Server Error

Rate Limits

API requests are rate-limited based on your plan:
PlanRequests/minRequests/day
Free6010,000
Pro600100,000
EnterpriseCustomCustom
Rate limit headers are included in every response:
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 58
X-RateLimit-Reset: 1644249600

SDKs & Libraries

npm install @adapter/sdk
import { client, AdapterClient } from "@adapter/sdk";

client.setConfig({
  baseUrl: "https://api.adapter.com",
  headers: { Authorization: `Bearer ${process.env.ADAPTER_API_KEY}` },
});

const adapter = new AdapterClient();
const { data } = await adapter.listConnections();

OpenAPI Specification

View the full OpenAPI spec: openapi.json

Available Endpoints

Explore the API endpoints using the navigation on the left, or jump to: