from acontext import AcontextClient
client = AcontextClient(api_key='sk_project_token')
# Get unconfirmed experiences
experiences = client.spaces.get_unconfirmed_experiences(
space_id='space-uuid',
limit=20,
time_desc=True
)
for experience in experiences.items:
print(f"{experience.id}: {experience.experience_data}")
# If there are more, use the cursor for pagination
if experiences.has_more:
next_experiences = client.spaces.get_unconfirmed_experiences(
space_id='space-uuid',
limit=20,
cursor=experiences.next_cursor
){
"code": 123,
"error": "<string>",
"msg": "<string>",
"data": {
"has_more": true,
"items": [
{
"created_at": "<string>",
"experience_data": {},
"id": "<string>",
"space_id": "<string>",
"task_id": "<string>",
"updated_at": "<string>"
}
],
"next_cursor": "<string>"
}
}Get all experience confirmations in a space with cursor-based pagination
from acontext import AcontextClient
client = AcontextClient(api_key='sk_project_token')
# Get unconfirmed experiences
experiences = client.spaces.get_unconfirmed_experiences(
space_id='space-uuid',
limit=20,
time_desc=True
)
for experience in experiences.items:
print(f"{experience.id}: {experience.experience_data}")
# If there are more, use the cursor for pagination
if experiences.has_more:
next_experiences = client.spaces.get_unconfirmed_experiences(
space_id='space-uuid',
limit=20,
cursor=experiences.next_cursor
){
"code": 123,
"error": "<string>",
"msg": "<string>",
"data": {
"has_more": true,
"items": [
{
"created_at": "<string>",
"experience_data": {},
"id": "<string>",
"space_id": "<string>",
"task_id": "<string>",
"updated_at": "<string>"
}
],
"next_cursor": "<string>"
}
}Project Bearer token (e.g., "Bearer sk-ac-xxxx")
Space ID
Limit of confirmations to return, default 20. Max 200.
Cursor for pagination. Use the cursor from the previous response to get the next page.
Order by created_at descending if true, ascending if false (default false)
OK