API Reference
Complete REST API documentation for building integrations and custom applications with 8bit-ai.
RESTful API
Standard HTTP methods and JSON responses
API Keys
Secure authentication with rotating keys
Rate Limiting
1,000 requests/min on Pro, unlimited Enterprise
Webhooks
Real-time event notifications
SDKs Available
JavaScript, Python, Go, Ruby
OpenAPI Spec
Full OpenAPI 3.0 specification available
Base URL
https://api.8bit-ai.com/v1All API requests should be made to this base URL. Include your API key in the Authorization header.
API Endpoints
Authentication
/api/v1/auth/loginAuthenticate and get access token
/api/v1/auth/refreshRefresh expired access token
/api/v1/auth/logoutInvalidate current session
Workflows
/api/v1/workflowsList all workflows
/api/v1/workflowsCreate new workflow
/api/v1/workflows/{id}Get workflow details
/api/v1/workflows/{id}Update workflow
/api/v1/workflows/{id}Delete workflow
/api/v1/workflows/{id}/executeTrigger workflow execution
AI Agents
/api/v1/agentsList all AI agents
/api/v1/agentsCreate new AI agent
/api/v1/agents/{id}Get agent configuration
/api/v1/agents/{id}Update agent settings
/api/v1/agents/{id}/invokeInvoke AI agent
Executions
/api/v1/executionsList workflow executions
/api/v1/executions/{id}Get execution details
/api/v1/executions/{id}/logsGet execution logs
/api/v1/executions/{id}/retryRetry failed execution
Integrations
/api/v1/integrationsList available integrations
/api/v1/integrations/{id}Get integration details
/api/v1/connectionsCreate integration connection
/api/v1/connectionsList active connections
Code Examples
cURL
curl -X POST https://api.8bit-ai.com/v1/workflows \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Customer Onboarding",
"trigger": "webhook",
"steps": [...]
}'JavaScript
const response = await fetch('https://api.8bit-ai.com/v1/workflows', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: 'Customer Onboarding',
trigger: 'webhook',
steps: [...]
})
});
const workflow = await response.json();Python
import requests
response = requests.post(
'https://api.8bit-ai.com/v1/workflows',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
json={
'name': 'Customer Onboarding',
'trigger': 'webhook',
'steps': [...]
}
)
workflow = response.json()Get Your API Key
Sign up for free and start building with the 8bit-ai API today.