Authorizations
Project Bearer token (e.g., "Bearer sk-ac-xxxx")
Body
application/json
CreateSpace payload
from acontext import AcontextClient
client = AcontextClient(api_key='sk_project_token')
# Create a space
space = client.spaces.create(configs={"name": "My Space"})
print(f"Created space: {space.id}"){
"code": 123,
"error": "<string>",
"msg": "<string>",
"data": {
"configs": {},
"created_at": "<string>",
"id": "<string>",
"project_id": "<string>",
"updated_at": "<string>"
}
}Create a new space under a project
from acontext import AcontextClient
client = AcontextClient(api_key='sk_project_token')
# Create a space
space = client.spaces.create(configs={"name": "My Space"})
print(f"Created space: {space.id}"){
"code": 123,
"error": "<string>",
"msg": "<string>",
"data": {
"configs": {},
"created_at": "<string>",
"id": "<string>",
"project_id": "<string>",
"updated_at": "<string>"
}
}Project Bearer token (e.g., "Bearer sk-ac-xxxx")
CreateSpace payload