Generated banner for API Gateway Openapi Spec Authoring
Generated logo for API Gateway Openapi Spec Authoring

API Gateway Openapi Spec Authoring

GoogleOfficialPublished by Google

  • Skill
  • Tool integration
  • Cloud and DevOps
  • Apache-2.0
  • Low risk
  • Has scripts

From the author

Writes, migrates, and fixes OpenAPI specs for Google Cloud API Gateway. Use when converting an OpenAPI 2.0 (Swagger) spec to OpenAPI 3.x, writing a new OpenAPI 3.x spec, or fixing a failed "gcloud api-gateway api-configs create", such as "extension is only supported in OpenAPI 2.x". Also use when quotas set with x-google-quota are never enforced, or when a backend receives path parameters as query parameters. Don't use for adding or debugging MCP tools (use api-gateway-mcp-server), backend lockdown or HTTP 429 tuning (use api-gateway-backend-security-and-rate-limiting), Cloud Endpoints, Apigee, or GKE Gateway API.
— the description by Google

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

This skill provides a structured approach to managing OpenAPI specifications for Google Cloud API Gateway. It supports the creation of new OpenAPI 3.x specs, the migration of legacy OpenAPI 2.0 (Swagger) configurations, and the resolution of common deployment errors encountered during the API configuration process. The skill includes a validation loop using a provided script to ensure specifications meet the requirements of the API Gateway service before deployment.

What it does

  • Converts OpenAPI 2.0 specifications to OpenAPI 3.x format.
  • Writes new OpenAPI 3.x specifications for API Gateway.
  • Troubleshoots and fixes errors from gcloud api-configs create commands.
  • Configures backend routing, authentication, and quota settings within the spec.
  • Validates specifications using a local Python script.
  • Provides workflows for updating API configurations and gateways.

When to use it

  • When migrating an existing Swagger 2.0 API definition to OpenAPI 3.x.
  • When creating a new API configuration for Google Cloud API Gateway.
  • When encountering errors during the API config creation process.
  • When needing to adjust backend path translation, authentication, or quota settings.

Advantages

  • Ensures compatibility with Google Cloud API Gateway requirements.
  • Automates the detection of common configuration errors before deployment.
  • Provides clear guidance on mapping legacy extensions to modern OpenAPI 3.x structures.
  • Includes a deterministic validation loop to improve success rates for API config creation.

Usage examples

“Convert my existing swagger.yaml to an OpenAPI 3.0 spec for API Gateway.”
The agent will analyze the file, apply the necessary structural changes for Google extensions, and validate the result.
“My gcloud api-configs create command failed with an extension error. Can you fix it?”
The agent will identify the unsupported extension, update the spec to the correct OpenAPI 3.x format, and verify it with the validation script.

Install

  1. Download the skill as a ZIP:

    https://autogineer.com/agent-skills/google/api-gateway-openapi-spec-authoring/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip api-gateway-openapi-spec-authoring.zip -d .agents/skills

Documentation by Google

API Gateway OpenAPI Spec Authoring

API Gateway accepts API configs in OpenAPI 2.0, 3.0.x, and 3.1.x. The Google extensions in OpenAPI 3.x have a different structure from the OpenAPI 2.0 extensions:

  • A required root x-google-api-management block names the backends.

  • x-google-backend is a string that references one of these backends.

  • The JWT settings move into x-google-auth. The metrics and quotas move into x-google-api-management.

Use this skill to migrate an OpenAPI 2.0 spec, write a new OpenAPI 3.x spec, or fix an API config that fails to create.

Attribution

MUST READ: Before executing any gcloud, REST API, or MCP command, you MUST read Usage Attribution. For commands executed directly in the terminal (never in generated scripts, Terraform, or user code), prefix gcloud with CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:api-gateway-openapi-spec-authoring)" and append agent-skills/1.0 (skill:api-gateway-openapi-spec-authoring) to User-Agent headers.

