MetorialDocs

Set up API2PDF in Metorial for Claude, ChatGPT and Cursor

Share API2PDF with your team in Claude, ChatGPT and Cursor through Metorial: API key sign-in, 15 tools (4 read-only).

To give your team API2PDF in Claude, ChatGPT, Cursor and other AI clients, an admin shares the API2PDF integration in a Metorial portal, and each person connects with an API key. Agents can generate PDFs from HTML, URLs, and Markdown. The integration has 15 tools, 4 read-only, 10 write and 1 destructive, plus 1 trigger.

What you'll learn

  • How an admin shares API2PDF in a portal and how each person connects
  • What API2PDF asks for when you connect, and where to find it
  • How to keep the 4 read-only tools and reject the other 11

Before you start

Sign-in method

MethodTypeWhat a person provides
API KeyAPI tokenapiKey

API Key

To connect, a person enters:

  • apiKey: API2PDF API key from portal.api2pdf.com

Setup settings

Setup also asks for:

  • useXlCluster (optional): Use the XL cluster (v2-xl.api2pdf.com) for larger compute resources. Costs more but handles heavier workloads.

Admin: share API2PDF in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose API2PDF. For how members connect, choose Each person connects so everyone enters their own API key, or Shared connection to enter one API key for everyone.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from API2PDF.

Choose who gets it

Add the access groups that should see API2PDF. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user API2PDF integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search api2pdf

Employee: connect API2PDF

In the portal

Open API2PDF in the catalog

Sign in to your portal and open API2PDF. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. In the setup window, enter your API key (apiKey).

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search api2pdf
metorial setup <catalog-item-id>

catalog search prints the catalog item ID.

Add it to your AI client

metorial install adds your API2PDF connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list api2pdf
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 4 read-only tools, such as check_status and check_balance, and lose the 10 write tools, such as create_zip or merge_pdfs, and the destructive tool delete_file.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list api2pdf
metorial tools <integration-id>
metorial call <integration-id> check_status -d '{}'

metorial tools lists the 15 tools, minus any you rejected. check_status takes no input. It checks the API2PDF service health status endpoint.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (4)

  • extract_pdf_data: Extract structured data from a PDF document. Needs url and outputFormat.
  • convert_to_markdown: Convert a document file to Markdown format using Markitdown. Needs url.
  • check_balance: Check the remaining credit balance on the API2PDF account associated with the current API key.
  • check_status: Check the API2PDF service health status endpoint.

Write tools (10)

  • capture_screenshot: Capture a screenshot image of a website URL, raw HTML content, or Markdown using Headless Chrome.
  • watermark_pdf: Add a text watermark to an existing PDF document. Needs url.
  • extract_pdf_pages: Extract a specific range of pages from an existing PDF document. Needs url.
  • create_zip: Compress multiple files into a single ZIP archive. Needs files.
  • protect_pdf: Add password protection to an existing PDF document. Needs url and userPassword.
  • convert_document: Convert documents between formats using LibreOffice. Needs outputFormat.
  • generate_pdf: Generate a PDF document from HTML content, a publicly accessible URL, or Markdown text using Headless Chrome.
  • generate_thumbnail: Generate a thumbnail image preview from a PDF, Office document, or email file. Needs url.
  • merge_pdfs: Combine multiple PDF documents into a single PDF file. Needs urls.
  • generate_barcode: Generate a barcode or QR code image. Needs format and value.

Destructive tools (1)

  • delete_file: Delete a previously generated file from API2PDF servers. Needs responseId.

Triggers

API2PDF has 1 trigger, which fire on events in API2PDF:

  • inbound_webhook

Next steps