# Applications

An application is a container that a developer creates in the Developer Portal to group [subscriptions](https://docs.api7.ai/api7-gateway/developer-portal/key-concepts/subscriptions.md) and [credentials](https://docs.api7.ai/api7-gateway/developer-portal/key-concepts/credentials.md) for a specific project or use case. Applications provide an organizational layer between a developer and the API products they consume.

## Purpose[​](#purpose "Direct link to Purpose")

Applications serve several purposes:

* **Logical grouping**: A developer working on multiple projects can create separate applications for each one, keeping credentials and subscriptions organized.
* **Credential isolation**: Each application has its own set of credentials. Revoking or rotating credentials for one application does not affect others.
* **Subscription management**: Subscriptions are created at the application level. A developer subscribes an application to an API product, not the developer account directly.
* **Usage tracking**: API usage statistics can be tracked per application, providing visibility into which project is consuming which APIs.

## Structure[​](#structure "Direct link to Structure")

An application contains the following fields:

| Field           | Description                                        |
| --------------- | -------------------------------------------------- |
| **Name**        | A human-readable name for the application.         |
| **Description** | Optional description of the application's purpose. |
| **Labels**      | Optional key-value pairs for categorization.       |

Each application belongs to a single developer and is scoped to a single portal. Applications are identified by a unique ID generated at creation time.

## Relationship to Other Entities[​](#relationship-to-other-entities "Direct link to Relationship to Other Entities")

<!-- -->

* A developer can have multiple applications.
* An application can subscribe to multiple API products.
* An application can contain multiple credentials (of different types).
* Subscriptions link an application to an API product.

## Lifecycle[​](#lifecycle "Direct link to Lifecycle")

1. **Create**: A developer creates an application in the Developer Portal, providing a name and optional description.
2. **Subscribe**: The developer subscribes the application to one or more API products. Depending on the product's configuration, subscriptions may require approval.
3. **Add credentials**: The developer creates credentials within the application. The credential type must match one of the authentication types enabled on the subscribed API product.
4. **Use**: The developer uses the credentials to make authenticated API requests through the gateway.
5. **Delete**: Deleting an application also deletes all its credentials and cancels all its subscriptions.

## Additional Resources[​](#additional-resources "Direct link to Additional Resources")

* [Create an Application](https://docs.api7.ai/api7-gateway/developer-portal/guides/create-application.md)
* [Subscriptions](https://docs.api7.ai/api7-gateway/developer-portal/key-concepts/subscriptions.md)
* [Credentials](https://docs.api7.ai/api7-gateway/developer-portal/key-concepts/credentials.md)