Prerequisites

  1. Install the tools:

    • Install the Google Cloud CLI. Then update it with gcloud components update. Rationale: an old CLI can fail when it uploads an OpenAPI 3.x API config.

    • Install Python 3.10 or later and PyYAML for the validator script. A JSON spec does not need PyYAML.

      pip install "PyYAML>=6.0,<7.0"
  2. Authenticate, and select the project, billing, and location:

    • Run gcloud auth login.

    • Select a project with gcloud config set project {project_id}, or create one with gcloud projects create {project_id}.

    • Make sure that an active billing account is linked to {project_id}. API Gateway has a free monthly allowance of API calls, but it still needs an active billing account. For current prices, see API Gateway pricing.

    • Use us-central1 as the default --location for gateway commands. For the other supported regions, see API Gateway deployment model.

  3. Enable the required Google Cloud APIs:

    gcloud services enable \
      apigateway.googleapis.com \
      servicemanagement.googleapis.com \
      servicecontrol.googleapis.com \
      --project={project_id}
  4. Verify the IAM roles (use the most restrictive role for each step):

    • To create and update the API, API configs, and gateways: API Gateway Admin (roles/apigateway.admin) on {project_id}.

    • To run the gcloud services enable commands: Service Usage Admin (roles/serviceusage.serviceUsageAdmin) on {project_id}.

    • To reference the gateway service account in an API config: Service Account User (roles/iam.serviceAccountUser) on {gateway_sa_email}.

    • For a Cloud Run backend that requires authentication: grant {gateway_sa_email} the Cloud Run Invoker role (roles/run.invoker) on the service.

Decision Matrix

TaskRequired MechanismCritical GuardrailDetailed Reference
Migrate an OpenAPI 2.0 (swagger: "2.0") configConvert the standard fields, then move each Google extension to its OpenAPI 3.x form.A converter such as Swagger Editor leaves every x-google-* extension in its OpenAPI 2.0 form. It also writes servers without x-google-endpoint, so the API loses its base path. Rationale: API Gateway rejects most OpenAPI 2.0 extensions in a 3.x spec with The '{extension}' extension is only supported in OpenAPI 2.x.OpenAPI 2.0 to 3.x Migration
Route requests to backendsRoot x-google-api-management.backends.{backend_name} + x-google-backend: {backend_name} at the root or on an operationSet pathTranslation on every backend. Rationale: the default is APPEND_PATH_TO_ADDRESS for a root x-google-backend, but CONSTANT_ADDRESS for an operation-level one. CONSTANT_ADDRESS sends every request to the address unchanged, and sends path parameters as query parameters. APPEND_PATH_TO_ADDRESS appends the full request path, with the base path. NEVER set x-google-backend on a path item: API Gateway rejects it.Extensions and Limits
Authenticate callersJWT: type: oauth2 scheme with x-google-auth (issuer, jwksUri, audiences). API key: type: apiKey scheme with x-api-key in a header, or key or api_key in the query.API Gateway does not check OAuth scopes. In a security list, put an API key in every alternative (OR) or in none. NEVER put two JWT schemes in one requirement object (AND). Rationale: API Gateway rejects these combinations. If the user asks for one of them, such as a JWT or an API key as alternatives, do not write it in the spec. Explain the rule, and write a supported option, such as an API key in every alternative or a separate path for each kind of caller.Extensions and Limits
Add quotasx-google-api-management.metrics and quota.limits + x-google-quota: {metric_name: cost} on each operationNEVER rely on x-google-quota at the root or path level. Rationale: in OpenAPI 3.x, API Gateway ignores it there without an error. Require an API key on each operation that has a quota, and keep each metric name the same in every API config.Extensions and Limits
Set the base path and CORSOne servers entry with x-google-endpoint, such as url: /v1API Gateway ignores servers entries without x-google-endpoint. allowCors: true only passes CORS requests to the backend. Rationale: the gateway does not add CORS headers, so the backend must answer them.Extensions and Limits
Fix a failed api-configs createMatch the error text to the error table, and fix the spec.Fix the spec before you retry, unless the error is about IAM or another api-configs create that runs. Rationale: API Gateway returns the same error for the same spec.API Config Errors
Expose operations as MCP toolsThe api-gateway-mcp-server skillMCP adds rules for tool names, descriptions, and tools/list security. If that skill is not installed, use this skill for the OpenAPI 3.x spec, and follow the Configure MCP guide for the MCP extensions.-

