Skip to main content

Documentation Index

Fetch the complete documentation index at: https://surfacedocs.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

API Reference

The SurfaceDocs REST API lets you create, read, and delete documents and manage folders.

Base URL

https://api.surfacedocs.dev

Authentication

All requests require an API key passed in the X-API-Key header:
curl https://api.surfacedocs.dev/v1/documents/doc_abc123 \
  -H "X-API-Key: sd_live_..."
Get your API key from app.surfacedocs.dev.

Rate Limits

Rate limits depend on your plan:
PlanPer MinutePer Day
Free201,000
Pro30050,000
Every response includes rate limit headers:
HeaderDescription
X-RateLimit-LimitRequests allowed per minute
X-RateLimit-RemainingRequests remaining this minute
X-RateLimit-ResetUnix timestamp when the limit resets
When rate limited, you’ll receive a 429 response with a Retry-After header.

Errors

All errors return a consistent JSON format:
{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Invalid document format",
    "details": {}
  }
}
HTTP CodeDescription
400Validation error
401Invalid or missing API key
403Insufficient permissions
404Resource not found
429Rate limit exceeded