Get auth credentials

Free endpoint. Returns an ID token, refresh token, and user ID for the calling wallet. Use the ID token as a Bearer token to call Laso Finance APIs.

Prove wallet ownership by sending a SIGN-IN-WITH-X header: a base64-encoded CAIP-122 signed message. Build it with @x402/extensions/sign-in-with-x (e.g. wrapFetchWithSIWx handles the round-trip automatically). Works for any EVM (Base, eip155:8453) or Solana mainnet wallet.

For ID-token refresh use POST /auth with grant_type=refresh_token.

get/auth

Request

  • Base URL: https://laso.finance
  • URL: https://laso.finance/auth
  • Auth: API key in header SIGN-IN-WITH-X

Headers

SIGN-IN-WITH-Xstring required

Base64-encoded CAIP-122 signed message proving wallet ownership.

Response

Auth credentials and user ID

callable_base_urlstring
user_idstring

The user's ID (lowercase wallet address)

Example response

{
  "callable_base_url": "https://laso.finance"
}

Changes

No recorded changes to this operation across all 2 revisions of this API.