給使用者貼上指定標籤
Create a mapping between client tags and clients
Authorizations
Query parameters
botIdstringRequired
The bot ID for the API request
Body
Client identification rules:
- Either provide 'clientId' OR both 'platform' and 'platformClientId'
secretstringRequiredExample:
Secret key for API authentication
your_secret_key_here
tagIdstringRequiredExample:
The client tag ID
clientTag123
clientIdstringOptionalExample:
The client ID (required if platform + platformClientId not provided)
client456
platformstring · enumOptionalExample:
Platform type (required if platformClientId provided)
line
Possible values: platformClientIdstringOptionalExample:
Platform-specific client ID (required if clientId not provided)
U1234567890abcdef
Responses
200
Client tag mapping created successfully
application/json
401
JWT token is invalid or expired
application/json
403
Permission denied or client tag mapping creation failed
application/json
404
OpenAPI configuration not found, client not found, or missing required fields
application/json
429
Rate limit exceeded
application/json
500
Internal server error
application/json
post
POST /api/openapi/clientTagMapping HTTP/1.1
Host: mantago.cc
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 136
{
"secret": "your_secret_key_here",
"tagId": "clientTag123",
"clientId": "client456",
"platform": "line",
"platformClientId": "U1234567890abcdef"
}
{
"success": true,
"message": "Create client tag mapping successfully"
}
Last updated