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

# Authentication

To use the API, merchants must obtain an API key from their personal account. You can retrieve your API key by logging in at: [https://dashboard.omypayments.com/](https://dashboard.omypayments.com/site/login). Without a valid API key, all requests will be rejected.

Include the API key in the header of each request as follows:

```bash
curl -X GET -H "apiKey: yourApiKey" https://api.omypayments.com/
```

If the API key is missing, the server will respond with:

```json
{
    "success": false,
    "message": "Missing api key",
    "statusCode": 0
}
```
