Alpha API

This API is currently in alpha. Breaking changes may occur between releases. We recommend pinning to a specific version and monitoring the changelog for updates.

POST
/v1/proxy/call

Execute a provider API action. Use action strings from proxy.search (e.g. 'github.list-pull-requests'). Pass a flat params object — resource params from the search response can be spread directly into the call. Auth is handled automatically.

AuthorizationBearer <token>

Use your Lightfast API key (sk-lf-...) as the bearer token.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://lightfast.ai/v1/proxy/call" \  -H "Content-Type: application/json" \  -d '{    "action": "string"  }'
{
  "status": -9007199254740991,
  "data": null,
  "headers": {
    "property1": "string",
    "property2": "string"
  }
}
{
  "defined": true,
  "code": "BAD_REQUEST",
  "status": 400,
  "message": "Invalid request",
  "data": {
    "field": "string",
    "reason": "string"
  }
}
{
  "defined": true,
  "code": "UNAUTHORIZED",
  "status": 401,
  "message": "Authentication required",
  "data": null
}
{
  "defined": true,
  "code": "FORBIDDEN",
  "status": 403,
  "message": "Access denied",
  "data": null
}
{
  "defined": true,
  "code": "NOT_FOUND",
  "status": 404,
  "message": "Resource not found",
  "data": {
    "resource": "string"
  }
}