API Reference
Technical reference for the Accoil APIs.
Accoil exposes two APIs that serve different purposes:
- Ingress API -- send user, account, and event data into Accoil for processing.
- Accounts API -- read engagement metrics, scores, and insights back out of Accoil.
Ingress API
The Ingress API accepts identify, group, and track calls. All requests are sent to:
https://in.accoil.comAll ingress requests are processed asynchronously and return 202 Accepted.
Authentication
v2 endpoints (recommended): Include your API key in the Authorization header using Basic authentication:
Authorization: Basic YOUR_API_KEYv1 endpoints (legacy): Include your API key in the request body as the api_key field.
Your Ingress API key is found in the Accoil dashboard under Account > General settings. Each product has its own key.
Endpoints
| Endpoint | Description |
|---|---|
| POST /v2/identify | Identify a user and set their traits |
| POST /v2/group | Associate a user with an account and set account traits |
| POST /v2/track | Record a user event |
Legacy v1 endpoints are also available under Legacy (v1).
Accounts API
The Accounts API lets you retrieve engagement data from Accoil. All requests are sent to:
https://api.accoil.comAuthentication
Include your API token in the Authorization header using Bearer authentication:
Authorization: Bearer accoil_YOUR_API_TOKENYour Accounts API token is found in the Accoil dashboard under Settings > Product Settings > API Token.
Endpoints
| Endpoint | Description |
|---|---|
| GET /v1/accounts | Retrieve engagement metrics and insights for a customer account |