Last updated: January 6, 2026

API Tokens

API tokens allow external applications to authenticate with FoundersBoxx. Use them for custom integrations, automation, and third-party tools.

Accessing API Tokens

Go to Account Settings → API Tokens to view and manage your tokens. Only account admins can create and manage API tokens.

Creating a Token

  1. Click New API Token
  2. Enter a descriptive name (e.g., “Zapier Integration”, “Dashboard Widget”)
  3. Click Create Token
  4. Copy the token immediately — it won’t be shown again

The token is a long, random string that acts as a password for API access.

Token Security

Treat tokens like passwords:

  • Never commit tokens to source control
  • Don’t share tokens in public channels
  • Use environment variables in your code
  • Create separate tokens for different integrations

If a token is compromised:

  1. Go to API Tokens
  2. Delete the compromised token
  3. Create a new token
  4. Update your integration with the new token

Managing Tokens

Viewing Tokens

The API Tokens page shows:

  • Token name
  • Creation date
  • Last used date
  • Partial token preview (for identification)

Editing Tokens

Click a token to update its name. You cannot view or change the token value after creation.

Deleting Tokens

  1. Click the token
  2. Click Delete
  3. Confirm deletion

Deleted tokens immediately stop working. Any integrations using that token will fail.

Using Tokens

Authentication

Include your API token in requests using the Authorization header:

Authorization: Bearer YOUR_TOKEN_HERE

Example Request

curl -H "Authorization: Bearer abc123..." \
     https://app.foundersboxx.com/api/endpoint

Available APIs

Widget Chat API

The Widget Chat API powers the Eli chat widget for external integrations.

Endpoint: POST /api/cofo/widget_chat

Parameters:

  • message — The user’s question
  • conversation_id — (Optional) Continue an existing conversation

Response:

{
  "conversation_id": "abc123",
  "ai_response": "Based on your financials...",
  "message_count": 3
}

This API requires:

  • Valid authentication
  • AI provider configured for the account
  • AI agent permissions

Rate Limiting

API requests are rate limited to prevent abuse. If you exceed limits, you’ll receive a 429 Too Many Requests response. Wait and retry.

Error Responses

Common error codes:

CodeMeaning
401Invalid or missing token
403Token lacks required permissions
404Resource not found
412Precondition failed (e.g., AI not configured)
429Rate limit exceeded
500Server error

Error responses include a JSON body with details:

{
  "error": "Message cannot be empty"
}

Token Expiration

Tokens don’t expire automatically. Delete tokens you no longer need.

For temporary access, note when you created the token and set a reminder to delete it.

Best Practices

Name tokens descriptively — Use names that identify the integration or purpose (e.g., “Slack Bot”, “Analytics Dashboard”).

One token per integration — Create separate tokens for each integration. If one is compromised, you only need to rotate that one.

Monitor usage — Check “Last Used” dates periodically. Tokens that haven’t been used in months may be obsolete.

Rotate periodically — For security-sensitive integrations, rotate tokens periodically (create new, update integration, delete old).

Webhooks

FoundersBoxx also supports inbound webhooks for receiving data from external services. Webhook endpoints are configured per integration:

  • Stripe — Payment and subscription webhooks
  • QuickBooks/Xero — Accounting data updates

See Integrations for webhook setup.