> ## 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.

# Aliakset haku kautta Esadax API
- URL: https://blog.esadax.com/fi/aliakset-haku-kautta-esadax-api/
- Published: 2026-11-15T04:21:43.000Z
- Updated: 2026-11-15T04:21:43.000Z
- Author: Esadax 
- Tags: #tr-platform-20-infrastructure-52-rest-api-aliases, #fi, #mdx-imported, Platform

Jos haluat hakea tietyn käyttöönoton aliasten luettelon Esadax-sovellusliittymän avulla, toimi seuraavasti:

1. **Rakenna URL-osoite**: Korvaa `{id}` käyttöönottotunnuksella, kuten `dpl_FjvFJncQHQcZMznrUm9EoB8sFuPa`.
2. **Sisällytä kyselyparametrit**: Lisää tarvittaessa `slug` ja `teamId` tiimin tai projektin määrittämiseksi.
3. **Aseta otsikot**: Sisällytä Authorization-otsikko Bearer-tunnukseen.
4. **Käytä fetch Menetelmä**: Lähetä GET-pyyntö käyttämällä JavaScriptin fetch-toiminto.

Tässä on cURL-komento:

```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"
  }
});

```