Run in Apifox
This endpoint generates a JWT-formatted token valid for 3600 seconds. Enterprise users are required to use this endpoint for authentication. The token must be included in the Authorization header (e.g., Bearer <token>) for subsequent API calls.
Request Add parameter in header x-api-key
Example: x-api-key: ********************
Body Params application/json
{
"acctId" : 12345 ,
"secret" : "your-app-secret"
} Request Code Samples
curl --location --request POST '/token' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"acctId": 12345,
"secret": "your-app-secret"
}' Responses
{
"token" : "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzZXNzaW9uSW5mbyI6eyJhY2NvdW50SWQiOjE2ODE2LCJyb2xlVHlwZSI6MiwiY2xpZW50QWRtaW5JZCI6MzUwMDgsImNsaWVudEFkbWluTGFuZyI6MSwibG9jYWxlIjoiZW5fVVMiLCJvcGVyYXRvcklkIjpudWxsfSwic3ViIjoiRmxlZXRVcCBPcGVuQVBJIiwiaXNzIjoiRmxlZXRVcCIsImV4cCI6MTc0MDYzNjc1MiwiaWF0IjoxNzQwNjMzMTUyfQ.55h5E0ZHCmODAGjeDQidJqSi-2G8ky_oNLvwhWVPBmA"
} Modified at 2025-02-28 08:12:14