AccountTeam Usage

Team Usage

The plan of a team and how much of it the team uses: prompt credits, domains, AI models, price and included features.

curl --request GET \
  --url 'https://api.aiclicks.io/api/v1/team-usage?team_id=3f2a6b10-9c4d-4e8f-a1b2-c3d4e5f60718&domain_id=8f1d3c0a-2f9b-4c11-9b80-7a82e1f0c3f3' \
  --header 'Authorization: Bearer ak_live_xxx'
{
  "data": {
    "plan": "business",
    "billing_cycle": "monthly",
    "prompts": {
      "limit": 300,
      "remaining": 120,
      "used": 180,
      "scope": "plan allowance, counted across the team"
    },
    "prompts_on_this_brand": 64,
    "competitors": {
      "limit": 10,
      "used": 7,
      "remaining": 3,
      "scope": "per brand"
    },
    "domains": {
      "limit": 10,
      "used": 4
    },
    "models": ["ChatGPT", "Gemini", "AI Overviews", "AI Mode", "Microsoft Copilot", "Claude"],
    "price": {
      "amount": 499.0,
      "currency": "USD",
      "per": "monthly"
    },
    "included": {
      "sentiment": true,
      "api_and_mcp_access": true,
      "blog_drafts_included": 30,
      "keywords_included": 100,
      "pitch_brands_included": 3
    }
  },
  "generated_at": "2026-11-09T10:00:11.218Z",
  "team_id": "3f2a6b10-9c4d-4e8f-a1b2-c3d4e5f60718"
}

This endpoint returns the plan of a team and the usage of that plan. It shows prompt credits, domains, AI models, the plan price and the included features.

If you send a domain_id, the response also shows the tracked prompts and the competitor slots of that brand.

Call this endpoint before you add prompts or competitors in bulk. It tells you how many you can add.

The team_id query parameter is required. To find the team id, use GET /api/v1/validate or GET /api/v1/domains.

Authorizations

header
Authorizationstring
Required

Your API key formatted as Bearer ak_live_<your-key>. Create one in the dashboard under Settings → Developers.

header
X-Request-Idstring

Optional UUID for log correlation. If you do not send one, the server makes one and returns it in the response.

Query parameters

query
domain_idstring

Optional UUID of a domain in this team. If you send it, the response adds prompts_on_this_brand and competitors. If the domain is in a different team, the endpoint returns 400.

Response

dataobject
Required

The plan and its usage.

planstring
Required

Base plan name: starter, pro, business or enterprise.

billing_cyclestring
Required

monthly or yearly.

promptsobject
Required

Prompt credits of the team: limit, remaining, used and scope. The credits are shared by all domains of the team. used is limit minus remaining, and is never below 0.

prompts_on_this_brandinteger

Only with domain_id. Number of tracked prompts on that domain.

competitorsobject

Only with domain_id. Dedicated competitor slots of that domain: limit, used, remaining and scope ("per brand"). used counts active, dedicated competitors.

domainsobject
Required

limit is the number of domains that the plan allows. used is the number of domains in the team.

modelsarray
Required

Display names of the AI models that the team tracks, e.g. "ChatGPT", "Gemini".

priceobject
Required

Plan price as { amount, currency, per }. An empty object {} when the price is not available, for example on custom plans.

includedobject
Required

Features of the plan: sentiment (boolean), api_and_mcp_access (boolean), blog_drafts_included, keywords_included and pitch_brands_included (integers).

team_idstring
Required

Echo of the requested team.

generated_atstring
Required

ISO-8601 timestamp of when the server made this response.

Response headers

HeaderDescription
X-CacheAlways BYPASS. The server does not cache this endpoint.
X-Request-IdUnique request id. Echoes your id if you send one.
X-RateLimit-LimitMaximum requests per minute for this key.
X-RateLimit-RemainingRequests that remain in the current minute.
X-RateLimit-ResetUnix epoch seconds when the window resets.

Caching

The server does not cache this endpoint. Each call returns the current usage.

Errors

400 Bad Requesterror

The domain_id is not in the team of team_id.

401 Unauthorizederror

The API key is missing, not valid, or revoked.

403 Forbiddenerror

Your API key is for a different team. Or the team's developer_access flag is off.

404 Not Founderror

The team_id is not valid or does not exist. Or your user is not a member of the team.

422 Unprocessable Entityerror

The team_id is missing.

429 Too Many Requestserror

You sent too many requests. The Retry-After header tells you how long to wait.