Skip to main content
GET
Read what a person holds in this set

Authorizations

X-Pincast-Key
string
header
required

Your app's key, sent on every call from your server only. It reads pck_, your app id, an underscore, then a secret of 20 or more letters, digits, underscores or hyphens. Never put it in a web page, an app bundle or a query string. Placecard stores only its sha256.

Your app can hold two live keys at once, so a key is replaced with no outage: the new key works at once, and the old one keeps working until its expiry (seven days after the new key is made, unless you ask for less). A revoked key is refused from the next call.

X-Placecard-Key, the older name of this header, is taken too, at either address. Send one of the two; if both come and they differ, the call answers 400 key_conflict.

Path Parameters

set
string
required

Your set's id, chosen by your app. Lowercase letters, digits, underscores and hyphens, starting with a letter or digit, 64 characters at most.

Pattern: ^[a-z0-9][a-z0-9_-]{0,63}$

Query Parameters

actor
string[]
required

The person's id as your app sends it in collects. Repeat the parameter for up to three ids of the same person.

Required array length: 1 - 3 elements
Required string length: 1 - 255

Response

The cards this person holds. held counts them by type. A parent card held only through one of its children has count 0 and names that child in via.

app
string
required
set
string
required

Lowercase letters, digits, underscores and hyphens, starting with a letter or digit, 64 characters at most.

Pattern: ^[a-z0-9][a-z0-9_-]{0,63}$
held
object
required

A count for each card type.

cards
object[]
required