Skip to main content
POST
Generate grant code

Authorizations

Authorization
string
header
required

Enter your API key using the format Bearer <your-api-key>.

Body

application/json
action
string
default:UPLOAD_FILES
required

Action which the grant code is allowed to execute. [Do not change this!]

Allowed value: "UPLOAD_FILES"
data
object
required
expiresIn
integer

Duration in seconds for which the grant code is valid. Defaults to 300 seconds (5 minutes).

Required range: x >= 1

Response

Grant code generated successfully.

code
string

The generated grant code.