Skip to main content
Every huggingface.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
New to Corsair? See API access, authentication, and error handling.

Account

deleteNotifications

account.deleteNotifications Delete notifications by discussion ids or filters Risk: destructive
Input
Output: any

getWhoami

account.getWhoami Get authenticated Hugging Face user info Risk: read
Input: empty object Output: any

listNotifications

account.listNotifications List notifications for the authenticated user Risk: read
Input Output: any

Collections

create

collections.create Create a new collection Risk: write
Input Output: any

list

collections.list List collections on the Hub Risk: read
Input Output: any

Datasets

checkUploadMethod

datasets.checkUploadMethod Check LFS vs regular upload method for dataset files Risk: read
Input
Output: any

checkValidity

datasets.checkValidity Check whether a dataset is valid on the Hub viewer Risk: read
Input Output: any

createBranch

datasets.createBranch Create a branch on a dataset Risk: write
Input Output: any

createCommit

datasets.createCommit Create a commit on a dataset (Hub NDJSON/JSON: files, deletedEntries, lfsFiles) Risk: write
Input
Output: any

createSqlConsoleEmbed

datasets.createSqlConsoleEmbed Create a SQL Console embed for a dataset Risk: write
Input Output: any

createTag

datasets.createTag Create a tag on a dataset Risk: write
Input Output: any

deleteBranch

datasets.deleteBranch Delete a branch on a dataset Risk: destructive
Input Output: any

deleteTag

datasets.deleteTag Delete a tag on a dataset Risk: destructive
Input Output: any

filterRows

datasets.filterRows Filter dataset rows with SQL-like where clause Risk: read
Input Output: any

get

datasets.get Get dataset repository info Risk: read
Input Output: any

getCompare

datasets.getCompare Compare two revisions of a dataset Risk: read
Input Output: any

getCroissant

datasets.getCroissant Get Croissant JSON-LD metadata for a dataset Risk: read
Input Output: any

getFirstRows

datasets.getFirstRows Get first ~100 rows of a dataset split Risk: read
Input Output: any

getInfo

datasets.getInfo Get dataset info (features, splits, citation) Risk: read
Input Output: any

getJwt

datasets.getJwt Get JWT for a dataset repo Risk: read
Input Output: any

getLeaderboard

datasets.getLeaderboard Get evaluation leaderboard for a dataset Risk: read
Input Output: any

getNotebook

datasets.getNotebook Get notebook URL from a dataset Risk: read
Input Output: any

getResolve

datasets.getResolve Resolve a file from a dataset (follows redirects / XET info) Risk: read
Input Output: any

getResolveCache

datasets.getResolveCache Resolve a file from dataset cache Risk: read
Input Output: any

getRows

datasets.getRows Get a slice of dataset rows (offset/length) Risk: read
Input Output: any

getScan

datasets.getScan Get security scan status for a dataset Risk: read
Input Output: any

getSize

datasets.getSize Get dataset size (rows and bytes) Risk: read
Input Output: any

getStatistics

datasets.getStatistics Get statistics for a dataset split Risk: read
Input Output: any

getTagsByType

datasets.getTagsByType Get dataset tags grouped by type Risk: read
Input Output: any

getTreeSize

datasets.getTreeSize Get repository tree size for a dataset Risk: read
Input Output: any

getXetReadToken

datasets.getXetReadToken Get XET read token for a dataset Risk: read
Input Output: any

handleAccessRequest

datasets.handleAccessRequest Accept/reject gated dataset access request Risk: write
Input Output: any

list

datasets.list List datasets on the Hub Risk: read
Input Output: any

listAccessRequests

datasets.listAccessRequests List access requests for a gated dataset Risk: read
Input Output: any

listCommits

datasets.listCommits List commits for a dataset Risk: read
Input Output: any

listParquetFiles

datasets.listParquetFiles List Parquet files for a dataset Risk: read
Input Output: any

listPathsInfo

datasets.listPathsInfo List path metadata in a dataset Risk: read
Input Output: any

listRefs

datasets.listRefs List refs (branches/tags) for a dataset Risk: read
Input Output: any

listSplits

datasets.listSplits List dataset configurations and splits Risk: read
Input Output: any
datasets.search Full-text search within a dataset split Risk: read
Input Output: any

squashCommits

datasets.squashCommits Squash all commits in a dataset ref (irreversible) Risk: destructive
Input Output: any

updateSettings

datasets.updateSettings Update settings for a dataset repository Risk: write
Input
Output: any

updateSqlConsoleEmbed

datasets.updateSqlConsoleEmbed Update a SQL Console embed Risk: write
Input Output: any

Discussions

changeStatus

