Skip to content

Documentation navigation

API Keys and Webhooks

Create and rotate API keys, configure webhooks, and diagnose failed deliveries.

#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. Each key is restricted to its project. Fine-grained key permission levels are not available.

#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.

Revocation takes effect everywhere within 30 seconds.

#Visibility model

Key visibility follows your account's organization and project permissions.

Project API keys table with a masked example key

Current Portal interface with sample data. The masked prefix shown here is not a usable credential.

#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.

#Security Checklist

  • Never embed API keys in frontend code.
  • Use separate project keys for workloads that need separate access or revocation.
  • Rotate keys on schedule and incident response.
  • Use HTTPS-only webhook endpoints.

#Next steps