Skip to main content
GET
List postcards

Authorizations

Authorization
string
header
required

A Paperjoy API key. Keys starting with pj_test_ use test mode; keys starting with pj_live_ use live mode.

Query Parameters

page
integer
default:1

The page to return, starting at 1. A page past the end returns an empty data array.

Required range: x >= 1
per_page
integer
default:50

How many postcards to return per page.

Required range: 1 <= x <= 100
status
enum<string>

Return only postcards with this status, for example draft. Where the postcard is in production. Treat unknown values as "in progress".

Available options:
draft,
new,
queued,
rejected,
pair_claimed,
in_progress,
pair_completed,
sent

Response

One page of postcards in the API key's mode.

One page of postcards with Laravel's pagination links and metadata.

data
object[]
required

URLs of neighbouring pages. prev and next are null at the ends of the list.

meta
object
required

Where this page sits in the full list.