Add a Contact

POST https://restapi.actonsoftware.com/api/1/list/{listid}/record

This endpoint allows you to add a record to a specified list.

Parameters

Name Parameter
Type
Allow
Multiple
Required/
Optional
Data Type Description
Authorization Header False Required String Insert your generated access token.
("Bearer {access token}")
Content-Type Header False Required String Specify the content type.
("application/json")
listid Path False Required String Specify the list ID of the list you would like to add the record.
Body False Required String A JSON formatted object to describe the structure of the record that is being added.
returncontact Query N Optional String Would you like the data of the record added in the response body?
("Y", "N")

Response

{
  "status": "success",
  "message": "Record inserted",
  "id": "l-0002:3",
  "contact_id": "l-0002:3"
}

\\\\\

Code Examples

cURL

curl -X POST https://restapi.actonsoftware.com/api/1/list/l-0002/record -H "Authorization: Bearer 12345678-9abc-defg-hijk-lmnopqrs" -H "Content-Type: application/json" -d '{"E-mail Address":"john.doe@act-on.com","First Name":"John","Last Name":"Doe"}'