Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Import a Regional API into API Gateway

Focus mode
Import a Regional API into API Gateway - Amazon API Gateway

When importing an API, you can choose the regional endpoint configuration for the API. You can use the API Gateway console, the AWS CLI, or an AWS SDK.

When you export an API, the API endpoint configuration is not included in the exported API definitions.

For a tutorial on using the Import API feature from the API Gateway console, see Tutorial: Create a REST API by importing an example.

Import a regional API using the API Gateway console

To import an API of a regional endpoint using the API Gateway console, do the following:

  1. Sign in to the API Gateway console at https://console.aws.amazon.com/apigateway.

  2. Choose Create API.

  3. Under REST API, choose Import.

  4. Copy an API's OpenAPI definition and paste it into the code editor, or choose Choose file to load an OpenAPI file from a local drive.

  5. For API endpoint type, select Regional.

  6. Choose Create API to start importing the OpenAPI definitions.

Import a regional API using the AWS CLI

The following import-rest-api command imports an OpenAPI definition file and sets the endpoint type to Regional:

aws apigateway import-rest-api \ --parameters endpointConfigurationTypes=REGIONAL \ --fail-on-warnings \ --body 'file://path/to/API_OpenAPI_template.json'
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.