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",
"status": "pending",
"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>"
}
}Batch Sessions
Retry Failed Batch Sessions
Retries failed sessions in a batch by creating new browser pods for each failed session. The batch status will be set back to ‘processing’.
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",
"status": "pending",
"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
API key for your Anchor Browser account, sent as the anchor-api-key header on every
request. Create one at app.anchorbrowser.io (API Access),
or obtain one programmatically via the unauthenticated agent-access flow
(POST /v1/agent-access).
Path Parameters
The unique identifier of the batch
Body
application/json
Response
Retry initiated successfully
Show child attributes
Show child attributes
Was this page helpful?

