Open API Token與Secret Key換發
Generate or retrieve OpenAPI authentication token and secret
Authorizations
Query parameters
botIdstringRequired
The bot ID for the API request
Body
secretstringRequiredExample:
Secret key for API authentication
your_secret_key_here
Responses
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
POST /api/openapi/token HTTP/1.1
Host: mantago.cc
Authorization: Bearer JWT
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