# Laso Finance Firebase Auth Token

> Laso Finance Firebase Auth Token is a paid API for AI agents from x402endpoint-utiwoa54hq-uc.a.run.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Returns a short-lived Firebase ID token used to authenticate with the Laso Finance callable (prepaid card/gift card) APIs

## Facts

- Endpoint: GET https://x402endpoint-utiwoa54hq-uc.a.run.app/auth
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402endpoint-utiwoa54hq-uc-a-run-app-8361d903
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BrKBJz-fzssVnuwhimNeF

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 x402endpoint-utiwoa54hq-uc-a-run-app-8361d903
```

Example prompt: Get me a Firebase ID token so I can authenticate with the Laso Finance card API before placing a prepaid card order.

## When to prefer this

Use this endpoint as the first step before calling any other Laso Finance callable API (e.g. ordering prepaid cards, gift cards, or retrieving card data). It is the gateway authentication step specific to this x402-gated Firebase-backed service. Prefer this over any generic OAuth or API key flow when working within the Laso Finance / x402endpoint ecosystem.

## Known failure modes

- Service unavailable (500): Cloud Run instance not running or cold-start timeout
- Payment required (402): Caller has not paid the $0.001 USDC fee via x402 protocol
- Token generation failure: Firebase custom auth signing error on backend
- Rate limit exceeded: Too many token requests in a short window

## How this service works

Get a Firebase ID token for authenticating with the callable APIs

## Output

Returns a JSON object containing a Firebase ID token (JWT), an expires_in value (3600 seconds), and a refresh token. The ID token encodes the user's sub/user_id and can be passed as a Bearer token to other Laso Finance callable endpoints like order-prepaid-card or get-card-data.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {}
 }
}
```

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "auth": {
       "type": "object",
       "properties": {
        "id_token": {
         "type": "string",
         "description": "Firebase ID token for the callable APIs"
        },
        "expires_in": {
         "type": "string"
        },
        "refresh_token": {
         "type": "string"
        }
       }
      },
      "user_id": {
       "type": "string"
      },
      "callable_base_url": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402endpoint-utiwoa54hq-uc-a-run-app-8361d903/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402endpoint-utiwoa54hq-uc.a.run.app](https://www.zero.xyz/host/x402endpoint-utiwoa54hq-uc.a.run.app/llms.txt)
