API first · Agents first
APIs
112 endpoints across 6 platform services, the gateway and the DocFlow app. Designed before they are built.
API first
Each service's API is its product, and this website is one client of it. Every endpoint is designed in its story before any code is written.
Agents first
Anything a person can do here, an AI agent can do with the user's permission: API keys, an OpenAPI contract and an MCP server per service with the same operations as tools.
Independent services
Each service owns its data, versions its API on its own under /api/{service}/v1, and follows one set of rules: one error format, cursor pagination, idempotent writes.
PlatformEvery serviceDesigned
Endpoints every service provides, from the shared service template.
- GET
/api/{service}/v1/audit-eventsList my audit events in that service (admins: all users). Signed in
- GET
/api/{service}/v1/healthLiveness check for that service. Public
- GET
/api/{service}/v1/openapi.jsonThat service's OpenAPI 3.1 contract. Public
- POST
/api/{service}/mcpThat service's MCP server: its operations exposed as tools for AI agents. Signed in
PlatformGatewayDesigned
The single front door at 01scale.com: routes each request to the service that owns it.
- GET
/api/healthHealth of the platform: the gateway and each service behind it. Public
- GET
/api/openapi.jsonOne combined OpenAPI document for every service. Public
- POST
/api/mcpOne combined MCP server: every service's tools, namespaced by service. Signed in
ServiceIdentityDesigned
Sign-in, sessions, accounts, API keys and the tokens every other service trusts.
- GET
/api/identity/v1/api-keysList my API keys (name, prefix, scopes, last used). Never returns the secret. Signed in
- POST
/api/identity/v1/api-keysCreate an API key for an agent or script. The secret is shown once. Signed in
- DELETE
/api/identity/v1/api-keys/{keyId}Revoke an API key immediately. Signed in
- GET
/api/identity/v1/auth/loginStart sign-in or sign-up: redirects to the identity provider (OIDC + PKCE). Public
- GET
/api/identity/v1/auth/callbackOIDC redirect target: exchanges the code and creates the session. Public
- POST
/api/identity/v1/auth/logoutEnd the current session and sign out of the identity provider. Signed in
- GET
/api/identity/v1/sessionWho am I: the current session and user, or 401. Signed in
- POST
/api/identity/v1/tokenExchange a session cookie or API key for a short-lived access token (called by the gateway). Service
- GET
/api/identity/v1/jwksThe public keys services use to verify access tokens. Public
- GET
/api/identity/v1/meMy account: email and joined date. Signed in
- POST
/api/identity/v1/me/password-changeStart a password change through the identity provider. Signed in
- DELETE
/api/identity/v1/meDelete my account. Every service then deletes that user's data. Signed in
- POST
/api/identity/v1/auth/magic-linksRequest a sign-in email. Always answers the same way. Public
- POST
/api/identity/v1/auth/magic-links/confirmExchange a magic-link token for a session (deliberate POST). Public
- POST
/api/identity/v1/auth/email-codes/verifySign in with the 6-digit code from the same email. Public
- POST
/api/identity/v1/passkeys/registration-optionsWebAuthn options to register a new passkey. Signed in
- POST
/api/identity/v1/passkeysVerify the registration and save the passkey. Signed in
- GET
/api/identity/v1/passkeysList my passkeys. Signed in
- PATCH
/api/identity/v1/passkeys/{passkeyId}Rename a passkey. Signed in
- DELETE
/api/identity/v1/passkeys/{passkeyId}Remove a passkey (needs recent re-authentication). Signed in
- POST
/api/identity/v1/auth/passkeys/authentication-optionsWebAuthn options to sign in with a passkey (no email needed). Public
- POST
/api/identity/v1/auth/passkeys/verifyVerify a passkey assertion and create a session. Public
- POST
/api/identity/v1/recovery-codesRegenerate recovery codes; the old set stops working. Signed in
- POST
/api/identity/v1/auth/recovery-codes/verifySign in with a single-use recovery code. Public
- GET
/api/identity/v1/sessionsList my active sessions with device and last active time. Signed in
- DELETE
/api/identity/v1/sessions/{sessionId}Revoke one session. Signed in
- DELETE
/api/identity/v1/sessionsSign out everywhere else. Signed in
- POST
/api/identity/v1/auth/reauthenticationStart re-authentication for a sensitive action. Signed in
- POST
/api/identity/v1/auth/reauthentication/verifyFinish re-authentication; valid for 5 minutes. Signed in
- POST
/api/identity/v1/me/email-changeAsk to change my email (confirmation goes to the new address). Signed in
- POST
/api/identity/v1/me/email-change/confirmConfirm the new email address. Signed in
- GET
/api/identity/v1/admin/migration-reportUsers migrated from Cognito vs not yet migrated. Admin
- POST
/api/identity/v1/me/phoneAdd a phone number; sends a 6-digit code. Signed in
- POST
/api/identity/v1/me/phone/verifyVerify the phone number. Signed in
- DELETE
/api/identity/v1/me/phoneRemove my phone number. Signed in
ServiceUploadDesigned
Secure file intake and storage with short-lived links.
- POST
/api/upload/v1/filesCreate a file record and get a presigned upload URL. Signed in
- GET
/api/upload/v1/files/{fileId}Get one file's details and status. Signed in
- DELETE
/api/upload/v1/files/{fileId}Delete a file and its stored object. Signed in
- POST
/api/upload/v1/files/{fileId}/completeConfirm the upload; the service verifies the stored file. Signed in
- GET
/api/upload/v1/files/{fileId}/download-urlA short-lived link to read the file. Signed in
- GET
/api/upload/v1/filesList my files. Signed in
ServiceLLM ExtractionDesigned
Turns a file into structured fields with confidence and evidence.
- POST
/api/extraction/v1/jobsStart an extraction job for a file. Safe to call twice. Signed in
- GET
/api/extraction/v1/jobs/{jobId}Extraction job status, for polling. Signed in
- GET
/api/extraction/v1/jobs/{jobId}/fieldsThe extracted fields with value, confidence and evidence. Signed in
- POST
/api/extraction/v1/validationsRun the rule checks for a schema on a set of values. Signed in
- GET
/api/extraction/v1/admin/jobsLast 100 jobs with tokens, cost, duration and failure rate. Admin
- POST
/api/extraction/v1/job-groupsRun several extraction jobs as one group with a concurrency limit. Signed in
- GET
/api/extraction/v1/job-groups/{groupId}Group status with each job's current step. Signed in
- GET
/api/extraction/v1/jobs/{jobId}/enrichmentWeb-sourced vendor metadata with citations for a job. Signed in
ServiceHuman ReviewDesigned
A person checks the fields the system is unsure about.
- POST
/api/review/v1/tasksCreate a review task from a set of fields. Signed in
- GET
/api/review/v1/tasks/{taskId}The review queue: flagged fields first, lowest confidence first. Signed in
- PATCH
/api/review/v1/tasks/{taskId}/fields/{fieldId}Accept, edit or mark a field as not on the document. Signed in
- POST
/api/review/v1/tasks/{taskId}/completeComplete the task once every flagged field is resolved. Signed in
- GET
/api/review/v1/admin/eval-candidatesHuman corrections waiting for approval as eval cases. Admin
- POST
/api/review/v1/admin/eval-candidates/exportExport approved corrections as ground-truth files. Admin
- GET
/api/review/v1/admin/qualityJudge vs human: agreement, confusion matrix, weakest fields (30 days). Admin
- POST
/api/review/v1/admin/quality/exportExport judge/human disagreements as eval candidates. Admin
- GET
/api/review/v1/tasks/{taskId}/chat/messagesThe correction chat history for a task. Signed in
- POST
/api/review/v1/tasks/{taskId}/chat/messagesAsk the correction agent to fix data in plain language. Signed in
- POST
/api/review/v1/tasks/{taskId}/proposals/{proposalId}/applyApply a proposed change. Signed in
- POST
/api/review/v1/tasks/{taskId}/proposals/{proposalId}/rejectReject a proposed change. Signed in
- POST
/api/review/v1/tasks/{taskId}/proposals/{proposalId}/undoUndo an applied change. Signed in
ServicePaymentDesigned
Orders, checkout and payment status.
- POST
/api/payment/v1/ordersCreate an order and a Stripe Checkout session. Called by an app's server, never the browser. Service
- POST
/api/payment/v1/webhooks/stripeStripe webhook: marks orders paid, expired or failed. Service
- GET
/api/payment/v1/ordersList my orders. Signed in
- GET
/api/payment/v1/orders/{orderId}Get one order, for payment and success pages to poll. Signed in
- POST
/api/payment/v1/payment-methods/setup-intentsStart saving a card (Stripe SetupIntent). Signed in
- GET
/api/payment/v1/payment-methodsList my saved cards. Signed in
- PATCH
/api/payment/v1/payment-methods/{paymentMethodId}Make a card the default. Signed in
- DELETE
/api/payment/v1/payment-methods/{paymentMethodId}Remove a saved card (needs recent re-authentication). Signed in
- POST
/api/payment/v1/paymentsCharge a saved card. Called by an app's server, which sets the amount. Service
- GET
/api/payment/v1/paymentsPayment history, newest first. Signed in
ServiceDeliveryDesigned
Email and, later, SMS and push notifications.
- POST
/api/delivery/v1/messagesSend a templated email to a user. Called by an app's server. Service
- GET
/api/delivery/v1/messagesMy messages and their delivery status. Signed in
- GET
/api/delivery/v1/notification-preferencesMy notification settings per channel and event. Signed in
- PUT
/api/delivery/v1/notification-preferencesReplace my notification settings. Signed in
- POST
/api/delivery/v1/webhooks/smsInbound SMS webhook: handles STOP opt-outs. Service
- GET
/api/delivery/v1/push/public-keyThe VAPID public key for web push. Public
- POST
/api/delivery/v1/push-subscriptionsRegister this device for push notifications. Signed in
- DELETE
/api/delivery/v1/push-subscriptions/{subscriptionId}Remove a device. Signed in
- POST
/api/delivery/v1/notificationsNotify a user about an event on every channel they have enabled. Called by an app's server. Service
- GET
/api/delivery/v1/notificationsMy notification log: each attempt per channel. Signed in
AppDocFlowDesigned
The first app: the invoice process assembled from the platform services.
- POST
/api/docflow/v1/webhooks/{service}Receives signed events from platform services and moves the process forward. Service
- GET
/api/docflow/v1/statsMy DocFlow totals for the account page. Signed in
- POST
/api/docflow/v1/documentsStart the DocFlow process for one invoice: creates the document and its upload. Signed in
- POST
/api/docflow/v1/documents/{documentId}/upload-completeConfirm the upload and start extraction. Signed in
- GET
/api/docflow/v1/documentsList my DocFlow documents with status and the next action. Signed in
- GET
/api/docflow/v1/documents/{documentId}Get one DocFlow document and the IDs of its parts in each service. Signed in
- POST
/api/docflow/v1/documents/{documentId}/retry-extractionRetry a failed extraction for a document. Signed in
- POST
/api/docflow/v1/documents/{documentId}/complete-reviewFinish review for a document: re-checks the corrected data and builds the outputs. Signed in
- GET
/api/docflow/v1/documents/{documentId}/outputsThe outputs available for a document, and whether download is unlocked. Signed in
- GET
/api/docflow/v1/documents/{documentId}/outputs/{format}/previewPreview the JSON or CSV on screen before paying. Signed in
- GET
/api/docflow/v1/documents/{documentId}/outputs/{format}/downloadDownload an output. Locked until the order is paid. Signed in
- POST
/api/docflow/v1/documents/{documentId}/checkoutStart payment for a document. Signed in
- POST
/api/docflow/v1/batchesCreate a batch of up to 10 documents; each file is checked on its own. Signed in
- POST
/api/docflow/v1/batches/{batchId}/processStart extraction for the batch once the uploads are confirmed. Signed in
- GET
/api/docflow/v1/batchesList my batches. Signed in
- GET
/api/docflow/v1/batches/{batchId}Batch status with each document's step and status. Signed in
- GET
/api/docflow/v1/batches/{batchId}/reviewReview state across a batch: flagged fields left per document. Signed in
- PATCH
/api/docflow/v1/batches/{batchId}/documents/{documentId}Leave a document out of the batch (or put it back). Signed in
- POST
/api/docflow/v1/batches/{batchId}/complete-reviewComplete the batch review and build the batch outputs. Signed in
- GET
/api/docflow/v1/batches/{batchId}/outputsThe outputs available for a batch. Signed in
- GET
/api/docflow/v1/batches/{batchId}/outputs/{format}/previewPreview the combined JSON or CSV. Signed in
- GET
/api/docflow/v1/batches/{batchId}/outputs/{format}/downloadDownload batch.json, batch.csv or batch.zip. Signed in
- POST
/api/docflow/v1/batches/{batchId}/payPay for a batch with my default card in one tap. Signed in