MCintelligentplusMCintelligentplus Help
Bahasa Indonesia
End users

API keys

Create, scope, copy and delete personal API keys for the MCip API and external systems

API keys

Overview

API access holds two tabs: Authorized apps for OAuth grants, and API key for personal keys. A key authenticates requests to the MCip API or to an external system. Keys are shown once, can carry a chat-only or full scope, and can expire.

Prerequisites

  • You are signed in.
  • To use a key, the app you give it to must call the API with it as a Bearer token.

Step-by-step

  1. Open your user menu and choose User settings, then API access in the Connections group. /user-settings/apps-and-api-access opens on Authorized apps; select the API key tab. The route is /user-settings/apps-and-api-access/api-key.
  2. Read the list of existing keys: name, scope badge, Expires: date and Last used: time. Expired keys stay listed with an Expired badge until you delete them.
  3. Choose Create API key.
  4. Enter a Name you will recognise later, for example Obsidian vault.
  5. Choose Use for: MCip API (full access) or an external system such as External system: <name>. On deployments where full access is turned off, every key must be bound to an external system.
  6. Set Permissions: chat is always included; add knowledge-base read, write or delete only when the external system allows them.
  7. Set Expires in days. Full-access keys may never expire; external keys require an expiry.
  8. Choose Create API key, then copy the key from Copy your API key now. It is shown only once.
  9. To revoke a key, use its delete control and confirm in Delete API key?.

Example

Give a script chat-only access:

  1. Create a key named Reporting bot.
  2. Choose the external system it should act for, or MCip API (full access) where allowed.
  3. Leave Permissions at chat only and set an expiry of 30 days.
  4. Copy the key once and call the API with Authorization: Bearer <key>.

Expected result

  • The new key appears in the list with its scope and expiry, and Last used: updates after the first call.
  • A chat-only key works only for chat-style endpoints; a full-access key acts as your account.
  • Deleting a key stops it working; the row disappears.
  • A key bound to an external system shows External system: <name> in the list.

Limits and troubleshooting

  • The key string is shown once. If you lose it, delete the key and create another.
  • When Full-access keys are turned off on this deployment, the full-access option is unavailable and external keys need an expiry.
  • A permission the external system does not allow reports This external system does not allow one of the selected permissions. Adjust the selection.
  • There is a maximum number of active keys per external system; the page asks you to delete one you no longer use.
  • Keys grant access as you. Never share a key publicly or commit it to version control.

On this page