Skip to main content
GET
/
surveys
/
{surveyId}
/
contact-links
/
contacts
/
{contactId}
/
Get personalized survey link for a contact
curl --request GET \
  --url https://app.formbricks.com/api/v2/management/surveys/{surveyId}/contact-links/contacts/{contactId}/ \
  --header 'x-api-key: <api-key>'
{
  "data": {
    "surveyUrl": "<string>",
    "expiresAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

x-api-key
string
header
required

Use your Formbricks x-api-key to authenticate.

Path Parameters

surveyId
string
required

The ID of the survey

contactId
string
required

The ID of the contact

Query Parameters

expirationDays
number

Number of days until the generated JWT expires. If not provided, there is no expiration.

Required range: x >= 1

Response

200 - application/json

Personalized survey link retrieved successfully.

data
object
I