Before you start
- API:
https://api.segmnt.cloud GET /v1/billing/planuses your session cookie (the dashboard session).GET /v1/projects/{projectId}/usageaccepts a project API key (Authorization: Bearer sk_...) or your session cookie.- Days are UTC dates in the form
YYYY-MM-DD.
1. Usage of one project
GET /v1/projects/{projectId}/usage returns the stored seconds of the project
and the minutes watched in a date range. It also returns your plan, its limits,
and what is left of them for the whole account: your stored time as it is now,
and this month’s watched minutes. A project API key is enough for all of this —
no dashboard session.
planIdis the plan of the account the project belongs to (free,starter,prooragency).planStatusis one ofactive,pilot,past_due,canceled— the same values asGET /v1/billing/plan. While a pilot is inside its 30-day window, thelimitsin the answer are the pilot limits, not the plan’s own limits.currentPeriodis the current UTC month. Thestartis inclusive and theendis exclusive. The monthly counters reset when a new period starts.limitsare the limits of the account’s plan. Inlimits,nullmeans no limit.accountUsageis the usage of the whole account (every project together): stored seconds now, and watched minutes in the current period.remainingis what is left of each limit: the limit minus the account usage. It counts the whole account: stored time as it is now, and watched minutes for the current month, no matter whichfrom/torange you asked for. It is never below0, and it isnullwhen that limit does not exist.- All of this works with a project API key. You do not need the dashboard
session that
GET /v1/billing/planneeds (section 2). storedSecondsis the total length of the project’s videos now, not only in the period. It counts videos that are encoding, ready or held for review, and it uses quality weighting. Deleting a video lowers it on the next call.watchedMinutescounts only the period you asked for.- A project API key works only for its own project. A key for another project
gets
404 not_found, the same as an unknown project. fromafterto, or a bad date, gets400 invalid_request.
2. Your plan, limits and usage
GET /v1/billing/plan returns your plan, its status, the current period, the
limits and your usage for the account.
plan.nameisPilotwhile a pilot account is inside its 30-day window.statusis one ofactive,pilot,past_due,canceled.currentPeriodis the current UTC month. Watched minutes reset at the start of each month. Thestartis inclusive and theendis exclusive.- In
limits,nullmeans no limit. maxQualityis the highest height you may play (720= 720p,1080= 1080p,2160= 4K): Free plays up to 720p, Starter up to 1080p. Pro and Agency are set to allow up to 4K, but 4K playback is Coming soon and not reachable today. See Feature status.whiteLabeltells you if you may hide our logo.usageis for the whole account: stored seconds now, watched minutes in the current period, and verified domains.- This call needs the session cookie. An API key cannot read it. To read your
plan, limits and what is left of them with an API key, use
GET /v1/projects/{projectId}/usage(section 1). It returns the samelimitsplusremaining: what is left of your stored time and of this month’s watched minutes.
3. Limits
- The monthly counters (new uploads and watched minutes) reset at the start of each UTC month. Stored hours do not reset; they fall when you delete a video. A pilot is different: its new uploads are capped for the whole pilot, not per month.
- The new-upload counter counts the videos you created in the month. An upload that is created but never completed does not count (it records no length). A video that is completed and then deleted does count in the month it was created: deleting frees stored hours, not the new-upload counter.
- The pilot runs for 30 days and needs no credit card. When it ends, the account returns to its plan (usually Free).
- Paid plan numbers come from the plan catalog. Paid plans are not on sale yet; see Plans, payment and the paid-plan whitelist for the prices and how to join the paid-plan whitelist.
- Encoding has no slot limit for your account. Videos from all customers go
into one shared encode queue. They start in arrival order as the encoder has
room. A complete-upload for a valid upload always answers
202, even when many videos are waiting. A waiting video showsprocessinguntil it is ready. How long a video waits depends on the queue, so we do not promise a time. See Uploading many videos (bulk import). - Uploads open at once is the number of uploads a project can have open
(created, not yet completed, not expired). The eleventh create answers
429 too_many_open_uploads. Complete or cancel one open upload, then create again. A completed upload is no longer open, even while its video encodes. - The
limitsresponse has no per-plan encode limit. Nothing holds back your uploads or your videos because of your plan.
4. Quality weighting
Hours count by the quality of the source file, for stored time and for uploaded time:
Example: a 30-minute 4K lesson counts as 2 hours of stored time. A 30-minute
1440p lesson counts as 1 hour. This keeps the low price honest for everyone: a
4K file costs us more to store and to send.
5. What happens at a limit
When the account is over a limit, the API answers403 plan_limit_reached on
the action that would pass it. It can happen on:
The encode queue does not work like the limits above. It never refuses a file
and never answers
403. A complete-upload for a valid upload answers 202.
The video waits in the shared queue as processing. For the full pattern, see
Uploading many videos (bulk import).
What stops depends on the plan:
- Free, Starter and Pilot: uploads stop at the limit, and playback stops at the watched-minutes limit. Starter’s wall is watch time.
- Pro and Agency: uploads stop at the limit. Playback never stops: past the included minutes, extra watch time is 5 SAR per 1,000 watched minutes before VAT and is added to your next invoice. No “call sales” wall and no sudden stop.
GET /v1/billing/plan returns the extra watched minutes in
usage.overageMinutes. This number is always 0 for Free, Starter and
Pilot: those plans stop playback at the watched-minutes limit, so they are
never billed for overage. The pay-as-you-go amount applies only to Pro and
Agency, where you can see it here before the next invoice. The overage is
billed per started minute past the limit, from the raw watched seconds, and
it appears on your next invoice. The overage record is written now; adding
it to the payment provider’s invoice is a later step.
You do not lose data. Delete videos or remove
domains to go back under a limit, or upgrade to raise it. When the month (or the
pilot) ends, the counters reset.
6. Errors
Errors useapplication/problem+json. Use the code field in your code, not
the text. The type field links to https://docs.segmnt.cloud/errors/{code}.
Tested against the current release
Checked on 14 Oct 2026:GET /v1/billing/planwith no session →401 unauthorized.GET /v1/projects/{projectId}/usagewith no credential →401 unauthorized.POSTon both routes →405 method_not_allowed.
remaining fields on GET /v1/projects/{projectId}/usage
were added in v0.19.0 (23 Oct 2026). Our API unit tests cover them, including
that remaining is null when a limit does not exist and 0 when the account
is at or past a limit.
Checked against the code for release v0.21.0, 28 Nov 2026:
- Complete-upload for a valid upload answers
202. Nothing in the complete path answers429because the encoder is busy. - The 10-open-uploads limit is checked when an upload is created, for every plan.
- No plan value is used to hold back an upload or a video.
403 plan_limit_reached cases on upload,
playback link, project and domain) is proved end to end by our tests.
The route behaviour and the limit checks are also covered by our API unit tests.