Docs
EN
Sign up

Authentication

Every ShipPDF REST API request needs a workspace API token. Send it in the Authorization header to access the projects, templates, and documents allowed by its scopes.

Authorization: Bearer spdf_xxx

Create an API token

Open your ShipPDF workspace.

ShipPDF workspace showing the template list and sidebar navigation
Start in the workspace your integration will use.

Open Members & keys from the sidebar.

Members and keys page before creating an API key
Manage workspace members and API keys from Members & keys.

Click Create key to open the Create API key dialog.

Create API key dialog with name, scopes, resource access, and expiry settings
Give the key a name that identifies your integration.

For the API quickstart, select documents:create and documents:read so you can generate a document and check when its PDF is ready. Choose the resource access and expiry your integration needs, then click Create key.

API key settings with documents:create and documents:read selected, entire workspace access, and a 30-day expiry
This example uses both document scopes, entire workspace access, and a 30-day expiry.

Copy the new token and store it securely. The key appears in the workspace’s API key list.

Created API key in the workspace key list with its secret masked
The created key is listed with its secret masked.

Treat the token like a password. Keep it in your server’s environment or secret store, and keep it out of browser code and source control.

Authenticate a request

The REST API base URL is https://api.shippdf.com/v1. Include your token as a bearer token on every request:

Authorization: Bearer spdf_xxx

For example, read a document using a token with the documents:read scope. Replace the example token and document ID with your own values:

export SHIPPDF_API_TOKEN="spdf_xxx"

curl https://api.shippdf.com/v1/documents/doc_a1b2c3 \
  -H "Authorization: Bearer $SHIPPDF_API_TOKEN"

Use a document from the workspace that owns the token.

Open Requests to find a generated document. If the list is empty, generate a sample document first.

Empty Requests page in the ShipPDF workspace
An empty Requests list means you need to generate a document before reading one.

Choose a published template and follow the API quickstart to generate a document. A draft must be published before it can be used by the API.

Start here template marked Live with published revision v1 and a Generate action
The Start here template is published as revision v1 and ready for generation.

Once generation succeeds, select the request to inspect its response. Use Copy document ID to get the ID for the authenticated request above.

Successful API document request showing its completed response, document ID, and Download PDF action
A successful request shows the document's completed status and PDF URL.

Check the connection and workspace

Call GET /v1/whoami to validate a connection and discover the workspace that owns the token. Any valid workspace API token can call it; no additional scope is required.

curl https://api.shippdf.com/v1/whoami \
  -H "Authorization: Bearer $SHIPPDF_API_TOKEN"

A successful response has status 200 and always includes a nonempty public workspace ID at data.workspace.id:

{
  "data": {
    "api_key": {
      "name": "Make integration",
      "scopes": ["projects:read", "templates:read", "documents:create", "documents:read"],
      "access_scope": "workspace"
    },
    "workspace": {
      "id": "ws_example",
      "name": "Acme"
    },
    "created_by": { "email": "you@example.com" }
  }
}

The workspace belongs to the token, including for restricted tokens. created_by identifies the account that created the token and can be null; this does not remove the workspace ID.

The response contains no API key or webhook signing secrets, even for tokens with webhooks:manage or *. Find the workspace signing secret under Webhooks → Signing secret in the ShipPDF app; no API endpoint returns it.

Missing, malformed, invalid, expired, or revoked tokens return 401 with {"errors":{"detail":"A valid API token is required"}}.

In Make, store the response’s data.workspace.id in the connection and use it for both List Projects and the project picker: GET /v1/workspaces/{workspace_id}/projects. Listing projects requires projects:read, even though /whoami does not. Stop connection setup if authentication fails or the workspace ID is missing; do not build a URL with an empty workspace segment.

See the Make integration guide for dynamic template fields and Create PDF request examples.

Choose scopes

Scopes control which operations a token can perform. Choose the scopes your integration needs:

Scope Access MCP tools
projects:read List projects. list_projects
templates:read List and read templates and their metadata. list_templates, get_template, get_template_metadata
templates:write Create, read drafts, edit, and publish templates, and import image assets through MCP. No REST endpoint currently requires this scope. get_authoring_guide, describe_schema, create_template, get_draft_template, edit_template, update_template, publish_template, import_asset
documents:create Generate a document from a published template. generate_document
documents:read List recent documents through REST and read a document’s status and PDF URL. get_document
webhooks:manage Create and delete REST webhook subscriptions. None currently.
* Full access to all REST endpoints and MCP tools within the token’s resource access. All tools.

Each REST endpoint’s required scope is listed in the API reference. The MCP permissions reference lists the scopes required by its tools.

For document completion callbacks, set webhook_url when generating a document with documents:create; this does not require webhooks:manage.

Resolve authentication errors

401: Missing or invalid token

The API returns 401 when the token is missing, malformed, expired, or revoked. Check that the request includes the Authorization header with Bearer followed by your token. If the token has expired or been revoked, create a new token and update your integration.

{
  "errors": {
    "detail": "A valid API token is required"
  }
}

403: Missing scope

The API returns 403 when the token lacks the scope required by the endpoint. Check that endpoint in the API reference, then use a token with the required scope. For example, generating a document needs documents:create; reading it needs documents:read.

{
  "errors": {
    "detail": "API token does not have the required scope"
  }
}

Next steps

  • Generate your first PDF with the Quickstart.
  • Browse endpoints in the API reference.
  • Use a workspace API token to connect an AI assistant over MCP.