Contracts
Use this page as the contract index for all Dev API endpoints.
Header contract
All Dev API routes require:
x-api-key: <project_api_key>
Response entity model
type DevProject = Omit<ProjectDoc, "ownerId"> & { ownerId: null }
type DevCollection = Omit<CollectionDoc, "ownerId"> & { ownerId: null }
type DevPaper = Omit<PaperDoc, "ownerId"> & { ownerId: null }
type DevProjectResponse = {
project: DevProject
collections: DevCollection[]
}
type DevCollectionResponse = {
collection: DevCollection
papers: DevPaper[]
}
type DevPaperResponse = {
paper: DevPaper
}
type ApiError = {
detail: string
}
Endpoint index
GET /dev/projectGET /dev/collection?id=<id>orGET /dev/collection?slug=<slug>GET /dev/paper?id=<id>orGET /dev/paper?slug=<slug>
Error baseline
Common statuses:
400invalid query shape401missing/invalid key403inactive key or scope violation404collection/paper not found429monthly limit exceeded