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

Accounts

audit.list

accounts.audit.list List a team’s audit log events, one page at a time Risk: read
Input Output

builds.status

accounts.builds.status Get a team’s build status: returns the team’s counts of active, concurrency-pending, and enqueued builds, and its build minutes usage Risk: read
Input Output

cancel

accounts.cancel Cancel a team: its sites and members are removed and billing stops Risk: destructive · Irreversible
Input Output

create

accounts.create Create a team Risk: destructive
Input Output

get

accounts.get Get a team Risk: read
Input Output

list

accounts.list List the current user’s teams Risk: read
Input Output: object[]

listTypes

accounts.listTypes List plans available for new teams Risk: read
Input: empty object Output: object[]

members.add

accounts.members.add Invite someone to the team by email with a role; Netlify sends them an invitation email Risk: destructive
Input Output: object[]

members.get

accounts.members.get Get a team member Risk: read
Input Output

members.list

accounts.members.list List a team’s members Risk: read
Input Output: object[]

members.remove

accounts.members.remove Remove a team member Risk: destructive
Input Output

members.update

accounts.members.update Update a team member Risk: write
Input Output

sites.create

accounts.sites.create Create a site in a team Risk: write
Input
Output

sites.list

accounts.sites.list List a team’s sites, one page at a time Risk: read
Input Output

update

accounts.update Update a team Risk: destructive
Input Output

Agent Runners

archive

agentRunners.archive Archive an agent run Risk: write
Input Output

commitToBranch

agentRunners.commitToBranch Commit an agent run’s changes to a branch: queues a commit of the run’s diff to target_branch Risk: destructive · Irreversible
Input Output

create

agentRunners.create Start an agent run Risk: destructive
Input Output

createPullRequest

agentRunners.createPullRequest Open a pull request from an agent run: queues a pull request for the run’s diff (result_diff) Risk: destructive
Input Output

createUploadUrl

agentRunners.createUploadUrl Create an upload URL for agent run files: returns a presigned URL for uploading a file that agent run sessions can use, and the file’s storage key Risk: write
Input Output

delete

agentRunners.delete Stop an agent run (alias): same as POST /agent_runners/{agent_runner_id}/stop Risk: write
Input Output

get

agentRunners.get Get an agent run Risk: read
Input Output

getDiff

agentRunners.getDiff Get an agent run’s diff: returns the run’s changes as a unified diff (returned as text) Risk: read
Input Output

list

agentRunners.list List a site’s agent runs: lists a site’s agent runs, most recently active first, one page at a time Risk: read
Input Output

sessions.answer

agentRunners.sessions.answer Answer an agent run session’s pending interaction: answers or skips a pending interaction and resumes the session Risk: destructive
Input Output

sessions.create

agentRunners.sessions.create Start a follow-up agent run session: starts a follow-up session on the run Risk: destructive
Input Output

sessions.delete

agentRunners.sessions.delete Stop an agent run session (alias): same as POST /agent_runners/{agent_runner_id}/sessions/{agent_runner_session_id}/stop Risk: write
Input Output

sessions.get

agentRunners.sessions.get Get an agent run session Risk: read
Input Output

sessions.list

agentRunners.sessions.list List an agent run’s sessions, one page at a time Risk: read
Input Output

sessions.stop

agentRunners.sessions.stop Stop an agent run session: stops the session Risk: write
Input Output

sessions.update

agentRunners.sessions.update Update an agent run session Risk: write
Input Output

stop

agentRunners.stop Stop an agent run: stops the run’s active session Risk: write
Input Output

update

agentRunners.update Update an agent run Risk: write
Input Output

Ai Gateway

getAccountToken

aiGateway.getAccountToken Get a team’s AI Gateway token: returns an AI Gateway token scoped to an account Risk: read
Input Output

getSiteToken

aiGateway.getSiteToken Get a site’s AI Gateway token: returns an AI Gateway token for a specific site Risk: read
Input Output

listProviders

aiGateway.listProviders List AI Gateway providers and models Risk: read
Input: empty object Output

Billing

paymentMethods.list

billing.paymentMethods.list List payment methods Risk: read
Input: empty object Output: object[]

Builds

appendLog

builds.appendLog Add a message to a build log Risk: write
Input Output

