Server-to-server APIStats
Survey engagement stats
GET
/v1/protected/surveys/{surveyId}/statsEngagement statistics (views, dismissals and responses — total and unique) for a survey owned by the team the secret key belongs to. Matches the survey Insights tab. No query parameters — covers the survey's full lifetime. Server-to-server only — authenticate with a secret key sent as Authorization: Bearer cfti_sk_....
Authorization
BearerAuth AuthorizationBearer <token>
Your team's secret key (cfti_sk_...), sent as a bearer token. Keep it server-side — never expose it in client code.
In: header
Path Parameters
surveyId*string
Response Body
application/json
curl -X GET "https://example.com/v1/protected/surveys/123/stats"{ "data": { "totalViews": 0, "uniqueViewers": 0, "totalDismissals": 0, "uniqueDismissers": 0, "totalResponses": 0, "uniqueResponders": 0 }}Was this page helpful?