Read connected account identity and allowance
curl --request GET \
--url https://api.datalayer.so/v1/account/details \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.datalayer.so/v1/account/details"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.datalayer.so/v1/account/details', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"status": "active",
"as_of": 4503599627370495,
"allowance": {
"total": 4503599627370495,
"used": 4503599627370495,
"remaining": 4503599627370495,
"expires_at": 4503599627370495,
"reserved": 4503599627370495
},
"grants": [
{
"source": "free",
"used": 4503599627370495,
"remaining": 4503599627370495,
"period_start": 4503599627370495,
"expires_at": 4503599627370495,
"profiles": 4503599627370495
}
],
"grants_truncated": true,
"account": {
"id": "<string>",
"name": "<string>",
"email": "<string>"
},
"unit": "credit",
"dashboard_url": "https://app.datalayer.so/#usage"
},
"meta": {
"retrieved_at": "<string>",
"billing_status": "account_included",
"profiles_used": 0,
"credits_used": 0
}
}Developer guides
Get account details
Zero credits, no caller account ID or request body. unit is always credit. Grant profiles is a deprecated alias of credits. remaining excludes reservations; used counts settled credits. No data lookup. Available even without an active grant. GET /v1/account/details is the same read.
Read connected account identity and allowance
curl --request GET \
--url https://api.datalayer.so/v1/account/details \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.datalayer.so/v1/account/details"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.datalayer.so/v1/account/details', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"status": "active",
"as_of": 4503599627370495,
"allowance": {
"total": 4503599627370495,
"used": 4503599627370495,
"remaining": 4503599627370495,
"expires_at": 4503599627370495,
"reserved": 4503599627370495
},
"grants": [
{
"source": "free",
"used": 4503599627370495,
"remaining": 4503599627370495,
"period_start": 4503599627370495,
"expires_at": 4503599627370495,
"profiles": 4503599627370495
}
],
"grants_truncated": true,
"account": {
"id": "<string>",
"name": "<string>",
"email": "<string>"
},
"unit": "credit",
"dashboard_url": "https://app.datalayer.so/#usage"
},
"meta": {
"retrieved_at": "<string>",
"billing_status": "account_included",
"profiles_used": 0,
"credits_used": 0
}
}The assistant tool is
get_account_details. Zero credits and no data lookup. The authenticated credential selects the
account; no caller account ID or request body is accepted. Read saved identity,
status and allowance expiry even without an active grant.
unit is always "credit". allowance.remaining excludes pending
reservations; used is settled usage and reserved is in progress. Active grants
show credits and expiry. profiles on a grant is deprecated and equals credits.
meta.profiles_used is deprecated and is 0. Missing identity fields are null and
must not be invented.