Execution Workflow and Validation Loop

  1. Get the current spec:

    • Use the spec file in the user's repository. If there is no file, find the active API config of the gateway:

      gcloud api-gateway gateways describe {gateway_id} --location={region} --project={project_id} --format="value(apiConfig)"
    • The output is projects/{project}/locations/global/apis/{api_id}/configs/{config_id}. Print the spec of that config:

      gcloud api-gateway api-configs describe {config_id} --api={api_id} --project={project_id} --view=FULL \
        --format="value(openapiDocuments[0].document.contents)" | tr '_-' '/+' | base64 --decode
    • gcloud prints the contents in URL-safe base64, so tr changes two characters before base64 --decode. If the config has more than one OpenAPI document, change [0] to [1], [2], and so on.

  2. Write the OpenAPI 3.x spec:

    • For an OpenAPI 2.0 spec, follow OpenAPI 2.0 to 3.x Migration, and compare your result with its complete converted example.

    • For a new spec, start from the template in Extensions and Limits.

    • Set openapi to a 3.0.x or 3.1.x version. The examples use 3.0.4. In OpenAPI 3.1, give each schema one type. Rationale: API Gateway rejects a type list such as type: ["string", "null"].

    • Give every operation a unique operationId and a responses object, and use only local $ref values. Rationale: API Gateway rejects an operation without operationId or responses, two operationId values that give the same method name, such as getItem and get-Item, and a $ref to a URL.

  3. Run the deterministic validation loop on every spec that you write or change, before you answer or create the API config:

    python3 scripts/validate_apigw_openapi.py --spec={spec_file}
    • The script path is relative to the directory of this skill. If you only return the spec in your reply, write it to a temporary file, and run the script on that file before you answer.

    • If the script exits with code 1 ("status": "FAIL"), fix every error in {spec_file}, and run the script again. Continue until it exits with code 0 ("status": "PASS").

    • If the script exits with code 2, fix the file path or the YAML/JSON syntax error that stderr shows, or install PyYAML.

    • Read every warning, such as a backend without pathTranslation, a quota on an operation without an API key, or allowCors. Fix it, or tell the user why you keep it.

    • The script does not check every rule. A PASS means that it found none of the API Gateway problems that this skill describes. It does not check general OpenAPI validity, such as a $ref to a schema that does not exist. Rationale: only api-configs create in step 5 shows that API Gateway accepts the spec. Do not tell the user that the spec deploys because the script passed.

  4. Summarize the spec for the user, and get approval before you deploy. State each of these points:

    • Each OpenAPI 2.0 extension that you moved or removed, such as x-google-allow, which OpenAPI 3.x does not support. Also state each other change, such as an added operationId or a fixed address.

    • The pathTranslation of each backend (backend_path_translation in the script output), and each operation whose path parameters now go to the backend as query parameters (path_parameters_as_query). With APPEND_PATH_TO_ADDRESS, the backend also receives the base path.

    • Which operations need a JWT or an API key, which backends receive an ID token and with which audience, and that API Gateway does not check OAuth scopes.

    • The quota metrics and limits, and that each metric name matches the current API config.

  5. Create a new API config and update the gateway (request human approval before you update a production gateway):

    gcloud api-gateway api-configs create {new_config_id} \
      --api={api_id} \
      --openapi-spec={spec_file} \
      --backend-auth-service-account={gateway_sa_email} \
      --project={project_id}
    
    gcloud api-gateway gateways update {gateway_id} \
      --api={api_id} \
      --api-config={new_config_id} \
      --location={region} \
      --project={project_id}
    • For a new gateway, run gcloud api-gateway gateways create {gateway_id} with the same flags instead of gateways update. api-configs create creates the API if it does not exist.

    • If an operation requires an API key, enable the managed service of the API. Get its name with gcloud api-gateway apis describe {api_id} --project={project_id} --format="value(managedService)", and then run gcloud services enable {managed_service} --project={project_id}. Also enable it in each project that creates API keys for the API.

    • Use a new config ID for each change, because you cannot change the spec of an existing API config.

    • Run one api-configs create at a time for each API, and wait for it to finish. A large API config can take up to ten minutes to create.

    • If api-configs create fails, find the error text in API Config Errors, fix the spec, and go back to step 3.

    • Keep the previous API config until the new one serves traffic. To roll back, run gateways update with the previous config ID.

  6. Verify the gateway:

    • Run gcloud api-gateway gateways describe {gateway_id} --location={region} --project={project_id} --format="value(state,defaultHostname)", and wait until the state is ACTIVE.

    • Send a request to each changed path at https://{default_hostname}{base_path}{path}, with the credential that the operation requires. Check that the backend receives the path and parameters that you expect.

    • An HTML 404 Page not found means that the gateway is not ready. Check that the last create or update finished, and retry before you change the config. During a gateway update, some requests can still reach the previous API config. A JSON 404 (The current request is not defined by this API.) means that the active API config does not define the path.

