API Introduction
Integrate ajan's powerful AI capabilities into your applications with our comprehensive API suite
Overview
The ajan API provides programmatic access to state-of-the-art AI models while maintaining enterprise-grade security and compliance. Whether you're building custom applications, automating workflows, or enhancing existing systems, our API offers the flexibility and power you need.
Available APIs
Completion API
Access leading language models from OpenAI, Anthropic, Mistral, and Google for text generation, analysis, and reasoning tasks.
- OpenAI Chat Completions - GPT and reasoning models
- OpenAI Responses - Stateless Responses format for Codex and compatible clients
- Anthropic API - Claude models
- Google API - Gemini models
- Mistral API - Mistral models
Embedding API
Generate high-quality embeddings for semantic search, similarity matching, and RAG applications.
- OpenAI Embeddings - Text embeddings for various use cases
Agent API
Create and manage custom AI agents programmatically with specialized knowledge and capabilities.
- Agent API Guide - Complete guide to using agents
- Managing Agents - Create and configure agents
- Agent Models - Available models for agents
- Upload Attachments - Add documents to agents
Knowledge Folder API
Manage Knowledge bases programmatically for RAG and document processing. These resources appear as Knowledge bases in the Library.
- Sharing: Share Knowledge bases
- List Knowledge bases: Discover Knowledge bases the key can use
- Share access: Grant, change, or revoke access
- Update Knowledge base: Rename a Knowledge base
- Upload Files: Add documents
- Search: Search within Knowledge bases
Prompt Library API
Create, update, and manage prompts and prompt folders programmatically. Requests require an API key with the PROMPT_API scope.
- Prompt Library Overview - Complete guide to the Prompt Library API
Integrations API
Create and manage custom integrations with external services programmatically.
- Integrations Overview - Complete guide to integrations API
Skills API
Create, import, update, and manage reusable Skills programmatically. Requests require an API key with the SKILL_API scope.
- Skills Overview - Complete guide to the Skills API
Usage Export API
Export usage data for analytics, billing, and compliance reporting.
- Usage Export Guide - Export users, agents, models, projects, and workflows
Workflow Run Export API
Export workflow run and node execution data as JSON for analysis and debugging.
- Workflow Run Export Guide - Export workflow run data for a workflow
User Management API
Programmatically invite users, change an active member's system role, and deactivate members.
- Invite Users - Invite users to your workspace via email
- Update User Role - Change a member's system role to member, editor, or admin
- Deactivate User - Remove a user from your workspace
Audit Logs API
Retrieve a record of workspace activity for security monitoring and compliance.
- Introduction to Audit Logs - Query and filter workspace audit log entries
Getting Started
Base URL
For standard ajan Cloud users, use the following base URL for all API requests:
https://api.ajan.ioIf your organization uses a dedicated ajan deployment (custom domain), your base URL follows this pattern:
https://<your-domain>/api/publicFor example, if your ajan instance is at https://ajan.yourcompany.com, the API base URL would be:
https://ajan.yourcompany.com/api/publicAuthentication
All API requests require authentication using a Bearer token:
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://api.ajan.io/openai/eu/v1/chat/completionsCreate a personal API key for completion requests under your own identity, or ask a workspace admin for a workspace API key with the scopes your integration needs.
Security Note:
Rate Limits
API requests are subject to rate limiting to ensure fair usage and system stability. The default limits are 500 RPM (requests per minute) and 150,000 TPM (tokens per minute). RPM is enforced per workspace, model, and API key. TPM is shared by all API keys using the same model in a workspace. Workspace admins who are not on BYOK can request higher limits from Model quotas in Settings > Workspace > Products > API. On dedicated deployments, admins can also set custom limits per model in the same API settings. See Workspace Settings.
Key Features
- GDPR Compliant β All API operations maintain full GDPR compliance with data processing in EU regions
- Multiple Models β Access models from OpenAI, Anthropic, Mistral, and more through a unified interface
- Enterprise Security β SOC 2 certified infrastructure with end-to-end encryption and audit logging
- BYOK Support β Bring Your Own Key (BYOK) option for enhanced control over API access
- Cookbook β Self-contained, runnable recipes for building on ajan
Use Cases
- Custom Applications: Build AI-powered features into your applications
- Workflow Automation: Automate document processing and analysis
- Data Analysis: Extract insights from large volumes of text data
- Content Generation: Create high-quality content at scale
- Semantic Search: Implement intelligent search across your knowledge base
Support
For API support and questions reach out to us at support@ajan.com.