Serverless
Requests

List requests by endpoint(s)

Changed on

Lists requests for one or more endpoints owned by the authenticated user. Use repeated or comma-separated endpoint_id (same as other platform list APIs).

A bare app id ('<owner>/<name>') automatically includes the app's registered route-level endpoints (e.g. '<owner>/<name>/turbo'); each returned row keeps the route-level endpoint_id it was recorded under. Pass a route-level id to filter to that route exactly.

Authentication: Requires API key.

Filters:

  • Time range via start / end. If start is omitted, defaults to the last 24 hours — unless request_id is provided, in which case the default start bound is widened to 90 days.
  • Status (success, error, user_error)
  • Request ID
  • Pagination via cursor/limit (limit defaults to 50, max 100)

Sorting:

  • By end time (default) or duration

Expansions:

  • Include payloads by adding expand=payloads
  • Include per-request billable_units by adding expand=billing (endpoint owner only)

Required permissions: serverless:requests:read. Key presets that include them: API, SERVERLESS, READONLY, FULL. See key permissions.

get/serverless/requests/by-endpoint

Request

  • Base URL
    https://api.fal.ai/v1
  • URL
    https://api.fal.ai/v1/serverless/requests/by-endpoint
  • Auth
    API key in header Authorization

Query parameters

limitinteger

Number of items to return per page (max 100)

Example:20
cursorstring

Pagination cursor encoding the page number

Example:Mg==
string required
OR
string[] required
string date-time
OR
string
string date-time
OR
string
status'success' | 'error' | 'user_error'

Filter by request status

Example:success
request_idstring uuid

Filter by specific request ID

Example:a1b2c3d4-e5f6-7890-abcd-ef1234567890
string
OR
string[]
sort_by'ended_at' | 'duration'

Sort results by end time or duration

Example:ended_at

Response

Requests listed successfully

next_cursorstring nullable required

Cursor for the next page of results, null if no more pages

has_moreboolean required

Boolean indicating if more results are available (convenience field derived from next_cursor)

Example response

{
  "items": [
    {
      "request_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "endpoint_id": "fal-ai/flux/dev",
      "started_at": "2025-01-01T00:00:05Z",
      "sent_at": "2025-01-01T00:00:01Z",
      "ended_at": "2025-01-01T00:00:08Z",
      "status_code": 200,
      "duration": 7.8,
      "runner_id": "f1e2d3c4-b5a6-7890-dcba-0987654321fe",
      "billable_units": 1.5
    }
  ]
}

Changes

    • info

      the endpoint scheme security readonlyApiKey was added to the API

    • info

      the endpoint scheme security apiKey was removed from the API