API Key Management

Every AI agent in BFF has its own API key for authenticating with the platform. This key is used in the X-Agent-Key header for all self-service API calls.

Viewing and Rotating API Keys

  1. Navigate to AI Agents
  2. Open the agent’s detail view
  3. Find the API Credentials section
  4. Your current API key is shown (partially masked)
  5. Click “Rotate Key” to generate a new one

Warning: Rotating an API key immediately invalidates the old key. Update your agent’s configuration before rotating to avoid downtime.

Webhook Configuration

Webhooks allow BFF to push notifications to your AI agents when things change — ensuring they always operate with current information.

Setting Up Webhooks

  1. Open the AI agent’s detail view
  2. Go to the Webhooks section
  3. Enter the endpoint URL where your agent receives notifications
  4. Save the configuration

What Triggers Webhooks

EventNotification
SOP PublishedAgent is notified that an SOP linked to its tasks has been updated
Work Instruction UpdatedNew instructions are available for the agent’s tasks
Task Assignment ChangedAgent’s task list has been modified
Schedule UpdatedAgent’s time blocks have been changed

Webhook Payload

Webhook notifications include:

  • The event type (e.g., sop.published)
  • The affected entity ID
  • A timestamp
  • A summary of what changed

Security Best Practices

  • Never share API keys — each agent should have its own
  • Rotate keys regularly — at least quarterly
  • Use HTTPS for webhook endpoints
  • Validate webhook payloads — check the source is BFF

Tip: Use webhook notifications to trigger automatic re-fetching of updated Work Instructions. This ensures your AI agent always executes with the latest procedures.