Skip to main content

Authentication

SecureLend AI Agents uses OAuth 2.0. There are two authentication paths depending on whether a human is involved.

Human / Interactive (Authorization Code)

For human users connecting via ChatGPT, Claude Desktop, or any browser-based MCP client. Most MCP clients handle this automatically. When you add the endpoint, the client opens a browser window, you sign in with your SecureLend account, and the client stores the token. Discovery document:
Endpoints:
Scopes: openid email profile Sign up: agents.securelend.ai or via the ChatGPT App Store. Human accounts receive the full monthly free tier:
  • 15 pitch deck prechecks
  • 3 IC memos
  • 10 document pages
  • 5 extractions
  • and more

M2M (Machine-to-Machine)

For AI agents, automated pipelines, and applications that need to call SecureLend tools programmatically without a browser.

Step 1 — Register

One API call creates a dedicated Cognito App Client and seeds a free trial quota:
Response:
Store client_id and client_secret securely. These are permanent credentials for your agent.

Step 2 — Get a Token

Response:
Tokens are valid for 1 hour. Cache and reuse — request a new token when it expires.

Step 3 — Call Tools

Rate Limits

M2M registration is limited to 3 registrations per IP address per 24 hours to prevent abuse. For enterprise volume or additional clients, contact support@securelend.ai.

M2M Free Tier vs Human Free Tier

M2M free trial is sized for discovery — enough to validate the full workflow end-to-end before committing to payment: After the free tier, tools charge per call via Delegare (card or USDC on Base).

Setting Up Payments (After Free Tier)

When your free quota is exhausted, tool calls return a 402 with instructions. Use the initiate_payment_setup tool to authorize a spending budget:
Or check setup status after authorizing:
Payment rails:
  • Fiat (Stripe) — enter card details once, charged per call
  • USDC on Base — sign one EIP-3009 permit transaction from a crypto wallet, then fully autonomous
Payment setup guide →

Token Validation

SecureLend AI Agents validates tokens against the Cognito user pool:
Both human JWT access tokens and M2M client credentials tokens are validated against this JWKS endpoint.