Skip to content
Help centerDevelopers
Status Contact support Open app
DevelopersOverview
Items
  • POSTCreate an item in a Postflow
  • POSTCreate items in a Postflow in one batch
  • GETList items
  • GETList the status history of an item
  • GETList the QR scans of an item
  • GETGet an item
  • PATCHRepair or edit an item
  • POSTCancel an item
  • GETThe fields of an item
  • GETThe path of an item through its journey
  • POSTRetry the journey step that stopped an item
  • POSTSkip the webhook step that stopped an item
  • GETProduction PDF of an item
  • GETPreview images of an item
  • POSTRepair several items with the same patch
  • GETItems that need you
  • POSTAnnounce a file of items for a Postflow
  • POSTStart a file of items for a Postflow
  • GETThe CSV template of a Postflow
  • POSTDelete failed items
Postflows
  • POSTCreate a Postflow
  • GETList Postflows
  • GETGet a Postflow
  • GETGet the journey of a Postflow
  • GETGet a published version of the journey
  • PATCHUpdate a Postflow
  • POSTApprove pending items of a Postflow
  • POSTArchive a Postflow
  • GETWhat another design would change
  • GETCards per step of the journey
  • PUTReplace the journey draft
  • DELETEDiscard the journey draft
  • POSTThe fields of the designs a journey sends
  • POSTPublish the journey draft
  • POSTReveal the signing secret of the webhook steps
  • POSTRotate the signing secret of the webhook steps
  • GETResults of a split test
  • POSTChoose the winner of a split test
  • DELETEReopen a split test
  • GETFigures of one step of the journey
  • GETThe cards of one step of the journey
  • POSTDrive a sample card through the journey
  • POSTValidate a journey
  • POSTRestore a version into the draft
  • POSTPause a Postflow
  • POSTResume a Postflow
  • GETPostflow statistics
Postbatches
  • POSTCreate a Postbatch
  • GETList Postbatches
  • GETList the items of a Postbatch
  • GETGet a Postbatch
  • PATCHRename a Postbatch or change its campaign
  • POSTApprove a Postbatch
  • POSTCancel a Postbatch
  • GETImport status
  • POSTUpload the CSV of a Postbatch
  • POSTCancel the import
  • GETDownload the error file of the import
  • PUTConfirm the mapping
  • POSTProcess the import
  • GETImport progress stream
  • GETImport rows that did not become items
  • POSTKeep a duplicate row
  • GETMapping targets and presets of the template
  • POSTProof PDF of a sample item
  • GETQuote of a Postbatch
  • POSTRequest approval
  • POSTSkip the items that need attention
Templates
  • POSTCreate a template folder
  • POSTCreate a template with an empty draft
  • GETList template folders
  • GETList templates
  • GETList template versions
  • GETGet a template
  • GETGet the draft document and its revision
  • GETGet a template version with its document and variable schema
  • PATCHRename or move a template folder
  • PATCHRename or move a template
  • DELETEArchive a template
  • PUTSave the draft document
  • POSTDuplicate a template
  • POSTMove a template to its product's newest version
  • POSTPublish the draft as a new version
  • PUTSave the preview values of the template variables
  • POSTOrder a physical sample of a version
  • DELETEDelete a template folder
Mapping presets
  • POSTCreate a mapping preset
  • GETList mapping presets of a template
  • PATCHUpdate a mapping preset
  • POSTSuggest a mapping for CSV headers
  • DELETEDelete a mapping preset
Media
  • GETFonts with where they are used
  • GETImages with their size and where they are used
  • GETStorage use against the plan, with a breakdown
  • POSTDelete unused images and fonts in bulk
Uploads
  • POSTCreate an upload session with a presigned PUT URL
  • GETList image assets
  • GETList organisation fonts
  • GETGet an image asset with signed URLs
  • GETGet an organisation font
  • GETGet an upload session
  • POSTComplete an upload session
  • DELETEDelete an image asset
  • DELETEDelete an organisation font
