Get upload token
GET
/api/v2/client/upload-token
const url = 'https://app.affisemmp.com/api/v2/client/upload-token';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://app.affisemmp.com/api/v2/client/upload-token \ --header 'Authorization: Bearer <token>'Generate a temporary JWT upload token for authenticated file uploads. This token should be used as Bearer token with the upload endpoints to upload large files (such as APK files). Token is valid for 5 minutes and can only be used once.
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Success
Media type application/json
object
upload_token
string
expires_in
integer
Example
{ "upload_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...", "expires_in": 300}No associated client
Media type application/json
object
error
string
Example
{ "error": "User has no associated client"}