Read current workspace provider benefits
curl --request GET \
--url https://code.deepline.com/api/v2/billing/entitlements \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://code.deepline.com/api/v2/billing/entitlements', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://code.deepline.com/api/v2/billing/entitlements"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"org_id": "<string>",
"as_of": 123,
"plan": {
"sku": "<string>",
"name": "<string>",
"catalog_revision": "<string>",
"included_credits": 123,
"interval": "<string>"
},
"benefits": {
"quickenrichUnlimited": {
"status": "<string>",
"value": {
"enabled": true,
"requestsPerMinute": 123
},
"expiresAt": 123
},
"peopleSearch": {
"status": "<string>",
"value": {
"enabled": true,
"requestsPerMinute": 123,
"profilesPerMonth": 123,
"overageCreditsPerProfile": 123
},
"usage": {
"month": "<string>",
"limit": 123,
"consumed": 123,
"remaining": 123,
"periodStartsAt": 123,
"resetsAt": 123,
"resetsOn": "<string>"
},
"expiresAt": 123
},
"includedStorage": {
"status": "<string>",
"usage": {
"limit": 123,
"consumed": 123,
"remaining": 123,
"measuredDay": "<string>",
"overageCharged": true
}
}
},
"effective_limits": {
"quickenrichUnlimited": {
"baseline": 123,
"effective": 123,
"source": "plan",
"override_expires_at": 123
}
}
}{
"error": "Unauthorized"
}{
"error": "Unauthorized"
}Billing
Read current workspace provider benefits
Returns retained plan terms and paid provider benefit availability. Execution rechecks admission.
GET
/
api
/
v2
/
billing
/
entitlements
Read current workspace provider benefits
curl --request GET \
--url https://code.deepline.com/api/v2/billing/entitlements \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://code.deepline.com/api/v2/billing/entitlements', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://code.deepline.com/api/v2/billing/entitlements"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"org_id": "<string>",
"as_of": 123,
"plan": {
"sku": "<string>",
"name": "<string>",
"catalog_revision": "<string>",
"included_credits": 123,
"interval": "<string>"
},
"benefits": {
"quickenrichUnlimited": {
"status": "<string>",
"value": {
"enabled": true,
"requestsPerMinute": 123
},
"expiresAt": 123
},
"peopleSearch": {
"status": "<string>",
"value": {
"enabled": true,
"requestsPerMinute": 123,
"profilesPerMonth": 123,
"overageCreditsPerProfile": 123
},
"usage": {
"month": "<string>",
"limit": 123,
"consumed": 123,
"remaining": 123,
"periodStartsAt": 123,
"resetsAt": 123,
"resetsOn": "<string>"
},
"expiresAt": 123
},
"includedStorage": {
"status": "<string>",
"usage": {
"limit": 123,
"consumed": 123,
"remaining": 123,
"measuredDay": "<string>",
"overageCharged": true
}
}
},
"effective_limits": {
"quickenrichUnlimited": {
"baseline": 123,
"effective": 123,
"source": "plan",
"override_expires_at": 123
}
}
}{
"error": "Unauthorized"
}{
"error": "Unauthorized"
}Authentication: workspace API key in
Authorization: Bearer <key>.
Errors
| Status | Meaning |
|---|---|
| 401 | The request conflicts with current state or a retained request identity. |
| 503 | A required service is unavailable. Respect Retry-After when present. |
Authorizations
Create a workspace API key in the Deepline dashboard before calling authenticated endpoints.