Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Yandex API Gateway
  • Getting started
  • Access management
  • Tools
  • Pricing policy
  • Terraform reference
    • API authentication
      • Overview
        • Overview
        • Get
        • List
        • Create
        • Update
        • Delete
        • Resume
        • Stop
        • AddDomain
        • RemoveDomain
        • GetOpenapiSpec
        • ListOperations
        • ListAccessBindings
        • SetAccessBindings
        • UpdateAccessBindings
  • Monitoring metrics
  • Audit Trails events
  • Public materials
  • Release notes
  • FAQ

In this article:

  • HTTP request
  • Path parameters
  • Query parameters
  • Response
  1. API reference
  2. REST
  3. ApiGateway
  4. GetOpenapiSpec

API Gateway Service, REST: ApiGateway.GetOpenapiSpec

Written by
Yandex Cloud
Updated at December 9, 2025
  • HTTP request
  • Path parameters
  • Query parameters
  • Response

Returns the OpenAPI specification of specified API gateway.

HTTP requestHTTP request

GET https://serverless-apigateway.api.cloud.yandex.net/apigateways/v1/apigateways/{apiGatewayId}:spec

Path parametersPath parameters

Field

Description

apiGatewayId

string

Required field. ID of the API gateway to get specification from.

Query parametersQuery parameters

Field

Description

format

enum (Format)

Format of returned specification. Default is the original format used in CreateApiGatewayRequest.

  • JSON
  • YAML

ResponseResponse

HTTP Code: 200 - OK

{
  "apiGatewayId": "string",
  "openapiSpec": "string"
}

Field

Description

apiGatewayId

string

ID of the API gateway.

openapiSpec

string

The text of specification, JSON or YAML.

Was the article helpful?

Previous
RemoveDomain
Next
ListOperations
© 2025 Direct Cursus Technology L.L.C.