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:GET_FILES
required

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

Allowed value: "GET_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
required

The grant code.

action
string
required

Action the code is restricted to.

data
object
required

Additional data passed when generating the code.

applicationId
string
required

ID of the application that this code is for.

apiKeyId
string
required

ID of the API key that generated and owns this code.

expiresAt
string<date-time>
required
createdAt
string<date-time>
required