Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added stats/total to contacts response.

...

You can use the following GET parameter when searching for contacts

Name

Type

Description

listid

String

Search for contacts in a specific list

mobile

String

Search for contacts with a specific mobile number

deleted

Boolean

Search for contacts that are deleted or active

field_key

String

Search merge field key

field_value

String

Search merge field value

response

Code Block
javascript
javascript
{
    "contacts": [
        {
            "id": "631809",
            "listid": "373",
            "mobile": "+4512721272",
            "created": "2015-03-13 09:11:22",
            "changed": "2015-03-13 09:11:22",
            "deleted": false,
            "fields": {
                "Fornavn": "TEST",
                "Efternavn": ""
            }
        },
        {
            "id": "632065",
            "listid": "373",
            "mobile": "+4512721272",
            "created": "2015-03-13 09:11:22",
            "changed": "2015-03-13 09:11:22",
            "deleted": false,
            "fields": {
                "Fornavn": "TEST",
                "Efternavn": ""
            }
        }
    ],
    "paging": {
        "pages": 81056,
        "offset": 2,
        "current": 1
    },
	"stats":{
		"total":"2",
	},
    "status": 200
}

GET /contact/{id}.{format}

...