Ticket messages
Upload a file and receive a single-use token
Streams a file to storage and returns an opaque token. Reference the token in a message's attachment_ids (and, for inline images, embed it in the body as <img src="cid:TOKEN">). Tokens are single-use, scoped to the creating API token, and deleted ~30 minutes after upload if not used. Max 25 MB per file.
post/attachments
Request
- Base URL: https://there-there.app/api
- URL: https://there-there.app/api/attachments
- Auth: HTTP bearer
Headers
X-Workspace-Idinteger
Workspace ID this request targets. Required for tokens that have access to multiple workspaces or to all workspaces. Optional for tokens scoped to a single workspace (auto-resolved). Find the ID under Settings > Account > API Tokens or Settings > Workspace > General.
Response
File parked
Example response
{
"data": {
"token": "upl_screenshot_8f3c1a",
"filename": "screenshot.png",
"mime_type": "image/png",
"size": 84213
}
}Changes
No recorded changes to this operation across all 1 revision of this API.