curl --request POST \
--url https://app.usertick.com/api/public/v1/support/uploads \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file=@example-fileconst form = new FormData();
form.append('file', '<string>');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
fetch('https://app.usertick.com/api/public/v1/support/uploads', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.usertick.com/api/public/v1/support/uploads"
files = { "file": ("example-file", open("example-file", "rb")) }
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, files=files, headers=headers)
print(response.text)Upload a file for a new support ticket
Uploads one file for the first message of a ticket the member opens next with POST /support/tickets, which names it in uploadIds. The file is one multipart/form-data part named file: at most 20 MB, a PNG, JPEG, WebP or GIF picture, a PDF, plain text or a CSV file, the type read from its content. A member holds at most 20 files that no message took (409 SUP-005-409); one that waits more than 24 hours is deleted. Files stay private to the ticket and never count toward the organization’s media storage. Support tickets come with the paid plans (403 SUP-004-001 on Free). A ticket belongs to a person: an app or an AI assistant acts as the member it signed in as, and an API key, which acts as its organization, is 403 PUB-017-002. 201 with the upload.
Scopes: support:write.
curl --request POST \
--url https://app.usertick.com/api/public/v1/support/uploads \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file=@example-fileconst form = new FormData();
form.append('file', '<string>');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
fetch('https://app.usertick.com/api/public/v1/support/uploads', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.usertick.com/api/public/v1/support/uploads"
files = { "file": ("example-file", open("example-file", "rb")) }
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, files=files, headers=headers)
print(response.text)Authorizations
Headers
Any 1 to 255 printable ASCII characters, without a space at either end. The answer to the first request with a key is kept for 24 hours per credential: the same request again gets it back (Idempotent-Replayed: true), another request with the key is 409 PUB-002-002, and while the first still runs 409 PUB-002-003. A server error is not kept, and a request that never answered frees its key after 2 minutes: a retry with the key then runs again.
255Body
Response
Uploaded.
A file waiting for its message. Nobody else sees it until the message is sent, and one that no message takes within 24 hours is deleted.