# GPT Chatbot API Documentation

This is the complete API documentation for connecting to the GPT Chatbot API using MindCloud's Universal API.

MindCloud offers one normalized API to access 3,400+ apps from a single place. It centralizes authentication and normalizes app APIs so they are easier and more consistent to use.

## Quickstart

1. A **MindCloud account** — sign in or create an account at [MindCloud](https://app.mindcloud.co).
2. A **MindCloud API Key** — create one in [API Keys](https://app.mindcloud.co/user/api-keys). Keep it on your server.
3. At least one **GPT Chatbot connection** — create or choose one in [Connections](https://app.mindcloud.co/credentials). Note its `connectionId`.

```text
POST https://connect.mindcloud.co/v2/universal/apps/gPTChatbot/actions/{actionSlug}/run
```

## GPT Chatbot actions

- POST `create-agent` Create Agent
- POST `create-chatbot` Create Chatbot
- POST `create-message` Create Message
- POST `create-qa-source` Create QA Source
- POST `create-session` Create Session
- POST `create-url-source` Create URL Source
- DELETE `delete-agent` Delete Agent
- DELETE `delete-chatbot` Delete Chatbot
- DELETE `delete-message` Delete Message
- DELETE `delete-session` Delete Session
- DELETE `delete-source` Delete Source
- GET `get-chatbot` Get Chatbot
- GET `get-session` Get Session
- GET `get-session-history` Get Session History
- GET `list-agents` List Agents
- GET `list-chatbots` List Chatbots
- GET `list-messages` List Messages
- GET `list-sessions` List Sessions
- GET `list-sources` List Sources
- PUT `retrain-sources` Retrain Sources
- PUT `update-agent` Update Agent
- PUT `update-chatbot` Update Chatbot
- PUT `update-source` Update Source
- POST `upload-file` Upload File
