Skip to content
GitHubLog inStart free
cetra is not released yet. These docs describe the development version.

Read the org's entitlements

GET
/api/v1/orgs/{org}/entitlements
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.

org
required
string

Org UUID or slug.

The org’s entitlements.

Media typeapplication/json

GET /api/v1/orgs/{org}/entitlements (D-P-15).

object
features
required

Features the org may use now, in a fixed order.

Array<string>
Allowed values: retention_management project_roles sso_enforcement org_sso saml scim audit_log
limits
required

The org’s limits (D-P-13).

object
audit_retention_days

Audit log retention in days. Omitted: the instance’s audit.retention_days; 0: kept forever.

integer format: int64
data_access_days

How many days of data the org may read.

integer format: int64
ingest_burst

Ingest burst, spans.

integer format: int64
ingest_spans_per_sec

Sustained ingest rate, spans per second.

integer format: int64
max_active_issue_sources

Enabled issue sources of active projects.

integer format: int64
max_active_online_rules

Active online evaluation rules.

integer format: int64
max_alert_rules

Alert rules.

integer format: int64
max_annotation_queues

Annotation queues.

integer format: int64
max_projects

Projects.

integer format: int64
max_seats

Seats.

integer format: int64
units_cap

Hard cap on units.

integer format: int64
units_included

Units included in the plan.

integer format: int64
plan
required

The org’s plan (D-P-32).

object
add_ons
required

Add-ons, e.g. teams.

Array<string>
expires_at

Omitted with the defaults.

string format: date-time
grace_ends_at

Omitted with the defaults.

string format: date-time
id

Plan id from the token. Omitted with the defaults.

string
name
required

Display name.

string
source
required

Where the plan comes from.

string
Allowed values: defaults token
status

Omitted with the defaults.

string
Allowed values: active grace
upgrade_url

Where an Upgrade button goes. Omitted when the instance sets none.

string
usage
required

The org’s units this month (D-P-16).

object
month
required

YYYY-MM.

string
notice
required

Usage level against units_included.

string
Allowed values: none warning reached
resets_at
required

00:00 UTC on the 1st of the next month.

string format: date-time
units
required

Units so far this month, flushed or not.

integer format: int64

Example

{
"features": [
"retention_management"
],
"plan": {
"source": "defaults",
"status": "active"
},
"usage": {
"notice": "none"
}
}

No credentials, or the credentials are invalid.

Media typeapplication/problem+json

RFC 7807 problem document.

Spec 09 § Conventions.

object
code
required

Machine-readable error code.

string
Allowed values: bad_request invalid_filter query_failed query_timeout query_too_large too_many_traces too_many_items busy restore_mode unauthorized forbidden sso_required email_not_verified plan_limit plan_required scim_managed owner_not_allowed not_found method_not_allowed payload_too_large unsupported_media_type range_not_satisfiable conflict authorization_pending slow_down access_denied expired_token quota_exceeded rate_limited internal
detail

Extra explanation. Omitted when absent.

string
errors

Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.

Array<object>

One field that failed validation.

Spec 09 § Conventions.

object
field
required

Request field, query parameter, or expression the error refers to.

string
message
required

What is wrong with the field.

string
position

Location inside the field value, for filter and SQL errors.

object
column
required

1-based column number, in characters.

integer format: int32
line
required

1-based line number, in characters.

integer format: int32
status
required

HTTP status code.

integer format: int32
title
required

Short human-readable summary, the reason phrase of status.

string
type
required

Problem type URI. Always about:blank in this version.

string

Example

{
"code": "bad_request"
}

The credentials do not allow this operation, or the organization’s plan does not include it (code plan_required).

Media typeapplication/problem+json

RFC 7807 problem document.

Spec 09 § Conventions.

object
code
required

Machine-readable error code.

string
Allowed values: bad_request invalid_filter query_failed query_timeout query_too_large too_many_traces too_many_items busy restore_mode unauthorized forbidden sso_required email_not_verified plan_limit plan_required scim_managed owner_not_allowed not_found method_not_allowed payload_too_large unsupported_media_type range_not_satisfiable conflict authorization_pending slow_down access_denied expired_token quota_exceeded rate_limited internal
detail

Extra explanation. Omitted when absent.

string
errors

Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.

Array<object>

One field that failed validation.

Spec 09 § Conventions.

object
field
required

Request field, query parameter, or expression the error refers to.

string
message
required

What is wrong with the field.

string
position

Location inside the field value, for filter and SQL errors.

object
column
required

1-based column number, in characters.

integer format: int32
line
required

1-based line number, in characters.

integer format: int32
status
required

HTTP status code.

integer format: int32
title
required

Short human-readable summary, the reason phrase of status.

string
type
required

Problem type URI. Always about:blank in this version.

string

Example

{
"code": "bad_request"
}

The resource does not exist.

Media typeapplication/problem+json

RFC 7807 problem document.

Spec 09 § Conventions.

object
code
required

Machine-readable error code.

string
Allowed values: bad_request invalid_filter query_failed query_timeout query_too_large too_many_traces too_many_items busy restore_mode unauthorized forbidden sso_required email_not_verified plan_limit plan_required scim_managed owner_not_allowed not_found method_not_allowed payload_too_large unsupported_media_type range_not_satisfiable conflict authorization_pending slow_down access_denied expired_token quota_exceeded rate_limited internal
detail

Extra explanation. Omitted when absent.

string
errors

Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.

Array<object>

One field that failed validation.

Spec 09 § Conventions.

object
field
required

Request field, query parameter, or expression the error refers to.

string
message
required

What is wrong with the field.

string
position

Location inside the field value, for filter and SQL errors.

object
column
required

1-based column number, in characters.

integer format: int32
line
required

1-based line number, in characters.

integer format: int32
status
required

HTTP status code.

integer format: int32
title
required

Short human-readable summary, the reason phrase of status.

string
type
required

Problem type URI. Always about:blank in this version.

string

Example

{
"code": "bad_request"
}

Too many requests.

Media typeapplication/problem+json

RFC 7807 problem document.

Spec 09 § Conventions.

object
code
required

Machine-readable error code.

string
Allowed values: bad_request invalid_filter query_failed query_timeout query_too_large too_many_traces too_many_items busy restore_mode unauthorized forbidden sso_required email_not_verified plan_limit plan_required scim_managed owner_not_allowed not_found method_not_allowed payload_too_large unsupported_media_type range_not_satisfiable conflict authorization_pending slow_down access_denied expired_token quota_exceeded rate_limited internal
detail

Extra explanation. Omitted when absent.

string
errors

Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.

Array<object>

One field that failed validation.

Spec 09 § Conventions.

object
field
required

Request field, query parameter, or expression the error refers to.

string
message
required

What is wrong with the field.

string
position

Location inside the field value, for filter and SQL errors.

object
column
required

1-based column number, in characters.

integer format: int32
line
required

1-based line number, in characters.

integer format: int32
status
required

HTTP status code.

integer format: int32
title
required

Short human-readable summary, the reason phrase of status.

string
type
required

Problem type URI. Always about:blank in this version.

string

Example

{
"code": "bad_request"
}