Making your first API call

Sending your API Secret Key

The first step is to get your API Secret Key. To do so, head to the My Account page. You can access it using the top-left menu in the dashboard.
Your API Secret Key should be passed as an HTTP header named Authorization and be prefixed with Bearer.
Authorization: Bearer YOUR_API_SECRET_KEY

Making a test API call

To test that you can successfully connect to the API, try making the following request:
GET https://api.pdfmonkey.io/api/v1/current_user
Authorization: Bearer YOUR_API_SECRET_KEY
Using the curl command the request would look like this:
curl "https://api.pdfmonkey.io/api/v1/current_user" \
-H "Authorization: Bearer YOUR_API_SECRET_KEY"
You should obtain a response similar to this one:
{
"current_user": {
"id": "12345678-90ab-cdef-1234-567890abcdef",
"auth_token": "1234567890ABCDEF1234",
"available_documents": 300,
"created_at": "2022-01-01T12:34:56.123+00:00",
"current_plan": "free",
"current_plan_interval": "month",
"desired_name": "Jane Doe",
"email": "[email protected]",
"lang": "en",
"paying_customer": false,
"trial_ends_on": "2022-01-15",
"updated_at": "2022-01-01T12:34:56.123+00:00",
"block_resources": true,
"share_links": false
}
}

Next step

Once you made your first API call, you're ready to take it to the next level and try generating your first Document!
Copy link
On this page
Sending your API Secret Key
Making a test API call
Next step