New to Corsair? See API access, authentication, and error handling.
Account
deleteNotifications
account.deleteNotifications
Delete notifications by discussion ids or filters
Risk: destructive
Output:
any
getWhoami
account.getWhoami
Get authenticated Hugging Face user info
Risk: read
any
listNotifications
account.listNotifications
List notifications for the authenticated user
Risk: read
Output:
any
Collections
create
collections.create
Create a new collection
Risk: write
Output:
any
list
collections.list
List collections on the Hub
Risk: read
Output:
any
Datasets
checkUploadMethod
datasets.checkUploadMethod
Check LFS vs regular upload method for dataset files
Risk: read
files full type
files full type
any
checkValidity
datasets.checkValidity
Check whether a dataset is valid on the Hub viewer
Risk: read
Output:
any
createBranch
datasets.createBranch
Create a branch on a dataset
Risk: write
Output:
any
createCommit
datasets.createCommit
Create a commit on a dataset (Hub NDJSON/JSON: files, deletedEntries, lfsFiles)
Risk: write
files full type
files full type
deletedEntries full type
deletedEntries full type
lfsFiles full type
lfsFiles full type
any
createSqlConsoleEmbed
datasets.createSqlConsoleEmbed
Create a SQL Console embed for a dataset
Risk: write
Output:
any
createTag
datasets.createTag
Create a tag on a dataset
Risk: write
Output:
any
deleteBranch
datasets.deleteBranch
Delete a branch on a dataset
Risk: destructive
Output:
any
deleteTag
datasets.deleteTag
Delete a tag on a dataset
Risk: destructive
Output:
any
filterRows
datasets.filterRows
Filter dataset rows with SQL-like where clause
Risk: read
Output:
any
get
datasets.get
Get dataset repository info
Risk: read
Output:
any
getCompare
datasets.getCompare
Compare two revisions of a dataset
Risk: read
Output:
any
getCroissant
datasets.getCroissant
Get Croissant JSON-LD metadata for a dataset
Risk: read
Output:
any
getFirstRows
datasets.getFirstRows
Get first ~100 rows of a dataset split
Risk: read
Output:
any
getInfo
datasets.getInfo
Get dataset info (features, splits, citation)
Risk: read
Output:
any
getJwt
datasets.getJwt
Get JWT for a dataset repo
Risk: read
Output:
any
getLeaderboard
datasets.getLeaderboard
Get evaluation leaderboard for a dataset
Risk: read
Output:
any
getNotebook
datasets.getNotebook
Get notebook URL from a dataset
Risk: read
Output:
any
getResolve
datasets.getResolve
Resolve a file from a dataset (follows redirects / XET info)
Risk: read
Output:
any
getResolveCache
datasets.getResolveCache
Resolve a file from dataset cache
Risk: read
Output:
any
getRows
datasets.getRows
Get a slice of dataset rows (offset/length)
Risk: read
Output:
any
getScan
datasets.getScan
Get security scan status for a dataset
Risk: read
Output:
any
getSize
datasets.getSize
Get dataset size (rows and bytes)
Risk: read
Output:
any
getStatistics
datasets.getStatistics
Get statistics for a dataset split
Risk: read
Output:
any
getTagsByType
datasets.getTagsByType
Get dataset tags grouped by type
Risk: read
Output:
any
getTreeSize
datasets.getTreeSize
Get repository tree size for a dataset
Risk: read
Output:
any
getXetReadToken
datasets.getXetReadToken
Get XET read token for a dataset
Risk: read
Output:
any
handleAccessRequest
datasets.handleAccessRequest
Accept/reject gated dataset access request
Risk: write
Output:
any
list
datasets.list
List datasets on the Hub
Risk: read
Output:
any
listAccessRequests
datasets.listAccessRequests
List access requests for a gated dataset
Risk: read
Output:
any
listCommits
datasets.listCommits
List commits for a dataset
Risk: read
Output:
any
listParquetFiles
datasets.listParquetFiles
List Parquet files for a dataset
Risk: read
Output:
any
listPathsInfo
datasets.listPathsInfo
List path metadata in a dataset
Risk: read
Output:
any
listRefs
datasets.listRefs
List refs (branches/tags) for a dataset
Risk: read
Output:
any
listSplits
datasets.listSplits
List dataset configurations and splits
Risk: read
Output:
any
search
datasets.search
Full-text search within a dataset split
Risk: read
Output:
any
squashCommits
datasets.squashCommits
Squash all commits in a dataset ref (irreversible)
Risk: destructive
Output:
any
updateSettings
datasets.updateSettings
Update settings for a dataset repository
Risk: write
Output:
any
updateSqlConsoleEmbed
datasets.updateSqlConsoleEmbed
Update a SQL Console embed
Risk: write
Output:
any
Discussions
changeStatus
discussions.changeStatus
Open or close a discussion
Risk: write
Output:
any
create
discussions.create
Create a discussion on a repository
Risk: write
Output:
any
createComment
discussions.createComment
Comment on a discussion
Risk: write
Output:
any
delete
discussions.delete
Delete a discussion
Risk: destructive
Output:
any
get
discussions.get
Get discussion details
Risk: read
Output:
any
list
discussions.list
List discussions for a repository
Risk: read
Output:
any
pin
discussions.pin
Pin or unpin a discussion
Risk: write
Output:
any
updateTitle
discussions.updateTitle
Update discussion title
Risk: write
Output:
any
Docs
list
docs.list
List available Hugging Face documentation
Risk: read
any
search
docs.search
Search Hugging Face documentation
Risk: read
Output:
any
Endpoints
deleteNetworkCidr
endpoints.deleteNetworkCidr
Delete a network CIDR list entry for Inference Endpoints
Risk: destructive
Output:
any
list
endpoints.list
List Inference Endpoints for a namespace
Risk: read
Output:
any
listVendors
endpoints.listVendors
List cloud provider vendors for Inference Endpoints
Risk: read
any
Inference
chatCompletion
inference.chatCompletion
Generate chat completion via Inference Providers (OpenAI-compatible)
Risk: write
Output:
any
embeddings
inference.embeddings
Generate text embeddings via Inference Providers
Risk: write
Output:
any
Jobs
getHardware
jobs.getHardware
List available Jobs hardware
Risk: read
any
Models
checkUploadMethod
models.checkUploadMethod
Check LFS vs regular upload method for model files
Risk: read
files full type
files full type
any
createBranch
models.createBranch
Create a branch on a model
Risk: write
Output:
any
createCommit
models.createCommit
Create a commit on a model (Hub NDJSON/JSON: files, deletedEntries, lfsFiles)
Risk: write
files full type
files full type
deletedEntries full type
deletedEntries full type
lfsFiles full type
lfsFiles full type
any
createTag
models.createTag
Create a tag on a model
Risk: write
Output:
any
deleteBranch
models.deleteBranch
Delete a branch on a model
Risk: destructive
Output:
any
deleteTag
models.deleteTag
Delete a tag on a model
Risk: destructive
Output:
any
get
models.get
Get model repository info
Risk: read
Output:
any
getCompare
models.getCompare
Compare two revisions of a model
Risk: read
Output:
any
getJwt
models.getJwt
Get JWT for a model repo
Risk: read
Output:
any
getNotebook
models.getNotebook
Get notebook URL from a model
Risk: read
Output:
any
getResolve
models.getResolve
Resolve a file from a model (follows redirects / XET info)
Risk: read
Output:
any
getResolveCache
models.getResolveCache
Resolve a file from model cache
Risk: read
Output:
any
getScan
models.getScan
Get security scan status for a model
Risk: read
Output:
any
getTagsByType
models.getTagsByType
Get model tags grouped by type
Risk: read
Output:
any
getTreeSize
models.getTreeSize
Get repository tree size for a model
Risk: read
Output:
any
getXetReadToken
models.getXetReadToken
Get XET read token for a model
Risk: read
Output:
any
list
models.list
List models on the Hub
Risk: read
Output:
any
listCommits
models.listCommits
List commits for a model
Risk: read
Output:
any
listPathsInfo
models.listPathsInfo
List path metadata in a model
Risk: read
Output:
any
listRefs
models.listRefs
List refs (branches/tags) for a model
Risk: read
Output:
any
updateSettings
models.updateSettings
Update settings for a model repository
Risk: write
Output:
any
Organizations
getAvatar
organizations.getAvatar
Get organization avatar
Risk: read
Output:
any
getMembers
organizations.getMembers
List organization members
Risk: read
Output:
any
getSocials
organizations.getSocials
Get organization social handles
Risk: read
Output:
any
Papers
claimAuthorship
papers.claimAuthorship
Claim authorship of a paper
Risk: write
Output:
any
createComment
papers.createComment
Comment on a paper
Risk: write
Output:
any
createCommentReply
papers.createCommentReply
Reply to a paper comment
Risk: write
Output:
any
createIndex
papers.createIndex
Index an arXiv paper by id
Risk: write
Output:
any
getDaily
papers.getDaily
Get daily papers
Risk: read
Output:
any
search
papers.search
Search papers (hybrid semantic/full-text)
Risk: read
Output:
any
Repos
create
repos.create
Create a model, dataset, or Space repository
Risk: write
Output:
any
getResolve
repos.getResolve
Resolve a file in any repository type
Risk: read
Output:
any
listFiles
repos.listFiles
List repository file tree with pagination
Risk: read
Output:
any
requestAccess
repos.requestAccess
Request access to a gated repository
Risk: write
Output:
any
Settings
createWebhook
settings.createWebhook
Create a settings webhook
Risk: write
Output:
any
deleteWebhook
settings.deleteWebhook
Delete a settings webhook
Risk: destructive
Output:
any
getBillingUsageV2
settings.getBillingUsageV2
Get billing usage for a custom date range (unix timestamps)
Risk: read
Output:
any
getJobsUsage
settings.getJobsUsage
Get Jobs usage and billing for current subscription period
Risk: read
any
getLiveBillingUsage
settings.getLiveBillingUsage
Get live billing usage stream snapshot
Risk: read
any
getMcp
settings.getMcp
Get MCP tools configuration for the authenticated user
Risk: read
any
getWebhook
settings.getWebhook
Get a webhook by id
Risk: read
Output:
any
listWebhooks
settings.listWebhooks
List all webhooks in settings
Risk: read
any
updateNotifications
settings.updateNotifications
Update notification settings for the authenticated user
Risk: write
Output:
any
updateWatch
settings.updateWatch
Update watch settings (orgs/users/repos to follow)
Risk: write
Output:
any
updateWebhook
settings.updateWebhook
Update an existing settings webhook
Risk: write
Output:
any
updateWebhookStatus
settings.updateWebhookStatus
Enable or disable a webhook (action: enable|disable)
Risk: write
Output:
any
Spaces
checkUploadMethod
spaces.checkUploadMethod
Check LFS vs regular upload method for space files
Risk: read
files full type
files full type
any
createBranch
spaces.createBranch
Create a branch on a space
Risk: write
Output:
any
createCommit
spaces.createCommit
Create a commit on a space (Hub NDJSON/JSON: files, deletedEntries, lfsFiles)
Risk: write
files full type
files full type
deletedEntries full type
deletedEntries full type
lfsFiles full type
lfsFiles full type
any
createSecret
spaces.createSecret
Create or update a Space secret
Risk: write
Output:
any
createTag
spaces.createTag
Create a tag on a space
Risk: write
Output:
any
createVariable
spaces.createVariable
Create or update a Space variable
Risk: write
Output:
any
deleteBranch
spaces.deleteBranch
Delete a branch on a space
Risk: destructive
Output:
any
deleteSecret
spaces.deleteSecret
Delete a Space secret
Risk: destructive
Output:
any
deleteTag
spaces.deleteTag
Delete a tag on a space
Risk: destructive
Output:
any
deleteVariable
spaces.deleteVariable
Delete a Space variable
Risk: destructive
Output:
any
get
spaces.get
Get space repository info
Risk: read
Output:
any
getCompare
spaces.getCompare
Compare two revisions of a space
Risk: read
Output:
any
getEvents
spaces.getEvents
Stream Space status events (SSE snapshot)
Risk: read
Output:
any
getJwt
spaces.getJwt
Get JWT for a space repo
Risk: read
Output:
any
getMetrics
spaces.getMetrics
Get live Space metrics (SSE snapshot)
Risk: read
Output:
any
getNotebook
spaces.getNotebook
Get notebook URL from a space
Risk: read
Output:
any
getResolve
spaces.getResolve
Resolve a file from a space (follows redirects / XET info)
Risk: read
Output:
any
getResolveCache
spaces.getResolveCache
Resolve a file from space cache
Risk: read
Output:
any
getScan
spaces.getScan
Get security scan status for a space
Risk: read
Output:
any
getTreeSize
spaces.getTreeSize
Get repository tree size for a space
Risk: read
Output:
any
getXetReadToken
spaces.getXetReadToken
Get XET read token for a space
Risk: read
Output:
any
getXetWriteToken
spaces.getXetWriteToken
Get XET write token for a Space
Risk: write
Output:
any
list
spaces.list
List spaces on the Hub
Risk: read
Output:
any
listCommits
spaces.listCommits
List commits for a space
Risk: read
Output:
any
listHardware
spaces.listHardware
List available Space hardware configurations
Risk: read
any
listLfsFiles
spaces.listLfsFiles
List LFS files in a Space
Risk: read
Output:
any
listPathsInfo
spaces.listPathsInfo
List path metadata in a space
Risk: read
Output:
any
listRefs
spaces.listRefs
List refs (branches/tags) for a space
Risk: read
Output:
any
squashCommits
spaces.squashCommits
Squash all commits in a Space ref (irreversible)
Risk: destructive
Output:
any
updateSettings
spaces.updateSettings
Update settings for a space repository
Risk: write
Output:
any
Trending
get
trending.get
Get trending repositories
Risk: read
Output:
any
Users
getAvatar
users.getAvatar
Get user avatar URL
Risk: read
Output:
any
getOverview
users.getOverview
Get user profile overview
Risk: read
Output:
any
getSocials
users.getSocials
Get user social handles
Risk: read
Output:
any