---
schema_version: "1"
id: 8e72df10c11a7ce1ca82658af4f416380c73b540f6353b31e1eabfed562dc79c
title: API Autodiscovery
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/mule-gateway/mule-gateway-autodiscovery-overview.md
canonical_url: https://docs.mulesoft.com/mule-gateway/mule-gateway-autodiscovery-overview
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 95dcbf8cb9f76e3bc7fc92649f3a2252f96306b57f165147164e6b14cef98126
description: MuleSoft Documentation Site
latest: true
---
---
product: Mule Gateway
---

# API Autodiscovery

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

Configuring autodiscovery allows a deployed Mule runtime engine (Mule) application to connect with
API Manager to download and manage policies and to generate analytics data. Additionally, with
autodiscovery, you can configure your Mule applications to act as their own API proxy.

When autodiscovery is correctly configured in your Mule application, you can say that your
application’s API is _tracked by_ (green dot) or _paired to_ API Manager. You can associate an API
in a Mule setup with only one autodiscovery instance at a given time.

> [!NOTE] The flow referenced for autodiscovery must use an
> [HTTP Listener](https://docs.mulesoft.com/http-connector/1.10/http-listener-ref) component. Other connectors that use
> HTTP as an underlying transport aren’t supported for policy enforcement.

## Prerequisites

To [configure autodiscovery for your Mule application](https://docs.mulesoft.com/mule-gateway/mule-gateway-config-autodiscovery-mule4),
ensure that:

- The API exists in API Manager and is configured as either a basic endpoint, or a proxy endpoint.

- The Mule application is configured to use Anypoint Platform credentials.

  The platform credentials give your application access to the API Configuration in API Manager. You
  must configure your platform credentials before starting Mule.

- The autodiscovery element is configured in your Mule application.

  This XML element must point to the specific API in API manager which you want to pair to.

## Proxy Endpoint vs Basic Endpoint

If you configured a proxy endpoint, your autogenerated proxy is already correctly configured with
the autodiscovery element. Additionally, if you want to take advantage of the platform deployment
capabilities, such as 1-Click deployment, the API Manager credentials are automatically set for you.

## See Also

- [API Proxy](https://docs.mulesoft.com/api-manager/latest/api-proxy-landing-page)

- [Configuring API Autodiscovery in a Mule 4 Application](https://docs.mulesoft.com/mule-gateway/mule-gateway-config-autodiscovery-mule4)

- [Configuring Organization Credentials in Mule Runtime 4](https://docs.mulesoft.com/mule-gateway/mule-gateway-org-credentials-mule4)
