REST API
SurveyLab allows you to access your data with the REST API interface. Access to the API is available via a secure connection (SSL / HTTPS) and requires a token. Data are available in JSON format. User authentication is done with JWT.
NOTE. In order to use the API, you will need a clientId and a clientSecret.
To get clientId and clientSecret :
- Go to account Settings / Integrations.
- Copy clientID and clientSecret from REST API CREDENTIALS.
List of available requests
For more information, check our new API developer documentation.
Status codes
The statuses are returned using the standard HTTP error code syntax.
| Code | Description |
|---|---|
| 200 | OK. The request was successful. |
| 400 | Bad request. The request was incorrect. Invalid API token. |
| 401 | Unauthorized. You attempt to authenticate with an invalid username or API key. |
| 404 | Not Found. The resource doesn’t exist. |
| 429 | Too many requests. |
| 500 | Internal Server Error. Please try again or contact our support. |
Functionality available for the Enterprise plan.