discussions.changeStatus Open or close a discussion Risk: write
Input Output: any

create

discussions.create Create a discussion on a repository Risk: write
Input Output: any

createComment

discussions.createComment Comment on a discussion Risk: write
Input Output: any

delete

discussions.delete Delete a discussion Risk: destructive
Input Output: any

get

discussions.get Get discussion details Risk: read
Input Output: any

list

discussions.list List discussions for a repository Risk: read
Input Output: any

pin

discussions.pin Pin or unpin a discussion Risk: write
Input Output: any

updateTitle

discussions.updateTitle Update discussion title Risk: write
Input Output: any

Docs

list

docs.list List available Hugging Face documentation Risk: read
Input: empty object Output: any

search

docs.search Search Hugging Face documentation Risk: read
Input Output: any

Endpoints

deleteNetworkCidr

endpoints.deleteNetworkCidr Delete a network CIDR list entry for Inference Endpoints Risk: destructive
Input Output: any

list

endpoints.list List Inference Endpoints for a namespace Risk: read
Input Output: any

listVendors

endpoints.listVendors List cloud provider vendors for Inference Endpoints Risk: read
Input: empty object Output: any

Inference

chatCompletion

inference.chatCompletion Generate chat completion via Inference Providers (OpenAI-compatible) Risk: write
Input
Output: any

embeddings

inference.embeddings Generate text embeddings via Inference Providers Risk: write
Input
Output: any

Jobs

getHardware

jobs.getHardware List available Jobs hardware Risk: read
Input: empty object Output: any

Models

checkUploadMethod

models.checkUploadMethod Check LFS vs regular upload method for model files Risk: read
Input
Output: any

createBranch

models.createBranch Create a branch on a model Risk: write
Input Output: any

createCommit

models.createCommit Create a commit on a model (Hub NDJSON/JSON: files, deletedEntries, lfsFiles) Risk: write
Input
Output: any

createTag

models.createTag Create a tag on a model Risk: write
Input Output: any

deleteBranch

models.deleteBranch Delete a branch on a model Risk: destructive
Input Output: any

deleteTag

models.deleteTag Delete a tag on a model Risk: destructive
Input Output: any

get

models.get Get model repository info Risk: read
Input Output: any

getCompare

models.getCompare Compare two revisions of a model Risk: read
Input Output: any

getJwt

models.getJwt Get JWT for a model repo Risk: read
Input Output: any

getNotebook

models.getNotebook Get notebook URL from a model Risk: read
Input Output: any

getResolve

models.getResolve Resolve a file from a model (follows redirects / XET info) Risk: read
Input Output: any

getResolveCache

models.getResolveCache Resolve a file from model cache Risk: read
Input Output: any

getScan

models.getScan Get security scan status for a model Risk: read
Input Output: any

getTagsByType

models.getTagsByType Get model tags grouped by type Risk: read
Input Output: any

getTreeSize

models.getTreeSize Get repository tree size for a model Risk: read
Input Output: any

getXetReadToken

models.getXetReadToken Get XET read token for a model Risk: read
Input Output: any

list

models.list List models on the Hub Risk: read
Input Output: any

listCommits

models.listCommits List commits for a model Risk: read
Input Output: any

listPathsInfo

models.listPathsInfo List path metadata in a model Risk: read
Input Output: any

listRefs

models.listRefs List refs (branches/tags) for a model Risk: read
Input Output: any

updateSettings

models.updateSettings Update settings for a model repository Risk: write
Input
Output: any

Organizations

getAvatar

organizations.getAvatar Get organization avatar Risk: read
Input Output: any

getMembers

organizations.getMembers List organization members Risk: read
Input Output: any

getSocials

organizations.getSocials Get organization social handles Risk: read
Input Output: any

Papers

claimAuthorship

papers.claimAuthorship Claim authorship of a paper Risk: write
Input
Output: any

createComment

papers.createComment Comment on a paper Risk: write
Input Output: any

createCommentReply

papers.createCommentReply Reply to a paper comment Risk: write
Input Output: any

createIndex

papers.createIndex Index an arXiv paper by id Risk: write
Input Output: any

getDaily

papers.getDaily Get daily papers Risk: read
Input Output: any

search

papers.search Search papers (hybrid semantic/full-text) Risk: read
Input Output: any

Repos

create

repos.create Create a model, dataset, or Space repository Risk: write
Input
Output: any

getResolve

repos.getResolve Resolve a file in any repository type Risk: read
Input Output: any

listFiles

repos.listFiles List repository file tree with pagination Risk: read
Input Output: any

requestAccess

repos.requestAccess Request access to a gated repository Risk: write
Input
Output: any

Settings

createWebhook

