Get entitlements
GET
CoderSessionTokenheader
Coder-Session-Token<token>OK
application/json- response
errors?array<string>features?has_license?booleanrefreshed_at?stringFormat
date-timerequire_telemetry?booleantrial?booleanwarnings?array<string>The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.
curl -X GET \ "$CODER_URL/api/v2/entitlements" \ -H "Coder-Session-Token: $CODER_SESSION_TOKEN"Example Response200
{ "errors": [ "string" ], "features": { "property1": { "actual": 0, "actual_ms": 0, "enabled": true, "entitlement": "entitled", "hard_limit": 0, "limit": 0, "soft_limit": 0, "usage_period": { "end": "2019-08-24T14:15:22Z", "issued_at": "2019-08-24T14:15:22Z", "start": "2019-08-24T14:15:22Z" } }, "property2": { "actual": 0, "actual_ms": 0, "enabled": true, "entitlement": "entitled", "hard_limit": 0, "limit": 0, "soft_limit": 0, "usage_period": { "end": "2019-08-24T14:15:22Z", "issued_at": "2019-08-24T14:15:22Z", "start": "2019-08-24T14:15:22Z" } } }, "has_license": true, "refreshed_at": "2019-08-24T14:15:22Z", "require_telemetry": true, "trial": true, "warnings": [ "string" ]}