attachment

Register an uploaded attachment after R2 verification

Changed on
post/api/preview/attachments/confirm

Request

  • Base URL
    https://symbol.chat (the document declares no server; this is the origin it was published from)
  • URL
    https://symbol.chat/api/preview/attachments/confirm
  • Auth
    • HTTP bearer
    • or API key in cookie __Secure-next-auth.session-token
    • or OAuth 2
      Authorization code: https://mcp.symbol.chat/authorize
      Token URL: https://mcp.symbol.chat/token

Request body

capsuleIdstring required

UUID v4 string

fileNamestring required

Original file name; persisted on the row for display.

objectKeystring required

Canonical R2 object key returned from the presign endpoint. Server verifies the prefix matches <userId>/<capsuleId>/ before insert.

Response

Successful response

availableboolean
capsule_idstring nullable
capsule_updated_atstring nullable

Upload confirm only: the capsule's new updated_at when the upload rewrote a file-name embed in its body; null when the body was not changed.

created_atstring
deleted_atstring nullable
embed_markdownstring

Markdown that places this file in a capsule body. Credential-free and durable, unlike any ?cat= URL.

expires_atstring nullable
file_namestring
heightinteger nullable
idstring
mime_typestring
object_keystring
rotation_base_keystring nullable
rotation_base_sizeinteger nullable
rotation_degreesinteger nullable
sizeinteger
unavailable_atstring nullable
unavailable_reasonstring nullable
widthinteger nullable

Changes

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status