Skip to main content
POST
Upload media
Put the response’s url, mime_type and file_name into a template’s media. You can also use any public https link instead of uploading.

Authorizations

x-api-key
string
header
required

Workspace API key from Developers → API keys. It starts with tc_live_.

Headers

x-file-name
string

File name, URL-encoded, e.g. invoice.pdf.

Body

The body is of type file.

Response

Stored. Use these fields as a template's media.

id
string<uuid>
url
string
Example:

"https://truecaller.udchowdhury.me/m/1c9e…/invoice.pdf"

mime_type
string
Example:

"application/pdf"

file_name
string
Example:

"invoice.pdf"

size
integer
Example:

48213