MilaMila.gg

Get Started

Core

REST API

Agents

Pricing

Back to Mila
REST API

REST API

Mila provides a REST API for programmatic access to your documents, sheets, and slide presentations. Authenticate with an API key and interact with your content using standard HTTP methods.

Base URL:

https://api.mila.gg/v1

Authentication

All requests require an API key. Include it in the Authorization header:

bash
Authorization: Bearer mila_sk_your_key_here

You can also use the X-API-Key header:

bash
X-API-Key: mila_sk_your_key_here

Create and manage API keys from your account at /api-keys (individual) or /team-api (teams).

Scopes

Each API key has scopes that control what it can access:

ScopeDescription
documents:readList and read documents
documents:writeCreate, update, and delete documents
sheets:readList and read sheets
sheets:writeCreate, update, and delete sheets
slides:readList and read slide presentations
slides:writeCreate, update, and delete slide presentations

Response Format

All responses follow the same structure:

JSON
{
  "success": true,
  "data": { ... }
}

Error responses:

JSON
{
  "success": false,
  "error": "Description of what went wrong."
}

List endpoints include pagination:

JSON
{
  "success": true,
  "data": [ ... ],
  "pagination": {
    "total": 42,
    "limit": 50,
    "offset": 0
  }
}

Rate Limits

API keys have a default rate limit of 60 requests per minute. When exceeded, requests return 429 Too Many Requests. The limit is configurable per key (up to 120/min).