Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Premierletters Com Preview API
version: 1.0.0
contact:
url: https://www.premierletters.com/developers
description: 'Operations tagged Preview across 2 of this provider''s published API definitions: premierletters-com.json, premierletters-com-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://www.premierletters.com
security:
- bearerAuth: []
tags:
- name: Preview
paths:
/api/v1/preview:
post:
summary: Render a letter to SVG and get its price, without creating an order
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- message
properties:
message:
type: string
handwriting_style:
type: string
product_type:
type: string
paper_type:
type: string
responses:
'200':
description: SVG data URL, char count, page_count (sheets the message needs — multi-page letters are produced automatically), and price
tags:
- Preview
operationId: postApiV1Preview
x-operation-id-source: derived
get:
summary: Same as POST, via query params (message, handwriting_style, product_type…
security:
- bearerAuth: []
responses:
'200':
description: SVG data URL, char count, page_count, and price
tags:
- Preview
operationId: getApiV1Preview
x-operation-id-source: derived
servers:
- url: https://www.premierletters.com
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: pl_live_... | pl_test_...
description: 'API key from Settings → API keys, or from the agent connect flow. Sent as `Authorization: Bearer pl_live_...`. Live keys (pl_live_) create and charge real orders. Test keys (pl_test_) run the same validation, pricing and return-address checks but never create, charge or send anything: POST /api/v1/orders answers `{ test: true }`, order lists are empty, and balance top-ups, new-card charges and Growth record writes answer 400 test_mode. Webhook endpoints can be managed with either key.'
x-refined-from:
- premierletters-com.json
- premierletters-com-openapi.json