> For the complete documentation index, see [llms.txt](https://docs.mailofly.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mailofly.com/resources/sdks.md).

# SDKs

Official clients for the Mailofly REST API. Same API key and account key everywhere.

{% hint style="info" %}
Need an API key first? → [Create API key](/get-started/api-keys.md)
{% endhint %}

***

## Choose a language

| Language                 | Install                                    | Docs                                                                                                                     |
| ------------------------ | ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ |
| **Node.js / TypeScript** | `npm install mailofly`                     | [Quickstart](/quickstarts/nodejs.md) · [SDK](https://github.com/teamredevs/mailofly/tree/master/docs/sdks/typescript.md) |
| **Python**               | `pip install mailofly`                     | [Quickstart](/quickstarts/python.md) · [SDK](https://github.com/teamredevs/mailofly/tree/master/docs/sdks/python.md)     |
| **PHP**                  | `composer require mailofly/mailofly`       | [Quickstart](/quickstarts/php.md) · [SDK](https://github.com/teamredevs/mailofly/tree/master/docs/sdks/php.md)           |
| **Go**                   | `go get github.com/teamredevs/mailofly-go` | [Quickstart](/quickstarts/go.md) · [SDK](https://github.com/teamredevs/mailofly/tree/master/docs/sdks/go.md)             |
| **Dart / Flutter**       | `dart pub add mailofly`                    | [Quickstart](/quickstarts/dart.md) · [SDK](https://github.com/teamredevs/mailofly/tree/master/docs/sdks/dart.md)         |
| **HTTP**                 | —                                          | [cURL quickstart](/quickstarts/http.md)                                                                                  |

***

## What every SDK can do

* Send, list, and retrieve email (`emails.list`, `emails.get`, `emails.send`) and batch send (`batch.send`)
* Manage accounts, contacts, segments, templates, campaigns
* Query mail logs
* Call discovery (`GET /v1`) without a key

Shapes match the [**API Reference**](https://docs.mailofly.com/api).

***

## Source code

| Repo                                                             | Registry                            |
| ---------------------------------------------------------------- | ----------------------------------- |
| [mailofly-js](https://github.com/teamredevs/mailofly-js)         | npm `mailofly`                      |
| [mailofly-python](https://github.com/teamredevs/mailofly-python) | PyPI `mailofly`                     |
| [mailofly-php](https://github.com/teamredevs/mailofly-php)       | Packagist `mailofly/mailofly`       |
| [mailofly-go](https://github.com/teamredevs/mailofly-go)         | `github.com/teamredevs/mailofly-go` |
| [mailofly-dart](https://github.com/teamredevs/mailofly-dart)     | pub.dev `mailofly`                  |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.mailofly.com/resources/sdks.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
