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
- Open your user menu and choose
User settings, thenAPI accessin the Connections group./user-settings/apps-and-api-accessopens onAuthorized apps; select theAPI keytab. The route is/user-settings/apps-and-api-access/api-key. - Read the list of existing keys: name, scope badge,
Expires:date andLast used:time. Expired keys stay listed with anExpiredbadge until you delete them. - Choose
Create API key. - Enter a
Nameyou will recognise later, for exampleObsidian vault. - Choose
Use for:MCip API (full access)or an external system such asExternal system: <name>. On deployments where full access is turned off, every key must be bound to an external system. - Set
Permissions: chat is always included; add knowledge-base read, write or delete only when the external system allows them. - Set
Expires in days. Full-access keys may never expire; external keys require an expiry. - Choose
Create API key, then copy the key fromCopy your API key now. It is shown only once. - To revoke a key, use its delete control and confirm in
Delete API key?.
Example
Give a script chat-only access:
- Create a key named
Reporting bot. - Choose the external system it should act for, or
MCip API (full access)where allowed. - Leave
Permissionsat chat only and set an expiry of 30 days. - 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.