tebarDocs
GuideDevelopersAPI ReferenceChangelog
Insights

Get account insights

GET
/v1/accounts/{id}/insights

metrics is comma-separated (default: every metric of the platform). from and to are YYYY-MM-DD (default: the last 30 days, at most 365); tz is an IANA time zone (default UTC). 400 invalid_metric, 400 invalid_range.

Requires the read scope.

Authorization

bearer
headerAuthorizationBearer <token>

An API key (tb_live_...) from the dashboard, or an OAuth access token.

Path Parameters

id*string
Formatuuid

Query Parameters

metrics?string
from?string
Match^\d{4}-\d{2}-\d{2}$
to?string
Match^\d{4}-\d{2}-\d{2}$
tz?string
Lengthlength <= 64

Header Parameters

Tebar-Profile?string

Limits an owner key to one profile (id or external_id). Unknown: 404 profile_not_found.

Response Body

Daily values and totals per metric.

Example Request
curl -X GET 'https://api.tebar.app/v1/accounts/497f6eca-6276-4993-bfeb-53cbbbba6f08/insights'
Example Response
Empty