{"uid":"cap_MutW6OhOVigKyJCPPjmBm","slug":"relaystation-pdf-encrypt-722312d7","name":"Relaystation PDF Encrypt","description":"$0.001/page. Password-protect a PDF with 256-bit AES and set permissions. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny","url":"https://api.relaystation.ai/v1/pdf/encrypt","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","properties":{"copy":{"type":"boolean","description":"Allow text/graphics extraction — the live \"copy\" permission (absent = allowed)."},"file":{"type":"object","description":"cputools input-source: { inline: <base64 ≤ 4 MiB> } or { inputKey: <scratch key from /v1/cputools/upload-url, ≤ 50 MB> }."},"print":{"type":"boolean","description":"Allow printing (absent = allowed). Pair with printHighRes for the print level."},"modify":{"type":"boolean","description":"Allow document modification (absent = allowed)."},"extract":{"type":"boolean","description":"Allow extraction for accessibility (absent = allowed). NOTE: PDF 2.0 / 256-bit encryption deprecated this bit and always grants it — may be a no-op; use `copy` to control extraction."},"annotate":{"type":"boolean","description":"Allow annotation (absent = allowed)."},"assemble":{"type":"boolean","description":"Allow document assembly — insert/delete/rotate pages (absent = allowed)."},"fillForms":{"type":"boolean","description":"Allow filling in form fields (absent = allowed)."},"printHighRes":{"type":"boolean","description":"Allow high-resolution printing (absent = allowed). With print:true, printHighRes:false restricts to low-res printing."},"userPassword":{"type":"string","maxLength":500,"minLength":1,"description":"The open password. Must not start with \"-\"."},"ownerPassword":{"type":"string","maxLength":500,"minLength":1,"description":"The permissions password. Must not start with \"-\"."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ECC-Ebod94FpZKMcY4Whz","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Password-protects a PDF with 256-bit AES encryption and sets access permissions","exampleAgentPrompt":"Can you password-protect this PDF with the password 'Secure@2025' and set it so recipients can read but not print or edit it?","exampleUseCases":[{"title":"Secure a confidential contract before sending","prompt":"Please encrypt this contract PDF with the password 'Contract#2024' and lock it so it can only be read — no printing, no editing, no copying."},{"title":"Protect employee payslip PDFs","prompt":"I need to password-protect this payslip PDF with the password 'HR_Private9!' and restrict all permissions except viewing."},{"title":"Lock a report for client delivery","prompt":"Can you apply 256-bit AES encryption to this quarterly report PDF using the password 'ClientQ4_2025' and allow printing but block any editing?"}],"resultDescription":"Returns an encrypted PDF binary protected with 256-bit AES encryption, with the specified password and permission restrictions applied. The output file is a valid PDF that requires the password to open and enforces the configured access permissions.","failureModes":["Invalid or corrupt PDF input returns an error","Missing password field causes request rejection","Unsupported PDF version or DRM-already-applied file may fail","Payment failure via x402 (insufficient USDC balance) blocks the request","Oversized PDF may exceed per-call limits"],"whenToPreferThis":"Choose this endpoint when you need to programmatically encrypt PDFs with strong 256-bit AES security and granular permission controls (read, print, edit, copy) in an agentic workflow. It is billed per-page at $0.001 with a 1¢ x402 minimum, making it cost-efficient for small documents. Prefer this over client-side PDF libraries when you need a stateless, serverless encryption step with no infrastructure to maintain.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:54:54.499Z","isFirstParty":false}