integrations.sh
← all integrations

SwaggerHub Registry API

OpenAPI apis-guru developer_tools

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 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 versionhttp(s)://SERVER/v1/openapi.json - JSON version

Earlier versions:

http(s)://SERVER/v1/swagger.yaml - YAML versionhttp(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 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:

Homepage
https://api.apis.guru/v2/specs/swaggerhub.com/1.0.66.json
Provider
swaggerhub.com
OpenAPI version
2.0
Spec (JSON)
https://api.apis.guru/v2/specs/swaggerhub.com/1.0.66/swagger.json
Spec (YAML)
https://api.apis.guru/v2/specs/swaggerhub.com/1.0.66/swagger.yaml

Tool extraction failed: Only OpenAPI 3.x documents are supported. Swagger 2.x documents should be converted first..