Skip to content

Get upload token

GET
/api/v2/client/upload-token
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.

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"
}