v1

latestOpenAPI 3.1.02026-07-2295105298.6 KB
Groups

List Groups

Returns all groups for your organization, including associated websites. Requires a global API key. Partner integrations may pass external_id as a query parameter to find the Athena group mapped to a partner-supplied identifier.

get/api/v1/groups

Query parameters

external_idstring

Partner-only. Filter results to the group mapped to this partner-supplied identifier. Accepted only when authenticating with a partner API key — direct customers that pass this parameter receive 403 Forbidden. Exact match, scoped to your organization; unmapped IDs return an empty array.

Response

Successful response with list of groups. Partner responses include an externalId field on each item (string or null); direct-customer responses omit the field entirely.

Example response

{
  "groups": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "name": "Enterprise Clients",
      "orgId": "987e6543-e21b-12d3-a456-426614174000",
      "createdAt": "2024-06-15T10:30:00.000Z",
      "websites": [
        {
          "id": "123e4567-e89b-12d3-a456-426614174000",
          "websiteUrl": "example.com",
          "websiteName": "My Awesome Blog"
        }
      ],
      "externalId": "acct_9e4c1b8d"
    }
  ]
}