User Conversion Verification API
If your app cannot use the SDK, you can develop this API to verify whether a user has successfully converted to the advertiser's product.
Tips
This feature is currently available to selected users only.
Overview
Advertisers provide this API to verify if a user has successfully converted to their product.
Ton AI will request the advertiser's API with the user's Telegram ID for verification. 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
Example
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"
Failed Verification 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 is logged into your app, you should record the user's login information and Telegram ID. Then, develop this API to return whether the user is logged in.
How to Submit the API
Please contact us on Telegram and provide your API address.