AddressBook
Manage address book entries, which represent contact information (such as email, phone, or postal address) associated with entities like people or locations.
You can create, update, delete, and search for address book entries with advanced filtering and pagination.
- Version
- 2.0.0
- OpenAPI version
- 3.0.0
Operations
Section titled “Operations” POST /v2/address-book/index
Returns a paginated and filterable list of address book entries.
Use POST to allow complex filters via JSON payload.
Request Body
Section titled “Request Body ”Parameters for searching address book entries
object
object
Example
{ "filter": { "type": "email" }, "per-page": 20, "page": 1, "sort": "entity_id"}
Responses
Section titled “ Responses ”List of address book entries
object
{ "delivery_id": "123e4567-e89b-12d3-a456-426655440000", "type": "email", "description": "the email", "value": "theuser@theemail.com", "note": "work email", "entity_id": "123e4567-e89b-12d3-a456-426655440000"}
Example
{ "delivery_id": "123e4567-e89b-12d3-a456-426655440000", "type": "email", "description": "Work email", "value": "theuser@theemail.com", "note": "Main contact", "entity_id": "123e4567-e89b-12d3-a456-426655440000"}
Headers
Section titled “Headers ”Current page
Total number of pages
Number of items per page
Total number of items
create
Section titled “create” POST /v2/address-book/create
Create a new address book entry by providing the required details.
Request Body required
Section titled “Request Body required ”AddressBook object to be created
object
Example
{ "type": "email", "description": "Work email", "value": "theuser@theemail.com", "note": "Main contact", "entity_id": "123e4567-e89b-12d3-a456-426655440000"}
Responses
Section titled “ Responses ”AddressBook created successfully
object
Example
{ "delivery_id": "123e4567-e89b-12d3-a456-426655440000", "type": "email", "description": "Work email", "value": "theuser@theemail.com", "note": "Main contact", "entity_id": "123e4567-e89b-12d3-a456-426655440000"}
GET /v2/address-book/view/{id}
Retrieve an address book entry by its unique ID.
Path Parameters
Section titled “Path Parameters ”ID of the address book entry to retrieve
Responses
Section titled “ Responses ”AddressBook found
object
Example
{ "delivery_id": "123e4567-e89b-12d3-a456-426655440000", "type": "email", "description": "Work email", "value": "theuser@theemail.com", "note": "Main contact", "entity_id": "123e4567-e89b-12d3-a456-426655440000"}
AddressBook not found
delete
Section titled “delete” DELETE /v2/address-book/view/{id}
Delete an address book entry by its unique ID.
If force=true, all related entities will also be deleted.
Path Parameters
Section titled “Path Parameters ”ID of the address book entry to delete
Query Parameters
Section titled “Query Parameters ”Force the deletion of the entity and all related entities
Responses
Section titled “ Responses ”AddressBook deleted successfully
If force=false, the operation is interrupted and the list of connected entities that will be deleted in case of confirmation (force=true) is returned
update
Section titled “update” PUT /v2/address-book/update/{id}
Update an existing address book entry by its unique ID.
Path Parameters
Section titled “Path Parameters ”ID of the address book entry to update
Request Body required
Section titled “Request Body required ”AddressBook object with updated data
object
Example
{ "note": "Updated contact"}
Responses
Section titled “ Responses ”AddressBook updated successfully
object
Example
{ "delivery_id": "123e4567-e89b-12d3-a456-426655440000", "note": "Updated contact"}
AddressBook not found