Support-Earnware

Earnware API Post Documentation

By June 17, 2019April 23rd, 2020No Comments

Following are instructions for sending a POST payload to the Earnware API.

Production Endpoint:
https://api.earnware.com/production/contacts

Example Payload (JSON):

{

“userId”: “Your_User_Id_Here

“sourceId”: “Your_Source_Id_Here

“placementId”: “Your_Placement_Id_Here

“email”: “user@example.com”,

“firstName”: “Fname”,

“lastName”: “Lname”,

“regDate”: “2017-10-30T22:48:15.092Z”,

“sourceUrl”: “http://www.domain.com/registration-page”,

“ipAddress”: “123.123.123.123”

}

The UserId referenced above is an example only, you’ll need YOUR actual userId which you can get from an Earnware support team member or by opening up any contact in your account – you’ll find your userId at the end of the URL in the address window, it will show userId=.

Use the sourceId and placementId that you wish to post and keep in mind, you can use one or both of these values as filter criteria to target your desired list using an Earnware Workflow.

Your payload can be submitted either as:

  • JSON (application/json) or
  • Form data (x-www-form-urlencoded)

CURL EXAMPLE

curl -d ‘{“userId”: “Your_User_Id_Here“, “sourceId”: “Your_Source_Id_Here“, “placementId”: “Your_Placement_Id_Here“, “email”: “person+curl-example@aol.com”, “firstName”: “Fname”, “lastName”: “Lname”, “regDate”: “2017-10-30T22:48:15.092Z”, “sourceUrl”: “http://www.domain.com/registration-page”, “ipAddress”: “123.123.123.123”}’ -H “Content-Type: application/json” -X POST https://api.earnware.com/production/contacts