Skip to main content
POST
Link a person who signed in to your app

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.

Body

application/json
token
string
required

The person's ID token from id.pincast.fm, a JWT, exactly as your app received it at sign-in.

Required string length: 1 - 8192

Response

The person is linked to your app. linkedAt is when the link was first made, so a resend answers the same.

app
string
required
person
string
required

The person's Logto id, the token's subject: send it as actor.id and as to.

Required string length: 1 - 255
linkedAt
string<date-time>
required

An ISO 8601 time.