AdBlast icon

AdBlast

Interact with AdBlast API

Environments → Get Environments

AI-generated

Summary

Retrieve a list of environments associated with a specific project in AdBlast.

Inputs

  • authenticationMethod (required) — Choose between using pre-saved credentials or entering a dynamic API key.
  • url (required) — The base URL for the AdBlast API, required when using a dynamic API key.
  • apiKey (required) — The API key for accessing AdBlast, used only with dynamic authentication.
  • project_id (required) — The ID of the project whose environments you want to retrieve.
  • requestOptions — Additional request options, including batching settings, SSL options, proxy settings, and timeout.

Output shape

a list of environment records

Returns a structured list of environments; error handling is included for invalid credentials or request issues.

Examples

Example 1: User wants to get all environments for a specific project using stored credentials.

Set authenticationMethod to 'credentials', provide the project_id.

Example 2: User needs to access environments dynamically via an API key.

Set authenticationMethod to 'dynamic', provide url, apiKey, and the project_id.

Discussion