Authentication
Create a key in Settings → API keys and send it with every request:
Authorization: Bearer pq_your_key
Base URL: http://127.0.0.1:4176/api/v1, available while Pinquilt is running. Requests and responses are JSON. Each key may make 60 requests a minute.
Errors
| Status | Meaning |
|---|---|
| 400 | Missing or invalid input; the error field explains. |
| 401 | Missing or revoked key. |
| 402 | The free preview's monthly image allowance is used up. |
| 404 | Not found. |
| 409 | Not possible right now, for example Pinterest isn't connected. |
| 422 | A link or image could not be read. |
| 429 | Too many requests. |
GET /templates
Layouts and font pairings. Layouts: feature, framed, hook, cover, arch, modern, band, lettering, promo, organic, saleAd, editAd, badge. lettering needs no photo.
curl http://127.0.0.1:4176/api/v1/templates -H "Authorization: Bearer $PINQUILT_KEY"
GET /boards
Your Pinterest boards, fetched live.
curl http://127.0.0.1:4176/api/v1/boards -H "Authorization: Bearer $PINQUILT_KEY"
POST /generate-image
Renders a 1000 × 1500 pin. Body: template (or random), headline, optional subtitle, brand, color (#rrggbb), font (classic, editorial, modern) and image_url or image_base64. Returns id and an image_url.
curl -X POST http://127.0.0.1:4176/api/v1/generate-image -H "Authorization: Bearer $PINQUILT_KEY" -H "Content-Type: application/json" \
-d '{"template":"arch","headline":"Small details, softer spaces","subtitle":"A simple touch of warmth","image_url":"https://example.com/photo.jpg"}'
{"id":"5f0c…","image_url":"http://127.0.0.1:4176/p/Qm3…jpg","width":1000,"height":1500,"template":"arch"}
POST /schedule-pin
Queues a pin for your review. Body: board_id, title, link, optional description, alt_text, scheduled_at (ISO time, default in 5 minutes) and either id from generate-image, image_url or image_base64. The Pin stays in Review until you approve it in Pinquilt.
curl -X POST http://127.0.0.1:4176/api/v1/schedule-pin -H "Authorization: Bearer $PINQUILT_KEY" -H "Content-Type: application/json" \
-d '{"id":"5f0c…","board_id":"1234567890","title":"Small entryway ideas","link":"https://example.com/entryway","scheduled_at":"2026-12-01T15:00:00Z"}'
POST /generate-and-schedule
Generates a pin and queues it for your review.
GET /pins
Optional status: queue, review, scheduled, history, published, failed. Published pins include pin_id and pin_url.
DELETE /pins/{id}
Cancels a pin that hasn't posted yet.
POST /extract
Reads a public page's title, description, price and images. Body: url. Amazon pages are refused.
POST /library/items and /library/items/{id}/images
Add a product (url or asin, title) and its images (raw JPEG, PNG or WebP body, add ?origin=amazon for Amazon images). The Chrome extension uses these.