Valid User Verification API
Tips
This feature is currently only available to select users.
Overview
Advertisers provide an API to verify whether a user has successfully converted to their product.
Ton AI will request the advertiser's API with the user’s Telegram ID for verification, and the API will return a string indicating the verification result.
Request Method
GET
Request Parameters
Parameter | Type | Required | Description |
---|---|---|---|
telegram_id | string | Yes | The user's Telegram ID |
Return Value
The return value is a string indicating the verification result:
"true"
: Verification successful"false"
: Verification failed
Examples
Successful Verification Example
curl --location 'https://app.pea.ai/api/v1/common/verify/example/success' \
--header 'Content-Type: application/json' \
--data '{"telegram_id": "123456789"}'
Return Result:
"true"
Verification Failure Example
curl --location 'https://app.pea.ai/api/v1/common/verify/example/fail' \
--header 'Content-Type: application/json' \
--data '{"telegram_id": "987654321"}'
Return Result:
"false"
How to Develop This API
If you need to verify whether a user has logged into your application, you should record the user's login information and Telegram ID. Then, develop this API to return whether the user has logged in.
How to Submit API
Please contact us via Telegram and provide your API endpoint.