Prerequisites
- An API key with
contacts:readandcontacts:write, exported asYUNGLE_API_KEY. Contacts work on every plan, the free one included. - Optional:
npm install yungle-clientorpip install yungle.
Steps
1
Create a contact
email is the only required field. Yungle lowercases it, and it is unique per workspace. The other fields are firstName, lastName, company, phone and type, each up to 200 characters.201:409 conflict. A missing or invalid address, or a field over 200 characters, returns 400 invalid_request with details.reason.2
Sync from your CRM
There is no bulk endpoint. Create contacts one at a time and treat Both SDKs retry throttled requests (
409 conflict as “already there”. Running the sync again then changes nothing, so it is safe to schedule.429) for you, honouring Retry-After. A key allows 120 requests a minute on a paid plan and 12 on the free plan; see Limits.To push changes for people who already exist, read the book once with GET /contacts, map each email to its id, and PATCH the ones that differ (next step).3
Update a contact
PATCH /contacts/{id} replaces the whole contact: any field you leave out is cleared. Read the contact, change what you need, and send every field back.{ "contact": { … } }. Changing email to an address another contact already uses returns 409 conflict.4
Delete a contact
DELETE /contacts/{id} removes the contact and nothing else.{ "deleted": true }.Contact types
type is one of client, colleague, partner, friend, family or other. Any other value is saved as other instead of failing the request.
Reading the address book
GET /contacts returns every contact in one response, sorted by last name, then first name, then email. The CLI prints the same list with yungle contacts.
Data protection
Contacts are personal data about people who may never have used Yungle. Keep only the people you send to.- Contacts never expire. They stay until you delete them or delete your account, which deletes them all.
- You can get the whole book back at any time with
GET /contacts, and it is included in your account’s data export. - Yungle does not email a contact because they are in your book. Email goes out only when you send a transfer to them or invite them to a collection.
Next steps
Send a transfer
Email a transfer to the people in your book.
Client collections
Invite a client to their own collection.
Errors
What
409 conflict means and when it is safe to skip.API reference
Every field of the contact endpoints.
