Query parameters
-
offset integer
Ranking number of the first item on the page
-
limit integer
Number of results to return
Maximum value is
100
. Default value is50
. -
sort string
Specify how to sort the results
Values are
fnAsc
,fnDesc
,lnAsc
,lnDesc
,emAsc
,emDesc
,tagAsc
, ortagDesc
. -
search string
String to look up. It will look up into email, first name, last name, and custom attributes. Will return partial matches.
-
email string
Email address you want to look up. This search is an exact match and is case-sensitive.
-
firstname string
First name you want to look up. This search is an exact match and is not case-sensitive.
-
lastname string
Last name you want to look up. This search is an exact match and is not case-sensitive.
Responses
-
200 application/json
Success
-
Bad Request -- Your request is invalid.
-
Unauthorized -- Your API key is wrong.
-
Forbidden -- The object requested is hidden for administrators only.
-
Not Found -- The specified object could not be found.
-
Too Many Requests -- You're requesting too many objects! Slow down!
-
Internal Server Error -- We had a problem with our server. Try again later.
-
Service Unavailable -- We're temporarily offline for maintenance. Please try again later.
curl \
-X GET https://api.usecollect.com/v1/contacts
[
{
"_id": "uBJadNFcjrC6emRom",
"tag": [
"Speaker"
],
"email": "johndoe@example.com",
"custom": [
{
"_id": "yw6XDyeFvbqr86yA6",
"name": "Favorite color",
"value": "Blue",
"variable": "color"
},
{
"_id": "CqdFwGX3yitk9zf8z",
"name": "Country",
"value": "US",
"variable": "country"
}
],
"lastName": "Doe",
"firstName": "John"
}
]