Skip to content

Support

support_attachment_finalize

Confirm that an upload landed.

Tool

support_attachment_finalize

Confirm that an upload landed.

Confirm that an upload landed. Storage is asked whether the object exists and how large it is; if it is not there the call is refused and the attachment stays pending. On success the attachment becomes uploaded — it can now be named in support_message_create and carries a download URL. Calling it again on an uploaded attachment is safe and simply returns a fresh download URL

Behavior

HTTP
POST /support/attachments/finalize

Arguments

NameTypeRequiredDescription
attachmentIdstringThe attachment whose upload should be confirmed, as returned by the create call

Response

FieldTypeAlwaysDescription
idstringAttachment id
statusstringpending: the row exists and an upload URL was issued, but no bytes have been confirmed. uploaded: finalize saw the object in storage. Only uploaded attachments can be attached to a message or downloaded
fileNamestringDisplay name of the file
threadIdstringThread this attachment belongs to
createdAtstringISO-8601 creation timestamp
messageIdstringThe message that carries this attachment, or null while nothing claims it yet
sizeBytesintegerSize in bytes: what the caller declared while the attachment is pending, what storage reported once it is uploaded
uploadedAtstringISO-8601 timestamp of the confirmed upload, or null while pending
contentTypestringMIME type declared when the attachment was created
downloadUrlstringShort-lived signed URL to read the uploaded file

Try it

Confirm that an upload landed.

When to use

Confirm that an upload landed. Storage is asked whether the object exists and how large it is; if it is not there the call is refused and the attachment stays pending. On success the attachment becomes uploaded — it can now be named in support_message_create and carries a download URL. Calling it again on an uploaded attachment is safe and simply returns a fresh download URL

Example

Ask your agent something like this:

Confirm that an upload landed.

The agent will invoke support_attachment_finalize with these arguments:

{
  "attachmentId": "<attachmentId>"
}

Esc

Start typing to search the docs.

navigateselect