Submit Surveys
Submits a user response to a survey, which is defined by the survey ID.
All the DevRev APIs require a token to authenticate the user. Provide Authorization: Bearer <TOKEN> as a header to every API request.
How do I find my token?
In: header
The unique ID associated with the dispatched survey.
idThe ordinals of the source channels on which the survey is sent.
The ID of the object this survey is on (e.g. ticket, conversation, etc).
idThe unique ID associated with the recipient of the survey.
idSurvey response submitted for the object.
Empty Object
The response score for the survey. Only applicable for CSAT and NPS.
int32The source channel from which survey response is submitted.
textThe stage ordinal of the survey response object.
int64The ID of the survey to submit the response to.
idResponse Body
curl -X POST "https://api.devrev.ai/surveys.submit" \  -H "Content-Type: application/json" \  -d '{    "object": "ACC-12345",    "survey": "string"  }'{}{
  "detail": "string",
  "message": "string",
  "type": "artifact_already_attached_to_a_parent",
  "existing_parent": "string",
  "is_same": true
}{
  "detail": "string",
  "message": "string",
  "type": "unauthenticated"
}{
  "detail": "string",
  "message": "string",
  "type": "forbidden"
}{
  "detail": "string",
  "message": "string",
  "type": "too_many_requests",
  "retry_after": 0
}{
  "detail": "string",
  "message": "string",
  "type": "internal_error",
  "reference_id": "string"
}{
  "detail": "string",
  "message": "string",
  "type": "service_unavailable"
}