REST API for Latepoint icon

REST API for Latepoint

Consume REST API for LatePoint on Tools

Agents → Get

AI-generated

Summary

Retrieves a single LatePoint agent (staff member) by ID via a GET request to the REST API's /agents/{id} endpoint.

Inputs

  • ID (required) — Unique identifier of the agent to fetch. Appended to the path as /agents/{id}. Can be filled by an AI agent when the node is used as a tool.
  • Description — Free-text note describing the purpose of the call, intended as AI context. The execute code does not read it, so it doesn't affect the request.

Output shape

One n8n item per input item. Its json is the agent record from the API response's data field. If the response has no data field, the raw response is returned instead (or each element, if the response is an array).

Authenticates with a Bearer token from the restApiLatepointApi credential (baseUrl and apiKey). With Continue On Fail enabled, a failed request returns an item of the form {error: message} instead of stopping the workflow. The exact agent fields depend on the LatePoint REST API and are not defined in the node.

Examples

Example 1: Look up an agent's details from an ID produced by an earlier node, such as a booking record.

Resource: Agents; Operation: Get; ID: {{ $json.agent_id }}

Example 2: Fetch a known staff member's profile.

Resource: Agents; Operation: Get; ID: 3

Links

Discussion