List Surveys

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://reference.textline.com/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "Textline API MCP server": {
    "url": "https://reference.textline.com/mcp"
  }
}

Close
GET /api/surveys.json

Get a list of surveys, their type (NPS, CSAT, or Custom), and their UUID.

Responses

  • 200 application/json

    OK

GET /api/surveys.json
curl \
 --request GET 'https://application.textline.com/api/surveys.json'
Response examples (200)
[
  {
    "name": "Sample NPS",
    "type": "NpsSurvey",
    "uuid": "ffb9ba22-1302-4045-8865-449d3eed461c"
  },
  {
    "name": "Sample CSAT",
    "type": "CsatSurvey",
    "uuid": "2212a996-ec67-11ea-adc1-0242ac120002"
  },
  {
    "name": "Sample Custom",
    "type": "CustomSurvey",
    "uuid": "28196e88-ec67-11ea-adc1-0242ac120002"
  }
]