Platform

API Keys and Webhooks

Operate key lifecycle and webhook delivery with production safeguards.

#API Keys and Webhooks

API keys are the credentials your software uses to talk to mAIvn, and
webhooks are how mAIvn talks back to your software when something happens.
This guide covers both: creating and safeguarding keys, and setting up
webhook endpoints to receive event callbacks — all from the portal.

See also: Authentication & API Keys — how to use a key from the SDK (api_key / Client), key scopes, and handling rejected keys in Python.

#API Keys

Use API keys when your application needs server-to-server access.

#Key lifecycle

  1. Create key with a descriptive name.
  2. Copy plaintext key immediately (shown once).
  3. Store in secure secret manager.
  4. Rotate or revoke as needed.

Developer Portal workspace dashboard

Projects are the entry point for API key and webhook management

Project API keys table with active keys and the key-creation modal

Project API keys page

#Visibility model

Key visibility depends on backend authorization and project ownership context.

If project-scoped listing returns empty, the portal now falls back to account-visible keys and filters by project to avoid missing keys tied to your account.

#Webhooks

Webhooks let your systems receive event callbacks from the platform.

Each webhook includes:

  • Endpoint URL
  • Event list
  • Active/inactive state
  • Failure counters

#Reliability checklist

  • Return a 2xx status quickly.
  • Verify webhook signatures before processing.
  • Retry idempotently on duplicates/timeouts.
  • Track consecutive failures and disable noisy endpoints.

Project webhooks list with active endpoints

Project webhooks page

Webhook delivery history page with status filters and empty state

Webhook delivery history

#Security Checklist

  • Never embed API keys in frontend code.
  • Scope keys to least privilege.
  • Rotate keys on schedule and incident response.
  • Use HTTPS-only webhook endpoints.

#Next steps