Skip to main content

API Reference

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

Base URL

Authentication

All requests require an API key passed in the X-API-Key header:
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:
HTTP CodeDescription
400Validation error
401Invalid or missing API key
403Insufficient permissions
404Resource not found
429Rate limit exceeded