Skip to main content
POST
/
v1
/
article-to-pdf
cURL
curl --request POST \
  --url https://api.peelapi.com/v1/article-to-pdf \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "style": "minimal",
  "branding_logo": "<string>"
}
'
{
  "data": {
    "job_id": "job_123",
    "links": {
      "self": "/v1/jobs/job_123",
      "stream": "/v1/jobs/job_123/stream"
    }
  },
  "errors": "<unknown>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
url
string<uri>
required

Must be a valid URL

style
enum<string>
default:minimal
Available options:
classic,
minimal

Response

Job accepted

data
object
required
errors
unknown