Skip to main content
Contacts are your workspace’s address book: the people you send transfers to and invite to collections. Use the API to fill it from the system you already keep people in, such as a CRM, so they are there to pick when you send. A contact grants nothing on its own. It is a convenience for addressing people, not a permission.

Prerequisites

  • An API key with contacts:read and contacts:write, exported as YUNGLE_API_KEY. Contacts work on every plan, the free one included.
  • Optional: npm install yungle-client or pip 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.
The response is 201:
An address already in the book returns 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 409 conflict as “already there”. Running the sync again then changes nothing, so it is safe to schedule.
Both SDKs retry throttled requests (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.
The response is { "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.
The response is { "deleted": true }.
Deleting a contact does not remove their access to anything. If they were invited to a collection as a guest, they keep that access. Remove it with DELETE /collections/{id}/guests/{guestId}.

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.