# CustomGPT.ai API Documentation

This is the complete API documentation for connecting to the CustomGPT.ai 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 **CustomGPT.ai connection** — create or choose one in [Connections](https://app.mindcloud.co/credentials). Note its `connectionId`.

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

## CustomGPT.ai actions

- POST `add-source` Add Source
- POST `create-agent` Create Agent
- POST `create-conversation` Create Conversation
- DELETE `delete-agent` Delete Agent
- DELETE `delete-document` Delete Document
- GET `get-agent-details` Get Agent Details
- GET `get-agent-settings` Get Agent Settings
- GET `get-agent-statistics` Get Agent Statistics
- GET `get-current-user-profile` Get Current User Profile
- GET `get-document-metadata` Get Document Metadata
- GET `list-agents` List Agents
- GET `list-conversations` List Conversations
- GET `list-documents` List Documents
- GET `list-sources` List Sources
- PUT `reindex-document` Reindex Document
- PUT `update-agent` Update Agent
- PUT `update-agent-settings` Update Agent Settings
- PUT `update-document-metadata` Update Document Metadata
