# Sapling API Documentation

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

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

## Sapling actions

- PUT `accept-completion` Accept Completion
- POST `add-custom-mapping` Add Custom Mapping
- POST `add-dictionary-entry` Add Dictionary Entry
- GET `analyze-sentiment` Analyze Sentiment
- GET `detect-ai-generated-text` Detect AI-Generated Text
- GET `detect-profanity` Detect Profanity
- GET `detect-tone` Detect Tone
- GET `expand-text` Expand Text
- GET `formalize-text` Formalize Text
- GET `get-autocomplete` Get Autocomplete
- GET `get-edits` Get Edits
- GET `get-similar-terms` Get Similar Terms
- GET `get-spellcheck-suggestions` Get Spellcheck Suggestions
- GET `list-custom-mappings` List Custom Mappings
- GET `list-dictionary-entries` List Dictionary Entries
- DELETE `remove-custom-mapping` Remove Custom Mapping
- DELETE `remove-dictionary-entry` Remove Dictionary Entry
- GET `rewrite-in-active-voice` Rewrite in Active Voice
- GET `split-sentences` Split Sentences
- GET `summarize-text` Summarize Text