get

builds.get Get a build Risk: read
Input Output

notifyStart

builds.notifyStart Mark a build as started Risk: write
Input Output

Cache

purge

cache.purge Purge cached content from Netlify’s CDN for a site (site_id or site_slug), optionally only the responses with given cache tags Risk: write
Input Output

Deploy Keys

create

deployKeys.create Create a deploy key Risk: write
Input: empty object Output

delete

deployKeys.delete Delete a deploy key Risk: destructive · Irreversible
Input Output

get

deployKeys.get Get a deploy key Risk: read
Input Output

list

deployKeys.list List deploy keys Risk: read
Input: empty object Output: object[]

Deploys

cancel

deploys.cancel Cancel a deploy Risk: write
Input Output

delete

deploys.delete Delete a deploy: marks a deploy for deletion Risk: destructive · Irreversible
Input Output

get

deploys.get Get a deploy Risk: read
Input Output

lock

deploys.lock Lock a deploy: locks a deploy so that subsequent deploys are built but not published Risk: write
Input Output

unlock

deploys.unlock Unlock a deploy Risk: write
Input Output

updateValidationsReport

deploys.updateValidationsReport Update a deploy’s validations report: updates the deploy validations report for a deploy Risk: write
Input
Output

uploadEdgeFunction

deploys.uploadEdgeFunction Upload a deploy’s edge functions bundle Risk: write
Input
Output

uploadFile

deploys.uploadFile Upload one file a deploy listed as required: path is the file path in the site (index.html, assets/app.js), the bytes are the body. Netlify processes the deploy once every required file and function is in Risk: write
Input
Output

uploadFunction

deploys.uploadFunction Upload one function bundle (a zip) a deploy listed as required, by function name Risk: write
Input
Output

uploadServer

deploys.uploadServer Upload a deploy’s Netlify Server bundle: uploads the deploy’s Netlify Server bundle, addressed by the digest the deploy declared in its server property Risk: write
Input
Output

Dns

records.create

dns.records.create Create a DNS record Risk: write
Input Output

records.delete

dns.records.delete Delete a DNS record Risk: destructive · Irreversible
Input Output

records.get

dns.records.get Get a DNS record Risk: read
Input Output

records.list

dns.records.list List a DNS zone’s records Risk: read
Input Output: object[]

zones.create

dns.zones.create Create a DNS zone Risk: write
Input Output

zones.delete

dns.zones.delete Delete a DNS zone Risk: destructive · Irreversible
Input Output

zones.get

dns.zones.get Get a DNS zone Risk: read
Input Output

zones.list

dns.zones.list List DNS zones: returns the DNS zones for the team given by account_slug, or all DNS zones the current user can access Risk: read
Input Output: object[]

zones.transfer

dns.zones.transfer Transfer a DNS zone to another team Risk: destructive · Irreversible
Input Output

Env

create

env.create Create one or more environment variables on a team, or on one site with site_id; each takes key, scopes, values (per deploy context) and is_secret Risk: write
Input
Output: object[]

delete

env.delete Delete an environment variable: deletes an environment variable Risk: destructive · Irreversible
Input Output

deleteValue

env.deleteValue Delete an environment variable value: deletes a specific environment variable value Risk: destructive
Input Output

get

env.get Get an environment variable: returns an individual environment variable Risk: read
Input Output

list

env.list List environment variables for a team or site: returns all environment variables for an account or site Risk: read
Input Output: object[]

listForSite

env.listForSite List environment variables for a site: returns all environment variables for a site Risk: read
Input Output: object[]

setValue

env.setValue Set a value on an environment variable: updates or creates a new value for an existing environment variable Risk: write
Input Output

update

env.update Replace an environment variable: its scopes, secret flag and every value (values left out are removed). Pass new_key to rename it Risk: write
Input
Output

Forms

submissions.list

forms.submissions.list List a form’s submissions, one page at a time Risk: read
Input Output

Hooks

create

hooks.create Create an outgoing notification for a site: type url with data.url (and data.signature_secret to sign deliveries with a JWS the plugin’s webhooks check), slack or email, for one event (deploy_created, deploy_failed, submission_created…) Risk: write
Input
Output

delete

