API Account Authentication
Please complete the following steps to gain authentication:
- Submit a request for an API key at mealme.ai for account setup.
- 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 that demonstrates authentication with an example API key.
Example API key: mealme:b60ebd1c-dfcb-4313-b5c7-8b18c72436ef
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.
{
"error": "Incorrect API key!"
}