# API Introduction

{% hint style="warning" %}
This section of the documentation is labelled as Advanced and should only be looked at if you know what you are doing
{% endhint %}

## Curve API Service

Curve provides an API service designed to assist with moderation tasks externally by performing actions based on the data provided in the request. Moderate your games or using a custom bot for your Discord server, <mark style="color:blue;">**Curve API**</mark> is the fit for you. For a detailed understanding of how to use this service, refer to the relevant sections on request parameters, example requests, and expected responses in this documentation.

Complete and readable guide and support is available to guide you through the integration process [<mark style="color:blue;">**@Curve's Discord**</mark>](https://discord.gg/gYZzPdE93h).

{% hint style="info" %}
We recommend only using this service if you have a detailed understanding of development and known programming language.
{% endhint %}

***

## Authorization Key

In-order to begin moderating you will need to get authorization and to do-so, head to your server's [<mark style="color:blue;">**dashboard**</mark>](https://curvebot.xyz/dashboard) and go to the settings tab.

<figure><img src="/files/h46Zi1rclg7n1HzUfM9G" alt="" width="155"><figcaption><p><strong>EXAMPLE PICTURE</strong></p></figcaption></figure>

<figure><img src="/files/YenkEue6dI3bbARTAiut" alt=""><figcaption><p>Copy your API-KEY by pressing the double paper icon</p></figcaption></figure>

{% hint style="warning" %}
If the toggle switch is not highlighted blue (on), requests will not work as intended.
{% endhint %}

Alternatively, if the copy button is not working, open your Chrome Developer Console (Ctrl + Shift + i)

<figure><img src="/files/pV5J0jnoaGOjITaJ4S0w" alt=""><figcaption><p><strong>EXAMPLE PICTURE</strong></p></figcaption></figure>

***

## Actions

Curve actions for remotely moderating. This is the same as moderating manually.

<table><thead><tr><th width="224"> Moderation Action</th><th>Description</th></tr></thead><tbody><tr><td>Warn</td><td>Warns a member</td></tr><tr><td>Mute</td><td>Mutes a member, requires the time argument in seconds</td></tr><tr><td>Kick</td><td>Kicks a member from the guild</td></tr><tr><td>Ban</td><td>Bans a member from the guild</td></tr><tr><td>Quarantine</td><td>Quarantines a member</td></tr><tr><td>Restore</td><td>Restores a member from quarantine</td></tr><tr><td>Unmute</td><td>Unmutes a member</td></tr><tr><td>Unban</td><td>Unbans a member</td></tr></tbody></table>

{% hint style="success" %}
Please continue to next page for code examples.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guide.curvebot.xyz/curve-services/api-introduction.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
