all-about-apikey/pdflayer
Muhammad Daffa 7372a52709 Fix repository structure and add todolist 2022-07-23 20:53:29 +07:00
..
README.md Fix repository structure and add todolist 2022-07-23 20:53:29 +07:00

README.md

pdflayer

Description

HTML/URL to PDF

Example Request

  • Curl
curl "https://api.pdflayer.com/api/convert?access_key={{token}}&document_url=https://pdflayer.com/downloads/invoice.html"
  • Raw
GET /api/convert?access_key={{token}}&document_url=https://pdflayer.com/downloads/invoice.html HTTP/1.1
Host: api.pdflayer.com
...

Response

  • Success
Automatically download pdf
  • Error
{
    "success":false,
    "error": {
        "code":101,
        "type":"invalid_access_key",
        "info":"You have not supplied a valid API Access Key. [Technical Support: support@apilayer.com]"
    }
}

Regex

[a-z0-9]{32}

Example API key

tue3sv9hzsey1me4l7fwq3t46u5k8wag