REI Software

REI Software Help Library

Search for any help questions or topics.

Survey API

O
Orlando
Updated 1 year ago

Survey

 

GET/v1/surveys/

https://rest.reisoftware.com/v1/surveys/

Get Surveys.

Authorization:

Provide your location api key (Bearer Token).  

AUTHORIZATION Bearer Token

Token

<token>

 

 

Successful response

Example Request

curl --location --request GET 'https://rest.reisoftware.com/v1/surveys/' \

--header 'Authorization: Bearer <token>'

Example Response

200 OK

BodyHeader(1)

View More

{

  "surveys": [

    {

      "id": "8qS1AwSo1k0536WJu9kk",

      "name": "Survey 1"

    },

    {

      "id": "8qS1AwSo1k0536WJu9kk",

      "name": "Survey 1"

    }

  ]

GET/v1/surveys/submissions

https://rest.reisoftware.com/v1/surveys/submissions?page=1&limit=20&surveyId=jjusM6EOngDExnbo2DbU&q=john@deo.com&startAt=2020-11-14&endAt=2020-12-14

Get survey submissions.

Authorization:

Provide your location api key (Bearer Token).  

AUTHORIZATION Bearer Token

Token

<token>

PARAMS

page

1

Page No. By default it will be 1

limit

20

Limit Per Page records count. will allow maximum up to 100 and default will be 20

surveyId

jjusM6EOngDExnbo2DbU

Filter submission by survey id

q

john@deo.com

Filter by contactId, name, email or phone no.

startAt

2020-11-14

Get submission by starting of this date. By default it will be same date of last month.

endAt

2020-12-14

Get submission by ending of this date. By default it will be current date.

 

 

Successful response

Example Request

curl --location --request GET 'https://rest.reisoftware.com/v1/surveys/submissions?page=1&limit=20&surveyId=jjusM6EOngDExnbo2DbU&q=john@deo.com&startAt=2020-11-14&endAt=2020-12-14' \

--header 'Authorization: Bearer <token>'

Example Response

200 OK

BodyHeader(1)

View More

{

  "submissions": [

    {

      "id": "be759b9a-c3ec-4b29-ba07-fc3c89c77673",

      "contactId": "9NkT25Vor1v4aQatFsv2",

      "__submissions_other_field__": "john@deo.com",

      "__custom_field_id__": "20",

      "createdAt": "2020-11-01T18:02:21.000Z",

      "surveyId": "jjusM6EOngDExnbo2DbU",

      "pageDetails": {

        "url": "https://www.REI Software.com/",

😞 😐 😃