Get Service icon

Get Service

Send parameter to get service via PEAK API

Get Service

AI-generated

Summary

Retrieve service details from the PEAK API by specifying server environment with optional filters by Service ID or Service Code, using authentication via client token.

Inputs

  • Server Environment (required) — Select the server environment to query, either 'UAT' or 'Production'.
  • Service ID — Optionally specify the unique Service ID to retrieve a specific service.
  • Service Code — Optionally specify the Service Code to retrieve a specific service.
  • Client Token (override) — Optionally provide a client token to override credentials, useful when tokens refresh frequently.

Output shape

a single JSON object containing success status, HTTP status code, the retrieved service data, and request headers.

Returns an array with a single item containing a JSON object with keys: success (boolean), statusCode (number), data (API response), headers (request headers). Errors are either thrown or returned as JSON if 'Continue On Fail' is enabled.

Discussion