Get a signed upload URL
const url = 'https://ads.wortise.com/api/public/v1/assets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/upload-url';const options = { method: 'POST', headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'}, body: '{"filename":"example","mimeType":"image/png","size":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://ads.wortise.com/api/public/v1/assets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/upload-url \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --data '{ "filename": "example", "mimeType": "image/png", "size": 1 }'Mints a signed URL for the asset file, keyed by the caller-generated asset id. PUT the bytes to signedUploadUrl with the same Content-Type, then register the asset with PUT /assets/{id}.
Requires the assets:write scope.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Caller-generated asset UUID v4.
Request Bodyrequired
Section titled “Request Bodyrequired”object
MIME type of the file. The upload PUT must send it as Content-Type.
Responses
Section titled “Responses”The signed upload URL.
object
Example generated
{ "attachmentKey": "example", "extension": "example", "name": "example", "organization": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "path": "example", "team": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "url": "https://example.com", "signedUploadUrl": "https://example.com"}The JSON body is malformed or fails the input validation.
object
Zod issues
object
Location of the invalid field in the procedure input
object
object
TRPC error code, e.g. UNAUTHORIZED, FORBIDDEN, NOT_FOUND, CONFLICT
Example
{ "errors": [ { "code": "custom" } ], "message": "Validation Error"}The API key is missing, invalid, disabled or expired.
object
TRPC error code, e.g. UNAUTHORIZED, FORBIDDEN, NOT_FOUND, CONFLICT
Example
{ "code": "PARSE_ERROR"}The API key lacks the scope, or its owner lacks the dashboard permission.
object
TRPC error code, e.g. UNAUTHORIZED, FORBIDDEN, NOT_FOUND, CONFLICT
Example
{ "code": "PARSE_ERROR"}The API key exceeded its rate limit; retry after the Retry-After seconds.
object
TRPC error code, e.g. UNAUTHORIZED, FORBIDDEN, NOT_FOUND, CONFLICT
Example
{ "code": "PARSE_ERROR"}Headers
Section titled “Headers”Seconds to wait before retrying.
Unexpected server error.
object
TRPC error code, e.g. UNAUTHORIZED, FORBIDDEN, NOT_FOUND, CONFLICT
Example
{ "code": "PARSE_ERROR"}© 2026 Wortise. All rights reserved.