Home ci 22. rest-api / endpoints: aliases

22. rest-api / endpoints: aliases

Last updated on Aug 05, 2025

To retrieve a list of aliases for a specific deployment using the Epycbyte 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:

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