---
title: "Solve image captcha"
method: POST
path: "/v1/sessions/{sessionId}/captchas/solve-image"
tags: ["Captchas"]
---

# Solve image captcha

`POST /v1/sessions/{sessionId}/captchas/solve-image`

Solves an image captcha using XPath selectors

## Path parameters

- `sessionId` string, uuid, required

## Request body

- SolveImageCaptchaRequest
  - `imageXPath` string, required — XPath to the captcha image element
  - `inputXPath` string, required — XPath to the captcha input element
  - `url` string — URL where the captcha is located. Defaults to the current page URL

## Response `200`

Default Response

- CaptchaActionResponse
  - `message` string — Response message
  - `success` boolean, required — Whether the action was successful

## Other responses

- `400` — An error response from the API
- `500` — An error response from the API

## Changes

- **2026-06-16** `7b73b0d57792` — 1 breaking
  - request body became required
- **2026-06-07** `4985d7bcd32f` — 2 breaking, 2 info
  - added the pattern `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$` to the `path` request parameter `sessionId`
  - for the `path` request parameter `sessionId`, the format changed from no format to `uuid`
  - added the optional property `linkToDocs` to the response with the `400` status
  - added the optional property `linkToDocs` to the response with the `500` status
- **2026-01-08** `97dcad9b050e` — 2 info
  - the response property `context/items/params` became required for the status `400`
  - the response property `context/items/params` became required for the status `500`
- **2025-07-27** `e9cf72266a1c` — 2 warning
  - removed the optional property `broadcasted` from the response with the `200` status
  - removed the optional property `requested` from the response with the `200` status
- **2025-07-06** `c74e7376ab15` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/steel-dev/apis/steel-api/changes/v1/sessions/:sessionId/captchas/solve-image/post.md)

---

[API](https://skmtc.dev/steel-dev/apis/steel-api.md) · [All operations](https://skmtc.dev/steel-dev/apis/steel-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/steel-dev/steel-api/revisions/2248d956188a/schema)
