# ForwardLane Function Listing API

> ForwardLane Function Listing API is a paid API for AI agents from agents.forwardlane.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-11).

Lists and filters functions extracted from source code repositories, including metadata like name, file path, arguments, decorators, docstring, line count, and complexity.

## Facts

- Endpoint: POST https://agents.forwardlane.com/api/functions?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/forwardlane-function-listing-api-3d7a5047
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mDzRoc5oeURsznJDRYUM9

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability forwardlane-function-listing-api-3d7a5047 -d '<json body>'
```

Example prompt: Show me all functions from the 'payments-service' repo that have a complexity score of at least 10, up to 50 results.

## When to prefer this

Use this endpoint when you need to programmatically enumerate, inspect, or audit functions from source code repositories indexed by ForwardLane — especially when filtering by complexity or searching for specific function names. Prefer this over general code search when you need structured metadata (arguments, decorators, docstrings, line counts) rather than raw source. Pair with the List Classes or List Security Patterns endpoints for broader codebase analysis.

## Known failure modes

- No functions found matching the given name or repo filter — returns empty list
- Invalid limit value (outside 1–500 range) — schema validation error
- Invalid min_complexity value — rejected by schema
- Repository does not exist in the index — returns empty results
- Service unavailable or payment not processed — HTTP 402 or 5xx error

## Output

Returns a list of function records extracted from source code, each including the function name, repository, file path, argument list, decorators, docstring, line count, and complexity score. Results are filterable by repository name, function name, and minimum complexity, with a configurable limit up to 500.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "name": {
       "type": "string"
      },
      "repo": {
       "type": "string"
      },
      "limit": {
       "type": "integer",
       "default": 100,
       "maximum": 500,
       "minimum": 1
      },
      "min_complexity": {
       "type": "integer"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/forwardlane-function-listing-api-3d7a5047/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.forwardlane.com](https://www.zero.xyz/host/agents.forwardlane.com/llms.txt)
