Skip to content

Create and manage an API key

An API key lets one server-side integration make approved Public API requests for one Mochi organization. Treat it like a password for that integration.

Availability is controlled

A controlled pilot is active. Settings → Developers appears only for manually approved organizations. Knowing this guide or a direct URL does not grant access. Your exact organization must be in Mochi's approved cohort, have an active Mochi account, and you must be an eligible organization administrator. This includes Creator/Manager members and delegated administrators with equivalent access. If the menu is absent, contact Mochi; do not retry a direct URL or ask another person to create a key for you.

Create a key when Mochi has enabled your organization

  1. Open Settings → Developers and choose Create API key.
  2. Give the key a clear, specific name, such as Warehouse lead sync. Use a separate key for each integration.
  3. Choose the minimum scopes for that integration. For a first check, choose only leads:read.
  4. Create the key. Its secret is shown only once.
  5. Copy the secret directly into your server-side secret manager before closing the screen. Never put it in a prompt, source code, browser or mobile app, command argument, URL, screenshot, log, or support message.

Creating a key does not make every endpoint available. Each request remains limited to its organization, selected scopes, member-role rules, and Mochi's current feature availability. Check the generated OpenAPI contract for the exact operation before building a request.

Make a first read-only request

Start with Make your first API request. It reads up to ten leads and does not change Mochi data. An empty result is still a successful first read-only request. Do not add write scopes until there is a specific, reviewed task that needs one.

Review and revoke keys

Settings → Developers lists each key's non-secret name, prefix, scopes, status, and recent use. It never shows the secret again. Revoke a key when its integration is no longer needed or the key may have been exposed. Revocation stops that key; it does not change other keys or integrations.

Rotation

Rotation replaces a key without an avoidable outage:

  1. Create a new, narrowly scoped key and save its one-time secret in the secret manager.
  2. Update the integration to use the new key.
  3. Make a first read-only request and confirm the expected organization and scope boundary.
  4. Revoke the old key in Settings → Developers.

If you cannot see the Developers menu or need a key revoked while access is unavailable, contact Mochi. Send only a non-secret key name or prefix and the organization name—never the key itself.