cURL
curl --request POST \ --url https://api.klavis.ai/sandbox/discord/{sandbox_id}/initialize \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "channels": [ { "channel_id": "<string>", "messages": [ { "content": "<string>", "reactions": [ { "name": "<string>" } ] } ] } ] } '
{ "sandbox_id": "<string>", "status": "idle", "message": "<string>", "records_created": {} }
Initialize the sandbox with discord-specific data following the defined schema.
Your Klavis AI API key.
The unique sandbox identifier
Complete Discord sandbox data structure.
Hierarchy:
List of channels
Show child attributes
Discord channel ID (auto-discovered if not provided)
Messages in this channel
Message text content
Reactions to this message
Emoji (Unicode like '👍' or custom 'name:id')
Successful Response
Response model for sandbox initialization
Sandbox identifier
Current status
idle
occupied
Initialization result message
Count of records created per object type