# API Integration

<figure><img src="/files/fZPLggM1aQVQQ7YKDsxJ" alt=""><figcaption></figcaption></figure>

## How are API calls sent?

All API calls are sent via an HTTP POST with a JSON formatted body.

## Can I integrate this with my gamemode/framework?

Yes, our API calls can be integrated into nearly any gamemode with nearly any programming language.

We provide a library of drag-and-drop plugins written in Lua.<br>

You can also write your own script using our API endpoints:

{% content-ref url="/pages/-M4pV5Pnc864R0IwW6k9" %}
[API Endpoints](/cad/api-integration/api-endpoints.md)
{% endcontent-ref %}

Easily integrate external scripts with our LUA and JS export examples:

{% content-ref url="/pages/ONoZRRBy208JfLTCy8VK" %}
[Broken mention](broken://pages/ONoZRRBy208JfLTCy8VK)
{% endcontent-ref %}

Or, learn more about receiving push events directly to your game server:

{% content-ref url="/pages/-M7F7RghOsB9573hMysj" %}
[Push Events](/cad/api-integration/push-events.md)
{% endcontent-ref %}

## Are there rate limits?

Yes, Sonoran CAD will automatically block any malicious or spammed traffic. While we don't publicly publish these limits, it's best to not make more than one call per second for an extended period of time.

{% content-ref url="/pages/-M4pV13Ik4JO9SxAZzyV" %}
[Getting Started](/cad/api-integration/getting-started.md)
{% endcontent-ref %}


---

# 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://docs.sonoransoftware.com/cad/api-integration.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.
