Skip to content

Set the instructions the sandbox's agent follows

PUT
/sandboxes/{id}/agent/v1/instructions
curl --request PUT \
--url https://api.global.stillbox.example/v1/sandboxes/ws-7k2m9q4x8w3z5r6t/agent/v1/instructions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "text": "example" }'

The agent follows them from its next message. Empty text removes them.

id
required
string
Media typeapplication/json
object
text
required

Plain text or Markdown, as you’d write to a new colleague.

string
<= 20000 characters

Example generated

{
"text": "example"
}

The instructions

Media typeapplication/json
object
text
required

Plain text or Markdown, as you’d write to a new colleague.

string
<= 20000 characters

Example generated

{
"text": "example"
}

The request is invalid

Media typeapplication/json
object
code
required
string
message
required
string

Example

{
"code": "not_found"
}

No such sandbox in your organization (or no such file)

Media typeapplication/json
object
code
required
string
message
required
string

Example

{
"code": "not_found"
}