> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/application-security/application-security-posture-management-aspm/applications/import-applications-from-a-csv-file.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# Import applications from a CSV file

Importing a CSV file allows you to bring your existing application inventory into Cortex Cloud with its critical business context attached—metadata such as who owns the application, its operational state, risk posture, deployment type, and data classification. It is the recommended approach when you maintain application definitions outside Cortex Cloud and need to establish or refresh many applications in a single operation. Each row in the file defines one application: the assets it includes, and its business metadata.

For the full column contract, see [Reference A: CSV column contract](https://cortex-docs.paloaltonetworks.com/application-security/application-security-posture-management-aspm/applications/import-applications-from-a-csv-file/references/reference-a-csv-column-contract.md).

#### Available workflows

The [tenant (UI)](https://cortex-docs.paloaltonetworks.com/application-security/application-security-posture-management-aspm/applications/import-applications-from-a-csv-file/tenant-ui-workflow.md) and [API ](https://cortex-docs.paloaltonetworks.com/application-security/application-security-posture-management-aspm/applications/import-applications-from-a-csv-file/api-workflow.md)workflow offer different capabilities depending on your integration needs.

### Prerequisites

**For the tenant workflow**

* **Onboarded data source**: At least one onboarded code or cloud data source
* **Permissions**: Asset inventory **View** and **Edit** permissions

**For the API workflow**

* **Role**: A Cortex Cloud API key with the AppSec Admin role
* **Base URL**: The tenant-specific API base URL. Refer to API docs for more information.

**For both workflows**

* **Asset discovery**: Every repository, cluster, cloud account, or resource tag referenced in your file must already be discovered in your tenant. If a row lists an asset that is not yet discovered, the application is not created, even when the row's other assets are discovered
* **Quota**: Available application quota for new applications. You must have an available application quota (the default ceiling is 5,000 applications per tenant)\
  Note: API imports that only update existing applications still work, as updates do not consume quota

**Note**: Assets are checked after the import result is shown, while the applications are being created. Therefore, the import result can include applications that are not created, and you are not notified. Check the application list after each import.

### Next steps

* [Tenant (UI) workflow](https://cortex-docs.paloaltonetworks.com/application-security/application-security-posture-management-aspm/applications/import-applications-from-a-csv-file/tenant-ui-workflow.md)
* [API workflow](https://cortex-docs.paloaltonetworks.com/application-security/application-security-posture-management-aspm/applications/import-applications-from-a-csv-file/api-workflow.md)
* [References](https://cortex-docs.paloaltonetworks.com/application-security/application-security-posture-management-aspm/applications/import-applications-from-a-csv-file/references.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/application-security/application-security-posture-management-aspm/applications/import-applications-from-a-csv-file.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
