Get Client Profile
Retrieve detailed information about a specific client.
Conditional validation rules:
If clientId (path parameter) is provided, platformClientId and platform are optional
If clientId (path parameter) is empty, both platformClientId and platform are required
Authorizations
AuthorizationstringRequired
Bearer token for API authentication
Path parameters
clientIdstringRequired
The ID of the client to retrieve
Query parameters
botIdstringRequired
The bot ID for the API request
platformClientIdstringOptional
Platform-specific client ID (required if clientId is empty)
platformstring · enumOptionalPossible values:
Platform type (required if clientId is empty)
Body
secretstringRequiredExample:
Secret key for API authentication
your_secret_key_hereResponses
200
Client information retrieved successfully
application/json
successbooleanRequiredExample:
truemessagestringRequiredExample:
Operation completed successfully401
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/client/{clientId}
POST /api/openapi/client/{clientId}?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",
"client": {
"clientId": "U1234567890abcdef",
"clientName": "John Doe",
"clientHeadshot": "https://example.com/avatar.jpg",
"platform": "line",
"remark": "VIP customer",
"isBlock": false,
"customerId": "cust_12345",
"userName": "John Doe",
"userEmail": "john@example.com",
"userPhone": "+886912345678",
"userBirthday": "1990-01-01",
"userAddress": "台北市信義區",
"createdAt": "2023-07-15T10:30:28.700Z",
"updatedAt": "2023-07-15T15:45:12.500Z",
"lastInteractAt": "2023-07-15T14:20:33.800Z",
"autoTags": [
{
"name": "VIP",
"createdAt": "2023-07-15T10:30:28.700Z"
}
],
"tags": [
{
"name": "VIP",
"createdAt": "2023-07-15T10:30:28.700Z"
}
],
"tourTags": [
{
"name": "VIP",
"createdAt": "2023-07-15T10:30:28.700Z"
}
],
"personalTags": [
{
"name": "VIP",
"createdAt": "2023-07-15T10:30:28.700Z"
}
]
}
}