CRMchat APIBeta
Telegram APIMessages

messages.checkUrlAuthMatchCode

POST
/workspaces/{workspaceId}/telegram-accounts/{accountId}/call/messages.checkUrlAuthMatchCode

Validate the match code selected by the user against the code shown on the login page, as part of the OAuth authorization flow ». Only usable when both match_codes and match_codes_first are set in the RawUrlAuthResultRequest returned by messages.RawRequestUrlAuthRequest. If true is returned, proceed with the login flow and pass the verified code to messages.RawAcceptUrlAuthRequest.match_code.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

workspaceId*string

Workspace ID

accountId*string

Telegram account ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

params*

Validate the match code selected by the user against the code shown on the login page, as part of the OAuth authorization flow ». Only usable when both match_codes and match_codes_first are set in the RawUrlAuthResultRequest returned by messages.RawRequestUrlAuthRequest. If true is returned, proceed with the login flow and pass the verified code to messages.RawAcceptUrlAuthRequest.match_code.

Response Body

application/json

application/json

curl -X POST "https://example.com/workspaces/string/telegram-accounts/string/call/messages.checkUrlAuthMatchCode" \  -H "Content-Type: application/json" \  -d '{    "params": {      "url": "string",      "matchCode": "string"    }  }'
{  "result": true}