Pobierz ankietę
Pobierz szczegóły konkretnej ankiety.
GET
https://api.sentisnap.com/v1/surveys/{survey_id}
Uwierzytelnianie
Wymaga klucza API z uprawnieniem surveys:read.
Parametry ścieżki
| Parametr | Typ | Wymagany | Opis |
|---|---|---|---|
surveyId | string | Tak | Survey UUID |
Odpowiedź
{
"data": {
"id": "019abc12-3456-7890-abcd-ef1234567890",
"name": "Customer Satisfaction Survey",
"slug": "customer-satisfaction-survey-abc123",
"status": "published",
"response_count": 1250,
"settings": {
"language": "en",
"allow_multiple_responses": false,
"show_progress_bar": true
},
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-20T14:22:00Z",
"published_at": "2024-01-16T09:00:00Z"
}
}Przykład
curl -X GET "https://public-api.sentisnap.com/v1/surveys/019abc12-3456-7890-abcd-ef1234567890"
-H "Authorization: Bearer sk_live_..."Błędy
| Kod | Opis |
|---|---|
401 | Nieprawidłowy klucz API |
403 | Niewystarczające uprawnienia |
404 | Ankieta nie została znaleziona |