from acontext import AcontextClient
client = AcontextClient(api_key='sk_project_token')
# Confirm experience and save data
confirmation = client.spaces.confirm_experience(
space_id='space-uuid',
experience_id='experience-uuid',
save=True
)
print(f"Saved confirmation: {confirmation.experience_data}")
# Confirm experience without saving (just delete)
client.spaces.confirm_experience(
space_id='space-uuid',
experience_id='experience-uuid',
save=False
){
"code": 123,
"error": "<string>",
"msg": "<string>",
"data": {
"created_at": "<string>",
"experience_data": {},
"id": "<string>",
"space_id": "<string>",
"task_id": "<string>",
"updated_at": "<string>"
}
}Confirm an experience confirmation. If save is false, delete the row. If save is true, get the data first (TODO: process data), then delete the row.
from acontext import AcontextClient
client = AcontextClient(api_key='sk_project_token')
# Confirm experience and save data
confirmation = client.spaces.confirm_experience(
space_id='space-uuid',
experience_id='experience-uuid',
save=True
)
print(f"Saved confirmation: {confirmation.experience_data}")
# Confirm experience without saving (just delete)
client.spaces.confirm_experience(
space_id='space-uuid',
experience_id='experience-uuid',
save=False
){
"code": 123,
"error": "<string>",
"msg": "<string>",
"data": {
"created_at": "<string>",
"experience_data": {},
"id": "<string>",
"space_id": "<string>",
"task_id": "<string>",
"updated_at": "<string>"
}
}Project Bearer token (e.g., "Bearer sk-ac-xxxx")
Space ID
Experience Confirmation ID
Confirmation request with save flag