openapi: 3.0.3 info: title: API Snap Browser Documents API version: 1.0.0 description: API Snap is a developer utility API that bundles 13+ common tools into a single REST API with one API key. Generate QR codes, resize images, capture screenshots, convert HTML to PDF, hash strings, generate UUIDs, extract URL metadata, and more. Free tier includes 100 API calls/month with no credit card required. All endpoints support CORS and return JSON (or binary where appropriate). Built for developers who want to ship faster. contact: name: API Snap Support url: https://api-snap.com license: name: Proprietary servers: - url: https://api-snap.com description: Production server security: - BearerAuth: [] tags: - name: Documents description: Document generation and conversion (PDF, Markdown) paths: /api/pdf: post: operationId: htmlToPdf summary: Convert HTML to PDF description: Convert an HTML string to a downloadable PDF file. tags: - Documents requestBody: required: true content: application/json: schema: type: object required: - html properties: html: type: string description: HTML content to convert to PDF. title: type: string description: Document title, used as the PDF filename. default: Document example: html:
This is my PDF content.
title: My Document responses: '200': description: PDF file content: application/pdf: schema: type: string format: binary headers: Content-Disposition: schema: type: string description: attachment; filename="Total: $100.00
' '400': description: Missing markdown field content: application/json: schema: $ref: '#/components/schemas/Error' examples: MarkdownToHtml400Example: summary: Default markdownToHtml 400 response x-microcks-default: true value: error: Bad request message: Invalid parameters '401': $ref: '#/components/responses/Unauthorized' '429': $ref: '#/components/responses/RateLimitExceeded' x-microcks-operation: delay: 0 dispatcher: FALLBACK components: responses: RateLimitExceeded: description: Monthly API call limit reached content: application/json: schema: $ref: '#/components/schemas/RateLimitError' headers: X-RateLimit-Limit: schema: type: integer description: Monthly call limit X-RateLimit-Remaining: schema: type: integer description: Remaining calls this month Unauthorized: description: Missing or invalid API key content: application/json: schema: $ref: '#/components/schemas/Error' example: error: 'API key required. Pass via Authorization: Bearer