---
updatedAt: 2025-03-08T01:43:21.000Z
agentTools:
  projectIndex: https://mealmeapi.readme.io/llms.txt
---

# Authentication

API Account Authentication

Please complete the following steps to gain authentication:

1. Submit a request for an API key at [mealme.ai](https://www.mealme.ai/) for account setup.
2. Once received, pass your API key to the `Id-Token` header field in your HTTP request.

# Example Request

Here is an example request to the [Store Search API](https://docs.mealme.ai/reference/get_search_store_v3) that demonstrates authentication with an example API key.

Example API key: `mealme:b60ebd1c-dfcb-4313-b5c7-8b18c72436ef`

```shell
curl --request GET \
     --url 'https://api.mealme.ai/search/store/v3?latitude=37.7786357&longitude=-122.3918135' \
     --header 'Id-Token: mealme:b60ebd1c-dfcb-4313-b5c7-8b18c72436ef' \
     --header 'accept: application/json'
```

# Example Unauthenticated Response

Upon providing an invalid `Id-Token`, you will receive the following response.

```Text 401
{
  "error": "Incorrect API key!"
}
```