API Documentation
Contacts
Find a contact
Find a contact based on their email address.
curl --request GET \
--url https://api.indiepitcher.com/v1/contacts/find \
--header 'Authorization: Bearer <token>'
{
"success": true,
"data": {
"email": "john@acme.com",
"userId": 123456,
"name": "John Doe",
"avatarUrl": "https://example.com/profile_pictures/123456",
"languageCode": "en-US",
"hardBouncedAt": "2024-04-23T18:25:43.511Z",
"subscribedToLists": [
"onboarding",
"newsletter"
],
"customProperties": {
"company": "Acme",
"age": 35
}
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Query Parameters
The email of the contact you with to retrieve.
Response
The email of the contact.
"john@acme.com"
The user id of the contact.
123456
The full name of the contact
"John Doe"
The avatar url of the contact
"https://example.com/profile_pictures/123456"
The primary language language of this contact, represented by a language code.
"en-US"
The date when an attempt to send an email to the contact failed with a hard bounce, meaning the email address is invalid and no further emails will be send to this contact. You can reset this in the dashboard to re-enable sending emails to this contact.
"2024-04-23T18:25:43.511Z"
The array of mailing lists the contact is subscribed to.
["onboarding", "newsletter"]
curl --request GET \
--url https://api.indiepitcher.com/v1/contacts/find \
--header 'Authorization: Bearer <token>'
{
"success": true,
"data": {
"email": "john@acme.com",
"userId": 123456,
"name": "John Doe",
"avatarUrl": "https://example.com/profile_pictures/123456",
"languageCode": "en-US",
"hardBouncedAt": "2024-04-23T18:25:43.511Z",
"subscribedToLists": [
"onboarding",
"newsletter"
],
"customProperties": {
"company": "Acme",
"age": 35
}
}
}