Skip to main content
POST
Start a fleet with its first message

Authorizations

Authorization
string
header
required

Send a dashboard session token, an account API key (agt_t), or a command-line credential (afc_) as a Bearer token. Each endpoint lists accepted credential types.

Path Parameters

workspace_id
string
required

Workspace identifier (version 7 universally unique identifier, or UUID).

Body

application/json

POST /v1/workspaces/{workspace_id}/fleets: a person's first message makes an active fleet and its first turn in one transaction.

message
string
required

What to say to the new fleet: 1 to 1,048,576 characters, with no NUL character, counted on the decoded text.

operation_id
string
required

Required retry identifier: a version 7 universally unique identifier (UUID). A retry with the same operation_id and request answers the first fleet; the same key with other text answers 409 UZ-FLEET-004.

Required string length: 36
images
object[]

Images accompanying the first message.

model_ref
string

The workspace model to use; the workspace's selected model when omitted.

Minimum string length: 1
name
string

Validated instance slug; fleet- and the last 12 hex digits of the new fleet's id when omitted.

Required string length: 1 - 64

Response

A repeat of an earlier create: the same fleet and turn

POST /v1/workspaces/{workspace_id}/fleets: the fleet and its first turn.

accepted
object
required

The first message, as the fleet's first turn.

fleet
object
required

The created fleet.

replayed
boolean
required

Whether an earlier create with the same operation_id already made this fleet: true on a repeat, which answers 200.