Fetch the inbox feed of published document payloads for your organization. Use these endpoints to pull the latest SOPs and guides into external systems.
Use this file to discover all available pages before exploring further.
The inbox provides a feed of the most recently published version of every document in your organization. Each entry contains the full document payload — title, version, department, and structured section content — so you can sync DocInject documents to downstream systems without a webhook listener.Base URL:https://api.docinject.io/api/v1
Inbox endpoints identify your organization by slug, not by UUID. Find your slug in Settings → Organization under the “Slug” field.
Return all inbox entries for the organization, ordered by most recent first. Each entry represents the latest published or revised payload for a document.
Return the latest inbox entry for a specific document. Use this to check whether a particular document has been published and retrieve its current payload.
Response200 — a single inbox entry object with the same structure as above.
{ "event_type": "document.revised", "organization_id": "org-3f2a1b4c-8e7d-4f6a-9b0c-1d2e3f4a5b6c", "org_slug": "acme-corp", "occurred_at": "2024-03-10T15:45:00Z", "data": { "document_id": "doc-7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d", "title": "Employee Onboarding", "version": "v2.0", "department": "HR", "published_by_email": "editor@acme-corp.com", "sections": [ { "title": "Pre-arrival", "steps": [ { "title": "Send welcome email", "content": "Send the standard welcome email template from the HR shared inbox 48 hours before the start date.", "sub_steps": [] }, { "title": "Provision accounts", "content": "Create accounts in Okta, Slack, and any role-specific tools before day one.", "sub_steps": [ { "title": "Create Okta account", "content": "Log in to Okta Admin and create a new user with the standard HR group assignment.", "sub_steps": [] } ] } ] } ] }}
The inbox stores the last published or revised payload for each document. It does not retain full history. To retrieve the complete revision history for a document, use the revision chain endpoints.
Combine the inbox endpoint with an API key to build a polling-based integration. Call the inbox on a schedule, compare occurred_at or data.version against your last-synced state, and process any new entries.
Generate a dedicated API key for your integration under Settings → API Keys. This lets you revoke access for a single integration without affecting other consumers.