hooks.delete Delete an outgoing hook Risk: destructive · Irreversible
Input Output

enable

hooks.enable Re-enable an outgoing hook: re-enables an outgoing hook that was disabled after repeated delivery errors Risk: write
Input Output

get

hooks.get Get an outgoing hook Risk: read
Input Output

list

hooks.list List a site’s outgoing hooks: returns the outgoing hooks for a site Risk: read
Input Output: object[]

listTypes

hooks.listTypes List outgoing hook types: returns the available outgoing hook types Risk: read
Input Output: object[]

update

hooks.update Update an outgoing hook Risk: write
Input
Output

Oauth

tickets.create

oauth.tickets.create Create an OAuth ticket Risk: write
Input Output

tickets.exchange

oauth.tickets.exchange Exchange an OAuth ticket for an access token Risk: write
Input Output

tickets.get

oauth.tickets.get Get an OAuth ticket Risk: read
Input Output

Services

get

services.get Get an add-on service Risk: read
Input Output

getManifest

services.getManifest Get an add-on service’s manifest Risk: read
Input Output: empty object

list

services.list List add-on services Risk: read
Input Output: object[]

Sites

agentRunnerHooks.create

sites.agentRunnerHooks.create Create an agent runner hook Risk: write
Input Output

agentRunnerHooks.delete

sites.agentRunnerHooks.delete Delete an agent runner hook Risk: destructive · Irreversible
Input Output

agentRunnerHooks.get

sites.agentRunnerHooks.get Get an agent runner hook Risk: read
Input Output

agentRunnerHooks.list

sites.agentRunnerHooks.list List a site’s agent runner hooks Risk: read
Input Output: object[]

agentRunnerHooks.update

sites.agentRunnerHooks.update Update an agent runner hook Risk: write
Input Output

agentRunners.create

sites.agentRunners.create Start an agent run on a site: starts an agent run on the site Risk: destructive
Input Output

assets.create

sites.assets.create Create a site asset (only available to some sites) Risk: write
Input Output

assets.delete

sites.assets.delete Delete a site asset (only available to some sites) Risk: destructive · Irreversible
Input Output

assets.get

sites.assets.get Get a site asset (only available to some sites) Risk: read
Input Output

assets.getPublicSignature

sites.assets.getPublicSignature Get a site asset’s URL: returns the URL of the asset (only available to some sites) Risk: read
Input Output

assets.list

sites.assets.list List a site’s assets (only available to some sites) Risk: read
Input Output: object[]

assets.update

sites.assets.update Update a site asset’s state (only available to some sites) Risk: write
Input Output

buildHooks.create

sites.buildHooks.create Create a build hook Risk: write
Input Output

buildHooks.delete

sites.buildHooks.delete Delete a build hook Risk: destructive · Irreversible
Input Output

buildHooks.get

sites.buildHooks.get Get a build hook Risk: read
Input Output

buildHooks.list

sites.buildHooks.list List a site’s build hooks Risk: read
Input Output: object[]

buildHooks.update

sites.buildHooks.update Update a build hook Risk: write
Input Output

builds.create

sites.builds.create Start a build for the site from its linked repository (or from an uploaded zip), optionally for a branch or commit; uses build minutes Risk: write
Input
Output

builds.list

sites.builds.list List a site’s builds, one page at a time Risk: read
Input Output

create

sites.create Create a site in your personal team (accounts.sites.create picks the team), optionally linked to a Git repository with build settings Risk: write
Input
Output

database.branches.create

sites.database.branches.create Create a database branch: creates a new database branch Risk: write
Input
Output

database.branches.delete

sites.database.branches.delete Delete a database branch: deletes a database branch Risk: destructive · Irreversible
Input Output

database.branches.get

sites.database.branches.get Get a database branch: returns the database branch connection string for a specific branch Risk: read
Input Output

database.branches.list

sites.database.branches.list List database branches: returns all branches for the site’s database with compute status and metadata Risk: read
Input Output

database.branches.reset

sites.database.branches.reset Reset a database branch: resets a non-production database branch by re-forking it from a source branch (defaults to the production branch) Risk: destructive · Irreversible
Input Output

database.branches.setComputeSettings

