Skip to main content
Slider drag & drop on phone is a common captcha type. The user drags a small puzzle piece to the correct spot on the background image.

Example of Tiktok slider captcha on phone

1. Create a task

Request

POST https://api.omocaptcha.com/v2/createTask

Code samples

Response

Success:
The server returns errorId = 0 and a taskId when the task is created successfully. Failure:
The server returns errorId = 1 and an errorCode. See the Error codes list.

2. Get the task result

Request

POST https://api.omocaptcha.com/v2/getTaskResult

Response

Success:
The server returns errorId = 0 and status = ready. Read the answer inside solution.
Coordinates are in the pixel space of the original image you submitted. Combine start and end to compute the drag distance, then simulate a natural touch gesture (touchstart → touchmove → touchend) on the phone.
Processing:
The server returns errorId = 0 and status = processing. Wait 2 seconds and query again. Failure:
The server returns errorId = 1. See details at Error codes.