Skip to main content
New to Corsair? See API access, authentication, and error handling.

Agents

create

agents.create Create an Agent. Create a reusable agent. An agent defines a systemPrompt and resultSchema that guide its behavior for every run. Only name is required; an agent created with no systemPrompt behaves like an unconfigured run. Risk: write
Input
Output

delete

agents.delete Delete an Agent. Delete an agent. Runs that already referenced this agent are unaffected. Cannot be undone. Risk: destructive · Irreversible
Input Output

get

agents.get Get an Agent. Retrieve an agent by ID. (GET /v1/agents/{agentId}) Risk: read
Input Output

list

agents.list List Agents. List agents across your account. Supports filtering by creation time. Risk: read
Input Output

runs.create

agents.runs.create Run an Agent. Run a browser agent to complete the task by using web search and browser tooling. Optionally pass agentId to run a custom agent you’ve created. Starts an agent run that uses browser time and model tokens. Risk: destructive · Irreversible
Input
Output

runs.get

agents.runs.get Get a Run. Retrieve the current status and details of a run, including its result and associated session information. To fetch the run’s messages, use List Run Messages. Risk: read
Input Output

runs.list

agents.runs.list List Runs. List runs across your account. Supports filtering by status, by the agent they reference, and by creation time. Risk: read
Input Output

runs.messages

agents.runs.messages List Run Messages. Returns a paginated list of messages produced by a run, in chronological order, with the oldest messages first. Messages conform to the AI SDK UIMessage format. Risk: read
Input Output

runs.resume

agents.runs.resume Resume a Run. Resume a PAUSED run with additional input. The reply in task is delivered to the agent as the answer to its pause request (the trailing pause tool call in the run’s messages), and variables merge over the run’s original variables. Resuming a run that is not paused returns a conflict. Risk: destructive · Irreversible
Input
Output

runs.stop

agents.runs.stop Stop a Run. Request that an in-progress run stop. The run winds down and transitions to STOPPED. Stopping a run that has already finished returns a conflict. Risk: destructive · Irreversible
Input Output

update

agents.update Update an Agent. Update an existing agent. Only the fields provided in the body are modified; omitted fields are left unchanged. Risk: write
Input
Output

Certificates

delete

certificates.delete Delete a Certificate. Delete an uploaded certificate from your project by its ID. Session creation requests that still reference this ID in proxySettings.caCertificates fail with HTTP 400. Cannot be undone. Risk: destructive · Irreversible
Input Output

get

certificates.get Get a Certificate. Retrieve metadata for an uploaded certificate by its ID, including its project ID and timestamps. The PEM content is not returned. Risk: read
Input Output

list

certificates.list List Certificates. List the certificates uploaded to your project. Risk: read
Input: empty object Output: object[]

upload

certificates.upload Upload a Certificate. Upload a PEM file with one or more CA certificates (up to 100 MB). Pass the returned ID in proxySettings.caCertificates when creating a session so the browser trusts these certificates. Risk: write
Input
Output

Contexts

create

contexts.create Create a Context. (POST /v1/contexts) Risk: write
Input Output

delete

contexts.delete Delete a Context. Cannot be undone. (DELETE /v1/contexts/{id}) Risk: destructive · Irreversible
Input Output

get

contexts.get Get a Context. (GET /v1/contexts/{id}) Risk: read
Input Output

Downloads

delete

downloads.delete Delete a Download. Delete a download file from storage and mark as deleted. Cannot be undone. Risk: destructive · Irreversible
Input Output

get

downloads.get Get a Download. Get download metadata (Accept: application/json) or file content (Accept: application/octet-stream). Risk: read
Input Output

list

downloads.list List Downloads. List all downloads for a session with optional filtering and pagination. Risk: read
Input Output

Extensions

delete

extensions.delete Delete an Extension. Cannot be undone. (DELETE /v1/extensions/{id}) Risk: destructive · Irreversible
Input Output

get

extensions.get Get an Extension. (GET /v1/extensions/{id}) Risk: read
Input Output

upload

extensions.upload Upload an Extension. (POST /v1/extensions) Risk: write
Input
Output

Fetch

page