sites.database.branches.setComputeSettings Set a database branch’s compute settings: sets compute settings for a specific database branch, overriding project-level settings Risk: destructive
Input Output

database.compute.clear

sites.database.compute.clear Reset database compute settings to defaults: resets project-level compute settings to tier defaults Risk: destructive · Irreversible
Input Output

database.compute.get

sites.database.compute.get Get database compute settings: returns the project-level compute settings for the database Risk: read
Input Output

database.compute.set

sites.database.compute.set Set database compute settings: sets project-level compute settings for the database Risk: destructive
Input Output

database.create

sites.database.create Create a site database: creates a new database for the specified site Risk: write
Input Output

database.delete

sites.database.delete Delete a site database: deletes the database and all associated branches and snapshots for the specified site Risk: destructive · Irreversible
Input Output

database.get

sites.database.get Get a site database: returns the database connection string for the specified site Risk: read
Input Output

database.migrations.get

sites.database.migrations.get Get a database migration: returns the contents of a named migration for the specified branch Risk: read
Input Output

database.migrations.list

sites.database.migrations.list List database migrations: returns the list of migrations available for the specified branch, indicating which ones have been applied to the database Risk: read
Input Output

database.migrations.run

sites.database.migrations.run Run database migrations for a deploy: runs database migrations for the specified deploy Risk: destructive · Irreversible
Input Output

database.snapshots.create

sites.database.snapshots.create Create a database snapshot: creates a point-in-time snapshot of a database branch Risk: write
Input
Output

database.snapshots.delete

sites.database.snapshots.delete Delete a database snapshot: deletes a database snapshot Risk: destructive · Irreversible
Input Output

database.snapshots.list

sites.database.snapshots.list List database snapshots: returns all snapshots for the site’s database Risk: read
Input Output

database.snapshots.restore

sites.database.snapshots.restore Restore a database snapshot: restores a snapshot to a database branch Risk: destructive · Irreversible
Input Output

delete

sites.delete Permanently delete a site with all its deploys, forms, functions and settings; its netlify.app subdomain is released Risk: destructive · Irreversible
Input Output

deployedBranches.list

sites.deployedBranches.list List a site’s deployed branches Risk: read
Input Output: object[]

deploys.create

sites.deploys.create Create a deploy from a file digest (files: path -> SHA1) and function digests, or from one zip of the site. Netlify answers with required and required_functions (what it still needs); upload each with deploys.uploadFile and deploys.uploadFunction, then poll deploys.get until state is ready Risk: write
Input
Output

deploys.delete

sites.deploys.delete Delete a site’s deploy: marks a deploy for deletion Risk: destructive · Irreversible
Input Output

deploys.get

sites.deploys.get Get a site’s deploy Risk: read
Input Output

deploys.list

sites.deploys.list List a site’s deploys, one page at a time Risk: read
Input Output

deploys.restore

sites.deploys.restore Restore a previous deploy: publishes a previous deploy of the site Risk: write
Input Output

deploys.rollback

sites.deploys.rollback Roll back a site’s production deploy: rolls back the production deploy to the deploy referenced by its rollback_id Risk: write
Input Output

deploys.update

sites.deploys.update Update a deploy Risk: write
Input
Output

devServerHooks.create

sites.devServerHooks.create Create a dev server hook Risk: write
Input Output

devServerHooks.delete

sites.devServerHooks.delete Delete a dev server hook Risk: destructive · Irreversible
Input Output

devServerHooks.get

sites.devServerHooks.get Get a dev server hook Risk: read
Input Output

devServerHooks.list

sites.devServerHooks.list List a site’s dev server hooks Risk: read
Input Output: object[]

devServerHooks.update

sites.devServerHooks.update Update a dev server hook Risk: write
Input Output

devServers.create

sites.devServers.create Start a dev server Risk: write
Input Output: object[]

devServers.deleteAll

sites.devServers.deleteAll Stop a branch’s dev servers: stops all dev servers for a branch Risk: write
Input Output

devServers.get

sites.devServers.get Get a dev server Risk: read
Input Output

devServers.list

sites.devServers.list List a site’s dev servers, one page at a time Risk: read
Input Output

devServers.markActivity

sites.devServers.markActivity Record dev server activity Risk: write
Input Output

devServers.updateState

