Skip to main content
POST
Attaching a file to an action takes two steps:
  1. Call this endpoint with the file’s name. It returns a presigned url and a file key.
  2. PUT the file’s bytes to url.
Then send the key in attachments on Create Action or Complete Action.
Actions must be enabled for your workspace. Contact Xenia to enable it. Until then, this endpoint returns 403 with “Actions are not enabled for this workspace.”
This endpoint is open to client keys only in the workspace-scoped form shown above.

Path parameters

string<uuid>
required
UUID of the workspace. Must be the workspace your API key is bound to.

Body

string
required
The file’s name, with an extension the app accepts: images, video, audio, PDF, Office and text documents, CSV, email, ZIP and 7z, and some CAD formats. SVG files and executables are refused. Spaces and characters such as #, %, &, +, and ? are replaced with _ in the returned key.
string
The file’s content type, such as image/jpeg. Defaults to the type for the file’s extension.

Response

Returns 200 with { "data": { "url", "key" }, "meta": {} }.
  • url is a presigned upload URL. It’s valid for 15 minutes.
  • key is the file key to send in attachments.

Uploading the file

PUT the file’s bytes to url, with a Content-Type header that matches mimeType (or the type for the file’s extension, if you didn’t send one). Don’t send your client key or secret: the URL is already signed.

Errors