SwaggerHub Templates API

The Templates API from SwaggerHub — 14 operation(s) for templates.

Operations 21

POST /templates/{owner}/{templateId} Create or update a template #
DELETE /templates/{owner}/{templateId} Delete a template #
GET /templates/{owner}/{templateId}/{version} Retrieves a template definition #
DELETE /templates/{owner}/{templateId}/{version} Delete a particular version of a template #
GET /templates Retrieves list of templates #
GET /templates/{owner}/{templateId}/{version}/settings/private Retrieve visibility settings #
PUT /templates/{owner}/{templateId}/{version}/settings/private Update visibility settings #
POST /templates/{owner}/{templateId}/{version}/fork Fork a template #
GET /templates/{owner}/{templateId}/{version}/settings/lifecycle Retrieves lifecycle settings #
PUT /templates/{owner}/{templateId}/{version}/settings/lifecycle Updates lifecycle settings #
POST /templates/{owner}/{templateId}/rename Rename a template #
GET /templates/{owner}/{templateId}/{version}/comments Returns the list of comments for a template #
POST /templates/{owner}/{templateId}/{version}/comments Adds a new comment to the specified template #
POST /templates/{owner}/{templateId}/{version}/comments/batch Updates passed batch of comments #
DELETE /templates/{owner}/{templateId}/{version}/comments/{comment} Deletes specified comment #
PATCH /templates/{owner}/{templateId}/{version}/comments/{comment} Updates specified comment #
PUT /templates/{owner}/{templateId}/{version}/comments/{comment}/status/{status} Updates status of the specified comment #
POST /templates/{owner}/{templateId}/{version}/comments/{comment}/replies Adds a new reply to the specified comment #
DELETE /templates/{owner}/{templateId}/{version}/comments/{comment}/replies/{reply} Deletes specified comment reply #
PATCH /templates/{owner}/{templateId}/{version}/comments/{comment}/replies/{reply} Updates specified comment reply #
GET /specs Retrieves a list of currently defined APIs, Domains and Templates in APIs.json… #

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/swaggerhub:swaggerhub-templates-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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

swaggerhub-templates-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SwaggerHub Registry Templates API
  description: The registry API for SwaggerHub
  contact:
    name: SwaggerHub
    url: https://swaggerhub.com
    email: info@swaggerhub.com
  version: ${swaggerhub.registry.api.version}
servers:
- url: https://api.swaggerhub.com
tags:


# --- truncated at 32 KB (38 KB total) ---
# Full source: https://artifacts.apis.io/swaggerhub/openapi/swaggerhub-templates-api-openapi.yml