Creating an API proxy

You're viewing Apigee X documentation.
View Apigee Edge documentation.

Create a simple proxy using the Apigee UI and API, as described in the following sections.

Apigee UI

The Apigee UI provides an API Proxy Wizard that walks you through the steps to create a new API proxy.

To create a simple API proxy using the API Proxy Wizard:

  1. Sign in to the Apigee UI.
  2. Click API Proxies in the main view.
  3. From the Environment drop-down list, select the environment in which you want to create a new API proxy.

    The hybrid UI displays a list of API proxies for that environment. If you haven't created any proxies yet, the list is empty.

  4. Click Create New.

    The Create Proxy wizard starts.

  5. Click Reverse proxy (most common).

    A reverse proxy

    The Proxy details page is displayed.

  6. Configure your proxy with the following settings:
    • Name: Enter getstarted. If a proxy already exists with this name, choose a different name.
    • Base Path: Leave this set to /getstarted. The Base Path is part of the URL used to make requests to your API. Apigee uses the URL to match and route incoming requests to the proper API proxy.
    • Description (Optional): Enter a description for your new API proxy, such as Get started API proxy.
    • Target (Existing API): Enter This defines the target URL that Apigee invokes on a request to the API proxy. The mocktarget service is hosted at Apigee and returns simple data. It requires no API key or access token.

    Your API proxy's details should look like the following:

    API proxy details

  7. Click Next.
  8. In the Common policies view, under Security: Authorization select Pass through (no authorization).

    Pass through selection

  9. On the Summary page, select the deployment environments, if desired, and click Create and deploy.

    Create and

    Your new API proxy is created and deployed in the selected environment.

    Successful deployment

  10. Click Edit proxy to display the details page for the API proxy.
  11. Edit proxy

In the API proxies list, the getstarted API proxy deployment status is green for the test environment.

Shows list of API proxies. getstarted deployment status is green.

Next steps

After you create a simple API proxy, you typically do one of the following:

Apigee API

Create an API proxy in your Apigee organization by issuing a POST request to the following resource:$ORG/apis

You must define the name of the API proxy using the name query parameter. Restrict the characters used in the name to the following: A-Za-z0-9._\-$ %

Optionally, you can import an API proxy configuration bundle by performing the following steps:

  • Set the action query parameter to import
  • Set the Content-type header to multipart/form-data
  • Pass the name of the API proxy configuration bundle on your local file system

The following example demonstrates how to create an API proxy by importing an API proxy configuration bundle ( on your local file system using the API.

curl "$ORG/apis?name=helloworld&action=import" \
  -X POST \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-type: multipart/form-data" \
  -F ""

Where $TOKEN is set to your OAuth 2.0 access token, as described in Obtaining an OAuth 2.0 access token. For information about the curl options used in this example, see Using curl. For a description of the environment variables used, see Setting environment variables for Apigee API requests.

The following provides an example of the response output:

  "basepaths": [
  "configurationVersion": {
    "majorVersion": 4
  "createdAt": "1559145292799",
  "displayName": "helloworld",
  "entityMetaDataAsProperties": {
    "bundle_type": "zip",
    "subType": "Proxy",
    "lastModifiedAt": "1559145292799",
    "createdAt": "1559145292799"
  "lastModifiedAt": "1559145292799",
  "name": "helloworld",
  "policies": [
  "proxies": [
  "proxyEndpoints": [
  "resourceFiles": {},
  "targetEndpoints": [
  "targets": [
  "type": "Application",
  "revision": "1",
  "description": "Hello world"

For more information, see the API proxies API.