sites.devServers.updateState Update a dev server’s state Risk: write
Input Output

disable

sites.disable Disable a site: disables a site, preventing it from serving content Risk: destructive
Input Output

dns.configure

sites.dns.configure Configure a site’s DNS: creates any missing DNS zones and records for the site’s custom domain and domain aliases Risk: write
Input Output: object[]

dns.get

sites.dns.get Get a site’s DNS configuration Risk: read
Input Output: object[]

enable

sites.enable Enable a site: re-enables a site that was previously disabled by the user Risk: write
Input Output

files.get

sites.files.get Get a site file by path Risk: read
Input Output

files.list

sites.files.list List a site’s files Risk: read
Input Output: object[]

forms.delete

sites.forms.delete Delete a form: deletes a form and all of its submissions Risk: destructive · Irreversible
Input Output

forms.list

sites.forms.list List a site’s forms Risk: read
Input Output: object[]

functions.list

sites.functions.list Search a site’s functions Risk: read
Input Output: object[] \| object

get

sites.get Get a site Risk: read
Input Output

identity.users.get

sites.identity.users.get Get an Identity user: returns one Identity user by ID Risk: read
Input Output

identity.users.lookup

sites.identity.users.lookup Look up an Identity user by email: returns the one Identity user with this exact email Risk: read
Input Output

list

sites.list List the sites the token can see, filterable by name and by owner (filter: all, owner or guest), one page at a time Risk: read
Input Output

metadata.get

sites.metadata.get Get a site’s metadata Risk: read
Input Output: empty object

metadata.update

sites.metadata.update Replace the site’s metadata with the metadata object ({} clears it) Risk: write
Input
Output

serviceInstances.create

sites.serviceInstances.create Create an add-on instance Risk: destructive
Input
Output

serviceInstances.delete

sites.serviceInstances.delete Delete an add-on instance Risk: destructive · Irreversible
Input Output

serviceInstances.get

sites.serviceInstances.get Get an add-on instance Risk: read
Input Output

serviceInstances.list

sites.serviceInstances.list List a site’s add-on instances Risk: read
Input Output: object[]

serviceInstances.update

sites.serviceInstances.update Update an add-on instance Risk: write
Input
Output

snippets.create

sites.snippets.create Create a snippet Risk: write
Input Output

snippets.delete

sites.snippets.delete Delete a snippet Risk: destructive · Irreversible
Input Output

snippets.get

sites.snippets.get Get a snippet Risk: read
Input Output

snippets.list

sites.snippets.list List a site’s snippets Risk: read
Input Output: object[]

snippets.update

sites.snippets.update Update a snippet Risk: write
Input Output

splitTests.create

sites.splitTests.create Create a split test Risk: write
Input
Output

splitTests.get

sites.splitTests.get Get a split test Risk: read
Input Output

splitTests.list

sites.splitTests.list List a site’s split tests Risk: read
Input Output: object[]

splitTests.publish

sites.splitTests.publish Publish a split test Risk: write
Input Output

splitTests.unpublish

sites.splitTests.unpublish Unpublish a split test Risk: write
Input Output

splitTests.update

sites.splitTests.update Update a split test Risk: write
Input
Output

ssl.get

sites.ssl.get Get a site’s TLS certificate Risk: read
Input Output

ssl.listCertificates

sites.ssl.listCertificates List TLS certificates for a site’s domain: returns details about the certificates associated with a domain Risk: read
Input Output: object[]

ssl.provision

sites.ssl.provision Provision or update a site’s TLS certificate: provisions or updates a TLS certificate for the site Risk: write
Input Output

submissions.list

sites.submissions.list List a site’s form submissions, one page at a time Risk: read
Input Output

unlinkRepo

sites.unlinkRepo Unlink the site from its Git repository (beta): this also deletes the deploy key, build hooks and Git notifications that came with the link Risk: destructive · Irreversible
Input Output

update

sites.update Update a site Risk: write
Input
Output

Submissions

delete

submissions.delete Delete a form submission Risk: destructive · Irreversible
Input Output

get

submissions.get Get a form submission, one page at a time Risk: read
Input Output

User

me

user.me Get the user the token belongs to: name, email, teams and connected accounts Risk: read
Input: empty object Output