This function is designed to allow upload of new Self-select reasons that can be used in your survey directly to CustomerGauge. Each self-select reason has its unique reason code.

Good to know

API response format:

Our APIs return data in either JSON or XML format (depending on request by .json or .xml).

About this API

Resource Information

Response formats
JSON (default), XML
HTTP Method
Response family
Authorization: api_key XXXXX

Resource URL

Europe Production Server:

US Production Server:

Australia Production Server:

How to call


Post data as key value based on upload mapping.



Refers to the position/order that particular self-select reason should appear at with respect to all the self-select options.

Example value: 0
Controls if this particular reason should show for promoter or detractor. Options that can be used are pos for promoter and neg for detractor and passive.
Possible value: pos or neg

This is the category under which this level falls under. To place a Level 2 under a particular Level 1 issue you will need to use the name category_main naming.

Example value: Customer Support
Whether this issue is a level 1 or 2. The options that can be used are 1 for Level 1 Self-Select Issue and 2 for Level 2 Self-Select Issue. To place a Level 2 under a particular Level 1 issue you will need to use the name category main naming.

Possible values: 1 or 2

This is the label name shown on the survey for the self-select reasons.
Example value: Customer Support

Example Request

To call this API through cURL:

curl -H "Authorization: api_key XXXXX" -X POST -d position=0 -d good_bad=pos -d category_main=”Customer Support” -d level=1 -d label=”Customer Support”

Example Result

Data contains reason code. Message reported on successful operation:

  "Data": {
    "reason_code": 12010

Message reported on failed operation:

  "Error": {
    "Message": "Record not inserted. Something went wrong. Please check your data.",
    "Code": 400604

Not the API you're looking for?

Related APIs:

Or view: