PromptFloe Developer Docs
API reference

Chats

The /v1/chats resource — a chat is the durable container for an app's full edit history. Every prompt, build event, and skill run lives on a chat.

#The Chat object

FieldTypeDescription
idstringchat_xxx
workspaceIdstringOwner workspace.
titlestringAuto-generated from the first prompt; editable.
appIdstring | nullThe app currently associated with the chat (if any).
createdAtISO 8601
updatedAtISO 8601

#List chats

GET/v1/chats

#Get a chat

GET/v1/chats/:id

#List messages

GET/v1/chats/:id/messages

Paginated. Returns messages oldest → newest.

#Send a message

POST/v1/chats/:id/messages

Streaming endpoint. The same message router used by the workbench: prose triggers the build pipeline, /+@ trigger skills.

FieldTypeDescription
promptrequiredstringMessage body.
mode"build" | "chat" | "skill"Force routing. Defaults to auto-detect.
augmentersstring[]Augmenters to queue after the build.
for await (const ev of client.chats.sendStream({
  chatId: 'chat_abc',
  prompt: 'Add a FAQ section',
})) {
  console.log(ev.type, ev);
}

#Rename a chat

PATCH/v1/chats/:id

#Delete a chat

DELETE/v1/chats/:id

Cascades to delete the associated app.

#Where to go next

PromptFloe developer docs