SocialVerificationService
Unlink Social Account
Unlink the caller's Telegram account, or cancel a Telegram link in progress. Repeating it changes nothing.
Request
curl --request POST \ \
--url 'https://api.testnet.polyester.com/v1/auth/social/verification:unlink' \
--header 'Accept: */*' \
--header 'X-API-KEY-ID: YOUR_API_KEY_ID' \
--header 'X-API-TIMESTAMP: YOUR_API_TIMESTAMP' \
--header 'X-API-SIGNATURE: YOUR_API_SIGNATURE' \
--header 'Content-Type: application/json' \
--data '{
"provider": "TELEGRAM"
}'Responses
{
"verification": {
"attempts": 1,
"challengeCode": "POLY-VERIFY-7K2M",
"displayName": "value",
"errorCode": "USERNAME_INVALID",
"expiresAt": "2025-01-01T00:00:00Z",
"handle": "polyester_trader",
"id": "6ibQM6ok8k",
"lastError": "The profile could not be verified.",
"method": "PROFILE",
"provider": "TWITTER",
"providerUserId": "123456789012345678",
"requestedAt": "2025-01-01T00:00:00Z",
"status": "PENDING_USER_ACTION",
"updatedAt": "2025-01-01T00:00:00Z",
"verifiedAt": "2025-01-01T00:00:00Z"
}
}Provider account to unlink. Only TELEGRAM is accepted.
Verification identifier. Public ID. ConnectRPC carries it as int64 (a decimal string in JSON).
6ibQM6ok8kProvider account being verified.
TWITTERMethod used for this verification. If unspecified at start time, the provider default is used.
PROFILEProvider handle being verified. Handles are returned lowercase and without a leading "@". For Telegram, the username of the account that submitted the code; empty when that account has no username.
polyester_traderStable provider-side user identifier. Empty until verification succeeds, except for Telegram: while the status is STATUS_AWAITING_CONFIRMATION, it is the numeric user ID of the Telegram account that submitted the code, the value ConfirmSocialVerification takes.
123456789012345678Provider display name of the account being verified, for showing it to the user. Telegram only: the account's name, set once the code is submitted. Empty for other providers.
valueChallenge code the user must submit according to the verification method. Discord and Telegram codes are returned only when a challenge is issued. Codes expire after 15 minutes.
POLY-VERIFY-7K2MCurrent verification status.
PENDING_USER_ACTIONTime in UTC when the current challenge code was issued.
2025-01-01T00:00:00ZTime in UTC when the current challenge code expires.
2025-01-01T00:00:00ZTime in UTC when verification succeeded. Empty until status is STATUS_VERIFIED.
2025-01-01T00:00:00ZNumber of recorded provider-check attempts for this challenge.
1Last verification error, if the most recent check failed. Empty when there is no recorded error.
The profile could not be verified.Stable machine-readable error code for the current failed verification. AUTH_UNSPECIFIED when no typed error applies.
USERNAME_INVALIDTime in UTC when this verification state last changed.
2025-01-01T00:00:00Z| Key | HTTP status | Connect code | Error | When |
|---|---|---|---|---|
| unauthenticated | 401 | unauthenticated | Unauthenticated | Authentication required. |
| permission-denied | 403 | permission_denied | Permission Denied | Permission denied. |
| invalid-argument | 400 | invalid_argument | Invalid Argument | Invalid argument. |
| not-found | 404 | not_found | Not Found | Not found. |
| unavailable | 503 | unavailable | Unavailable | Service unavailable. |