Hugging Face Transformers Discussions API

The following endpoints manage discussions.

Operations 20

POST /api/blog/{slug}/comment Create a new comment #
POST /api/blog/{slug}/comment/{commentId}/reply Create a new comment #
POST /api/blog/{namespace}/{slug}/comment Create a new comment #
POST /api/blog/{namespace}/{slug}/comment/{commentId}/reply Create a new comment #
GET /api/{repoType}/{namespace}/{repo}/discussions List discussions #
POST /api/{repoType}/{namespace}/{repo}/discussions Create a new discussion #
GET /api/{repoType}/{namespace}/{repo}/discussions/{num} Get discussion details #
DELETE /api/{repoType}/{namespace}/{repo}/discussions/{num} Delete a discussion #
POST /api/{repoType}/{namespace}/{repo}/discussions/{num}/comment Create a new comment #
POST /api/{repoType}/{namespace}/{repo}/discussions/{num}/status Change status #
POST /api/{repoType}/{namespace}/{repo}/discussions/{num}/title Change title #
POST /api/{repoType}/{namespace}/{repo}/discussions/{num}/pin Pin a discussion #
POST /api/{repoType}/{namespace}/{repo}/discussions/{num}/merge Merge a pull request #
DELETE /api/{repoType}/{namespace}/{repo}/discussions/{num}/ref Delete PR ref #
GET /api/{repoType}/{namespace}/{repo}/discussions/{num}/storage PR storage estimate #
POST /api/papers/{paperId}/comment Create a new comment #
POST /api/papers/{paperId}/comment/{commentId}/reply Create a new comment #
DELETE /api/posts/{username}/{postSlug} Delete a discussion #
POST /api/posts/{username}/{postSlug}/comment Create a new comment #
POST /api/posts/{username}/{postSlug}/comment/{commentId}/reply Create a new comment #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/hugging-face-transformers-discussions-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

hugging-face-transformers-discussions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Hub API Endpoints Discussions API
  version: 0.0.1
  description: We have open endpoints that you can use to retrieve information from the Hub as well as perform certain actions such as creating model, dataset or Space repos.
servers:
- url: https://huggingface.co
  description: Hub
security:
- bearerAuth: []
tags:


# --- truncated at 32 KB (397 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/hugging-face-transformers/refs/heads/main/openapi/hugging-face-transformers-discussions-api-openapi.yml