> For the complete documentation index, see [llms.txt](https://docs.l2s.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.l2s.dev/assets-and-guides/dispatch/configuration/api.md).

# API

## ScreenShots & Recordings

```lua

API_Keys = {
    ServiceUsed = 'fivemanage',   -- discord | fivemanage | fivemerr
    Token = 'YOUR_TOKEN', --  fivemanage or fivemerr or discord webhook
}

```

Two Recommended websites for uploading  records are:

1. **FiveManage:**  <https://fivemanage.com/> (Recommended)
2. **Fivemer**: <https://fivemerr.com/>

{% hint style="danger" %}
We do not recommend using Discord webhooks here.
{% endhint %}

***

## Discord Logs

```lua
Status_TimeOut = 60000 * 3 -- Deafult: 3m Log Discord timeout
Logs = {
    ['POLICE'] = {
        ['Status'] = {
            Active = true,
            Webhook = '',
            MSG_ID = 000000000000000000,
        },
        ['Records'] = '', -- Discord Webhook [Recorded Video]
        ['BOLO'] = '', -- Discord Webhook [Flagged Vehicles]
    },
    ['EMS'] = {
        ['Status'] = {
            Active = true,
            Webhook = '',
            MSG_ID = 0000000000000000000, -- false if you want it send msg everytime
        },
        ['Records'] = '',  -- Discord Webhook [Recorded Video]
        ['BOLO'] = false,
    },
}
```

{% hint style="info" %}
To make the message happen, instead of sending a list of units every time, you must send a message via Discohook with the same Webhook.&#x20;
{% endhint %}

To Get MSG ID Follow this steps:

1. **Create a specific chat** and generate a webhook. Copy the webhook URL.
2. Visit [**Discohook**](https://discohook.org/) and paste the copied webhook URL.
3. Click on **Send** to send the message.
4. Go back to the same chat and click on **Copy Message ID and fill it in sh\_api.**

**For More informations about webhooks visit** [Webhook System](/coding-information/webhook-system.md)

<figure><img src="https://253583244-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Ouu0TE6RGB2wJP79c1y%2Fuploads%2FOR9z69w6kPsfcJ0JA48f%2Fimage.png?alt=media&amp;token=240ac026-3515-4824-b397-18535733718a" alt=""><figcaption></figcaption></figure>
