Create an API key
Generate a scoped key from your SurveyMint dashboard. The complete secret is displayed once.
Use the SurveyMint public API to manage surveys, work with the response exchange, submit answers, and inspect account credits from your own application.
API-key authentication and the core account, credit, survey, exchange, question, analytics, and rewarded-response endpoints are available. OAuth, registration, billing, and CSV export endpoints remain on the published contract roadmap.
Quickstart
Generate a scoped key from your SurveyMint dashboard. The complete secret is displayed once.
Send the key in the X-API-Key header. Keys never belong in URLs or public frontend code.
Create surveys, fund exchange campaigns, collect responses, and read credit details as JSON.
Authentication
API keys are generated in dashboard settings and may be limited by scope and expiry. SurveyMint stores only a cryptographic hash and shows the complete key once.
curl --request GET \
'https://surveymint.io/api/v1/users/me' \
--header 'X-API-Key: sm_live_REPLACE_ME'{
"data": {
"id": "01K...",
"email": "researcher@example.com",
"email_verified": true,
"onboarded": true
}
}API surface
The authenticated user is always derived from the API key. Clients cannot select another account by sending a user ID.
profile:readGET /users/mePATCH /users/meGET /users/me/creditssurveys:writeGET /surveysPOST /surveysPUT /surveys/{survey_id}/questionsexchange:readGET /exchange/surveys?view=availableGET /exchange/surveys/{exchange_id}/questionsPOST /exchange/surveys/{exchange_id}/responsessurveys:readGET /surveys/{survey_id}/responsesGET /surveys/{survey_id}/analyticsGET /users/me/credit-transactionsChoose the minimum scopes your integration needs, copy the secret once, and make your first request from a private backend or script.