Describe the authenticated organization
curl --request POST \
--url https://api.datalane.com/v1/org/describe \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.datalane.com/v1/org/describe"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.datalane.com/v1/org/describe', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"organization": {
"id": "<string>",
"name": "Acme Robotics"
},
"credits": {
"smb": 1000,
"researchAgents": 500
},
"enrichment": {
"enrichingAccounts": 1200,
"maxEnrichingAccounts": 10000
}
},
"error": null
}{
"data": null,
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {
"issues": [
"<string>"
]
}
}
}{
"data": null,
"error": {
"code": "invalid_api_key",
"message": "<string>"
}
}{
"data": null,
"error": {
"code": "internal_error",
"message": "Internal error."
}
}Organization
Describe the authenticated organization
POST
/
v1
/
org
/
describe
Describe the authenticated organization
curl --request POST \
--url https://api.datalane.com/v1/org/describe \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.datalane.com/v1/org/describe"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.datalane.com/v1/org/describe', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"organization": {
"id": "<string>",
"name": "Acme Robotics"
},
"credits": {
"smb": 1000,
"researchAgents": 500
},
"enrichment": {
"enrichingAccounts": 1200,
"maxEnrichingAccounts": 10000
}
},
"error": null
}{
"data": null,
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {
"issues": [
"<string>"
]
}
}
}{
"data": null,
"error": {
"code": "invalid_api_key",
"message": "<string>"
}
}{
"data": null,
"error": {
"code": "internal_error",
"message": "Internal error."
}
}Use this operation to verify authentication and plan enrichment work against the organization’s current capacity.
credits.smb reports the balance available for account and contact enrichment. credits.researchAgents reports the balance available for Research Agent runs. enrichment.enrichingAccounts reports how many accounts are currently enriching across the organization, including campaigns launched from the UI. Subtract it from enrichment.maxEnrichingAccounts to get the number of accounts a new enrichment can include. The count is a point-in-time value: concurrent launches can change it between this call and a subsequent enrich.