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

# Quickstart

Make your first January REST API request with an account API key and `curl`.

## 1. Create an API key

Open the [January Developer Dashboard](https://dashboard.january.ai), select **API keys**, and create a key. Copy the secret when it is shown; the full value is displayed only at creation time.

Account API keys begin with `sk-`. Keep the key on a backend or another machine you control—never place it in browser or mobile application code.

## 2. Store it for this terminal session

```bash
export JANUARY_API_KEY="sk-your-key"
```

Do not commit the key to source control.

## 3. Search for a food

```bash
curl --get 'https://partners.january.ai/v1.2/foods' \
  --data-urlencode 'query=greek yogurt' \
  --data-urlencode 'limit=5' \
  --header "Authorization: Bearer ${JANUARY_API_KEY}" \
  --header 'Accept: application/json'
```

A successful response contains ranked foods matching the query. A `401` response means the bearer credential is missing, malformed, or invalid.

## Next steps

* [Analyze a meal photo or description](/rest-api/food-analysis.md)
* [Predict a meal's glucose response](/rest-api/glucose.md)
* [Review authentication and client tokens](/docs/authentication.md)
* [Explore all REST endpoints](/rest-api/api-overview.md)
* [Connect a coding agent to the MCP server](/docs/mcp-server.md)
