Alephant-Analytics-AI icon

Alephant-Analytics-AI

Alephant AI Analytics provides visibility into AI usage, cost, latency, model/provider performance, agent sessions, and request-level traces across your organization.

Recent Requests

AI-generated

Summary

Fetches a paginated list of recent AI gateway requests from the Alephant cockpit analytics API, authenticated with the configured virtual key.

Inputs

  • Limit — Maximum number of recent requests to return. Default 50, minimum 1. Sent as the limit query parameter only if it is a positive number.
  • Offset — Number of requests to skip, for paging. Default 0, minimum 0. Sent as the offset query parameter only if it is zero or greater.
  • Credentials (alephantVirtualKeyApi) (required) — Alephant virtual key credential. Its key is sent as a Bearer token, and the SaaS base URL defaults to https://alephant.io.

Output shape

One output item per input item. Each item's json is the raw response from GET /api/v1/cockpit/recent-requests, paired to its input item.

The response structure is determined by the Alephant API and is not defined in the node. API errors are raised as NodeApiError. Transient network errors such as ECONNRESET or ETIMEDOUT are retried once. The node can also be used as an AI tool, where the model supplies limit and offset (defaults 50 and 0) and the result is returned as a JSON string.

Examples

Example 1: Pull the latest 20 requests for a monitoring report

Operation: Recent Requests, Limit: 20, Offset: 0

Example 2: Page through request history

Operation: Recent Requests, Limit: 50, Offset: 50 to fetch the second page

Links

Discussion