Follow

REST API support

We are happy to assist you with any inquiries concerning our REST API.

We need the following information to help you in the best possible way:

  • Request Header
  • Request Body
  • Response Header
  • Response Body

It's easiest to get these values with "cURL". Use one of the following examples and adjust them to your needs. Then send us the results including your call. You can simply use our request form for this.

Alternatively, you can also send us the results in a different format.

Please note, that we need all information mentioned above in any case for debugging.

Examples

GET - REST

curl https://rest.cleverreach.com/v2/groups.json -i \
- H "Content-Type: application/json" \
- H 'Authorization: Bearer YOURACCESSTOKEN'


POST - REST

curl https://rest.cleverreach.com/v2/groups.json -i \
- X POST \
- H "Content-Type: application/json" \
- H 'Authorization: Bearer YOURACCESSTOKEN' \
- d '{"name":"rest test group"}'


PUT - REST

curl https://rest.cleverreach.com/v2/groups.json/233127 -i \
- X PUT \
- H "Content-Type: application/json" \
- H 'Authorization: Bearer YOURACCESSTOKEN' \
- d '{"name":"rest test group renamed"}'


DELETE - REST

curl https://rest.cleverreach.com/v2/groups.json/233127 -i \
- X DELETE \
- H "Content-Type: application/json" \
- H 'Authorization: Bearer YOURACCESSTOKEN'


Example output

HTTP/1.1 200 OK
Cache-Control: no-cache, must-revalidate
Content-Language: en
Content-Type: application/json; charset=utf-8
Date: Thu, 30 Nov 2017 10:38:00 GMT
Expires: 0
Pragma: no-cache
Server: nginx/1.1.19
X-CR-I: api-eu1-i-00f2008cc0d08cf1b D=471506 t=1512038280385313
X-Frame-Options: SAMEORIGIN
X-Powered-By: Luracast Restler v3.0.0rc5
Content-Length: 125
Connection: keep-alive


{"id":233127,"name":"rest test group
renamed","stamp":1512038185,"last_mailing":0,"last_changed":1512038185,"isLocked":false}

 

Have more questions? Submit a request

Comments