Skip to main content
GET
/
user
/
{identifier}
/
resources
Python
from acontext import AcontextClient

client = AcontextClient(api_key='sk_project_token')

# Get user resource counts
resources = client.users.get_resources('[email protected]')
print(f"Spaces: {resources.spaces_count}")
print(f"Sessions: {resources.sessions_count}")
print(f"Disks: {resources.disks_count}")
print(f"Skills: {resources.skills_count}")
{
  "code": 123,
  "error": "<string>",
  "msg": "<string>",
  "data": {
    "counts": {
      "disks_count": 123,
      "sessions_count": 123,
      "skills_count": 123,
      "spaces_count": 123
    }
  }
}

Authorizations

Authorization
string
header
required

Project Bearer token (e.g., "Bearer sk-ac-xxxx")

Path Parameters

identifier
string
required

User identifier string

Response

200 - application/json

OK

code
integer
error
string
msg
string
data
object