> ## Documentation Index
> Fetch the complete documentation index at: https://docs.memic.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# API Reference

> The Memic public API — 10 endpoints, one API key, zero IDs in the URL.

The Memic public API is a small, focused REST surface for ingesting,
searching, and chatting over your data. Every endpoint is scoped to an
environment via a single API key — no organization, project, or environment
IDs in the URL.

## Base URL

```
https://api.memic.ai/api/v1
```

All endpoints are relative to this base. Examples in this reference use the
full URL for clarity.

## The 10 endpoints

<CardGroup cols={2}>
  <Card title="Context" icon="id-card">
    `GET /me` — Return the org/project/environment resolved from your key.
  </Card>

  <Card title="Projects" icon="folder">
    `GET /projects` — List all projects in your organization.
  </Card>

  <Card title="Search" icon="magnifying-glass">
    `POST /search` — Run semantic search scoped to your environment.
  </Card>

  <Card title="Chat" icon="comments">
    `POST /chat` — Grounded chat over your indexed documents.
  </Card>

  <Card title="Files" icon="file">
    `GET /files`, `POST /files/init`, `POST /files/{id}/confirm`, `GET /files/{id}/status`, `DELETE /files/{id}`
  </Card>

  <Card title="Prompts" icon="quote">
    `GET /prompts/{name}` — Fetch the live version of a managed prompt.
  </Card>
</CardGroup>

## Conventions

* **JSON in, JSON out.** Request bodies are `application/json`. Responses
  are UTF-8 encoded JSON.
* **UUIDs** are used for all resource identifiers (`file_id`, `project_id`,
  etc.) in the canonical 8-4-4-4-12 format.
* **Timestamps** are ISO 8601 in UTC: `2026-04-12T14:23:05.123Z`.
* **Pagination** is cursor-less and uses `page` + `page_size` query params
  where applicable. See [Pagination](/api-reference/pagination).
* **Errors** follow RFC 7807 problem details. See [Errors](/api-reference/errors).

## Next

<CardGroup cols={3}>
  <Card title="Authentication" icon="key" href="/api-reference/authentication">
    How API keys work.
  </Card>

  <Card title="Errors" icon="triangle-exclamation" href="/api-reference/errors">
    Error codes and response format.
  </Card>

  <Card title="Rate limits" icon="gauge" href="/api-reference/rate-limits">
    What to expect under load.
  </Card>
</CardGroup>
