Contacts API
Send your contacts to Kudos Cards from your own system: one authenticated endpoint, the fields it takes, what it answers, and how it handles a contact you already have.
No code needed? Our Kudos Cards app for Zapier uses this same API, and connects to thousands of apps. And for Brevo, HubSpot, TutorCruncher, CleanCloud and LeadConnector there is a direct connection on the Integrations page.
Overview
The API is how your own system adds contacts to a Kudos Cards account and keeps them up to date: the people the account sends cards to, with the birthday and postal address a card needs. It is one-way — Kudos never writes back to your system.
Every request is made over HTTPS to:
https://api.kudos-cards.co.ukRequests and responses are JSON.
Authentication
Every request carries an API key in the x-api-key header. A key belongs to one Kudos Cards account and can only reach that account’s contacts.
- Sign in to Kudos Cards as an account owner or admin.
- Open Integrations, then Advanced — API access.
- Create a key and copy it. It is shown once; store it as you would a password.
A key can be revoked on the same page at any time, and from then on every request with it is refused.
x-api-key: kudos_…Check a key
GET /integrations/me
Says which account a key belongs to, and its plan. Use it to test a key.
curl https://api.kudos-cards.co.uk/integrations/me \
-H "x-api-key: $KUDOS_API_KEY"Response, 200:
{
"accountId": "f72a00da-554f-4196-90d5-0106238e00ab",
"accountName": "Little Stars Tuition",
"plan": "free"
}Send contacts
POST /integrations/contacts
Adds contacts, or updates the ones you have sent before. Up to 500 contacts per request.
Request body
contacts | Required. An array of 1 to 500 contacts, below. |
source | Optional. The app these contacts come from, when it is one Kudos names: tutorbird (TutorBird). The account sees and filters them as from that app. Leave it out otherwise. Keep it the same for every request from one app: with the externalId, it is how a contact is recognised. |
Each contact
| Field | Max | Notes |
|---|---|---|
externalIdRequired | 200 | This contact’s id in your system. Send the same id again and the same contact is updated, not duplicated. |
firstNameRequired | 120 | As it should appear on a card. |
lastNameRequired | 120 | As it should appear on a card. |
emailOptional | 320 | One that is not a valid email address is left off — the contact is still saved — and named in warnings. |
dateOfBirthOptional | 40 | YYYY-MM-DD, or dd/mm/yyyy (day first, UK order — never month first), or an ISO timestamp, whose date is used as written. A date that cannot be read safely, or cannot be a birthday, is left off and named in warnings. |
addressLine1Optional | 200 | First line of the postal address. |
addressLine2Optional | 200 | Second line, if any. |
addressCityOptional | 120 | Town or city. |
addressPostcodeOptional | 20 | A card needs a street and a postcode to be posted. |
addressCountryOptional | 60 | For example GB. |
Example
curl https://api.kudos-cards.co.uk/integrations/contacts \
-H "x-api-key: $KUDOS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contacts": [
{
"externalId": "S-1042",
"firstName": "Maya",
"lastName": "Patel",
"dateOfBirth": "03/04/2014",
"addressLine1": "12 Helmet Row",
"addressCity": "London",
"addressPostcode": "EC1V 3QJ",
"addressCountry": "GB"
},
{
"externalId": "S-1043",
"firstName": "Sam",
"lastName": "Jones",
"email": "sam@@example",
"dateOfBirth": "31/02/2015"
}
]
}'Response, 201:
{
"created": 2,
"updated": 0,
"skipped": 0,
"duplicates": 0,
"errors": [],
"warnings": [
{
"externalId": "S-1043",
"message": "Email \"sam@@example\" is not a valid email address, so it was not saved."
},
{
"externalId": "S-1043",
"message": "Date of birth \"31/02/2015\" could not be read safely, so it was not saved. Send YYYY-MM-DD or dd/mm/yyyy."
}
],
"merged": [],
"possibleDuplicates": [],
"readiness": {
"total": 2,
"withDateOfBirth": 1,
"withPostalAddress": 1,
"sendable": 1
},
"contacts": [
{ "externalId": "S-1042", "id": "3f1c2b8e-6a4d-4c1e-9b7a-2d5e8f0a1c34" },
{ "externalId": "S-1043", "id": "9d0e7a51-2b6c-4f3a-8e1d-5c4b3a2f1e09" }
]
}The response
created- Contacts added.
updated- Contacts already in Kudos that were updated.
skipped- Contacts refused. Each one is named in errors.
duplicates- Contacts that appeared more than once in this request — the same externalId twice, or two records of one person. The last one sent is used.
errors- Each refused contact: its externalId, a reason and a code (below).
warnings- Contacts that were saved with something left off or left as it was — an unreadable birthday, an email that is not one, an address that differs from the one held.
merged- Contacts merged into someone the account already had, each naming who and why.
possibleDuplicates- Contacts added beside someone who looks like them, for the account to review.
readiness- Of the account’s contacts from this source: how many there are, how many have a date of birth, how many a postal address, and how many have both — the ones a card can be sent to.
contacts- Each contact saved — added, updated or merged — with its externalId and its id in Kudos, in the order sent. A refused contact is not here; it is in errors.
Refusal codes
Each entry in errors has a reason for a person, whose wording may change, and a code for your program, which will not:
plan_cap- The account’s plan has reached its contact limit. The account is also emailed. Once it upgrades or archives contacts, send the contact again.
already_on_file- These details make the contact the same person as one the account already holds, so it was left as it was.
not_saved- The contact could not be saved, and nothing was changed. Sending it again may work.
How contacts are matched
- The same id updates. A contact sent again with the same
externalId(and the samesource) updates the contact you sent before: its name, email and birthday become what you send. Fields you leave out are left as they are. - Addresses are only filled in. An address already held is never replaced by a different one, because a card is posted to it. A difference is named in
warnings, for the account to settle. - Someone the account already has is not duplicated. A contact that is clearly someone already on file — added by hand, say — is merged into them and named in
merged. One that only might be is added and named inpossibleDuplicates, for the account to review. - Nothing is deleted. A contact you stop sending stays in Kudos until the account removes it.
Errors and limits
| 200 / 201 | Success. A 201 from /integrations/contacts can still have refusals: read errors. |
| 400 | The request is not valid — a missing required field, a value too long, more than 500 contacts, or an unknown source. Nothing in the request was saved; the message lists what to fix. |
| 401 | No API key, or one that is not valid or has been revoked. |
| 429 | Too many requests for this key. Wait a minute and send again. |
| 5xx | Something went wrong on our side. Sending the same request again is safe. |
Rate limits are per API key: 120 requests a minute to /integrations/contacts and 60 a minute to /integrations/me. Over the limit, wait a minute and send again.
An account’s plan sets how many contacts it can hold. Contacts over that limit are refused with plan_cap, and the account is emailed, once a day, saying so.
Help
Questions about the API? Signed-in customers can reach us from Support in the app. The Learning Centre covers the rest of Kudos Cards.
