Skip to content

Claude Code & other clients

Headless clients authenticate with an API key sent in the x-api-key header.

  1. Create a key in Imprime: avatar → API Keys → New key (e.g. Claude Code). Copy it.
  2. Add the server to your client, as shown below.
  3. Restart the client (or reload its MCP servers) and check that the imprime tools are listed.
Terminal window
claude mcp add --transport http imprime https://app.imprime.io/api/mcp \
--header "x-api-key: <your-api-key>"

Add --scope user to make it available in every project.

preview_template renders the pages as images and returns a link to the document, which you open to view and print it.

When your agent only needs the PDF bytes — no design work, no review loop — call the REST export endpoint instead. It returns the PDF in a single request:

Terminal window
curl -X POST "https://app.imprime.io/api/export/$TEMPLATE_ID/pdf" \
-H "x-api-key: $IMPRIME_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "client": "ACME Corp" }' -o out.pdf