Add contact

Add a contact to an address book with name, company, emails and phones.

POST https://cotlet.dev/api/v1/nextcloud/contacts

write Confirm

Creates one contact in an address book. A name or an email is required. Run search_contacts first, because adding a person who exists creates a second card. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: add_contact
NameTypeDescription
name string string Full name.
company string string Company.
emails array array Email addresses.
phones array array Phone numbers.
address_book string string Address book name. Default: 'contacts'.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/nextcloud/contacts \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("nextcloud", "add_contact")
Node.js
const result = await cotlet.call('nextcloud', 'add_contact');
CLI
cotlet call nextcloud add_contact

Example response

JSON

{
  "contact_id": "e18a52b4-9c07-4f3d-a6b1-0d2c7e5f8a63",
  "name": "Tom Becker",
  "address_book": "contacts",
  "status": "created"
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.