Get a specific contact
This endpoint retrieves a specific request.
The list of requests is limited to 50 results.
Path parameters
-
Specify the ID of the contact to retrieve.
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.
GET /contacts/{contactId}
curl \
-X GET https://api.usecollect.com/v1/contacts/{contactId}
Response examples (200)
{
"_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",
"requests": [
{
"_id": "NxAHPWu9hRzcyD24m",
"status": "completed",
"privacy": "team",
"branding": {
"useBranding": false
},
"createdAt": "2022-02-22T13:40:26Z",
"campaignId": "mYCsdgB4DQoENBaX6"
},
{
"_id": "jP6sXJ72R8xjxceaP",
"note": {
"date": "2022-05-04T14:25:17Z",
"note": "Asked him to send back another document"
},
"status": "completed",
"privacy": "team",
"branding": {
"useBranding": false
},
"createdAt": "2022-04-19T13:58:07Z",
"campaignId": "mYCsdgB4DQoENBaX6"
},
{
"_id": "FmZNnerEFRF3dLYPK",
"status": "pending",
"privacy": "team",
"branding": {
"brandingId": "jSEj7vHk3wLG3gRF7",
"useBranding": true
},
"createdAt": "2022-06-18T16:19:46Z",
"campaignId": "mYCsdgB4DQoENBaX6"
}
],
"createdAt": "2022-02-22T13:40:26Z",
"firstName": "John",
"lastActivity": "2022-06-19T17:14:52Z"
}