Agents
Get the number of Agents in your personal Space
Returns the number of Agents that belong to no Space — the ones the Control Center lists under “Personal” — as a single total, so callers that only need a count do not have to fetch the full Agent list and count it themselves.
Personal Agents are not reachable through the Space endpoints: “Personal” is not a Space
and has no spaceId, so GET /api/v1/spaces/{spaceId}/agents/count cannot return them.
Use this endpoint for them instead.
Archived Agents are excluded unless includeArchived is set. Organization administrators
also count the personal Agents of other users in their organization, matching the
visibility the other Agent endpoints already grant over those same Agents.
GET
/
api
/
v1
/
agent
/
personal
/
count
cURL
curl https://dashboard.sequentum.com/api/v1/agent/personal/count \
-H "Authorization: ApiKey $SEQUENTUM_API_KEY"
# => { "totalCount": 238 }const res = await fetch("https://dashboard.sequentum.com/api/v1/agent/personal/count", {
headers: {
"Authorization": `ApiKey ${process.env.SEQUENTUM_API_KEY}`,
},
});
const { totalCount } = await res.json();
console.log(`${totalCount} agents in your personal space`);import os
import requests
response = requests.get(
"https://dashboard.sequentum.com/api/v1/agent/personal/count",
headers={"Authorization": f"ApiKey {os.environ['SEQUENTUM_API_KEY']}"},
)
response.raise_for_status()
print(response.json()["totalCount"]) # e.g. 238{
"totalCount": 123
}{
"statusCode": 123,
"statusDescription": "<string>",
"message": "<string>",
"severity": 0,
"errorCode": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}