Skip to content
Notice This app is in Beta Testing We are still testing Record Sender, so features may change.
Sign in

Address books — API reference

The address books the person may open, sharing at read / edit / manage, auto-merge rules and duplicate scans (docs/contacts.md).

← All groups
GET /api/v1/address-books

The address books the person may open

Each with the person's `level` and its `count`. A personal book is its owner's own unless they share it.

Scope: contacts:read · paginated · address_books.index

ParameterInTypeDescription
cursorquerystringThe `next_cursor` of the previous page
limitqueryintegerPage size
Responses 200 · 401 · 403 · 429

200 Success

address_books * [AddressBook]
fields

AddressBook

auto_merge object
fields
same_email boolean
same_name boolean
same_phone boolean
color string | null
count integer | null Contacts in the book
description string | null
id * string (uuid)
kind "personal" | "account" | "workspace" | "directory" | "shared"
level "read" | "edit" | "manage" | nil The person's level
name string
owner_user_id string | null
updated_at string (date-time)
workspace_id string | null
default_id string | null The person's default book
has_more boolean
next_cursor string | null Pass as `cursor` for the next page; null on the last

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

POST /api/v1/address-books

Create a shared address book

Scope: contacts:write · Idempotency-Key · address_books.create

Request body application/json
color string
description string
name * string
Responses 201 · 401 · 402 · 403 · 409 · 422 · 429

201 Success

address_book * AddressBook
fields

AddressBook

auto_merge object
fields
same_email boolean
same_name boolean
same_phone boolean
color string | null
count integer | null Contacts in the book
description string | null
id * string (uuid)
kind "personal" | "account" | "workspace" | "directory" | "shared"
level "read" | "edit" | "manage" | nil The person's level
name string
owner_user_id string | null
updated_at string (date-time)
workspace_id string | null

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

DELETE /api/v1/address-books/{id}

Delete an empty shared address book

Scope: contacts:write · address_books.delete

ParameterInTypeDescription
id *pathstring (uuid)
Responses 204 · 401 · 402 · 403 · 404 · 422 · 429

204 Done (no content)

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

422 Problem details (422)

429 Problem details (429)

GET /api/v1/address-books/{id}

One address book

Scope: contacts:read · address_books.show

ParameterInTypeDescription
id *pathstring (uuid)
Responses 200 · 401 · 403 · 404 · 429

200 Success

address_book * AddressBook
fields

AddressBook

auto_merge object
fields
same_email boolean
same_name boolean
same_phone boolean
color string | null
count integer | null Contacts in the book
description string | null
id * string (uuid)
kind "personal" | "account" | "workspace" | "directory" | "shared"
level "read" | "edit" | "manage" | nil The person's level
name string
owner_user_id string | null
updated_at string (date-time)
workspace_id string | null

401 Problem details (401)

403 Problem details (403)

404 Problem details (404)

429 Problem details (429)

PATCH /api/v1/address-books/{id}

Change an address book

Needs the `manage` level.

Scope: contacts:write · address_books.update

ParameterInTypeDescription
id *pathstring (uuid)
Request body application/json
color string
description string
name string
position integer
Responses 200 · 401 · 402 · 403 · 404 · 422 · 429

200 Success

address_book * AddressBook
fields

AddressBook

auto_merge object
fields
same_email boolean
same_name boolean
same_phone boolean
color string | null
count integer | null Contacts in the book
description string | null
id * string (uuid)
kind "personal" | "account" | "workspace" | "directory" | "shared"
level "read" | "edit" | "manage" | nil The person's level
name string
owner_user_id string | null
updated_at string (date-time)
workspace_id string | null

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

422 Problem details (422)

429 Problem details (429)

PUT /api/v1/address-books/{id}/auto-merge

Set the auto-merge rules

Needs the `manage` level. Rules left out keep their value.

Scope: contacts:write · address_books.auto_merge

ParameterInTypeDescription
id *pathstring (uuid)
Request body application/json
same_email boolean
same_name boolean
same_phone boolean
Responses 200 · 401 · 402 · 403 · 404 · 422 · 429

200 Success

address_book * AddressBook
fields

AddressBook

auto_merge object
fields
same_email boolean
same_name boolean
same_phone boolean
color string | null
count integer | null Contacts in the book
description string | null
id * string (uuid)
kind "personal" | "account" | "workspace" | "directory" | "shared"
level "read" | "edit" | "manage" | nil The person's level
name string
owner_user_id string | null
updated_at string (date-time)
workspace_id string | null

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

422 Problem details (422)

429 Problem details (429)

POST /api/v1/address-books/{id}/duplicates/scan

Look for duplicates in a book

Scope: contacts:write · Idempotency-Key · address_books.scan

ParameterInTypeDescription
id *pathstring (uuid)
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429

200 Success

pending * integer Pairs waiting in the book's duplicates queue

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

GET /api/v1/address-books/{id}/shares

An address book's shares

Scope: contacts:read · paginated · address_books.shares

ParameterInTypeDescription
id *pathstring (uuid)
cursorquerystringThe `next_cursor` of the previous page
limitqueryintegerPage size
Responses 200 · 401 · 403 · 404 · 429

200 Success

has_more boolean
next_cursor string | null Pass as `cursor` for the next page; null on the last
shares * [AddressBookShare]
fields

AddressBookShare

address_book_id string (uuid)
expires_at string | null
granted_by_id string | null
grantee_id string (uuid)
grantee_type "user" | "team" | "workspace"
id * string (uuid)
inserted_at string (date-time)
level "read" | "edit" | "manage"

401 Problem details (401)

403 Problem details (403)

404 Problem details (404)

429 Problem details (429)

POST /api/v1/address-books/{id}/shares

Share an address book

Scope: contacts:write · Idempotency-Key · address_books.share

ParameterInTypeDescription
id *pathstring (uuid)
Request body application/json
expires_at string (date-time)
grantee_id * string (uuid)
grantee_type * "user" | "team" | "workspace"
level * "read" | "edit" | "manage"
Responses 201 · 401 · 402 · 403 · 404 · 409 · 422 · 429

201 Success

share * AddressBookShare
fields

AddressBookShare

address_book_id string (uuid)
expires_at string | null
granted_by_id string | null
grantee_id string (uuid)
grantee_type "user" | "team" | "workspace"
id * string (uuid)
inserted_at string (date-time)
level "read" | "edit" | "manage"

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

DELETE /api/v1/address-books/{id}/shares/{share_id}

Take a share away

Scope: contacts:write · address_books.unshare

ParameterInTypeDescription
id *pathstring (uuid)
share_id *pathstring (uuid)
Responses 204 · 401 · 402 · 403 · 404 · 422 · 429

204 Done (no content)

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

422 Problem details (422)

429 Problem details (429)