# SwaggerHub Registry API API

> # Overview Use SwaggerHub Registry API to access, manage, and update the following resources in SwaggerHub, bypassing the web interface: * APIs * Domains * Integrations * Projects * Templates SwaggerHub also provides the [User Management API](https://app.swaggerhub.com/apis-docs/swagger-hub/user-management-api/) to get information about organizations and manage organization members. # Base URL Use the following base URL for SwaggerHub SaaS: http(s)://api.swaggerhub.com **Note:** This documentation is for SwaggerHub SaaS. On-Premise customers should use the bundled API definition, which can be found at the URLs provided below. Version 1.29.0 or later: http(s)://SERVER/v1/openapi.yaml - YAML version http(s)://SERVER/v1/openapi.json - JSON version Earlier versions: http(s)://SERVER/v1/swagger.yaml - YAML version http(s)://SERVER/v1/swagger.json - JSON version # Authentication Operations that update data or access private data require authentication using an API key. You can find your personal API key on the [API Keys](https://app.swaggerhub.com/settings/apiKey) page in your account settings. Send this key in the `Authorization` header when making requests to the Registry API: Authorization: YOUR_API_KEY To test API calls from this documentation page, click the **Authorize** button below and paste your API key there. **Important:** Keep the API key secure and do not store it directly in your code. # Tools In addition to calling the Registry API directly, you can use the following tools to interact with the API from the command line or CI/CD pipeline: * [SwaggerHub CLI](https://www.npmjs.com/package/swaggerhub-cli) * [Maven plugin](https://github.com/swagger-api/swaggerhub-maven-plugin) * [Gradle plugin](https://github.com/swagger-api/swaggerhub-gradle-plugin)

SwaggerHub Registry API is a development API from swaggerhub.com. Requests are authenticated with an API key. It is served over HTTPS. Its OpenAPI description documents 87 endpoints.

## At a glance

