curl --request POST \
--url https://app.usertick.com/api/public/v1/media \
--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/media', 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/media"
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 picture
Uploads one picture as a multipart/form-data part named file: at most 10 MB, a PNG, JPG, WebP or GIF whose content is that format. Its metadata, such as a photo’s location, is removed before it is stored, and it counts toward the plan’s media storage. An app’s or an AI assistant’s picture lands among its member’s own uploads (inLibrary false), as one picked in Usertick does, and an API key’s in the organization’s library. At most 200 uploads a day per credential (429 PUB-020-001 with Retry-After). Videos are uploaded in Usertick, and the API never deletes a file. Needs the member’s permission to manage surveys. Recorded in the audit log as made through the credential. 201 with the file as GET /media lists it.
Scopes: media:write, surveys:read.
curl --request POST \
--url https://app.usertick.com/api/public/v1/media \
--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/media', 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/media"
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.