Skip to main content
POST
/
v1
/
batch-sessions
/
{batch_id}
/
retry
curl --request POST \ --url https://api.anchorbrowser.io/v1/batch-sessions/{batch_id}/retry \ --header 'Content-Type: application/json' \ --header 'anchor-api-key: <api-key>' \ --data ' { "retry_failed_only": true, "max_retries": 1 } '
{
  "data": {
    "batch_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "retried_sessions": 123,
    "message": "<string>"
  }
}
{
  "error": {
    "code": 123,
    "message": "<string>"
  }
}
{
  "error": {
    "code": 123,
    "message": "<string>"
  }
}
{
  "error": {
    "code": 123,
    "message": "<string>"
  }
}
{
  "error": {
    "code": 123,
    "message": "<string>"
  }
}

Authorizations

anchor-api-key
string
header
required

API key passed in the header

Path Parameters

batch_id
string<uuid>
required

The unique identifier of the batch

Body

application/json
retry_failed_only
boolean
default:true

Whether to only retry failed sessions

max_retries
integer
default:1

Maximum number of attempts per failed session. Each session is retried up to this many times, stopping on first success.

Required range: 1 <= x <= 3

Response

Retry initiated successfully

data
object