Pre-Deployment Checklist

  • [ ] openapi is 3.0.x or 3.1.x, and the spec has no OpenAPI 2.0 extension, such as x-google-management, x-google-endpoints, x-google-api-name, x-google-allow, or x-google-issuer on a security scheme.

  • [ ] x-google-api-management.backends defines every backend, every x-google-backend is a string that names one, and no path item sets x-google-backend.

  • [ ] Every backend sets pathTranslation.

  • [ ] Every operation has a unique operationId and a responses object, and each path variable has a parameter with in: path and required: true.

  • [ ] Every x-google-quota is on an operation that requires an API key, and every metric name matches the current API config.

  • [ ] At most one servers entry has x-google-endpoint, and its URL has no custom port.

  • [ ] python3 scripts/validate_apigw_openapi.py --spec={spec_file} returns "status": "PASS" (exit code 0).

Resource Cleanup

To avoid ongoing charges when you tear down a test environment, request human approval, and delete the resources in dependency order:

gcloud api-gateway gateways delete {gateway_id} --location={region} --project={project_id}
gcloud api-gateway api-configs delete {config_id} --api={api_id} --project={project_id}
gcloud api-gateway apis delete {api_id} --project={project_id}

Files

references/api-config-errors.md

API Config Errors and Silent Behaviors

  • Errors from api-configs create: Lines 8-65

  • Silent Behaviors: Lines 67-82

gcloud api-gateway api-configs create returns the first problems that it finds. Fix every error in the output, run python3 scripts/validate_apigw_openapi.py --spec={spec_file} again, and then create a new API config.

Errors from api-configs create

Match a part of the error text. The text in braces changes with the spec. Some errors have one text for OpenAPI 3.x and another text for OpenAPI 2.0.

