SocialVerificationService
Get Social Verification
Retrieve current social verification status for the caller.
Request
curl --request GET \ \ --url 'https://api.testnet.polyester.com/v1/auth/social/verification?provider=TWITTER' \ --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'
Responses
{
"verification": {
"attempts": 1,
"challengeCode": "POLY-VERIFY-7K2M",
"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 inspect.
Verification identifier.
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 "@".
polyester_traderStable provider-side user identifier. Empty until verification succeeds.
123456789012345678Challenge code the user must submit according to the verification method. Discord 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.Time in UTC when this verification state last changed.
2025-01-01T00:00:00Z| Key | Status | Error | When |
|---|---|---|---|
| unauthenticated | 401 | Unauthenticated | Authentication required. |
| permission-denied | 403 | Permission Denied | Permission denied. |
| invalid-argument | 400 | Invalid Argument | Invalid argument. |
| not-found | 404 | Not Found | Not found. |
| unavailable | 503 | Unavailable | Service unavailable. |