Skip to main content
POST
/
sandbox
/
discord
/
{sandbox_id}
/
initialize
Initialize discord sandbox with data
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": {}
}

Authorizations

Authorization
string
header
required

Your Klavis AI API key.

Path Parameters

sandbox_id
string
required

The unique sandbox identifier

Body

application/json

Complete Discord sandbox data structure.

Hierarchy:

  • Channels contain Messages
  • Messages can have Reactions
channels
DiscordChannel · object[] | null

List of channels

Response

Successful Response

Response model for sandbox initialization

sandbox_id
string
required

Sandbox identifier

status
enum<string>
required

Current status

Available options:
idle,
occupied
message
string
required

Initialization result message

records_created
Records Created · object

Count of records created per object type