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 6 Next »


The PureSpectrum API is a REST based API.  The URL structure is as follows:


URL Structure

{Base URI}/{Module}/{API Version}/{Resource}

eg: 

http://staging.spectrumsurveys.com/suppliers/v2/surveys

Base URLs

Modules

  • Supplier

Resources

surveys {get}
surveys/:survey_id {get}
surveys/register {post}
surveys/qualifications-quotas {get}
surveys/:survey_id/PSIDRef {get}
surveys/:survey_id/PSIDEligible {get}

Response Content Type

  • application/JSON



To access the API, you will need to include 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. 

Postman example:

The Supplier API uses standard HTTP status codes to indicate success or failure of an API Request.  In general, API status would indicate success or failure status.

Parameter

Value
status"Success" or "Failure"
msgA detailed error message describing what went wrong

Status Code Summary

200Everything Worked As Expected
400Bad Request
403Invalid Access Token
404Resources Not Found
5xxSomething Went Wrong On PureSpectrum

  • No labels