Workspaces

Create an attachment.

Allocates a file attachment in a session and returns a presigned upload URL. PUT the file bytes to upload.url with upload.headers within 15 minutes, then pass attachment.id in the attachments of POST /v0/sessions/{sessionId}/messages. Files can be up to 100 MB and of any type. Attachments can only be added to existing sessions: create the session, upload, then send the message. Attachments are in preview and enabled per user; requests from users without access receive 403.

post/v0/sessions/{sessionId}/attachments

Request

  • Base URL
    https://api.conductor.build (the document declares no server; this is the origin it was published from)
  • URL
    https://api.conductor.build/v0/sessions/{sessionId}/attachments
  • Auth
    HTTP bearer

Path parameters

sessionIdstring required

Request body

attachmentIdstring uuid
filenamestring required
contentTypestring required
byteSizeinteger required

Response

Default Response

Changes

No recorded changes to this operation across all 1 revision of this API.