fetch.page Fetch a Page. Fetch a page and return its content, headers, and metadata. A metered read: each call counts against the plan. Risk: read
Input Output

Functions

builds.get

functions.builds.get Get a Function Build. (GET /v1/functions/builds/{id}) Risk: read
Input Output

builds.list

functions.builds.list List Function Builds. (GET /v1/functions/builds) Risk: read
Input Output

builds.logs

functions.builds.logs Get Function Build Logs. (GET /v1/functions/builds/{id}/logs) Risk: read
Input Output

get

functions.get Get a Function. (GET /v1/functions/{id}) Risk: read
Input Output

invocations.get

functions.invocations.get Get an Invocation. (GET /v1/functions/invocations/{id}) Risk: read
Input Output

invocations.logs

functions.invocations.logs Get Invocation Logs. (GET /v1/functions/invocations/{id}/logs) Risk: read
Input Output

invoke

functions.invoke Invoke a Function. Runs the Function on Browserbase compute. Risk: destructive · Irreversible
Input
Output

list

functions.list List Functions. (GET /v1/functions) Risk: read
Input Output

secrets.attach

functions.secrets.attach Attach a Secret to a Function. Attach a secret to a Function, taking effect on the Function’s next invocation. Note: Attaching a secret that is already attached succeeds to support idempotency. Risk: write
Input Output

secrets.detach

functions.secrets.detach Detach a Secret from a Function. Detach a secret from a Function, taking effect on the Function’s next invocation. Note: Detaching a secret that is not attached succeeds to support idempotency. Cannot be undone. Risk: destructive · Irreversible
Input Output

secrets.list

functions.secrets.list List Function Secrets. List secrets attached to a function. Supports filtering by secret creation time. Returns metadata only. Risk: read
Input Output

versions.get

functions.versions.get Get a Function Version. (GET /v1/functions/versions/{id}) Risk: read
Input Output

versions.invocations

functions.versions.invocations List Invocations for a Function Version. Risk: read
Input Output

versions.list

functions.versions.list List Function Versions. (GET /v1/functions/{id}/versions) Risk: read
Input Output

Labels

create

labels.create Create a Label. Create a project-owned label. Risk: write
Input Output

delete

labels.delete Delete a Label. Delete a label and its session assignments, preserving the sessions. Missing and other-project labels are successful no-ops. Cannot be undone. Risk: destructive · Irreversible
Input Output

list

labels.list List Labels. List the project’s labels, newest first. Page by passing the previous response’s nextCursor as cursor; a null nextCursor means there are no further pages. Risk: read
Input Output

update

labels.update Update a Label. Rename a label, preserving its ID, creation time, and session assignments. Risk: write
Input Output

create

navigationPolicies.create Create a Navigation Policy. Create a navigation policy for this project. Omitted fields take the defaults: enabled, block by default, block unknown domains, no category rules, and no overrides. Bind the policy to a session with browserSettings.riskPolicyId. Risk: write
Input
Output

delete

navigationPolicies.delete Delete a Navigation Policy. Delete a navigation policy. New sessions can no longer bind to it; running sessions keep the policy they started with. Cannot be undone. Risk: destructive · Irreversible
Input Output

get

navigationPolicies.get Get a Navigation Policy. Retrieve a single navigation policy by ID. Risk: read
Input Output

list

navigationPolicies.list List Navigation Policies. List the project’s navigation policies, ordered by name. Risk: read
Input: empty object Output

update

navigationPolicies.update Update a Navigation Policy. Update a navigation policy. Omitted fields keep their values; a supplied list replaces the stored list rather than adding to it. The change applies to sessions that start afterwards; running sessions keep the policy they started with. Risk: write
Input
Output

Projects

get

projects.get Get a Project. (GET /v1/projects/{id}) Risk: read
Input Output

list

projects.list List Projects. (GET /v1/projects) Risk: read
Input: empty object Output: object[]

usage

projects.usage Get Project Usage. (GET /v1/projects/{id}/usage) Risk: read
Input Output

web

search.web Web Search. Perform a web search and return structured results. A metered read: each call counts against the plan. Risk: read
Input Output

Secrets

create

