POST
/
api
/
v1
/
followups
const response = await api.followups.generate({
  surveyName: 'Customer Satisfaction',
  question: 'How likely are you to recommend our service?',
  answer: 'Very likely, the customer service is excellent',
  surveyIdentifiers: {
    surveyIdentifier: 'CSAT-2024-Q1',
    questionIdentifier: 'NPS-1'
  }
});
{
  "followupQuestion": "What specific aspects of our customer service impressed you the most?",
  "responseEvaluation": {
    "completeness": 75,
    "relevance": 90
  },
  "threadId": "7a54b8da-f65d-4946-9c9a-f202e0cc29c8",
  "responseIdentifier": "12345"
}

Authorizations

X-Aftercare-Key
string
header
required

API key for authentication

Headers

X-Request-Encoding
enum<string>
default:unicode

Specifies the encoding format of the request data. Use html if you are sending data that HTML entity encodes non-ASCII characters.

Available options:
unicode,
html
X-Response-Encoding
enum<string>
default:unicode

Specifies the preferred encoding format for the response data. Use html if you are expecting to receive data that HTML entity encodes non-ASCII characters.

Available options:
unicode,
html

Body

application/json

Response

200
application/json

Successfully generated followup question

The response is of type object.