https://api.salespoints.co/webhook/create |
appId: xxxxxxxxxxxxxxxxxxxxxxxxxx data: { "method":"post", "url":"http://example.com", "actionId":"2", "description":"example" } |
Parameter | Description | |
---|---|---|
method | Required | Method what action should do, for example - post, get, put, delete |
url | Required | Link where to perform hook |
actionId | Required | When to perform hook @see actions() |
description | Optional | Description of the hook |
https://api.salespoints.co/webhook/delete |
appId: xxxxxxxxxxxxxxxxxxxxxxxxxx data: {"slug":"xxxxxxxxxxxxxxxxxxxxxxxxxx"} |
Parameter | Description | |
---|---|---|
slug | Required | Identificator |
https://api.salespoints.co/webhook/update |
appId: xxxxxxxxxxxxxxxxxxxxxxxxxx data: { "slug":"xxxxxxxxxxxxxxxxxxxxxxxxxx", "method":"post", "url":"http://example.com", "actionId":"2", "description":"example" } |
Parameter | Description | |
---|---|---|
slug | Required | Identificator |
method | Optional | Method what action should do, for example - post, get, put, delete |
url | Optional | Link where to perform hook |
actionId | Optional | When to perform hook @see actions() |
description | Optional | Description of the hook |
https://api.salespoints.co/webhook/get |
appId: xxxxxxxxxxxxxxxxxxxxxxxxxx data: {"slug":"xxxxxxxxxxxxxxxxxxxxxxxxxx"} |
Parameter | Description | |
---|---|---|
slug | Required | Identificator |
https://api.salespoints.co/webhook/list |
appId: xxxxxxxxxxxxxxxxxxxxxxxxxx |
https://api.salespoints.co/webhook/actions |
appId: xxxxxxxxxxxxxxxxxxxxxxxxxx |
[{ "event": "open", "ts": 1512571674, "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36", "ip": "192.168.0.0","_id": "173473239", "url": "null", "msg": { "ts": null, "_id": "173473239", "state": null, "subject": null, "email": "[email protected]", "tags": [], "clicks": [{ "ts": null, "ip": null, "location": "null", "ua": null }], "resends": [], "_version": null, "metadata": [ "accountId": "370385200400907879", "campaignId": "5799", "brandId": "3", "campaignInstanceId": "5266" ], "sender": null, "template": null } },{ "event": "open", "ts": 1512571677, "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36", "ip": "159.2.0.11","_id": "173471536", "url": "null", "msg": { "ts": null, "_id": "173471536", "state": null, "subject": null, "email": "[email protected]", "tags": [], "clicks": [{ "ts": null, "ip": null, "location": "null", "ua": null }], "resends": [], "_version": null, "metadata": [ "accountId": "370265200400907060", "campaignId": "5799", "brandId": "3", "campaignInstanceId": "5266" ], "sender": null, "template": null } }] |