Complete documentation for integrating Elephas AI into your applications
JWT-based auth with refresh tokens and rate limiting
Clean, predictable endpoints following REST principles
Detailed examples and interactive Swagger UI
Get up and running with the Elephas AI API in minutes
Login to your dashboard and navigate to Settings > API Keys
Use your credentials to obtain a JWT access token
curl -X POST https://api.elephas.ai/api/v1/auth/login \
-H "Content-Type: application/json" \
-d '{
"email": "your@email.com",
"password": "your_password"
}'Include the access token in the Authorization header
curl -X GET https://api.elephas.ai/api/v1/campaigns \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"Explore all available endpoints organized by category
/auth/loginUser login - Rate limited to 5 attempts/min
emailstringrequiredUser email addresspasswordstringrequiredUser password{
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"user": {
"id": "uuid",
"email": "user@example.com",
"role": "FRANCHISE_OWNER"
}
}/auth/refreshRefresh access token - Rate limited to 10 attempts/min
refreshTokenstringrequiredValid refresh token{
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}/auth/forgot-passwordRequest password reset - Rate limited to 3 attempts/10min
emailstringrequiredUser email address{
"message": "If the email exists, a password reset link has been sent"
}/auth/reset-passwordReset password using token - Rate limited to 5 attempts/min
tokenstringrequiredPassword reset tokenpasswordstringrequiredNew password (min 8 chars){
"message": "Password reset successfully"
}https://api.elephas.ai/api/v1Content-Type: application/jsonAuthorization: Bearer YOUR_TOKENOur developer support team is here to help you integrate successfully