# Encrypted Invite Link

In case you don't want to expose the target URL or other parameters to the respondent, you can use an encrypted invite link. Invite links can be generated with the Verify API.

# API Endpoints

The API endpoints are segmented by region as follows:

# Request

The request method is POST /api/v1/redirect/generate-invite-link.

# Authorization Header

  • X-Api-Key: Account API-Key

The API Key is available in the Developers Portal.

# Request Body

{
  "projectSlug": "string",
  "queryString": "string"
}

Where:

  • projectSlug: The unique identifier of the project. It can be found in the project settings in the Project Designer.
  • queryString: The query string that you would like to encode into the invite link.

# Response

The response body is:

{
  "inviteLink": "string",
  "errorMessage": "string"
}

Where:

  • inviteLink: The Verify Service link contains the encrypted parameters.
  • errorMessage: The error message in case of an error.

# Parameter Precedence


# Usage Notes


# Example

import requests
import json

url = "https://verify-api-eu.realeyesit.com/api/v1/redirect/generate-invite-link"
api_key = "YOUR API KEY"

headers = {
    "X-Api-Key": api_key,
    "Content-Type": "application/json",
}

request = {
    "projectSlug": "my-project-slug",
    "queryString": "?userId=user123&targetUrl=https://example.com/survey&age=25&gender=male",
}

response = requests.post(url, headers=headers, data=json.dumps(request))

if response.status_code == 200:
    invite_link = response.json()["inviteLink"]
    print(f"Encrypted invite link: {invite_link}")
else:
    print(response.status_code, response.text)

# Next Steps