curl --request POST \
--url https://api.pincast.fm/v1/people \
--header 'Content-Type: application/json' \
--header 'X-Pincast-Key: <api-key>' \
--data '
{
"token": "eyJhbGciOiJFUzM4NCIsInR5cCI6IkpXVCIsImtpZCI6InN0b3J5LWtleSJ9.eyJpc3MiOiJodHRwczovL2lkLnBpbmNhc3QuZm0vb2lkYyIsInN1YiI6InE4bjJ2NXg3YzF6NCIsImF1ZCI6ImRlbW9hcHBzaWduaW4wY2xpZW50MSIsImV4cCI6NDA3MDkwODgwMCwiaWF0IjoxNzk0NjY5MDAwfQ.868gLKGOj3abQ4a2LfkoSd5LOEBwhTVrXZxHz9UKfaJPeidE3zIvbZIqNHRv4zytmC3xqxpxswUC1KP0IdeFDpB32uTi8JQXUHsqgtuK1OVU3blC0Ki8xCCkAqpsUHty"
}
'const options = {
method: 'POST',
headers: {'X-Pincast-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
token: 'eyJhbGciOiJFUzM4NCIsInR5cCI6IkpXVCIsImtpZCI6InN0b3J5LWtleSJ9.eyJpc3MiOiJodHRwczovL2lkLnBpbmNhc3QuZm0vb2lkYyIsInN1YiI6InE4bjJ2NXg3YzF6NCIsImF1ZCI6ImRlbW9hcHBzaWduaW4wY2xpZW50MSIsImV4cCI6NDA3MDkwODgwMCwiaWF0IjoxNzk0NjY5MDAwfQ.868gLKGOj3abQ4a2LfkoSd5LOEBwhTVrXZxHz9UKfaJPeidE3zIvbZIqNHRv4zytmC3xqxpxswUC1KP0IdeFDpB32uTi8JQXUHsqgtuK1OVU3blC0Ki8xCCkAqpsUHty'
})
};
fetch('https://api.pincast.fm/v1/people', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pincast.fm/v1/people"
payload = { "token": "eyJhbGciOiJFUzM4NCIsInR5cCI6IkpXVCIsImtpZCI6InN0b3J5LWtleSJ9.eyJpc3MiOiJodHRwczovL2lkLnBpbmNhc3QuZm0vb2lkYyIsInN1YiI6InE4bjJ2NXg3YzF6NCIsImF1ZCI6ImRlbW9hcHBzaWduaW4wY2xpZW50MSIsImV4cCI6NDA3MDkwODgwMCwiaWF0IjoxNzk0NjY5MDAwfQ.868gLKGOj3abQ4a2LfkoSd5LOEBwhTVrXZxHz9UKfaJPeidE3zIvbZIqNHRv4zytmC3xqxpxswUC1KP0IdeFDpB32uTi8JQXUHsqgtuK1OVU3blC0Ki8xCCkAqpsUHty" }
headers = {
"X-Pincast-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"app": "demo",
"person": "q8n2v5x7c1z4",
"linkedAt": "2026-11-14T15:10:01.000Z"
}{
"url": "<string>",
"statusCode": 499,
"statusMessage": "<string>",
"message": "<string>",
"stack": "<string>",
"data": {
"code": "key_missing",
"fix": "<string>",
"field": "<string>"
}
}{
"url": "<string>",
"statusCode": 499,
"statusMessage": "<string>",
"message": "<string>",
"stack": "<string>",
"data": {
"code": "key_missing",
"fix": "<string>",
"field": "<string>"
}
}{
"url": "<string>",
"statusCode": 499,
"statusMessage": "<string>",
"message": "<string>",
"stack": "<string>",
"data": {
"code": "key_missing",
"fix": "<string>",
"field": "<string>"
}
}{
"url": "<string>",
"statusCode": 499,
"statusMessage": "<string>",
"message": "<string>",
"stack": "<string>",
"data": {
"code": "key_missing",
"fix": "<string>",
"field": "<string>"
}
}{
"url": "<string>",
"statusCode": 499,
"statusMessage": "<string>",
"message": "<string>",
"stack": "<string>",
"data": {
"code": "key_missing",
"fix": "<string>",
"field": "<string>"
}
}{
"url": "<string>",
"statusCode": 499,
"statusMessage": "<string>",
"message": "<string>",
"stack": "<string>",
"data": {
"code": "key_missing",
"fix": "<string>",
"field": "<string>"
}
}Link a person who signed in to your app
Send the person’s ID token, exactly as id.pincast.fm gave it to your app when they signed in. Placecard checks its signature against id.pincast.fm’s public keys, its issuer, its times, and that it was made for one of your app’s sign-in clients (Pincast adds your id.pincast.fm application id when it gives you your key). Then it links the person (the token’s subject) to your app, and your key can record collects and claims for them.
Safe to send again: a token for a person already linked answers the same link. Send it at each sign-in if that is simpler for your app.
curl --request POST \
--url https://api.pincast.fm/v1/people \
--header 'Content-Type: application/json' \
--header 'X-Pincast-Key: <api-key>' \
--data '
{
"token": "eyJhbGciOiJFUzM4NCIsInR5cCI6IkpXVCIsImtpZCI6InN0b3J5LWtleSJ9.eyJpc3MiOiJodHRwczovL2lkLnBpbmNhc3QuZm0vb2lkYyIsInN1YiI6InE4bjJ2NXg3YzF6NCIsImF1ZCI6ImRlbW9hcHBzaWduaW4wY2xpZW50MSIsImV4cCI6NDA3MDkwODgwMCwiaWF0IjoxNzk0NjY5MDAwfQ.868gLKGOj3abQ4a2LfkoSd5LOEBwhTVrXZxHz9UKfaJPeidE3zIvbZIqNHRv4zytmC3xqxpxswUC1KP0IdeFDpB32uTi8JQXUHsqgtuK1OVU3blC0Ki8xCCkAqpsUHty"
}
'const options = {
method: 'POST',
headers: {'X-Pincast-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
token: 'eyJhbGciOiJFUzM4NCIsInR5cCI6IkpXVCIsImtpZCI6InN0b3J5LWtleSJ9.eyJpc3MiOiJodHRwczovL2lkLnBpbmNhc3QuZm0vb2lkYyIsInN1YiI6InE4bjJ2NXg3YzF6NCIsImF1ZCI6ImRlbW9hcHBzaWduaW4wY2xpZW50MSIsImV4cCI6NDA3MDkwODgwMCwiaWF0IjoxNzk0NjY5MDAwfQ.868gLKGOj3abQ4a2LfkoSd5LOEBwhTVrXZxHz9UKfaJPeidE3zIvbZIqNHRv4zytmC3xqxpxswUC1KP0IdeFDpB32uTi8JQXUHsqgtuK1OVU3blC0Ki8xCCkAqpsUHty'
})
};
fetch('https://api.pincast.fm/v1/people', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pincast.fm/v1/people"
payload = { "token": "eyJhbGciOiJFUzM4NCIsInR5cCI6IkpXVCIsImtpZCI6InN0b3J5LWtleSJ9.eyJpc3MiOiJodHRwczovL2lkLnBpbmNhc3QuZm0vb2lkYyIsInN1YiI6InE4bjJ2NXg3YzF6NCIsImF1ZCI6ImRlbW9hcHBzaWduaW4wY2xpZW50MSIsImV4cCI6NDA3MDkwODgwMCwiaWF0IjoxNzk0NjY5MDAwfQ.868gLKGOj3abQ4a2LfkoSd5LOEBwhTVrXZxHz9UKfaJPeidE3zIvbZIqNHRv4zytmC3xqxpxswUC1KP0IdeFDpB32uTi8JQXUHsqgtuK1OVU3blC0Ki8xCCkAqpsUHty" }
headers = {
"X-Pincast-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"app": "demo",
"person": "q8n2v5x7c1z4",
"linkedAt": "2026-11-14T15:10:01.000Z"
}{
"url": "<string>",
"statusCode": 499,
"statusMessage": "<string>",
"message": "<string>",
"stack": "<string>",
"data": {
"code": "key_missing",
"fix": "<string>",
"field": "<string>"
}
}{
"url": "<string>",
"statusCode": 499,
"statusMessage": "<string>",
"message": "<string>",
"stack": "<string>",
"data": {
"code": "key_missing",
"fix": "<string>",
"field": "<string>"
}
}{
"url": "<string>",
"statusCode": 499,
"statusMessage": "<string>",
"message": "<string>",
"stack": "<string>",
"data": {
"code": "key_missing",
"fix": "<string>",
"field": "<string>"
}
}{
"url": "<string>",
"statusCode": 499,
"statusMessage": "<string>",
"message": "<string>",
"stack": "<string>",
"data": {
"code": "key_missing",
"fix": "<string>",
"field": "<string>"
}
}{
"url": "<string>",
"statusCode": 499,
"statusMessage": "<string>",
"message": "<string>",
"stack": "<string>",
"data": {
"code": "key_missing",
"fix": "<string>",
"field": "<string>"
}
}{
"url": "<string>",
"statusCode": 499,
"statusMessage": "<string>",
"message": "<string>",
"stack": "<string>",
"data": {
"code": "key_missing",
"fix": "<string>",
"field": "<string>"
}
}Authorizations
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
Response
The person is linked to your app. linkedAt is when the link was first made, so a resend answers the same.