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-events

    List my audit events in that service (admins: all users). Signed in

  • GET/api/{service}/v1/health

    Liveness check for that service. Public

  • GET/api/{service}/v1/openapi.json

    That service's OpenAPI 3.1 contract. Public

  • POST/api/{service}/mcp

    That 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/health

    Health of the platform: the gateway and each service behind it. Public

  • GET/api/openapi.json

    One combined OpenAPI document for every service. Public

  • POST/api/mcp

    One 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-keys

    List my API keys (name, prefix, scopes, last used). Never returns the secret. Signed in

  • POST/api/identity/v1/api-keys

    Create 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/login

    Start sign-in or sign-up: redirects to the identity provider (OIDC + PKCE). Public

  • GET/api/identity/v1/auth/callback

    OIDC redirect target: exchanges the code and creates the session. Public

  • POST/api/identity/v1/auth/logout

    End the current session and sign out of the identity provider. Signed in

  • GET/api/identity/v1/session

    Who am I: the current session and user, or 401. Signed in

  • POST/api/identity/v1/token

    Exchange a session cookie or API key for a short-lived access token (called by the gateway). Service

  • GET/api/identity/v1/jwks

    The public keys services use to verify access tokens. Public

  • GET/api/identity/v1/me

    My account: email and joined date. Signed in

  • POST/api/identity/v1/me/password-change

    Start a password change through the identity provider. Signed in

  • DELETE/api/identity/v1/me

    Delete my account. Every service then deletes that user's data. Signed in

  • POST/api/identity/v1/auth/magic-links

    Request a sign-in email. Always answers the same way. Public

  • POST/api/identity/v1/auth/magic-links/confirm

    Exchange a magic-link token for a session (deliberate POST). Public

  • POST/api/identity/v1/auth/email-codes/verify

    Sign in with the 6-digit code from the same email. Public

  • POST/api/identity/v1/passkeys/registration-options

    WebAuthn options to register a new passkey. Signed in

  • POST/api/identity/v1/passkeys

    Verify the registration and save the passkey. Signed in

  • GET/api/identity/v1/passkeys

    List 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-options

    WebAuthn options to sign in with a passkey (no email needed). Public

  • POST/api/identity/v1/auth/passkeys/verify

    Verify a passkey assertion and create a session. Public

  • POST/api/identity/v1/recovery-codes

    Regenerate recovery codes; the old set stops working. Signed in

  • POST/api/identity/v1/auth/recovery-codes/verify

    Sign in with a single-use recovery code. Public

  • GET/api/identity/v1/sessions

    List 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/sessions

    Sign out everywhere else. Signed in

  • POST/api/identity/v1/auth/reauthentication

    Start re-authentication for a sensitive action. Signed in

  • POST/api/identity/v1/auth/reauthentication/verify

    Finish re-authentication; valid for 5 minutes. Signed in

  • POST/api/identity/v1/me/email-change

    Ask to change my email (confirmation goes to the new address). Signed in

  • POST/api/identity/v1/me/email-change/confirm

    Confirm the new email address. Signed in

  • GET/api/identity/v1/admin/migration-report

    Users migrated from Cognito vs not yet migrated. Admin

  • POST/api/identity/v1/me/phone

    Add a phone number; sends a 6-digit code. Signed in

  • POST/api/identity/v1/me/phone/verify

    Verify the phone number. Signed in

  • DELETE/api/identity/v1/me/phone

    Remove my phone number. Signed in

ServiceUploadDesigned

Secure file intake and storage with short-lived links.

  • POST/api/upload/v1/files

    Create 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}/complete

    Confirm the upload; the service verifies the stored file. Signed in

  • GET/api/upload/v1/files/{fileId}/download-url

    A short-lived link to read the file. Signed in

  • GET/api/upload/v1/files

    List my files. Signed in

ServiceLLM ExtractionDesigned

