# 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
}
```


---

# 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.omypayments.com/api/authentication.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.
