Get Started with the Get Smart API
With the getsmart API, you can upload and send new invitations on your project.
More functionalities will be added in the future to allow you to interact fully with your data.
Before You Start
All getsmart API requests require the following details:
- Username
The username or email you use to login to your getsmart account. - Project ID
The unique ID number of your project. - Project API Key
The 32 characters long hexadecimal number of your project.
You will find this information on your getsmart account but remember to select the right project first from the top left dropdown menu.
Authentication
The getsmart API uses the HTTP Basic Authentication. It uses your Username as the username and your Project API Key as the password.
HTTP Methods
The getsmart API supports 2 HTTP methods for interacting with your project:
Get Smart API Reference
All getsmart API requests must have a URL that follows this format:
https://survey.getsmartglobal.com/api/v1/project/{ProjectID}/{Action}
Each Action is associated with a different HTTP method.
Here is an overview of all available resources of the getsmart API with a link to know more about the technical details.
HTTP Method | Action | Function |
---|---|---|
GET | Test the authentication | |
POST | upload-invitations | Upload new invitation records on your project and automatically send them if wanted |
Upload & Send Invitations
Upload new invitation records on your project and automatically send them if wanted.
Request
HTTP Method | POST | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Action | upload-invitations | ||||||||||||||||||||||||
Query String Parameters |
|
||||||||||||||||||||||||
Body JSON Parameters |
Invitation Object Properties
Answer Object Properties
* Some of the properties requirements are specific to your project. Examples
2 Invitations [No Language, No Answers]
2 Invitations [Language Optional, No Answers]
2 Invitations [Language Required, No Answers]
2 Invitations [Language Required, Question #12345 Optional]
2 Invitations [Language Required, Question #12345 Required]
|
Response
HTTP Status Code | Type | Description | Body JSON Parameters | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
200 | Success | Partial or Complete Upload Successful |
Upload Object Properties
Upload.Counts Object Properties
ErrorsOfRecord Object Properties
Send.Counts Object Properties
Examples
Complete Upload of 3 Invitations
Partial Upload of 3 Invitations
Complete Upload of 3 Invitations [Send Requested] & Complete Send
Complete Upload of 3 Invitations [Send Requested] & Partial Send
Partial Upload of 3 Invitations [Send Requested] & Complete Send
Partial Upload of 3 Invitations [Send Requested] & Partial Send
| ||||||||||||||||||||||||||||||||||||
400 | Error | Bad Request Syntax |
| ||||||||||||||||||||||||||||||||||||
401 | Error | Authentication Failure |
| ||||||||||||||||||||||||||||||||||||
403 | Error | Forbidden Action |
| ||||||||||||||||||||||||||||||||||||
405 | Error | HTTP Method Issue |
| ||||||||||||||||||||||||||||||||||||
415 | Error | 'Content-Type' Header Issue |
| ||||||||||||||||||||||||||||||||||||
422 | Error | Body Issue |
Upload Object Properties
Upload.Counts Object Properties
ErrorsOfRecord Object Properties
Examples
Body from Request was an empty JSON []
None of 3 Invitations Uploaded
|
Test Authentication
Test if the authentication is successful by calling the API Root of your project and leaving the Action empty as explained below.
Request
HTTP Method | GET |
---|---|
Action |
Response
HTTP Status Code | Type | Description | Body JSON Parameters | |||
---|---|---|---|---|---|---|
200 | Success | Authentication Successful |
|
|||
400 | Error | Bad Request Syntax |
|
|||
401 | Error | Authentication Failure |
|
|||
405 | Error | HTTP Method Issue |
|
Upload new invitation records on your project and automatically send them if wanted.
Request
HTTP Method | POST | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Action | upload-invitations | ||||||||||||||||||||||||
Query String Parameters |
|
||||||||||||||||||||||||
Body JSON Parameters |
Invitation Object Properties
Answer Object Properties
* Some of the properties requirements are specific to your project.
Examples2 Invitations [No Language, No Answers]
2 Invitations [Language Optional, No Answers]
2 Invitations [Language Required, No Answers]
2 Invitations [Language Required, Question #12345 Optional]
2 Invitations [Language Required, Question #12345 Required]
|
Response
HTTP Status Code | Type | Description | Body JSON Parameters | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
200 | Success | Partial or Complete Upload Successful |
Upload Object Properties
Upload.Counts Object Properties
ErrorsOfRecord Object Properties
Send.Counts Object Properties
ExamplesComplete Upload of 3 Invitations
Partial Upload of 3 Invitations
Complete Upload of 3 Invitations [Send Requested] & Complete Send
Complete Upload of 3 Invitations [Send Requested] & Partial Send
Partial Upload of 3 Invitations [Send Requested] & Complete Send
Partial Upload of 3 Invitations [Send Requested] & Partial Send
|
||||||||||||||||||||||||||||||||||||
400 | Error | Bad Request Syntax |
|
||||||||||||||||||||||||||||||||||||
401 | Error | Authentication Failure |
|
||||||||||||||||||||||||||||||||||||
403 | Error | Forbidden Action |
|
||||||||||||||||||||||||||||||||||||
405 | Error | HTTP Method Issue |
|
||||||||||||||||||||||||||||||||||||
415 | Error | ‘Content-Type’ Header Issue |
|
||||||||||||||||||||||||||||||||||||
422 | Error | Body Issue |
Upload Object Properties
Upload.Counts Object Properties
ErrorsOfRecord Object Properties
ExamplesBody from Request was an empty JSON []
None of 3 Invitations Uploaded
|