Skip to main content
POST
Attaching a file to an announcement 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 or coverImage on Create Announcement or Update Announcement.
Announcements must be on your workspace’s plan. Otherwise every Announcements endpoint returns 403 with “Workspace doesn’t have “Announcements” feature activated.”

Permissions

The key acts as its default user, or the user in the x-client-user header (who must be in the workspace). That user needs Create & Manage Own Announcements or Manage All Announcements.

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 application/pdf. 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 or coverImage.

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