---
title: "Connect your application with the System API"
description: "Create an independent chat key, call the chat endpoint, and revoke the key when needed."
language: en
canonical: https://mrailabs.com/docs/en/channels-and-launch/system-api-chat-integration/
published: 2026-07-13T18:51:40.226212
last_verified: 2026-07-13T18:51:40.226212
audience: "For account admins"
---

# Connect your application with the System API
## How do I use the System API inside my application?

Create a clearly named key on the System API page, copy it when it is shown once, then POST to /api/v1/chat using a Bearer token plus a stable user_id and message. The keys are chat-only and never expose the internal system key.

- The plaintext secret is shown only once.
- Use a stable user_id per customer for correct context.
- Revoke a key immediately if it may be exposed.

## How to use it

1. Open Settings, Connect, then API.
2. Name and create the key, then copy its secret immediately.
3. Store the key in a server-side secret manager or environment variable.
4. POST to /api/v1/chat with Authorization: Bearer and a JSON body.
5. Review last-used information and revoke unused keys.

> **Important**
> Never publish the key in GitHub, public JavaScript, or screenshots. Revoking it immediately stops applications that use it.

## Frequently asked questions

### Should I place the key in browser or mobile code?

No. Proxy the request through a backend you control so users cannot extract the secret.

### Can I display the same key again?

No. The complete value is shown once; create a new key if it is lost.

[Open this page in Mr. AI](/client/settings/connect/api)