secrets.create Create a Secret. (POST /v1/secrets) Risk: write
Input Output

delete

secrets.delete Delete a Secret. Cannot be undone. (DELETE /v1/secrets/{id}) Risk: destructive · Irreversible
Input Output

get

secrets.get Get a Secret. (GET /v1/secrets/{id}) Risk: read
Input Output

keypair

secrets.keypair Get a Keypair. (GET /v1/secrets/keypair) Risk: read
Input: empty object Output

list

secrets.list List Secrets. List project secrets. Supports filtering by creation time. Risk: read
Input Output

update

secrets.update Update a Secret. Replace a secret’s value. The name cannot be changed; to rename, create a new secret and delete the old one. Risk: write
Input Output

Sessions

create

sessions.create Create a Session. Starts a cloud browser that is billed by the minute until it is released or times out. Risk: destructive · Irreversible
Input
Output

debug

sessions.debug Session Live URLs. (GET /v1/sessions/{id}/debug) Risk: read
Input Output

get

sessions.get Get a Session. (GET /v1/sessions/{id}) Risk: read
Input Output

list

sessions.list List Sessions. (GET /v1/sessions) Risk: read
Input Output: object[]

logs

sessions.logs Session Logs. (GET /v1/sessions/{id}/logs) Risk: read
Input Output: object[]

recordingDownloads.create

sessions.recordingDownloads.create Create Session Recording Downloads. Requests one downloadable MP4 per recorded page of a session. Assembly runs asynchronously and every page returns as PENDING. Re-posting re-enqueues all pages and retries any that failed. Poll the GET endpoint for per-page status and, on standard (non-BYOS) projects, download URLs. Risk: write
Input Output

recordingDownloads.list

sessions.recordingDownloads.list List Session Recording Downloads. Returns the per-page download status for a session, with a short-lived signed URL for each completed page on standard (non-BYOS) projects. Risk: read
Input Output

replays.get

sessions.replays.get Get Session Replay. Returns page metadata for a session replay, including timing information and the URL of each page’s HLS playlist. Risk: read
Input Output

replays.page

sessions.replays.page Get Replay Page. Returns an HLS VOD media playlist (.m3u8) for a specific page of a session replay. Risk: read
Input Output

setLabels

sessions.setLabels Set Session Labels. Atomically replace a session’s labels. Returns the response after the assignment commits. Risk: write
Input Output

update

sessions.update Update a Session. Setting status to REQUEST_RELEASE ends the session. Risk: destructive · Irreversible
Input Output

uploadFile

sessions.uploadFile Create Session Uploads. (POST /v1/sessions/{id}/uploads) Risk: write
Input
Output

Webhooks

create

webhooks.create Create a Webhook. Register an HTTPS endpoint to receive events for this project. The response includes the signing secret, which is shown only here and when the secret is rotated. Store it before discarding the response. An endpoint may only be registered once per project. The response holds the signing secret; it is shown only here and on rotate. Risk: write
Input Output

delete

webhooks.delete Delete a Webhook. Delete a webhook. Deliveries stop immediately and the signing secret is retired. Events that occurred before the delete are not replayed if the endpoint is registered again. Cannot be undone. Risk: destructive · Irreversible
Input Output

get

webhooks.get Get a Webhook. Retrieve a single webhook by ID. The signing secret is not included; it is only ever returned on create and rotate. Risk: read
Input Output

list

webhooks.list List Webhooks. List the project’s webhooks, newest first. Signing secrets are not included. Page by passing the previous response’s nextCursor as cursor; a null nextCursor means there are no further pages. Risk: read
Input Output

rotateSecret

webhooks.rotateSecret Rotate a Webhook signing secret. Issue a new signing secret for a webhook. By default the previous secret keeps verifying for 24 hours so a receiver can be updated without dropping deliveries; pass revokeImmediately to end that window at once. The new secret is returned only here. Risk: destructive · Irreversible
Input Output

update

webhooks.update Update a Webhook. Update a webhook’s endpoint URL, its subscribed event types, or both. Omitted fields are left unchanged. eventTypes replaces the existing subscription rather than adding to it. The signing secret is unaffected. Risk: write
Input Output