- Category: [Development](https://www.openparable.com/apis/category/development)
- Provider: swaggerhub.com
- Authentication: API key
- HTTPS: Yes
- CORS: Not stated
- Base URL: https://api.swaggerhub.com
- Documentation: https://support.smartbear.com/swaggerhub/message/
- OpenAPI description: https://api.apis.guru/v2/specs/swaggerhub.com/1.0.66/swagger.json
- Version: 1.0.66
- Specification updated: 2023-02-17

## Example request

```bash
curl -X GET "https://api.swaggerhub.com/apis" \
  -H "Accept: application/json" \
  -H "X-API-Key: YOUR_API_KEY"
```

## Endpoints

- `GET /apis` — Search APIs
- `GET /apis/{owner}` — Get a list of APIs of the specified owner
- `GET /apis/{owner}/{api}` — Get a list of API versions
- `POST /apis/{owner}/{api}` — Create or update an API
- `DELETE /apis/{owner}/{api}` — Delete an API
- `POST /apis/{owner}/{api}/rename` — Rename an API
- `GET /apis/{owner}/{api}/settings/default` — Get the default version of an API
- `PUT /apis/{owner}/{api}/settings/default` — Set the default API version
- `GET /apis/{owner}/{api}/{version}` — Get the OpenAPI definition of the specified API version
- `DELETE /apis/{owner}/{api}/{version}` — Delete an API version
- `POST /apis/{owner}/{api}/{version}/clone` — Create a new API version
- `GET /apis/{owner}/{api}/{version}/comments` — Get comments for the specified API version
- `POST /apis/{owner}/{api}/{version}/comments` — Add a new comment
- `POST /apis/{owner}/{api}/{version}/comments/batch` — Bulk update comments
- `PATCH /apis/{owner}/{api}/{version}/comments/{comment}` — Update a comment
- `DELETE /apis/{owner}/{api}/{version}/comments/{comment}` — Delete a comment
- `POST /apis/{owner}/{api}/{version}/comments/{comment}/replies` — Reply to a comment
- `PATCH /apis/{owner}/{api}/{version}/comments/{comment}/replies/{reply}` — Update a comment reply
- `DELETE /apis/{owner}/{api}/{version}/comments/{comment}/replies/{reply}` — Delete a comment reply
- `PUT /apis/{owner}/{api}/{version}/comments/{comment}/status/{status}` — Resolve or reopen a comment
- `POST /apis/{owner}/{api}/{version}/fork` — Fork an API
- `GET /apis/{owner}/{api}/{version}/integrations` — Get all integrations configured for the specified API version
- `POST /apis/{owner}/{api}/{version}/integrations` — Create an integration for the specified API and version
- `GET /apis/{owner}/{api}/{version}/integrations/{integrationId}` — Get integration settings
- `PUT /apis/{owner}/{api}/{version}/integrations/{integrationId}` — Update integration settings
- `PATCH /apis/{owner}/{api}/{version}/integrations/{integrationId}` — Partially update integration settings
- `DELETE /apis/{owner}/{api}/{version}/integrations/{integrationId}` — Delete an integration
- `POST /apis/{owner}/{api}/{version}/integrations/{integrationId}/execute` — Run an integration
- `GET /apis/{owner}/{api}/{version}/settings/lifecycle` — Get the published status for the specified API and version
- `PUT /apis/{owner}/{api}/{version}/settings/lifecycle` — Publish or unpublish an API version
- `GET /apis/{owner}/{api}/{version}/settings/private` — Get the visibility (public or private) of API version
- `PUT /apis/{owner}/{api}/{version}/settings/private` — Set the visibility (public or private) of an API version
- `GET /apis/{owner}/{api}/{version}/standardization` — Retrieve the standardization errors for a given API definition
- `GET /apis/{owner}/{api}/{version}/swagger.json` — Get the OpenAPI definition for the specified API version in JSON format
- `GET /apis/{owner}/{api}/{version}/swagger.yaml` — Get the OpenAPI definition for the specified API version in YAML format
- `GET /apis/{owner}/{api}/{version}/validation` (deprecated) — Deprecated Get API Standardization errors and warnings
- `GET /domains` — Search domains
- `GET /domains/{owner}` — Get a list of domains of the specified owner
- `GET /domains/{owner}/{domain}` — Get a list of domain versions
- `POST /domains/{owner}/{domain}` — Create or update a domain
- `DELETE /domains/{owner}/{domain}` — Delete a domain
- `POST /domains/{owner}/{domain}/rename` — Rename a domain
- `GET /domains/{owner}/{domain}/settings/default` — Get the default version of a domain
- `PUT /domains/{owner}/{domain}/settings/default` — Set the default version for a domain
- `GET /domains/{owner}/{domain}/{version}` — Get the OpenAPI definition of the specified domain version
- `DELETE /domains/{owner}/{domain}/{version}` — Delete a domain version
- `POST /domains/{owner}/{domain}/{version}/clone` — Create a new domain version
- `GET /domains/{owner}/{domain}/{version}/comments` — Get comments for the specified domain version
- `POST /domains/{owner}/{domain}/{version}/comments` — Add a new comment
- `POST /domains/{owner}/{domain}/{version}/comments/batch` — Bulk update comments
- `PATCH /domains/{owner}/{domain}/{version}/comments/{comment}` — Update a comment
- `DELETE /domains/{owner}/{domain}/{version}/comments/{comment}` — Delete a comment
- `POST /domains/{owner}/{domain}/{version}/comments/{comment}/replies` — Reply to a comment
- `PATCH /domains/{owner}/{domain}/{version}/comments/{comment}/replies/{reply}` — Update a comment reply
- `DELETE /domains/{owner}/{domain}/{version}/comments/{comment}/replies/{reply}` — Delete a comment reply
- `PUT /domains/{owner}/{domain}/{version}/comments/{comment}/status/{status}` — Resolve or reopen a comment
- `GET /domains/{owner}/{domain}/{version}/domain.json` — Get the OpenAPI definition for the specified domain version in JSON format
- `GET /domains/{owner}/{domain}/{version}/domain.yaml` — Get the OpenAPI definition for the specified domain version in YAML format
- `POST /domains/{owner}/{domain}/{version}/fork` — Fork a domain
- `GET /domains/{owner}/{domain}/{version}/settings/lifecycle` — Get the published status for the specified domain and version
- `PUT /domains/{owner}/{domain}/{version}/settings/lifecycle` — Publish or unpublish a domain version
- `GET /domains/{owner}/{domain}/{version}/settings/private` — Get the visibility (public or private) of a domain version
- `PUT /domains/{owner}/{domain}/{version}/settings/private` — Set the visibility (public or private) of a domain version
- `GET /projects` — Get all projects that a user has access to
- `GET /projects/{owner}` — Get all projects of an organization
- `POST /projects/{owner}` — Create a project in an organization
- `GET /projects/{owner}/{projectId}` — Get project information
- `PUT /projects/{owner}/{projectId}` — Update a project
- `DELETE /projects/{owner}/{projectId}` — Delete a project
- `GET /projects/{owner}/{projectId}/members` — Get project members
- `PUT /projects/{owner}/{projectId}/members` — Update a project's members list
- `PUT /projects/{owner}/{projectId}/{specType}/{name}` — Add an API or domain to a project
- `GET /specs` — Retrieve a list of currently defined APIs, domains, and templates in APIs.json format
- `GET /templates` — Retrieve a list of templates for an owner
- `GET /templates/{owner}/{templateId}` — Retrieve an APIs.json listing for all template versions for an owner and template
- `POST /templates/{owner}/{templateId}` — Create or update a template
- `DELETE /templates/{owner}/{templateId}` — Delete a template
- `POST /templates/{owner}/{templateId}/rename` — Rename a template
- `GET /templates/{owner}/{templateId}/{version}` — Retrieve a template definition
- `DELETE /templates/{owner}/{templateId}/{version}` — Delete a particular version of a template
- `GET /templates/{owner}/{templateId}/{version}/comments` — Return the list of comments for a template
- `POST /templates/{owner}/{templateId}/{version}/comments/batch` — Update the list of comments for a template
- `POST /templates/{owner}/{templateId}/{version}/fork` — Create a fork for a template
- `GET /templates/{owner}/{templateId}/{version}/settings/lifecycle` — Retrieve lifecycle settings for a template
- `PUT /templates/{owner}/{templateId}/{version}/settings/lifecycle` — Update lifecycle settings for a template
- `GET /templates/{owner}/{templateId}/{version}/settings/private` — Retrieve visibility settings for a template
- `PUT /templates/{owner}/{templateId}/{version}/settings/private` — Update visibility settings for a template

## Questions

### Does the SwaggerHub Registry API API need an API key?

Yes. The SwaggerHub Registry API API uses API key authentication; the documentation explains how to get credentials.

### Does the SwaggerHub Registry API API support HTTPS?

Yes, the SwaggerHub Registry API API is served over HTTPS.

### How many endpoints does the SwaggerHub Registry API API have?

Its OpenAPI description lists 87 endpoints in version 1.0.66. All of them are shown on this page.

### What are alternatives to the SwaggerHub Registry API API?

Other Development APIs include Cloudflare, Azure DevOps, IPify, App Store Connect API, StackExchange.

## Similar development APIs

- [Cloudflare](https://www.openparable.com/apis/cloudflare): Manage DNS, CDN, Workers and other services; documented with an official OpenAPI 3.0 spec
- [Azure DevOps](https://www.openparable.com/apis/azure-devops): The Azure DevOps basic components of a REST API request/response pair
- [IPify](https://www.openparable.com/apis/ipify): A simple IP Address API
- [App Store Connect API](https://www.openparable.com/apis/app-store-connect): The data structure that represents an app store connect api resource.
- [StackExchange](https://www.openparable.com/apis/stackexchange): Q&A forum for developers
- [IPinfo](https://www.openparable.com/apis/ipinfo): Another simple IP Address API
- [IBM Text to Speech](https://www.openparable.com/apis/ibm-text-to-speech): Convert text to speech
- [SiteIntel](https://www.openparable.com/apis/siteintel): Extract metadata, tech stack, emails, and screenshots from any URL
- [DigitalOcean Status](https://www.openparable.com/apis/digitalocean-status): Status of all DigitalOcean services
- [Netlify](https://www.openparable.com/apis/netlify): Netlify is a hosting service for the programmable web
- [Docker Hub](https://www.openparable.com/apis/docker-hub): Interact with Docker Hub
- [MineSkin API](https://www.openparable.com/apis/mineskin): Client implementations: Java: https://github.com/InventivetalentDev/MineskinClient NodeJS: https://github.com/InventivetalentDev/mineskin-client Examples: https://github.com/MineSkin/examples

Listed from: APIs.guru (CC0). Check the provider's terms before use.

---

Source: https://www.openparable.com/apis/swaggerhub-registry (OpenParable). Cite the canonical URL above.