Error textCauseFix
The 'x-google-management' extension is only supported in OpenAPI 2.x, please replace it with 'x-google-api-management'.An OpenAPI 2.0 metrics and quota block in an OpenAPI 3.x spec.Move the metrics and limits into x-google-api-management as maps. See Extension Mapping Table.
The 'x-google-endpoints' extension is only supported in OpenAPI 2.x, please replace it with 'servers[*].x-google-endpoint'.An OpenAPI 2.0 endpoint block.Move the settings to one servers entry with x-google-endpoint, and remove name.
The 'x-google-api-name' extension is only supported in OpenAPI 2.x, please replace it with 'x-google-api-management.apiName'.An OpenAPI 2.0 API name.Move the value to x-google-api-management.apiName.
The '{extension}' extension is only supported in OpenAPI 2.x, please replace it with 'x-google-auth.{field}'.x-google-issuer, x-google-jwks_uri, x-google-audiences, x-google-jwt-locations, x-issuer, or x-jwks_uri on a security scheme.Nest the values in x-google-auth (issuer, jwksUri, audiences as a list, jwtLocations).
The 'x-google-allow' extension is only supported in OpenAPI 2.x.x-google-allow in an OpenAPI 3.x spec.Remove it, and list every path. See the x-google-allow row of the Swagger 2.0 Construct Conversion Map.
The '{extension}' extension is only supported in OpenAPI 2.x, please replace it with 'x-google-api-management.backends'.x-google-backend-url or x-google-backend-deadline on an operation. At the root, API Gateway ignores them.Define the backend in x-google-api-management.backends, with address and deadline, and set x-google-backend to its name.
The 'x-security' extension is only supported in OpenAPI 2.x, please replace it with 'OpenAPI security'.x-security at the root or on an operation.Use the OpenAPI security field.
The '{extension}' extension is only supported in OpenAPI 2.x.x-google-deprecated or x-google-experimental-authorization.Follow the "Other OpenAPI 2.0 extensions" row of the Extension Mapping Table.
Extension x-google-api-management cannot be converted into proto typeA field that OpenAPI 3.x does not support, such as valueType, metricKind, unit, or name from OpenAPI 2.0, or both jwtAudience and disableAuth on one backend. The Details text names the field.Remove the field. A metric has only displayName. A limit has only metric and values. Set only one of jwtAudience and disableAuth.
Extension x-google-backend does not have a valid value. {value} is not defined in x-google-api-management.An inline x-google-backend object (the OpenAPI 2.0 form), a name that backends does not define, or an x-google-api-management block that failed to parse.Fix the cannot be converted into proto type error first, if there is one. Define the backend in x-google-api-management.backends, and set x-google-backend to its name.
Extension {extension} was specified at a path level, which is not supported.x-google-backend, x-google-backend-url, or x-google-backend-deadline on a path item.Set x-google-backend at the root or on each operation. Move a URL or a deadline to a backend in x-google-api-management.backends.
has no backend configured at the operation or API levelAn operation without an operation-level or root x-google-backend.Set a root x-google-backend, or set x-google-backend on the operation.
Address field in extension x-google-backend must use the HTTP or HTTPS protocol or is not a valid URLA backend address that is not an HTTP(S) URL.Use the full https:// URL of the backend.
Backend URL ... cannot route requests to localhost, by IP Address, to a metadata server, or to an internal addressA backend address with localhost, an IP address, a metadata server, or an .internal hostname.Use a public hostname, such as the Cloud Run service URL.
hostname must have more than one part to be fully qualifiedA backend address with a one-part hostname, often a {placeholder} that you did not replace.Use the fully qualified hostname of the backend.
Backend URL ... hostname contains a segment larger than 63 charactersA hostname label longer than 63 characters.Use a shorter hostname.
Protocol field in extension x-google-backend must be 'http/1.1' or 'h2'Another protocol value.Use http/1.1 or h2.
Protocol field in extension x-google-backend is only configurable to 'h2' for 'https' backendsprotocol: h2 with an http:// address.Use an https:// address, or http/1.1.
Quota Extension for method '{method}' references undefined metric(s) '{metric}'An x-google-quota metric that x-google-api-management.metrics does not define.Define the metric, or fix the name. Keep the name that the current API config uses.
Metric rule defined on metric '{metric}', but has no quota limits defined.An x-google-quota metric without a quota limit.Add a limit for the metric in x-google-api-management.quota.limits.
Metric '{metric}' referenced by quota limit '{limit}' does not exist.A quota limit that names an undefined metric.Define the metric, or fix the name in the limit.
Schema has multiple types defined. More than one type is not supported, please define only one type.An OpenAPI 3.1 type list, such as type: ["string", "null"].Give the schema one type.
OpenAPI spec has more than one server with x-google-endpoint extension.Two or more servers entries with x-google-endpoint.Keep x-google-endpoint on one entry.
server url '{url}' ... relative path starting with '/'A server URL without a scheme that does not start with /, such as v1.Use /v1 or an https:// URL.
is ill formed and cannot be parsed due to invalid server urlA server variable, such as https://{region}.example.com/v1, or a space in the server URL.Replace each {variable} with its value.
has a server url '{url}' with a custom port. Custom ports are not supported.A port in the server URL.Remove the port.
Service name must be provided either explicitly or in OpenAPI 'host' value.A relative server URL in an API that uses a managed service that you chose.Use url: https://{managed_service}{base_path}.
'$ref' fields must be local references and cannot contain an external URL.A $ref to a URL.Copy the schema into components.schemas, and use #/components/schemas/{name}. If you cannot get the schema, ask the user for it.
Type definition reference path '{ref}' must begin with '#/components/schemas/'A schema $ref with another path, such as #/definitions/{name} from OpenAPI 2.0.Move the schema to components.schemas, and use #/components/schemas/{name}.
Security Scheme '{name}' that does not existA security requirement that names an undefined scheme.Define the scheme in components.securitySchemes, or fix the name.
Combining API key and OAuth security requirements with a logical OR is not supported.A security list with an API key in only some alternatives, such as [{firebase: []}, {api_key: []}].Put the API key in every alternative, or in none.
Optional OAuth security requirement is not supported.An empty requirement ({}) with a JWT scheme, such as [{firebase: []}, {}].Remove {}, or use it only with API key schemes.
contains multiple security definitions ... that get logically ANDedTwo JWT schemes in one requirement object.Put each JWT scheme in its own requirement object (OR).
required property 'responses' not found (OpenAPI 3.x) or missing required properties (["responses"]) (OpenAPI 2.0)An operation without responses.Add the responses that the backend returns.
Operation does not have the required 'operationId' fieldAn operation without operationId.Give the operation a unique operationId.
has duplicate entry or is considered equivalent to operationIdTwo equal operationId values, or two values that are equal after API Gateway removes the characters other than letters, digits, and underscores and capitalizes the first letter, such as getItem and GetItem.Make the operationId values differ after that change.
unrecognized input at '{' or expected '}'A path variable that is not a whole segment, such as /items/prefix_{id} or /{a}{b}.Make each variable a whole segment.
Declared path parameter {name} needs to be defined as a path parameterA path variable without a parameter with in: path, or a {name=*} or {name=**} path from OpenAPI 2.0.Add a parameter with name: {name}, in: path, and required: true. For {name=**}, write {name}, and set x-google-parameter: {pattern: "**"} on the parameter.
Parameter is defined in the parameters list but is not in the path.A parameter with in: path that the path does not contain.Remove the parameter, or add {name} to the path.
Parameter names must start with a letter (OpenAPI 3.x) or parameter name contains invalid characters (OpenAPI 2.0)A path variable name that does not start with a letter, or that has other characters.Use letters, digits, underscores, dots, and dashes, and start with a letter.
Parameter names cannot exceed 30 characters. (OpenAPI 3.x) or is too long (max length: 100) (OpenAPI 2.0)A path variable name that is too long.Shorten the name.
Too many path parameters. Maximum allowed is 15 (OpenAPI 3.x) or exceeds maximum allowed parameters of 60 (OpenAPI 2.0)A path with too many path parameters.Use fewer path parameters, or split the operation.
paths must be 512 characters or lessA path that is too long.Shorten the path.
Only ** is supported. or must be the last segment in the path because it uses pattern: **An x-google-parameter pattern other than **, or ** on a parameter that is not the last segment.Use pattern: "**" only on the last path segment.
does not have a value in the enumeration ["path"]A parameter with in: body or in: formData from OpenAPI 2.0.Move the body or form data to requestBody.
JWKS ... cannot route requests to localhostAn x-google-auth.jwksUri that breaks the backend address rules, such as localhost.Use the public key URL of the token issuer.
JWKS provider "{name}" is missing a JWKS URIA type: oauth2 security scheme without x-google-auth.jwksUri, also a scheme that no operation uses.Set jwksUri in x-google-auth, or remove the unused scheme.
which exceeds the maximum of 600 seconds supported by this GatewayA backend deadline above 600 seconds. gateways create or gateways update returns this error, not api-configs create.Set deadline to 600 or less. A streaming gateway accepts up to 3600.
string found, object expectedOften a YAML alias to a mapping (*anchor).Replace the alias with a $ref, or copy the mapping.
Invalid API name '{name}'An apiName that is not a lowercase letter followed by at most 39 lowercase letters or digits.Use a name such as orders.
OpenAPI files includes conflicting API versionsTwo files in one API config with the same apiName, or without apiName, and the same major version.Merge the files, or give each file its own x-google-api-management.apiName.
maximum allowed number of 50 files or maximum allowed size of 10MBToo many or too large OpenAPI files.Merge or shrink the files.

