Create contact

Adds a contact to your Yousign contact book.

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

write

Returns the new contact with its ID. It notifies no one, and the contact can be removed in the app, so this tool does not ask for confirmation.

Parameters

Parameters: create_contact
NameTypeDescription
first_name string required string First name.
last_name string required string Last name.
email string required string Email address.
locale string required string Language of the contact, for example en or fr.
company_name string string Company of the contact.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/yousign/contacts \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"first_name":"first name","last_name":"last name","email":"jane@example.com","locale":"locale"}'
Python
result = client.call("yousign", "create_contact", {"first_name":"first name","last_name":"last name","email":"jane@example.com","locale":"locale"})
Node.js
const result = await cotlet.call('yousign', 'create_contact', {"first_name":"first name","last_name":"last name","email":"jane@example.com","locale":"locale"});
CLI
cotlet call yousign create_contact --data '{"first_name":"first name","last_name":"last name","email":"jane@example.com","locale":"locale"}'

Example response

JSON

{
  "id": "c8d7e6f5-a4b3-4c2d-9e1f-0a9b8c7d6e5f",
  "first_name": "Ana",
  "last_name": "Lopez",
  "email": "ana@example.com",
  "locale": "en",
  "company_name": "Lopez Studio"
}

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.