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
Parameter In Type Description
cursor query string The `next_cursor` of the previous page limit query integer Page 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)
Example
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)
Example
DELETE
/api/v1/address-books/{id}
Delete an empty shared address book
Scope: contacts:write
· address_books.delete
Parameter In Type Description
id * path string (uuid)
Responses 204 · 401 · 402 · 403 · 404 · 422 · 429
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
404 Problem details (404)
422 Problem details (422)
429 Problem details (429)
Example
GET
/api/v1/address-books/{id}
One address book
Scope: contacts:read
· address_books.show
Parameter In Type Description
id * path string (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)
Example
PATCH
/api/v1/address-books/{id}
Change an address book
Needs the `manage` level.
Scope: contacts:write
· address_books.update
Parameter In Type Description
id * path string (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)
Example
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
Parameter In Type Description
id * path string (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)
Example
POST
/api/v1/address-books/{id}/duplicates/scan
Look for duplicates in a book
Scope: contacts:write
· Idempotency-Key
· address_books.scan
Parameter In Type Description
id * path string (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)
Example
GET
/api/v1/address-books/{id}/shares
An address book's shares
Scope: contacts:read
· paginated
· address_books.shares
Parameter In Type Description
id * path string (uuid) cursor query string The `next_cursor` of the previous page limit query integer Page 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)
Example
POST
/api/v1/address-books/{id}/shares
Share an address book
Scope: contacts:write
· Idempotency-Key
· address_books.share
Parameter In Type Description
id * path string (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)
Example
DELETE
/api/v1/address-books/{id}/shares/{share_id}
Take a share away
Scope: contacts:write
· address_books.unshare
Parameter In Type Description
id * path string (uuid) share_id * path string (uuid)
Responses 204 · 401 · 402 · 403 · 404 · 422 · 429
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
404 Problem details (404)
422 Problem details (422)
429 Problem details (429)
Example