Overview
The Activepieces REST API enables you to programmatically manage flows, run automations, handle connections, and manage projects. Built with Fastify, the API provides a fast and reliable interface for integrating Activepieces into your applications.Base URL
The API base URL depends on your deployment:/api/v1 and use HTTPS.
API Versioning
Activepieces uses URL-based versioning for the API:- Current version: v1
- All endpoints are accessed via
/api/v1/ - Breaking changes will result in a new version (e.g., v2)
Rate Limits
API rate limiting is configurable for authentication endpoints to prevent abuse:Authentication Endpoints
- Enabled by default: Rate limiting on sign-in/sign-up endpoints
- Configurable limits: Set via environment variables
AP_API_RATE_LIMIT_AUTHN_ENABLED- Enable/disable rate limiting (default: true)AP_API_RATE_LIMIT_AUTHN_MAX- Maximum requests per windowAP_API_RATE_LIMIT_AUTHN_WINDOW- Time window for rate limiting
Rate Limit Headers
When rate limiting is enabled, responses include:X-RateLimit-Limit- Maximum requests allowedX-RateLimit-Remaining- Remaining requests in windowX-RateLimit-Reset- Time when the limit resets
Handling Rate Limits
If you exceed the rate limit, you’ll receive a429 Too Many Requests response:
Response Format
All API responses follow a consistent JSON format:Success Response
Error Response
Pagination
List endpoints use cursor-based pagination:limit- Number of items to return (default: 10-50 depending on endpoint)cursor- Cursor from previous response for pagination
Common HTTP Status Codes
| Status Code | Description |
|---|---|
| 200 | Success - Request completed successfully |
| 201 | Created - Resource created successfully |
| 204 | No Content - Request succeeded with no response body |
| 400 | Bad Request - Invalid request parameters |
| 401 | Unauthorized - Missing or invalid authentication |
| 403 | Forbidden - Insufficient permissions |
| 404 | Not Found - Resource not found |
| 429 | Too Many Requests - Rate limit exceeded |
| 500 | Internal Server Error - Server error occurred |
CORS Support
The API supports Cross-Origin Resource Sharing (CORS):- Origin:
*(all origins allowed) - Methods: All HTTP methods supported
- Exposed Headers: All headers exposed
For production deployments, consider configuring CORS to restrict origins to your specific domains.
Next Steps
Authentication
Learn how to authenticate API requests
Flows API
Create and manage automation flows
Flow Runs API
Trigger and monitor flow executions
Connections API
Manage app connections and OAuth