Admin

AI usage: recent calls, or every call in one run

get/admin/analytics/ai-usage/calls

Request

  • Base URL: https://api.presscart.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.presscart.com/admin/analytics/ai-usage/calls
  • Auth: HTTP bearer

Query parameters

pagenumber nullable

Page number, 1-based. Defaults to 1.

limitnumber nullable

Results per page, from 1 to 100. Defaults to 50.

run_idstring uuid

When given, returns every call in this run oldest first; from, to, feature, provider, and status are ignored.

fromstring

Range start (yyyy-mm-dd), inclusive. Defaults to 30 days before to. Must be a real calendar date when run_id is absent; ignored when run_id is given.

tostring

Range end (yyyy-mm-dd), inclusive. Defaults to today (UTC). The inclusive range cannot exceed 366 days. The range must not be reversed when run_id is absent; ignored when run_id is given.

featurestring

AI usage feature (chat, marketplace_search, opportunities, profile_enrichment, compliance, questionnaire, live_article_check, embeddings, tag_matching, outlet_search, agents) when run_id is absent; ignored when run_id is given.

providerstring

AI provider (gemini, openai, jev, exa, anthropic) when run_id is absent; ignored when run_id is given.

statusstring

Call status (success, error) when run_id is absent; ignored when run_id is given.

Response

Paginated AI calls

total_pagesnumber required
current_pagenumber required
next_pagenumber nullable required
previous_pagenumber nullable required
total_recordsnumber required

Changes

No recorded changes to this operation across all 2 revisions of this API.