PopularPlatformSessionAction
Create a persistent browser session for Discord or Riot Games before solving PopularCaptcha challenges.
PopularPlatformSessionAction creates a persistent browser session for Discord or Riot Games. It is the required first step before solving PopularCaptcha challenges on these platforms.
Not for Epic Games
This action is only for Discord and Riot Games. Epic Games does not require a session step — use PopularSessionAction instead.
How it works
Create a browser session — call PopularPlatformSessionAction with the target platform (discord or
riot).
Solve the captcha — pass the returned sessionId into a
PopularCaptchaToken or
PopularCaptchaEnterpriseToken task.
Riot Games
For Riot, set sessionType to "riot", then use:
- Host:
authenticate.riotgames.com - Sitekey:
019f1553-3845-481c-a6f5-5a60ccf6d830
Related tasks
PopularCaptchaTokenPopularCaptchaEnterpriseTokenPopularSessionAction— for Epic Games flowsDiscordAccountRegisterAction— automated Discord account registration
Supported Providers
| Provider | Price per 1,000 |
|---|---|
| $0.10 |
Request Schema
| Field | Type | Description |
|---|---|---|
clientKey* | string | Your API key from the AnySolver dashboard. Example: |
task* | object | |
provider | Specific provider to use. If omitted, automatic routing selects the best provider. Example: | |
selectionMode | Read more at the routing strategies docs. Example: | |
keyPoolMode | Example: |
Task Object Properties
The task field accepts an object with the following properties:
| Field | Type | Description |
|---|---|---|
sessionType* | Target platform for session creation (e.g. "discord", "riot"). Example: |
Example Request
{ "clientKey": "your-api-key-from-dashboard", "task": { "sessionType": "discord", "type": "PopularPlatformSessionAction" }}Response Schema
| Field | Type | Description |
|---|---|---|
status* | Task status: "processing", "ready", or "failed". Example: | |
taskId | string | Unique identifier returned when the task was created. Example: |
errorId* | 0 = success, 1 = external error, 2 = internal error. Example: | |
errorCode | Machine-readable error code (e.g., "CAPTCHA_UNSOLVABLE"). Example: | |
errorDescription | string | Human-readable error message with resolution hints. Example: |
cost | number | Actual cost charged for this task in USD. Example: |
taskType | The type of CAPTCHA task to solve. Example: | |
provider | Specific provider to use. If omitted, automatic routing selects the best provider. Example: | |
solution | object |
Solution Object Properties
The solution field contains an object with the following properties:
| Field | Type | Description |
|---|---|---|
sessionId* | string | The session ID to use for subsequent PopularCaptcha tasks on the target platform. Example: |
userAgent* | string | User-Agent string associated with the created browser session. Example: |
profile | string | Browser profile identifier associated with this session. Example: |
raw* | Record<string, unknown> | Raw provider response data for advanced use cases. |