Amazon API Gateway Routes API

Manage routes within an API

Operations 2

GET /v2/apis/{api_id}/routes Amazon API Gateway List Routes #
POST /v2/apis/{api_id}/routes Amazon API Gateway Create a Route #

Documentation

Specifications

Other Resources

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

Discovery needs no key. Ratings and market analysis are Pro.

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

aws-api-gateway-routes-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Amazon API Gateway V2 (HTTP and WebSocket) Routes API
  description: The API Gateway V2 control plane API is used to create, deploy, and manage HTTP APIs and WebSocket APIs in Amazon API Gateway.
  version: '2018-11-29'
  contact:
    name: AWS Support
    url: https://aws.amazon.com/premiumsupport/
  termsOfService: https://aws.amazon.com/service-terms/
servers:
- url: https://apigateway.{region}.amazonaws.com
  description: Amazon API Gateway regional endpoint
  variables:
    region:
      default: us-east-1
      description: AWS region
security:
- sigv4: []
tags:
- name: Routes
  description: Manage routes within an API
paths:
  /v2/apis/{api_id}/routes:
    parameters:
    - $ref: '#/components/parameters/ApiId'
    get:
      operationId: getRoutes
      summary: Amazon API Gateway List Routes
      description: Gets a collection of routes for an API.
      tags:
      - Routes
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Routes'
              examples:
                getRoutes200Example:
                  summary: Default getRoutes 200 response
                  x-microcks-default: true
                  value:
                    Items:
                    - example-value
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    post:
      operationId: createRoute
      summary: Amazon API Gateway Create a Route
      description: Creates a route for an API.
      tags:
      - Routes
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateRouteRequest'
            examples:
              createRouteRequestExample:
                summary: Default createRoute request
                x-microcks-default: true
                value:
                  RouteKey: example-value
                  Target: example-value
                  AuthorizationType: example-value
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Route'
              examples:
                createRoute201Example:
                  summary: Default createRoute 201 response
                  x-microcks-default: true
                  value:
                    RouteId: abc123
                    RouteKey: example-value
                    Target: example-value
                    AuthorizationType: example-value
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
components:
  schemas:
    CreateRouteRequest:
      type: object
      required:
      - RouteKey
      properties:
        RouteKey:
          type: string
          description: Route key for the new route.
          example: example-value
        Target:
          type: string
          description: Integration target reference.
          example: example-value
        AuthorizationType:
          type: string
          description: Authorization type for the route.
          example: example-value
    Route:
      type: object
      properties:
        RouteId:
          type: string
          description: Route identifier.
          example: abc123
        RouteKey:
          type: string
          description: Route key (e.g. "GET /items" or "$connect").
          example: example-value
        Target:
          type: string
          description: Integration target reference.
          example: example-value
        AuthorizationType:
          type: string
          description: Authorization type for the route.
          example: example-value
    Routes:
      type: object
      properties:
        Items:
          type: array
          items:
            $ref: '#/components/schemas/Route'
          example:
          - example-value
  parameters:
    ApiId:
      name: api_id
      in: path
      required: true
      description: API identifier.
      schema:
        type: string
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4 signed request.
externalDocs:
  description: Amazon API Gateway V2 API Reference
  url: https://docs.aws.amazon.com/apigatewayv2/latest/api-reference/Welcome.html