{"files":{"SKILL.md":"---\nname: pdf-blocks-api\ndescription: \"PDF Blocks API skill. Use when working with PDF Blocks for add_password, add_watermark, merge_documents. Covers 12 endpoints.\"\nversion: 1.0.0\ngenerator: lapsh\n---\n\n# PDF Blocks API\nAPI version: 1.5.0\n\n## Auth\nApiKey X-Api-Key in header\n\n## Base URL\nhttps://api.pdfblocks.com\n\n## Setup\n1. Set your API key in the appropriate header\n2. Verify API access with a test request\n3. POST /v1/add_password -- create first add_password\n\n## Endpoints\n12 endpoints across 11 groups. See references/api-spec.lap for full details.\n\n### Add_password\n| Method | Path | Description |\n|--------|------|-------------|\n| POST | /v1/add_password | Add a password to a PDF |\n\n### Add_watermark\n| Method | Path | Description |\n|--------|------|-------------|\n| POST | /v1/add_watermark/text | Add a text watermark to a PDF |\n| POST | /v1/add_watermark/image | Add an image watermark to a PDF |\n\n### Merge_documents\n| Method | Path | Description |\n|--------|------|-------------|\n| POST | /v1/merge_documents | Merge PDF documents |\n\n### Extract_pages\n| Method | Path | Description |\n|--------|------|-------------|\n| POST | /v1/extract_pages | Extract pages from a PDF |\n\n### Remove_pages\n| Method | Path | Description |\n|--------|------|-------------|\n| POST | /v1/remove_pages | Remove pages from a PDF |\n\n### Rotate_pages\n| Method | Path | Description |\n|--------|------|-------------|\n| POST | /v1/rotate_pages | Rotate pages in a PDF |\n\n### Add_restrictions\n| Method | Path | Description |\n|--------|------|-------------|\n| POST | /v1/add_restrictions | Add restrictions to a PDF |\n\n### Remove_password\n| Method | Path | Description |\n|--------|------|-------------|\n| POST | /v1/remove_password | Remove the password from a PDF |\n\n### Remove_restrictions\n| Method | Path | Description |\n|--------|------|-------------|\n| POST | /v1/remove_restrictions | Remove the restrictions from a PDF |\n\n### Remove_signatures\n| Method | Path | Description |\n|--------|------|-------------|\n| POST | /v1/remove_signatures | Remove the signatures from a PDF |\n\n### Reverse_pages\n| Method | Path | Description |\n|--------|------|-------------|\n| POST | /v1/reverse_pages | Reverse the pages of a PDF |\n\n## Common Questions\nMatch user requests to endpoints in references/api-spec.lap. Key patterns:\n- \"Create a add_password?\" -> POST /v1/add_password\n- \"Create a text?\" -> POST /v1/add_watermark/text\n- \"Create a image?\" -> POST /v1/add_watermark/image\n- \"Create a merge_document?\" -> POST /v1/merge_documents\n- \"Create a extract_page?\" -> POST /v1/extract_pages\n- \"Create a remove_page?\" -> POST /v1/remove_pages\n- \"Create a rotate_page?\" -> POST /v1/rotate_pages\n- \"Create a add_restriction?\" -> POST /v1/add_restrictions\n- \"Create a remove_password?\" -> POST /v1/remove_password\n- \"Create a remove_restriction?\" -> POST /v1/remove_restrictions\n- \"Create a remove_signature?\" -> POST /v1/remove_signatures\n- \"Create a reverse_page?\" -> POST /v1/reverse_pages\n- \"How to authenticate?\" -> See Auth section above\n\n## Response Tips\n- Check response schemas in references/api-spec.lap for field details\n- Create/update endpoints return the modified resource on success\n- Error responses include status codes and descriptions in the spec\n\n## References\n- Full spec: See references/api-spec.lap for complete endpoint details, parameter tables, and response schemas\n\n> Generated from the official API spec by [LAP](https://lap.sh)\n","references/api-spec.lap":"@lap v0.3\n# Machine-readable API spec. Each @endpoint block is one API call.\n@api PDF Blocks API\n@base https://api.pdfblocks.com\n@version 1.5.0\n@auth ApiKey X-Api-Key in header\n@endpoints 12\n@toc add_password(1), add_watermark(2), merge_documents(1), extract_pages(1), remove_pages(1), rotate_pages(1), add_restrictions(1), remove_password(1), remove_restrictions(1), remove_signatures(1), reverse_pages(1)\n\n@group add_password\n@endpoint POST /v1/add_password\n@desc Add a password to a PDF\n@returns(200) The document was processed succesfully.\n@errors {4XX: Error}\n\n@endgroup\n\n@group add_watermark\n@endpoint POST /v1/add_watermark/text\n@desc Add a text watermark to a PDF\n@returns(200) The document was processed succesfully.\n@errors {4XX: Error}\n\n@endpoint POST /v1/add_watermark/image\n@desc Add an image watermark to a PDF\n@returns(200) The document was processed succesfully.\n@errors {4XX: Error}\n\n@endgroup\n\n@group merge_documents\n@endpoint POST /v1/merge_documents\n@desc Merge PDF documents\n@returns(200) The document was processed succesfully.\n@errors {4XX: Error}\n\n@endgroup\n\n@group extract_pages\n@endpoint POST /v1/extract_pages\n@desc Extract pages from a PDF\n@returns(200) The document was processed succesfully.\n@errors {4XX: Error}\n\n@endgroup\n\n@group remove_pages\n@endpoint POST /v1/remove_pages\n@desc Remove pages from a PDF\n@returns(200) The document was processed succesfully.\n@errors {4XX: Error}\n\n@endgroup\n\n@group rotate_pages\n@endpoint POST /v1/rotate_pages\n@desc Rotate pages in a PDF\n@returns(200) The document was processed succesfully.\n@errors {4XX: Error}\n\n@endgroup\n\n@group add_restrictions\n@endpoint POST /v1/add_restrictions\n@desc Add restrictions to a PDF\n@returns(200) The document was processed succesfully.\n@errors {4XX: Error}\n\n@endgroup\n\n@group remove_password\n@endpoint POST /v1/remove_password\n@desc Remove the password from a PDF\n@returns(200) The document was processed succesfully.\n@errors {4XX: Error}\n\n@endgroup\n\n@group remove_restrictions\n@endpoint POST /v1/remove_restrictions\n@desc Remove the restrictions from a PDF\n@returns(200) The document was processed succesfully.\n@errors {4XX: Error}\n\n@endgroup\n\n@group remove_signatures\n@endpoint POST /v1/remove_signatures\n@desc Remove the signatures from a PDF\n@returns(200) The document was processed succesfully.\n@errors {4XX: Error}\n\n@endgroup\n\n@group reverse_pages\n@endpoint POST /v1/reverse_pages\n@desc Reverse the pages of a PDF\n@returns(200) The document was processed succesfully.\n@errors {4XX: Error}\n\n@endgroup\n\n@end\n"}}