Attachments

Upload an attachment

Changed on

Upload a file that can be referenced in Agent conversations.

post/attachment/v1/upload

Request

  • Base URL
    https://api.langdock.com
  • URL
    https://api.langdock.com/attachment/v1/upload
  • Auth
    HTTP bearer

Request body multipart/form-data

filestring binary required

The file to upload

Response

Successfully uploaded file

attachmentIdstring uuid required

Unique identifier for the uploaded attachment

Example response

{
  "attachmentId": "550e8400-e29b-41d4-a716-446655440000",
  "file": {
    "name": "example.pdf",
    "mimeType": "application/pdf",
    "sizeInBytes": 1234567
  }
}

Changes