GET/mescope: account
Who this key acts for. Call it first.
Response
| Field | Type | Meaning |
|---|---|---|
| plan | string | The plan code: free, starter, pro or business (Premium). |
| availableUnits, includedUnits | integer | Credits available now, and credits the plan includes per period. |
| periodEnd | string or null | When the current billing period ends. |
| watermark | boolean | Whether videos on this plan carry a Chartapir watermark. |
| maxDurationSeconds, maxResolution | integer, string | The longest duration a video may ask for, and the highest resolution, on this plan. |
| key | object | This key: id, name, keyPrefix, scopes, dailyJobCap (its own limit, or null), planDailyJobCap, effectiveDailyJobCap (the limit that applies; null is none), admissionsLast24h, monthlyUnitCap, unitsThisPeriod, createdAt, lastUsedAt. |
| notes | string[] | Plain sentences on how credits are charged and on the watermark. |
Example
curl "$CHARTAPIR_API_URL/me" -H "Authorization: Bearer $CHARTAPIR_API_KEY"