API Reference

TSAPI defines a set of GET requests to retrieve surveys, metadata, and interview data from any TSAPI-compliant system.

Base URL

All API requests are made to a base URL provided by the TSAPI host. For the demo server:

https://tsapi-demo.azurewebsites.net

Authentication

Authentication methods are defined by the host system. The surveys available to you will be determined by the internal details (e.g., authentication, permissions) of the survey system you're connecting to.

Response Format

All responses are returned in JSON format. The TSAPI Standard represents survey data and metadata in JSON, an open standard data interchange format.

Endpoints

HTTP Status Codes

TSAPI endpoints return standard HTTP status codes:

CodeStatusDescription
200OKRequest successful
400Bad RequestInvalid request parameters
401UnauthorizedAuthentication required
404Not FoundSurvey or resource not found
500Server ErrorInternal server error

Future Extensions

TSAPI's GET Methods allow users to request data from a host system. Some processes require the ability to write back to that system.

The TSAPI Initiative is currently consulting on extending TSAPI to incorporate POST, PUT, and DELETE methods. However they are defined, these methods would be an optional extension of TSAPI Core.

Resources