5 min read

Apigee API Gateway Tutorial: How to Create Your First API Proxy

D
DharunKumaar R
Technical Contributor & Architect
Aug 18, 2026 36 views
Executive Summary

Learn how to create a simple API proxy using Apigee Edge's intuitive UI. This guide covers both the Edge and Classic Edge UI methods, ensuring you can get started quickly and easily.

If you're new to Apigee API Management, one of the best ways to understand the platform is by creating your first API proxy.

An API proxy acts as an intermediary between API consumers and backend services. Instead of exposing the backend directly, Apigee provides a managed layer where you can apply security, traffic management, analytics, and other API policies.

In this beginner-friendly tutorial, we'll walk through the basic process of creating, deploying, and testing an API proxy in Apigee.

What Is an Apigee API Proxy?

A simple API architecture looks like:

Client Application
       ↓
   Apigee Proxy
       ↓
 Backend Service

The proxy separates the API that consumers use from the backend implementation. This means backend services can change without necessarily requiring API consumers to change their integrations.


Before You Begin

Before creating a proxy, you need a provisioned Apigee organization and at least one usable environment.

For this example, we'll use Google's Apigee mock target:

https://mocktarget.apigee.net

It is useful for learning because it provides a simple backend service that does not require an API key or access token for the basic tutorial.


Step 1: Open the API Proxies Page

In the Google Cloud console:

Apigee → Proxy Development → API Proxies

Click + Create.

Apigee provides several proxy templates. For a basic backend service, select:

Reverse proxy (Most common)

A reverse proxy receives requests from API consumers and routes them to an existing backend service.


Step 2: Configure the API Proxy

Enter the following details:

Field Example
Proxy Name myproxy
Base Path /myproxy
Description My first Apigee API proxy
Target https://mocktarget.apigee.net

The Base Path becomes part of the URL that clients use to access the proxy, while the target URL specifies the backend service that Apigee will invoke.

Click Next and then Create.

Apigee creates the proxy and generates a proxy revision.


Step 3: Deploy the API Proxy

Creating a proxy does not automatically make it available to API consumers.

A proxy must be deployed to an Apigee environment before clients can use it.

From the proxy's deployment options:

  1. Select the required environment.
  2. Choose the appropriate revision.
  3. Deploy the proxy.

Once deployment is complete, Apigee displays the deployment status.

Your basic architecture is now:

Client
  ↓
Apigee
  ↓
/myproxy
  ↓
mocktarget.apigee.net

Step 4: Test Your API Proxy

Once the proxy is deployed, copy the hostname associated with your Apigee environment and append the proxy base path.

For example:

https://YOUR_HOSTNAME/myproxy

You can test the endpoint using a browser, Postman, or curl.

Example:

curl https://YOUR_HOSTNAME/myproxy

Apigee receives the request, matches the /myproxy base path, and forwards the request to the configured target service.


Step 5: Add API Security

A production API should not normally remain completely open.

Apigee supports policies that can enforce security and access controls, including API key validation and OAuth 2.0 authentication.

For example:

Client Request
      ↓
Authentication
      ↓
Authorization
      ↓
Rate Limiting
      ↓
API Proxy
      ↓
Backend

You can add policies such as:

  • VerifyAPIKey
  • OAuthV2
  • Quota
  • Spike Arrest
  • Threat protection

This is where an API proxy becomes more than a simple routing layer.


Step 6: Add Traffic Management

As API usage increases, protecting backend services becomes important.

Apigee provides policies such as Quota and Spike Arrest to control API traffic.

For example:

Incoming Requests
       ↓
Spike Arrest
       ↓
Quota
       ↓
Security
       ↓
Backend

This can help prevent excessive traffic from affecting backend availability and performance.


Step 7: Monitor Your API

After deployment, use Apigee analytics and monitoring to understand how your API is performing.

Useful metrics include:

  • Request volume
  • Response time
  • Error rates
  • HTTP status codes
  • Traffic patterns
  • Backend latency

Monitoring allows you to identify performance problems and unusual traffic before they become larger operational issues.


Creating a Proxy from OpenAPI

For real-world projects, you may already have an OpenAPI Specification.

Apigee can use an OpenAPI specification to generate an API proxy, including information such as paths, parameters, flows, and target configuration.

This can significantly speed up API development and help maintain consistency between API design and implementation.

The general workflow is:

OpenAPI Specification → Create Proxy → Configure Policies → Deploy → Test


Best Practices for Your First API Proxy

When moving beyond a basic tutorial, keep these practices in mind:

  • Use meaningful proxy names and base paths.
  • Keep proxy flows simple and maintainable.
  • Secure production APIs with appropriate authentication.
  • Apply quotas and traffic controls based on backend capacity.
  • Use HTTPS for API communication.
  • Document your API clearly.
  • Monitor latency, errors, and traffic.
  • Use API revisions when making changes.
  • Test APIs before promoting them to production.

For larger projects, consider developing API proxies through source-controlled workflows such as Apigee in Cloud Code rather than relying exclusively on the UI.


Conclusion

Creating your first API proxy is one of the fundamental steps in learning Apigee API Management.

The basic workflow is straightforward:

Create → Configure → Deploy → Test → Secure → Monitor

An API proxy provides a managed layer between consumers and backend services, allowing organizations to add authentication, traffic management, analytics, transformation, and other policies without tightly coupling clients to backend implementations.

Once you understand the basic proxy, the next step is to explore OAuth 2.0, API keys, Quota, Spike Arrest, API Products, developer portals, analytics, and advanced Apigee X architecture.

Start with a simple proxy, understand the request flow, and then gradually add the policies and capabilities your production API requires.

Category: Apigee, Tutorials
D
DharunKumaar R

Community Architect and Technical Writer specializing in Google Cloud Apigee X, OpenAPI 3.0, and enterprise API gateways.