Group (v1)
Legacy endpoint for group identification.
This is the legacy v1 endpoint. We recommend using POST /v2/group for new integrations.
The v1 group endpoint requires the API key in the request body as api_key rather than in the Authorization header.
POST
Group identify
application/json- body
api_key*stringYour unique Accoil API key. Found under Account > General settings.
timestamp*integerUnix timestamp in milliseconds. Example: 1500000000000
Format
int64group_id*stringA unique identifier for the group or account.
- Use the same ID as in tools like HubSpot or Intercom for seamless integration.
- This allows Accoil-generated metrics to be pushed into these external platforms.
user_id?stringOptional. The identifier of the user being associated with the group.
traits?Optional. Key-value pairs describing the group, such as:
name: The name of the group (e.g., "Acme Corp").created_at: The group's creation date in ISO 8601 format.status: The group's subscription status (e.g., "trial", "paid").mrr: Monthly recurring revenue in cents (e.g., 100000 for $1,000).
Accepted
curl -X POST 'https://in.accoil.com/v1/groups' \ -H 'Content-Type: application/json' \ -d '{ "api_key": "f6ed0379283b149a2fd87a069d2b0d623c601272", "timestamp": 1500000000000, "group_id": "account_22"}'Example Response
Empty