Turns a file into structured fields with confidence and evidence.

  • POST/api/extraction/v1/jobs

    Start 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}/fields

    The extracted fields with value, confidence and evidence. Signed in

  • POST/api/extraction/v1/validations

    Run the rule checks for a schema on a set of values. Signed in

  • GET/api/extraction/v1/admin/jobs

    Last 100 jobs with tokens, cost, duration and failure rate. Admin

  • POST/api/extraction/v1/job-groups

    Run 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}/enrichment

    Web-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/tasks

    Create 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}/complete

    Complete the task once every flagged field is resolved. Signed in

  • GET/api/review/v1/admin/eval-candidates

    Human corrections waiting for approval as eval cases. Admin

  • POST/api/review/v1/admin/eval-candidates/export

    Export approved corrections as ground-truth files. Admin

  • GET/api/review/v1/admin/quality

    Judge vs human: agreement, confusion matrix, weakest fields (30 days). Admin

  • POST/api/review/v1/admin/quality/export

    Export judge/human disagreements as eval candidates. Admin

  • GET/api/review/v1/tasks/{taskId}/chat/messages

    The correction chat history for a task. Signed in

  • POST/api/review/v1/tasks/{taskId}/chat/messages

    Ask the correction agent to fix data in plain language. Signed in

  • POST/api/review/v1/tasks/{taskId}/proposals/{proposalId}/apply

    Apply a proposed change. Signed in

  • POST/api/review/v1/tasks/{taskId}/proposals/{proposalId}/reject

    Reject a proposed change. Signed in

  • POST/api/review/v1/tasks/{taskId}/proposals/{proposalId}/undo

    Undo an applied change. Signed in

ServicePaymentDesigned

Orders, checkout and payment status.

  • POST/api/payment/v1/orders

    Create an order and a Stripe Checkout session. Called by an app's server, never the browser. Service

  • POST/api/payment/v1/webhooks/stripe

    Stripe webhook: marks orders paid, expired or failed. Service

  • GET/api/payment/v1/orders

    List 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-intents

    Start saving a card (Stripe SetupIntent). Signed in

  • GET/api/payment/v1/payment-methods

    List 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/payments

    Charge a saved card. Called by an app's server, which sets the amount. Service

  • GET/api/payment/v1/payments

    Payment history, newest first. Signed in

ServiceDeliveryDesigned

Email and, later, SMS and push notifications.

  • POST/api/delivery/v1/messages

    Send a templated email to a user. Called by an app's server. Service

  • GET/api/delivery/v1/messages

    My messages and their delivery status. Signed in

  • GET/api/delivery/v1/notification-preferences

    My notification settings per channel and event. Signed in

  • PUT/api/delivery/v1/notification-preferences

    Replace my notification settings. Signed in

  • POST/api/delivery/v1/webhooks/sms

    Inbound SMS webhook: handles STOP opt-outs. Service

  • GET/api/delivery/v1/push/public-key

    The VAPID public key for web push. Public

  • POST/api/delivery/v1/push-subscriptions

    Register this device for push notifications. Signed in

  • DELETE/api/delivery/v1/push-subscriptions/{subscriptionId}

    Remove a device. Signed in

  • POST/api/delivery/v1/notifications

    Notify a user about an event on every channel they have enabled. Called by an app's server. Service

  • GET/api/delivery/v1/notifications

    My 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/stats

    My DocFlow totals for the account page. Signed in

  • POST/api/docflow/v1/documents

    Start the DocFlow process for one invoice: creates the document and its upload. Signed in

  • POST/api/docflow/v1/documents/{documentId}/upload-complete

    Confirm the upload and start extraction. Signed in

  • GET/api/docflow/v1/documents

    List 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-extraction

    Retry a failed extraction for a document. Signed in

  • POST/api/docflow/v1/documents/{documentId}/complete-review

    Finish review for a document: re-checks the corrected data and builds the outputs. Signed in

  • GET/api/docflow/v1/documents/{documentId}/outputs

    The outputs available for a document, and whether download is unlocked. Signed in

  • GET/api/docflow/v1/documents/{documentId}/outputs/{format}/preview

    Preview the JSON or CSV on screen before paying. Signed in

  • GET/api/docflow/v1/documents/{documentId}/outputs/{format}/download

    Download an output. Locked until the order is paid. Signed in

  • POST/api/docflow/v1/documents/{documentId}/checkout

    Start payment for a document. Signed in

  • POST/api/docflow/v1/batches

    Create a batch of up to 10 documents; each file is checked on its own. Signed in

  • POST/api/docflow/v1/batches/{batchId}/process

    Start extraction for the batch once the uploads are confirmed. Signed in

  • GET/api/docflow/v1/batches

    List 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}/review

    Review 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-review

    Complete the batch review and build the batch outputs. Signed in

  • GET/api/docflow/v1/batches/{batchId}/outputs

    The outputs available for a batch. Signed in

  • GET/api/docflow/v1/batches/{batchId}/outputs/{format}/preview

    Preview the combined JSON or CSV. Signed in

  • GET/api/docflow/v1/batches/{batchId}/outputs/{format}/download

    Download batch.json, batch.csv or batch.zip. Signed in

  • POST/api/docflow/v1/batches/{batchId}/pay

    Pay for a batch with my default card in one tap. Signed in