Open API Token與Secret Key換發
Generate or retrieve OpenAPI authentication token and secret
Authorizations
AuthorizationstringRequired
Bearer token for API authentication
Query parameters
botIdstringRequired
The bot ID for the API request
Body
secretstringRequiredExample:
Secret key for API authentication
your_secret_key_hereResponses
200
OpenAPI token information retrieved successfully
application/json
Responseall of
401
JWT token is invalid or expired
application/json
403
Permission denied - insufficient access rights
application/json
404
Resource not found
application/json
429
Rate limit exceeded
application/json
500
Internal server error
application/json
post
/openapi/tokenPOST /api/openapi/token?botId=text HTTP/1.1
Host: mantago.cc
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 33
{
"secret": "your_secret_key_here"
}{
"success": true,
"message": "Operation completed successfully",
"apiToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"apiSecret": "secret_key_here"
}Last updated