會員資料

用會員的經過加密的 MantaGo ID,來取得所屬於某機器人的特定會員之資料

Get specific client

post

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
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 · enumOptional

Platform type (required if clientId is empty)

Possible values:
Body
secretstringRequired

Secret key for API authentication

Example: your_secret_key_here
Responses
200
Client information retrieved successfully
application/json
Responseall of
post
POST /api/openapi/client/{clientId} 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",
  "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": "[email protected]",
    "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"
      }
    ]
  }
}

Last updated