Skip to content
Skip to Content
Coder Docs

Get entitlements

GET
/api/v2/entitlements

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Response Body

OK

application/json
  1. response
errors?array<string>
features?
has_license?boolean
refreshed_at?string
Formatdate-time
require_telemetry?boolean
trial?boolean
warnings?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"  ]}