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
| Name | Type | Description |
|---|---|---|
| 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 -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"}' result = client.call("yousign", "create_contact", {"first_name":"first name","last_name":"last name","email":"jane@example.com","locale":"locale"}) const result = await cotlet.call('yousign', 'create_contact', {"first_name":"first name","last_name":"last name","email":"jane@example.com","locale":"locale"}); cotlet call yousign create_contact --data '{"first_name":"first name","last_name":"last name","email":"jane@example.com","locale":"locale"}' Example response
{
"id": "c8d7e6f5-a4b3-4c2d-9e1f-0a9b8c7d6e5f",
"first_name": "Ana",
"last_name": "Lopez",
"email": "ana@example.com",
"locale": "en",
"company_name": "Lopez Studio"
}