List Batch Sessions
GET /v1/batch-sessions — listBatchSessions
import { client, BatchSessions } from 'anchorbrowser';
// ANCHORBROWSER_API_KEY is read from the environment by default;
// set it explicitly like this:
client.setConfig({ auth: () => 'your-api-key' });
const result = await BatchSessions.listBatchSessions();
console.log(result);
from anchorbrowser import Anchorbrowser
# ANCHORBROWSER_API_KEY is read from the environment by default;
# set it explicitly with Anchorbrowser(api_key="your-api-key")
client = Anchorbrowser()
result = client.batch_sessions.list_batch_sessions()
print(result)
Create Batch Sessions
POST /v1/batch-sessions — createBatchSession
import { client, BatchSessions } from 'anchorbrowser';
// ANCHORBROWSER_API_KEY is read from the environment by default;
// set it explicitly like this:
client.setConfig({ auth: () => 'your-api-key' });
const result = await BatchSessions.createBatchSession({
body: {
count: 1
}
});
console.log(result);
from anchorbrowser import Anchorbrowser
# ANCHORBROWSER_API_KEY is read from the environment by default;
# set it explicitly with Anchorbrowser(api_key="your-api-key")
client = Anchorbrowser()
result = client.batch_sessions.create_batch_session(
count=1,
)
print(result)
Get Batch Session Status
GET /v1/batch-sessions/{batch_id} — getBatchSession
import { client, BatchSessions } from 'anchorbrowser';
// ANCHORBROWSER_API_KEY is read from the environment by default;
// set it explicitly like this:
client.setConfig({ auth: () => 'your-api-key' });
const result = await BatchSessions.getBatchSession({
path: {
batch_id: 'your-batch-id'
}
});
console.log(result);
from anchorbrowser import Anchorbrowser
# ANCHORBROWSER_API_KEY is read from the environment by default;
# set it explicitly with Anchorbrowser(api_key="your-api-key")
client = Anchorbrowser()
result = client.batch_sessions.get_batch_session(
"your-batch-id",
)
print(result)
Update Batch Session
PATCH /v1/batch-sessions/{batch_id} — updateBatchSession
import { client, BatchSessions } from 'anchorbrowser';
// ANCHORBROWSER_API_KEY is read from the environment by default;
// set it explicitly like this:
client.setConfig({ auth: () => 'your-api-key' });
const result = await BatchSessions.updateBatchSession({
path: {
batch_id: 'your-batch-id'
},
body: {
status: 'cancelled'
}
});
console.log(result);
from anchorbrowser import Anchorbrowser
# ANCHORBROWSER_API_KEY is read from the environment by default;
# set it explicitly with Anchorbrowser(api_key="your-api-key")
client = Anchorbrowser()
result = client.batch_sessions.update_batch_session(
"your-batch-id",
status="cancelled",
)
print(result)
Delete Batch Sessions
DELETE /v1/batch-sessions/{batch_id} — deleteBatchSession
import { client, BatchSessions } from 'anchorbrowser';
// ANCHORBROWSER_API_KEY is read from the environment by default;
// set it explicitly like this:
client.setConfig({ auth: () => 'your-api-key' });
const result = await BatchSessions.deleteBatchSession({
path: {
batch_id: 'your-batch-id'
}
});
console.log(result);
from anchorbrowser import Anchorbrowser
# ANCHORBROWSER_API_KEY is read from the environment by default;
# set it explicitly with Anchorbrowser(api_key="your-api-key")
client = Anchorbrowser()
result = client.batch_sessions.delete_batch_session(
"your-batch-id",
)
print(result)
Retry Failed Batch Sessions
POST /v1/batch-sessions/{batch_id}/retry — retryBatchSession
import { client, BatchSessions } from 'anchorbrowser';
// ANCHORBROWSER_API_KEY is read from the environment by default;
// set it explicitly like this:
client.setConfig({ auth: () => 'your-api-key' });
const result = await BatchSessions.retryBatchSession({
path: {
batch_id: 'your-batch-id'
},
body: {}
});
console.log(result);
from anchorbrowser import Anchorbrowser
# ANCHORBROWSER_API_KEY is read from the environment by default;
# set it explicitly with Anchorbrowser(api_key="your-api-key")
client = Anchorbrowser()
result = client.batch_sessions.retry_batch_session(
"your-batch-id",
)
print(result)

