Sharable Links
Generate shareable survey links
Generates a dedicated, shareable link for a survey so you can distribute it independently. The response is returned as JSON and contains the generated link identifier and URL. Optional built-in fields:
expiresInMinutes: How long the link should stay active. If omitted, the link has no expiration.language: The language to open the survey in. If omitted, the survey is shown in its default language.isReusable: Indicates whether the link can be used multiple times. If omitted, the link is single-use.title: A user-friendly name for the link, used for display in the UI.customFieldscan contain any fields you want to attach to the generated link (e.g., conversation id, channel, campaign). All custom field values must be strings and are limited to 50 characters.
API key (UUID)
Survey identifier
Optional request correlation ID
How long the link should stay active. If omitted, the link does not expire.
Language to open the survey in. If omitted, the survey default language is used.
Indicates whether the generated link can be used multiple times. If omitted, the link is single-use.
User-friendly name for the generated link, used for display in the UI.
Shareable link generated successfully.
Validation error
Invalid or missing API key
POST /v1/links/generate/{surveyId} HTTP/1.1
Host: api.pristo.io
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 193
{
"expiresInMinutes": 30,
"isReusable": true,
"title": "Visit Feedback Link",
"customFields": {
"conversationId": "chat_8f3a2c",
"channel": "chatbot",
"botProvider": "intercom",
"campaign": "csat_after_chat"
}
}{
"linkId": "28988a0b-ec91-462c-2cbd-63c2439d29e6",
"url": "https://go.pristo.io/l/C4uYKJXsLEacaWPSQ50p5g"
}Last updated