Set Up Citation with n8n
Before you connect
Importable HTTP workflows. Follow the installation steps for this package; it is not a public marketplace listing.
Use the address shown in Citation settings and a reachable HTTPS server for cloud platforms. For a self hosted deployment, the operator must configure the MCP address and apply the MCP and automation database migrations. A localhost address works only for software on that computer.
Each token grants access to one workspace for 1 to 90 days. Read permissions are selected initially. Choose writing and exporting only if your workflow needs them. Save credentials in the platform credential store.
Set up n8n
The templates use built in HTTP Request nodes, so no community node is required. The event workflow reads one page manually. Add scheduling and durable checkpoint storage to your destination workflow before using it for ongoing processing.
- Download the draft workflow and import it into a new n8n workflow. In Workflow Input, enter the exact Citation origin and replace both request UUID placeholders with different UUIDs. Keep these UUIDs for every retry of that work item.
- Create a Header Auth credential. Set its Name to Authorization and its Value to Bearer followed by a space and your Citation workspace token. Select this credential in every HTTP Request node.
- Run manually. The workflow creates a draft, saves Virginia Woolf’s A Room of One’s Own as a source, and formats an APA reference. Verify the saved document and source in Citation, then repeat unchanged to check that no duplicate is created.
- Import the event page workflow to inspect saved changes. Set its origin and credential. Follow next_cursor while has_more is true. Persist the final checkpoint only after every page and your downstream work succeed.
Workflow files
Supported operations
Find and read documents, create drafts, and save edits using the version you read. Find, read, add, or update saved sources. Format references, check citation metadata, and export saved text or references as TXT, BibTeX, or RIS. Each action requires its corresponding permission.
The package includes an OpenAPI contract with input and output schemas. Send HTTP actions with POST to the corresponding relative path:
Use read_document with include_content before changing a draft. Sending text replaces formatting and citation nodes.
/api/automation/v1/actions/create_draft{
"request_id": "REPLACE_WITH_A_STABLE_UUID",
"title": "Research intake",
"text": "Evidence to review."
}Events and retries
The separate HTTP event feed reports document creation, document updates, source creation, and source updates. Events are saved with the same database transaction as the change. A retried request returns the same event IDs. History is retained for 30 days or 100,000 events per workspace, whichever is smaller.
Use after for ascending pages and before for descending pages. Keep the same workspace, event type and order. Save the final checkpoint only after all pages and downstream actions succeed. A 410 error requires resynchronization. This integration does not send outbound webhooks.
Reuse the same request UUID and exact input after an uncertain save. A 409 error means the version or request input changed. Read and review before making a new request. A 429 response includes a retry interval. Expired or revoked tokens return 401.
Manage access
Test API access in Citation settings, then test the connection inside your platform. A successful API test confirms Citation access only. Replace a token to invalidate its previous value while keeping its retry history. Update the platform credential before resuming. Revoke the connection to stop access.