> ## Content Index
> Fetch the complete content index at: https://blog.esadax.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Aliases Retrieval via Esadax API
- URL: https://blog.esadax.com/en/aliases-retrieval-via-esadax-api-2/
- Published: 2025-06-18T00:00:00.000Z
- Updated: 2026-11-15T05:35:47.000Z
- Author: Esadax 
- Tags: #tr-platform-20-infrastructure-52-rest-api-aliases, #en, #mdx-imported, Platform

To retrieve a list of aliases for a specific deployment using the Esadax API, follow these steps:

1. **Construct the URL**: Replace `{id}` with your deployment ID, such as `dpl_FjvFJncQHQcZMznrUm9EoB8sFuPa`.
2. **Include Query Parameters**: Add `slug` and `teamId` if necessary to specify the team or project.
3. **Set Headers**: Include the Authorization header with your Bearer token.
4. **Use fetch Method**: Send a GET request using JavaScript's fetch function.

Here's the cURL command:

```javascript
await fetch("https://api.esadax.com/v2/deployments/dpl_FjvFJncQHQcZMznrUm9EoB8sFuPa/aliases?slug=SOME_STRING_VALUE&teamId=SOME_STRING_VALUE", {
  headers: {
    "Authorization": "Bearer <TOKEN>",
    "method": "get"
  }
});

```