Token
Create token
Changed onCreate a new authentication token for the authenticated account with custom name and expiration duration.
post/account/tokens
Request
- Base URLhttps://api.testnet.paradex.trade/v1
- AuthAPI key in header Authorization
Request body
Example request
{
"expiry_duration": 86400,
"name": "My Long-term Trading Token"
}Response
Token created successfully
Example response
{
"api_token": {
"created_at": 1640995200,
"expiry_at": 1672531200,
"last_updated_at": 1640995200,
"lookup_id": "uuid-123",
"name": "My API Token",
"token_id": "token_123"
},
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}Changes
- breaking
added required request body
- info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status
- breaking
- info
endpoint added
- info