This is the self-hosted authentication flow.
If you're looking for the cloud version click here to view the cloud authentication guide.
POST {{YOUR_DOMAIN}}/api/v1/issue-token
{
"username": {{YOUR_EMAIL}},
"password": {{YOUR_PASSWORD}},
"client_name": {{YOUR_APPLICATION_NAME}},
"client_vendor":{{YOUR_COMPANY_NAME}}
}
Response:
{
"is_ok": true,
"token": {{YOUR_TOKEN}}
}
cURL
curl -X POST <YOUR_DOMAIN>/api/v1/issue-token \
-H "Content-Type: application/json" \
-d '{
"username": {{YOUR_EMAIL}},
"password": {{YOUR_PASSWORD}},
"client_name": {{YOUR_APPLICATION_NAME}},
"client_vendor": {{YOUR_COMPANY_NAME}}
}'
Response:
{
"is_ok": true,
"token": {{YOUR_TOKEN}}
}
GET {{YOUR_DOMAIN}}/api/v1/projects
Headers:
X-Angie-AuthApiToken: {{TOKEN}}
cURL
curl -X GET https://app.activecollab.com/1/api/v1/projects \
-H "X-Angie-AuthApiToken: {{TOKEN}}"
Response:
[
{
"id": 1,
"class": "Project",
"url_path": "/projects/1",
"name": "Project",
...
},
...
]