Open API Token與Secret Key換發

Get OpenAPI token

post

Generate or retrieve OpenAPI authentication token and secret

Authorizations
Query parameters
botIdstringRequired

The bot ID for the API request

Body
secretstringRequired

Secret key for API authentication

Example: your_secret_key_here
Responses
200

OpenAPI token information retrieved successfully

application/json
Responseall of
post
POST /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