settings.createWebhook Create a settings webhook Risk: write
Input
Output: any

deleteWebhook

settings.deleteWebhook Delete a settings webhook Risk: destructive
Input Output: any

getBillingUsageV2

settings.getBillingUsageV2 Get billing usage for a custom date range (unix timestamps) Risk: read
Input Output: any

getJobsUsage

settings.getJobsUsage Get Jobs usage and billing for current subscription period Risk: read
Input: empty object Output: any

getLiveBillingUsage

settings.getLiveBillingUsage Get live billing usage stream snapshot Risk: read
Input: empty object Output: any

getMcp

settings.getMcp Get MCP tools configuration for the authenticated user Risk: read
Input: empty object Output: any

getWebhook

settings.getWebhook Get a webhook by id Risk: read
Input Output: any

listWebhooks

settings.listWebhooks List all webhooks in settings Risk: read
Input: empty object Output: any

updateNotifications

settings.updateNotifications Update notification settings for the authenticated user Risk: write
Input
Output: any

updateWatch

settings.updateWatch Update watch settings (orgs/users/repos to follow) Risk: write
Input
Output: any

updateWebhook

settings.updateWebhook Update an existing settings webhook Risk: write
Input
Output: any

updateWebhookStatus

settings.updateWebhookStatus Enable or disable a webhook (action: enable|disable) Risk: write
Input Output: any

Spaces

checkUploadMethod

spaces.checkUploadMethod Check LFS vs regular upload method for space files Risk: read
Input
Output: any

createBranch

spaces.createBranch Create a branch on a space Risk: write
Input Output: any

createCommit

spaces.createCommit Create a commit on a space (Hub NDJSON/JSON: files, deletedEntries, lfsFiles) Risk: write
Input
Output: any

createSecret

spaces.createSecret Create or update a Space secret Risk: write
Input Output: any

createTag

spaces.createTag Create a tag on a space Risk: write
Input Output: any

createVariable

spaces.createVariable Create or update a Space variable Risk: write
Input Output: any

deleteBranch

spaces.deleteBranch Delete a branch on a space Risk: destructive
Input Output: any

deleteSecret

spaces.deleteSecret Delete a Space secret Risk: destructive
Input Output: any

deleteTag

spaces.deleteTag Delete a tag on a space Risk: destructive
Input Output: any

deleteVariable

spaces.deleteVariable Delete a Space variable Risk: destructive
Input Output: any

get

spaces.get Get space repository info Risk: read
Input Output: any

getCompare

spaces.getCompare Compare two revisions of a space Risk: read
Input Output: any

getEvents

spaces.getEvents Stream Space status events (SSE snapshot) Risk: read
Input Output: any

getJwt

spaces.getJwt Get JWT for a space repo Risk: read
Input Output: any

getMetrics

spaces.getMetrics Get live Space metrics (SSE snapshot) Risk: read
Input Output: any

getNotebook

spaces.getNotebook Get notebook URL from a space Risk: read
Input Output: any

getResolve

spaces.getResolve Resolve a file from a space (follows redirects / XET info) Risk: read
Input Output: any

getResolveCache

spaces.getResolveCache Resolve a file from space cache Risk: read
Input Output: any

getScan

spaces.getScan Get security scan status for a space Risk: read
Input Output: any

getTreeSize

spaces.getTreeSize Get repository tree size for a space Risk: read
Input Output: any

getXetReadToken

spaces.getXetReadToken Get XET read token for a space Risk: read
Input Output: any

getXetWriteToken

spaces.getXetWriteToken Get XET write token for a Space Risk: write
Input Output: any

list

spaces.list List spaces on the Hub Risk: read
Input Output: any

listCommits

spaces.listCommits List commits for a space Risk: read
Input Output: any

listHardware

spaces.listHardware List available Space hardware configurations Risk: read
Input: empty object Output: any

listLfsFiles

spaces.listLfsFiles List LFS files in a Space Risk: read
Input Output: any

listPathsInfo

spaces.listPathsInfo List path metadata in a space Risk: read
Input Output: any

listRefs

spaces.listRefs List refs (branches/tags) for a space Risk: read
Input Output: any

squashCommits

spaces.squashCommits Squash all commits in a Space ref (irreversible) Risk: destructive
Input Output: any

updateSettings

spaces.updateSettings Update settings for a space repository Risk: write
Input
Output: any

get

trending.get Get trending repositories Risk: read
Input Output: any

Users

getAvatar

users.getAvatar Get user avatar URL Risk: read
Input Output: any

getOverview

users.getOverview Get user profile overview Risk: read
Input Output: any

getSocials

users.getSocials Get user social handles Risk: read
Input Output: any