Silent Behaviors

API Gateway accepts these specs without an error, but does not do what the author often expects. The validator script reports the first row as an error and the other rows as warnings.

SpecWhat API Gateway doesFix
x-google-quota at the root or on a path itemIgnores it in OpenAPI 3.x. No quota applies.Set x-google-quota on each operation.
An operation-level x-google-backend whose backend has no pathTranslationUses CONSTANT_ADDRESS: it sends each request to the address unchanged, and sends path parameters as query parameters.Set pathTranslation: APPEND_PATH_TO_ADDRESS on the backend if the backend routes by path.
A Cloud Run address with a path, and no jwtAudienceSends an ID token whose audience is the full address. Cloud Run rejects the token.Set jwtAudience to the service URL without the path.
servers entries without x-google-endpointIgnores them, and applies no base path.Add x-google-endpoint: {} to the entry with the base path.
allowCors: truePasses CORS requests to the backend. It does not add CORS headers.Make the backend answer preflight OPTIONS requests and add the CORS headers.
OAuth scopes in a security schemeDoes not check them.Check the scopes in the backend.
An API key scheme with a name other than x-api-key in a header, or key or api_key in the queryIgnores the scheme. Operations that require only this scheme accept calls without a key.Use one of the supported names and locations.
x-google-quota on an operation that does not require an API keyAccepts calls without an API key, and cannot identify the consumer project that the quota counts.Require an API key in every security alternative of the operation.

API Gateway also does not check required parameters, parameter types, or request body schemas. It forwards each request, so the backend must validate the input.

Requirements and compatibility

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Needs: Needs an API key, Needs a command-line tool, Needs Python

Security

What our scanner noticed· Low risk

  • Instructions that use the network
  • Scripts that your agent may run

This skill includes scripts that your agent may run. Read them before you use it.

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Published by
Google
Publisher
Google (Official)
Source
google/skills · skills/cloud/api-gateway-openapi-spec-authoring · commit 2194d3b
Licence
Apache License 2.0 (redistribution allowed)
  • LICENSE (added by AutoGineer from LICENSE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced

AutoGineer is not affiliated with or endorsed by Google or Google.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download api-gateway-openapi-spec-authoring.zip