Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 13 Next »

The PureSpectrum API is a REST based API.


URL Structure

  • {Base URI}/{Module}/{API Version}/{Resource}
  • eg: https://staging.spectrumsurveys.com/buyers/v2/surveys  

Base URLs

Base URL - API Staging: https://staging.spectrumsurveys.com/buyers/v2

Base URL - UI Staging: https://stagingplatform.spectrumsurveys.com/

Base URL - API Production: https://api.spectrumsurveys.com/buyers/v2

Base URL - UI Production: https://platform.purespectrum.com

Modules

  • buyer

Resources

VerbResourceDescription
POST/surveysCreate survey
PATCH/surveys/:survey_idUpdate survey status

GET

/surveys/:survey_idGet survey information
PUT/surveys/:survey_idEdit survey
DEL/surveys/:survey_idDelete survey
POST/surveys/:survey_id/qualificationsCreate qualification
GET/surveys/:survey_id/qualifications/:qualification_idGet qualification information
PUT/surveys/:survey_id/qualifications/:qualification_idUpdate qualification information
DEL/surveys/:survey_id/qualifications/:qualification_idDelete qualification
POST/surveys/:survey_id/quotasCreate quota
PATCH/surveys/:survey_id/quotas/:quota_idUpdate quota
GET/surveys/:survey_id/quotas/:quota_idGet quotas by Quota ID
PUT/surveys/:survey_id/quotas/:quota_idAdd quota
DEL/surveys/:survey_id/quotas/:quota_idDelete quota
GET/surveys/:survey_id/statusGet survey status
GET/surveys/:survey_id/performanceGet survey performance
GET/surveys/:survey_id/quotas/performanceGet quota performance
POST/surveys/:survey_id/PSIDRefCreate PSID reference list
PATCH/surveys/:survey_id/PSIDRefUpdate PSID reference list
GET/surveys/:survey_id/PSIDRefGet PSID reference list
GET/surveygroups/:survey_group_idGet survey group
PUT/surveygroups/:survey_group_idEdit survey group
DEL/surveygroups/:survey_group_idDelete survey group
POST/surveygroups/:survey_group_idCreate survey group

Response Content Type

  • application/JSON

API access requires an authorization parameter in the request header.


Each request needs to include your API access token.  

Parameter

Type

Required

Description

access-token

String

Yes

Token used to identify the authenticity of the user.


Example:  headers: { 'access-token': '$accessToken' }

Please do not expose your access-token to anyone or in public as this could compromise the Integrity of your integration.

Access tokens are issued by your PureSpectrum representative. 

  • No labels