# repa HTTP API: every route This page lists every route of the repa HTTP API that an API key can call, for a coding agent. It describes the API as it answers on 2026-11-20. This list is the authority for which routes exist. Start with the main guide: https://repa.work/developers/agents.md. - Origin: `https://api.repa.run`. - Authentication: the `x-api-key` header on every request. - Where the table says an idempotency key is required, send the `idempotency-key` header (8 to 128 characters from letters, digits and `. _ : -`) and reuse it, with the same body, on every retry. - `{name}` in a path is a value you were given by an earlier answer. Never build one. - A route that is not on this page does not exist. Mail has its own routes and its own kind of key: https://repa.work/developers/agents/email.md. ## Service | Request | Operation | Idempotency key | | --- | --- | --- | | `GET /api/service-envelope` | `getServiceEnvelope` | no | | `GET /api/operations/{operationId}` | `getOperation` | no | ## Projects | Request | Operation | Idempotency key | | --- | --- | --- | | `GET /api/projects` | `listProjects` | no | | `GET /api/projects/{projectId}` | `getProject` | no | | `GET /api/projects/{projectId}/lifecycle` | `getProjectLifecycle` | no | | `POST /api/projects` | `createProject` | required | | `GET /api/projects/archived` | `listArchivedProjects` | no | | `POST /api/projects/{projectId}/archive` | `archiveProject` | required | | `POST /api/projects/{projectId}/restore` | `restoreProject` | required | | `POST /api/projects/{projectId}/deletion` | `deleteProjectPermanently` | required | ## Folders | Request | Operation | Idempotency key | | --- | --- | --- | | `GET /api/projects/{projectId}/folders` | `listDocumentFolders` | no | | `POST /api/projects/{projectId}/folders` | `createDocumentFolder` | required | | `PATCH /api/projects/{projectId}/folders/{folderId}` | `updateDocumentFolder` | required | | `DELETE /api/projects/{projectId}/folders/{folderId}` | `deleteDocumentFolder` | required | ## Documents and versions | Request | Operation | Idempotency key | | --- | --- | --- | | `POST /api/projects/{projectId}/documents/{documentId}/versions/{documentVersionId}/processing/retries` | `retryDocumentProcessing` | required | | `GET /api/projects/{projectId}/documents/{documentId}/versions/{documentVersionId}/processing/attempts/{attemptId}` | `getDocumentProcessingAttempt` | no | | `GET /api/projects/{projectId}/documents` | `listDocuments` | no | | `GET /api/projects/{projectId}/documents/{documentId}` | `getDocument` | no | | `POST /api/projects/{projectId}/documents` | `createDocument` | required | | `GET /api/projects/{projectId}/documents/{documentId}/versions/{documentVersionId}/snapshot` | `getDocumentSnapshot` | no | | `POST /api/projects/{projectId}/documents/{documentId}/transactions` | `applyDocumentTransaction` | required | | `POST /api/projects/{projectId}/documents/imports` | `importDocument` | required | | `GET /api/projects/{projectId}/documents/{documentId}/versions` | `listDocumentVersions` | no | | `GET /api/projects/{projectId}/documents/{documentId}/versions/{documentVersionId}` | `getDocumentVersion` | no | | `POST /api/projects/{projectId}/documents/{documentId}/versions/{documentVersionId}/publish` | `publishDocumentVersion` | required | | `POST /api/projects/{projectId}/documents/{documentId}/versions` | `createDocumentDraftVersion` | required | | `POST /api/projects/{projectId}/documents/{documentId}/versions/{documentVersionId}/discard` | `discardDocumentDraftVersion` | required | | `GET /api/projects/{projectId}/documents/{documentId}/versions/{documentVersionId}/package` | `getDocumentPackage` | no | | `PATCH /api/projects/{projectId}/documents/{documentId}` | `moveDocument` | required | | `POST /api/projects/{projectId}/documents/{documentId}/versions/{documentVersionId}/pdf` | `exportDocumentVersionPdf` | no | ## Fonts | Request | Operation | Idempotency key | | --- | --- | --- | | `POST /api/projects/{projectId}/documents/{documentId}/font-plans/{planId}/preview` | `prepareDocumentFontPlanPreview` | required | | `GET /api/projects/{projectId}/documents/{documentId}/font-plans/{planId}/preview/package` | `getDocumentFontPlanPackage` | no | | `GET /api/projects/{projectId}/documents/{documentId}/font-plans/{planId}/preview/fonts/files/{fileHash}` | `getDocumentFontPlanFile` | no | | `POST /api/projects/{projectId}/documents/{documentId}/fonts/working/inspect` | `inspectWorkingDocumentFonts` | no | | `POST /api/projects/{projectId}/documents/{documentId}/fonts/working/prepare` | `prepareWorkingDocumentFontPlan` | no | | `POST /api/projects/{projectId}/documents/{documentId}/font-plans` | `createDocumentFontPlan` | required | | `GET /api/projects/{projectId}/documents/{documentId}/font-plans/{planId}` | `getDocumentFontPlan` | no | | `POST /api/projects/{projectId}/documents/{documentId}/font-plans/{planId}/apply` | `applyDocumentFontPlan` | required | | `GET /api/projects/{projectId}/documents/{documentId}/versions/{documentVersionId}/fonts/files/{fileHash}` | `getDocumentFontFile` | no | | `GET /api/projects/{projectId}/documents/{documentId}/versions/{documentVersionId}/processing/attempts/{attemptId}/font-analyses/{analysisId}` | `inspectSourceFonts` | no | | `GET /api/projects/{projectId}/documents/{documentId}/versions/{documentVersionId}/fonts` | `inspectDocumentFonts` | no | | `GET /api/fonts` | `listFonts` | no | ## Generation | Request | Operation | Idempotency key | | --- | --- | --- | | `GET /api/generation/blueprints` | `listDocumentBlueprints` | no | | `POST /api/generation/blueprints` | `createDocumentBlueprint` | required | | `GET /api/generation/blueprints/{blueprintId}` | `getDocumentBlueprint` | no | | `PUT /api/generation/blueprints/{blueprintId}` | `updateDocumentBlueprint` | required | | `DELETE /api/generation/blueprints/{blueprintId}` | `deleteDocumentBlueprint` | required | | `GET /api/generation/blueprints/{blueprintId}/revisions` | `listDocumentBlueprintRevisions` | no | | `GET /api/generation/blueprints/{blueprintId}/revisions/{revision}` | `getDocumentBlueprintRevision` | no | | `POST /api/generation/blueprints/{blueprintId}/revisions/{revision}/compatibility` | `checkDocumentBlueprintCompatibility` | no | | `POST /api/generation/runs` | `renderDocument` | required | | `GET /api/generation/runs/{runId}` | `getRun` | no | | `GET /api/generation/runs` | `listRuns` | no | | `POST /api/generation/runs/{runId}/cancel` | `cancelRun` | required | | `POST /api/generation/runs/{runId}/outputs/{outputId}/download-capabilities` | `issueOutputDownloadCapability` | required | | `POST /api/generation/runs/{runId}/erasure-requests` | `requestRunErasure` | required | ## Flows (drafts) | Request | Operation | Idempotency key | | --- | --- | --- | | `GET /api/flows/node-types` | `listFlowNodeTypes` | no | | `GET /api/flows` | `listFlows` | no | | `POST /api/flows` | `createFlow` | no | | `GET /api/flows/{flowId}` | `getFlow` | no | | `PATCH /api/flows/{flowId}` | `updateFlow` | no | | `PUT /api/flows/{flowId}/draft` | `saveFlowDraft` | no | | `DELETE /api/flows/{flowId}` | `deleteFlow` | no | | `GET /api/flows/{flowId}/versions` | `listFlowVersions` | no | | `GET /api/flows/{flowId}/versions/{version}` | `getFlowVersion` | no | | `GET /api/flows/{flowId}/publish` | `previewFlowPublish` | no | ## Webhooks | Request | Operation | Idempotency key | | --- | --- | --- | | `GET /api/webhook-endpoints` | `listWebhookEndpoints` | no | | `GET /api/webhook-endpoints/{endpointId}` | `getWebhookEndpoint` | no | | `POST /api/webhook-endpoints` | `createWebhookEndpoint` | required | | `PUT /api/webhook-endpoints/{endpointId}` | `updateWebhookEndpoint` | required | | `POST /api/webhook-endpoints/{endpointId}/secret-rotations` | `rotateWebhookSecret` | required | | `POST /api/webhook-endpoints/{endpointId}/secrets/{secretVersion}/revocation` | `revokeWebhookSecret` | required | | `DELETE /api/webhook-endpoints/{endpointId}` | `revokeWebhookEndpoint` | required | | `GET /api/webhook-deliveries` | `listWebhookDeliveries` | no | | `GET /api/webhook-deliveries/{deliveryId}` | `getWebhookDelivery` | no | | `POST /api/webhook-deliveries/{deliveryId}/redeliver` | `redeliverWebhookDelivery` | required | ## Governance and audit | Request | Operation | Idempotency key | | --- | --- | --- | | `GET /api/governance/policy` | `getGovernancePolicy` | no | | `PUT /api/governance/policy` | `updateGovernancePolicy` | required | | `GET /api/governance/legal-holds` | `listLegalHolds` | no | | `GET /api/governance/legal-holds/{holdId}` | `getLegalHold` | no | | `POST /api/governance/legal-holds` | `placeLegalHold` | required | | `POST /api/governance/legal-holds/{holdId}/release` | `releaseLegalHold` | required | | `DELETE /api/governance/download-capabilities/{capabilityId}` | `revokeOutputDownloadCapability` | required | | `GET /api/governance/erasure-requests/{requestId}` | `getRunErasureRequest` | no | | `POST /api/documents/{documentId}/retirement` | `retireDocument` | required | | `GET /api/governance/audit-events` | `queryAuditEvents` | no | | `POST /api/governance/audit-exports` | `requestAuditExport` | required | | `GET /api/governance/audit-exports/{exportId}` | `getAuditExport` | no | ## Notes - Flows: these are all the Flows routes a key may call. Testing a flow, publishing it, turning it on or off, its webhook address and its connections belong to people in the Flows app. A published flow only observes until a person turns it on. - Fonts: an imported Word file may name fonts the service has to resolve. When a processing attempt needs a decision about fonts, read what it asks and present the choice to a person; never pick a substitute font yourself. - Governance and audit routes need a workspace-wide key. - Long work answers `202` with something to poll. Poll with a pause between requests. ## More - Main guide: https://repa.work/developers/agents.md - Mail: https://repa.work/developers/agents/email.md - https://repa.work/developers