Skip to main content
POST
Prompt a coding agent (Claude Code, Codex) in a sandbox

Authorizations

Authorization
string
header
required

Your Styne API key: Authorization: Bearer $STYNE_API_KEY.

Path Parameters

id
string
required

Body

application/json

Send a prompt to the coding agent in the sandbox.

prompt
string

The prompt (also accepted as message or text).

harness
string

The agent to run, for example claude-code.

model
string

Model the agent uses.

new
boolean

Start a new conversation.

conversationId
string

Continue this conversation.

env
object

The customer's model credentials and other variables the agent reads.

permissionMode
string

The agent's permission mode.

cwd
string

Working directory.

partial
boolean

Claude Code: stream partial messages.

Response

Success. The answer is described on https://docs.styne.ai/agents.