/api/v1/plansTrenger ingen sesjonList the plans with their names, prices and credits
Parametre
| Navn | Hvor | Type | Påkrevd | Beskrivelse |
|---|---|---|---|---|
country | query | string | — | — |
Svar
- 200OK
application/jsonPublicPlanResponse[]- 400The request could not be read as the route needs it: a body that is not the documented shape (a required field left out, a null where none is allowed, a value too long for its field), a parameter that does not parse, or a NUL character anywhere (#3540, #3541, #3543). Code validation_failed or value_too_long.
application/problem+jsonProblemDetails- 426The build named in X-App-Version is below its platform's version floor (ADR-070). Problem type app-version-unsupported; the only way forward is the store. Callers without the header are never turned away.
application/problem+jsonProblemDetails- 429Too many calls in the window; Retry-After says how long.
application/problem+jsonProblemDetails- Hoder
Retry-After- — Seconds to wait when a rate limit answered or the server is down for maintenance, or an HTTP date when the household's AI is paused. Absent when the household's AI quota for the period is used up — that resets by itself.
- 503The server is down for maintenance (#4693). Retry-After says when to try again; problem type maintenance. Every call under /api answers this while maintenance mode is on, the version floor included.
application/problem+jsonProblemDetails- Hoder
Retry-After- — Seconds to wait when a rate limit answered or the server is down for maintenance, or an HTTP date when the household's AI is paused. Absent when the household's AI quota for the period is used up — that resets by itself.
Eksempel
curl \
"https://bryti.app/api/v1/plans"Eksempel på svar
application/json[
{
"code": "string",
"name": "string",
"priceMonthMinor": 0,
"priceCurrency": "string",
"monthlyCredits": 0,
"welcomeCredits": 0,
"purchasable": false,
"priceSet": true
}
]