Read the org's entitlements
const url = 'http://localhost:8080/api/v1/orgs/example/entitlements';const options = {method: 'GET', headers: {cookie: 'cetra_session=<cetra_session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:8080/api/v1/orgs/example/entitlements \ --cookie cetra_session=<cetra_session>Features the org may use now and where Upgrade buttons go (D179). Any org member.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Org UUID or slug.
Responses
Section titled “Responses”The org’s entitlements.
GET /api/v1/orgs/{org}/entitlements (D-P-15).
object
Features the org may use now, in a fixed order.
The org’s limits (D-P-13).
object
Audit log retention in days. Omitted: the instance’s audit.retention_days;
0: kept forever.
How many days of data the org may read.
Ingest burst, spans.
Sustained ingest rate, spans per second.
Enabled issue sources of active projects.
Active online evaluation rules.
Alert rules.
Annotation queues.
Projects.
Seats.
Hard cap on units.
Units included in the plan.
The org’s plan (D-P-32).
object
Add-ons, e.g. teams.
Omitted with the defaults.
Omitted with the defaults.
Plan id from the token. Omitted with the defaults.
Display name.
Where the plan comes from.
Omitted with the defaults.
Where an Upgrade button goes. Omitted when the instance sets none.
The org’s units this month (D-P-16).
object
YYYY-MM.
Usage level against units_included.
00:00 UTC on the 1st of the next month.
Units so far this month, flushed or not.
Example
{ "features": [ "retention_management" ], "plan": { "source": "defaults", "status": "active" }, "usage": { "notice": "none" }}No credentials, or the credentials are invalid.
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}The credentials do not allow this operation, or the organization’s plan does not include it (code plan_required).
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}The resource does not exist.
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}Too many requests.
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}