ConfettiDocs
Public APIRespondents

Record a respondent event

POST/v1/cfti/{surveyId}/respondent/{respondent}/event

Record that a respondent viewed or dismissed the survey. Requires the team's publishable key.

Authorization

ApiKeyAuth
x-cfti-pk<token>

Your team's publishable key, found on the Setup page in Confetti.

In: header

Path Parameters

surveyId*string
respondent*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/cfti/123/respondent/example/event" \  -H "Content-Type: application/json" \  -d '{    "type": "view"  }'
{}
{  "error": "string"}
{  "error": "string"}