Renders
  • GETGet a render job with its signed PDF URL
  • GETGet a preview request with its signed image URLs
  • POSTRequest preview images of a version
  • POSTRequest a proof PDF of a version
Products
  • GETList the products of the organisation's plan
  • GETGet a product
Suppressions
  • GETList suppression entries
  • GETGet a suppression entry
  • POSTAdd suppression entries
  • PATCHChange a suppression entry
  • POSTImport suppression entries from a CSV upload
  • GETThe objection page of the organisation
  • DELETERemove a suppression entry
Webhooks
  • POSTCreate a webhook endpoint
  • GETList webhook endpoints
  • GETGet an event
  • GETGet a webhook endpoint
  • GETEvent feed
  • PATCHUpdate a webhook endpoint
  • GETDelivery log of an endpoint
  • POSTReplay a delivery
  • POSTReplay the events missed while disabled
  • POSTSend a test event
  • DELETEDelete a webhook endpoint
Integrations
  • GETList installations
  • GETGet an installation with its activity
  • GETIntegration apps
  • POSTDisable an installation
  • POSTEnable an installation
  • POSTRun the health check
  • DELETERemove an installation
Exports
  • GETList recent exports
  • GETGet an export with its download link
  • POSTRequest a data export
Analytics
  • GETConversion statistics
  • GETCost statistics
  • GETStatistics per design and format
  • GETStatistics of the experiences
  • GETItems of a period as CSV
  • GETCards per stage
  • GETQR scan statistics
  • GETCounters and daily series
Billing
  • GETList invoices and credit notes
  • GETAn invoice with its lines
  • GETA signed download link for the invoice PDF
  • GETLedger entries
  • GETLedger lines
  • GETPayments
  • POSTCancel a pending top-up request
  • GETYour prices
  • GETThe usage statement of a month
  • GETBilling summary
  • POSTRequest a top-up
  • POSTQuote a price
Advertising categories
  • GETList advertising categories
  • POSTAdd an advertising category
  • PATCHRename, reorder or archive an advertising category
  • DELETEDelete an advertising category
Contacts
  • POSTCreate or update contacts
  • GETList contacts
  • GETGet a contact with its cards
  • PATCHChange a contact
  • GETA contact's recognition link
  • POSTMake or renew a contact's recognition link
  • POSTRevoke a contact's recognition link
  • POSTImport contacts from a CSV upload
  • POSTMake recognition links for contacts
  • DELETERemove a contact
Conversions
  • GETList conversions
  • POSTRecord conversions
  • POSTImport conversions from a CSV upload
Developers
  • POSTSimulate a production run for test items
Experiences
  • POSTCreate an experience for a design
  • GETList experience media
  • GETList experiences
  • GETList the published versions
  • GETGet an experience media file
  • GETGet an experience
  • GETGet the tracked part of the design
  • GETGet a published version
  • GETThe library's experiences for a design
  • PATCHRename an experience media file
  • PUTKey the green screen of a video
  • POSTTry a green screen key on one frame
  • GETThe library's videos, sounds and 3D models
  • PATCHRename an experience or set its fallback address
  • PUTReplace the draft scene
  • POSTPause an experience
  • POSTPoint the design's QR code at the experience
  • POSTPublish the draft scene
  • POSTResume a paused experience
  • GETStatistics of an experience
  • POSTCheck how the design draft would track
  • DELETEDelete an experience media file
  • DELETERemove the key of a video
  • DELETEDelete an experience
House style
  • GETGet the house style
Ingestions
  • GETList the batches and files of items
  • GETList the rows of a batch or file
  • GETGet a batch or file of items
  • GETDownload the error file of a batch or file
Meta
  • GETOpenAPI document of this API
  • GETPing
Organisation
  • GETThe organisation dashboard
  • GETThe organisation plan and its usage
Organisations
  • GETGet the organisation
  • GETGet the billing profile
