# ForwardLane Functions API

> ForwardLane Functions 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-12).

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

## Facts

- Endpoint: GET https://agents.forwardlane.com/zcj/ws6jeofdjhct/api/functions?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/forwardlane-functions-api-b8280f93
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__1i3dgoqk3P6TfmwEZ8fK

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-functions-api-b8280f93
```

Example prompt: Can you pull all functions from the 'payments-service' repo on ForwardLane with a minimum complexity of 5, and show me their names, file paths, and docstrings?

## When to prefer this

Use this endpoint when you need to programmatically explore or audit functions within source code repositories indexed by ForwardLane — especially when filtering by complexity or searching for specific function names. Prefer this over general code search tools when you need structured metadata (arguments, decorators, docstrings, line counts) rather than raw source text, and when working within the ForwardLane ecosystem alongside sibling endpoints like List Classes or List Repos.

## Known failure modes

- No functions match the specified filters (empty result set)
- Invalid or non-existent repository name returns empty or error response
- Limit parameter outside 1-500 range triggers validation error
- min_complexity with no matching functions returns empty list
- Payment failure or 402 response if USDC payment not properly handled

## How this service works

Functions extracted from source with name, repo, file path, arguments, decorators, docstring, line count, and complexity.

## Output

A paginated list of function records extracted from source code, each containing the function name, repository, file path, argument list, decorators, docstring text, line count, and a complexity score. Up to 500 results can be returned per call.

## 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-functions-api-b8280f93/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)
