Predict with our
REST API
Complete API documentation for the aplil prediction.
QUICK START
Base URL
Authentication
All API requests require authentication using a Bearer token in the Authorization header.
Response Format
All responses are returned in JSON format with appropriate HTTP status codes.
Example Request
# List all projects curl https://api.aplil.com/v1/projects \ -H "Authorization: Bearer aplil_sk_xxxxxxxxxxxxx" \ -H "Content-Type: application/json"
Example Response
{
"data": [
{
"id": "prj_xxxxxxxxxxxxx",
"name": "my-app",
"created_at": "2025-01-15T10:30:00Z",
"status": "active"
}
],
"pagination": {
"total": 42,
"page": 1,
"limit": 20
}
}API Endpoints
Complete reference for all available API endpoints organized by resource type.
PROJECTS
/projectsList all projects in your account
/projectsCreate a new project
{
"name": "string",
"description": "string",
"framework": "string"
}/projects/:idGet detailed information about a specific project
/projects/:idUpdate project settings and configuration
{
"name": "string",
"description": "string",
"settings": "object"
}/projects/:idPermanently delete a project and all its data
DEPLOYMENTS
/deploymentsList all deployments across your projects
/deploymentsTrigger a new deployment
{
"project_id": "string",
"branch": "string",
"environment": "string"
}/deployments/:idGet deployment status and logs
/deployments/:id/rollbackRollback to a previous deployment
{}/deployments/:idCancel an in-progress deployment
DOMAINS
/domainsList all custom domains
/domainsAdd a custom domain to your project
{
"domain": "string",
"project_id": "string"
}/domains/:idGet domain configuration and verification status
/domains/:idRemove a custom domain
ENVIRONMENT VARIABLES
/projects/:id/envList environment variables for a project
/projects/:id/envCreate or update environment variables
{
"key": "string",
"value": "string",
"environment": "string[]"
}/projects/:id/env/:keyDelete an environment variable
LOGS
/logsRetrieve application logs
/logs/streamStream real-time logs via WebSocket
TEAMS
/teamsList all teams you belong to
/teamsCreate a new team
{
"name": "string",
"slug": "string"
}/teams/:id/membersList team members and their roles
/teams/:id/membersInvite a new team member
{
"email": "string",
"role": "admin | member | viewer"
}/teams/:id/members/:user_idRemove a team member
ANALYTICS
/analytics/trafficGet traffic analytics for your projects
/analytics/performanceGet performance metrics and response times
/analytics/errorsGet error rates and types
WEBHOOKS
/webhooksList all configured webhooks
/webhooksCreate a new webhook endpoint
{
"url": "string",
"events": "string[]",
"project_id": "string"
}/webhooks/:idDelete a webhook
Rate Limits
API rate limits vary by plan. All requests return rate limit headers.
FREE
1,000
requests per hour
PRO
50,000
requests per hour
ENTERPRISE
Custom
unlimited
Rate Limit Headers
Need help?
Check out our documentation or reach out to our support team.