Count completed trial receipts by manual, setup, recurring, and purchase kind. Use this report for your Telegram subscription bot or Discord subscription bot project.
GET/v2/projects/{project_id}/analytics/trials
Authorization
Bearer API KeyRequired
API key scope:analytics:charts:read for restricted keys. Unrestricted project keys also support this endpoint.
Path Parameters
project_idstringrequired
Project UUID.
Query Parameters
fromstring
First UTC calendar day, YYYY-MM-DD; default to minus 29 days.
tostring
Last UTC calendar day inclusive, YYYY-MM-DD; default today.
intervalstring
day (default), week (ISO Monday start), or month (calendar).
Dates must be real calendar days between 2000-01-01 and 2099-12-31, with from no later than to and at most 366 days inclusive. Unknown query parameters are rejected. There is no request body. See the shared analytics date, money, and cache rules.
Each receipt is classified once, in that order, so the kinds do not overlap. Counts describe trial receipts, not distinct users or confirmed membership grants. Paid and unreadable receipts are excluded. Settlement time, or creation time when absent, determines the bucket. More than 100,000 receipts up to the window end returns 413; a narrower window may not help.