ENDPOINT | POST
Upload a PDF
Adds a PDF to Docs. It's cleaned like an upload in the app (scripts and embedded files removed) and its own form boxes become fields.
POSThttps://api.cloverr.co.uk/v1/pdfs
Scope: writeSuccess: 201120 requests a minute per token
Body (JSON)
namestringrequiredIts name in Docs.contentBase64stringrequiredThe PDF, base64. Up to 10 MB.folderIduuidA folder in Docs.Example request & response
Send your token in the Authorization header. A successful response wraps the result in data.
curl -X POST https://api.cloverr.co.uk/v1/pdfs \
-H "Authorization: Bearer $CLOVERR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"Service agreement","contentBase64":"JVBERi0xLjcK…"}'201 · JSON
{
"data": {
"id": "3f6c1d2e-8a4b-4c1d-9e2f-5a6b7c8d9e0f",
"title": "Agreement: Northwind",
"pageCount": 3,
"link": "https://cloverr.co.uk/docs/3f6c…",
"roles": [],
"fields": [],
"signRequests": []
}
}Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid | No name, no content, or it isn't a PDF. |
| 402 | limit | The organisation's storage is full. |
| 403 | forbidden | Your role can't create docs. |
| 413 | too_large | Over 10 MB. |
| 401 | unauthorized | No token, or it's invalid, expired, revoked, or its owner left the organisation. |
| 403 | ip_not_allowed | The token only works from listed addresses, and this request came from another. |
| 403 | two_factor_required | The organisation requires login verification and the token's owner hasn't set it up. |
| 429 | rate_limited | More than 120 requests in a minute with this token. Wait for Retry-After. |
| 500 | server_error | Something went wrong on our side. Safe to retry. |
Errors look like { "error": { "code", "message" } }. All error codes.