Pixel
  • POSTCreate a pixel rule
  • GETList pixel events
  • GETList the pixel rules
  • GETGet the pixel settings
  • PATCHChange the pixel settings
  • GETThe events to choose from
  • POSTCheck a page for the pixel
  • POSTMake or rotate the identity secret
  • POSTRotate a pixel key
  • GETThe pixel live view
  • GETReady code per shop platform
  • PATCHChange a pixel rule
  • DELETERemove a pixel rule
Platform assets
  • GETGet platform images by id
Runs
  • GETNext planned production runs
Status
  • GETPlatform status
Suppression reasons
  • GETList suppression reasons
  • POSTAdd a suppression reason
  • PATCHRename, reorder or archive a suppression reason
  • DELETEDelete a suppression reason
Template library
  • GETList the template library of a product version
POST/v1/contacts/{id}/link

Make or renew a contact's recognition link

Makes the link, or renews it: a valid link keeps its address and gets the new term; a revoked or expired one gets a new address. Refused for a contact that objected.

Scope contacts.manage

Path parameters

idstringrequired

Body

destinationstring or null
daysintegermin 1max 365default 90

Returns

11 fields of the 200 answer
contactIdstringrequired
urlstringrequired
tokenstringrequired
destinationstring or nullrequired
expiresAtdate-timerequired
revokedAtdate-time or nullrequired
activebooleanrequired
clicksintegerrequired
botClicksintegerrequired
lastClickAtdate-time or nullrequired
createdAtdate-timerequired

Responses

200Success
401Authentication required or API key invalid
403Permission or scope missing, organisation suspended
404Not found
422Validation failed
429Rate limited for this API key and class; wait Retry-After seconds
otherError (RFC 9457 problem details)
Request
curl -X POST https://api.postbuddy.nl/v1/contacts/obj_01J9Y2K8QF4T6W8Z0B2D4F6H8K/link \
  -H "Authorization: Bearer $POSTBUDDY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "destination": "https://example.com/r/Fq3ZtR8w",
    "days": 1
  }'
import { PostBuddyClient } from '@postbuddy/sdk';

const client = new PostBuddyClient({ apiKey: process.env.POSTBUDDY_API_KEY! });

const result = await client.contacts.makeLink('obj_01J9Y2K8QF4T6W8Z0B2D4F6H8K', {
  body: {
    destination: 'https://example.com/r/Fq3ZtR8w',
    days: 1,
  },
});
import os
from postbuddy import Client

client = Client(os.environ["POSTBUDDY_API_KEY"])

result = client.contacts.make_link("obj_01J9Y2K8QF4T6W8Z0B2D4F6H8K", {
    "destination": "https://example.com/r/Fq3ZtR8w",
    "days": 1,
})
Response
{
  "contactId": "ctc_01J9Y2K8QF4T6W8Z0B2D4F6H8K",
  "url": "https://example.com/r/Fq3ZtR8w",
  "token": "Example",
  "destination": "Example",
  "expiresAt": "2026-10-16T09:14:02.000Z",
  "revokedAt": "2026-10-16T09:14:02.000Z",
  "active": true,
  "clicks": 1,
  "botClicks": 1,
  "lastClickAt": "2026-10-16T09:14:02.000Z",
  "createdAt": "2026-10-16T09:14:02.000Z"
}
{
  "type": "https://docs.postbuddy.nl/errors/not_found",
  "title": "Not found",
  "status": 404,
  "code": "not_found",
  "detail": "Not found",
  "requestId": "req_01J9Y2K8QF4T6W8Z0B2D4F6H8K"
}
{
  "type": "https://docs.postbuddy.nl/errors/validation_failed",
  "title": "Validation failed",
  "status": 422,
  "code": "validation_failed",
  "detail": "Validation failed",
  "requestId": "req_01J9Y2K8QF4T6W8Z0B2D4F6H8K",
  "errors": [
    {
      "field": "recipient.postalCode",
      "code": "invalid_string",
      "message": "Invalid postal code"
    }
  ]
}
PostBuddy · API version 1.0.0
Help centerDevelopersChangelogOpenAPIStatus page
Esc
↑↓Move↵OpenStill stuck? Ask support