Skip to main content
POST
Edit and resend

Authorizations

api_key
string
header
required

Personal API key.

Path Parameters

app_id
string
required

ID of the app whose builder chat this request acts on.

Body

application/json
message_id
string
required

ID of the message you are replacing. Everything from this message onwards is undone before the new one is sent.

Example:

"7f3a1c88-52d4-4a0e-9b31-2c6f0d8e4a19"

content
string
required

What to send instead. Up to 100,000 characters.

Example:

"Add a contact form to the home page, with a phone field"

file_urls
string[]

URLs of files to attach to the new message.

Example:

Response

The app once the replacement turn finished.

The app document the chat endpoints return once a turn settles.

The real payload is the whole app document, so this is a strict subset: the fields a caller needs to see what the turn did and whether it succeeded.

id
string | null

ID of the app.

Example:

"6820f3a4e7b91d003c45a1f2"

name
string | null

Display name of the app.

Example:

"My CRM"

status
AppStatusResponse · object | null

The app's build status once the request returned. Read state to tell a finished turn from one that is still processing or that failed.

conversation
ChatTurnConversation · object | null

The app's conversation, including the messages this request produced.