Create a person
Add one person to your Loxo database.
POST https://cotlet.dev/api/v1/loxo/persons
write
Creates the profile as the Add People form does and returns its person_id. Required fields that an admin set for new people apply, and a missing one fails the call with its name. Loxo can flag a duplicate after creation, so run search_people first. It creates no profile from a resume file. It reaches no one, so it does not wait for your OK by default.
Parameters
| Name | Type | Description |
|---|---|---|
| name string required | string | Full name. |
| email string | string | Email address. |
| email_type string | string | Email type, for example Personal or Work. |
| phone string | string | Phone number. |
Request
curl -X POST https://cotlet.dev/api/v1/loxo/persons \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Jane Doe"}' result = client.call("loxo", "create_person", {"name":"Jane Doe"}) const result = await cotlet.call('loxo', 'create_person', {"name":"Jane Doe"}); cotlet call loxo create_person --data '{"name":"Jane Doe"}' Example response
{
"person_id": 48211190,
"name": "Marcus Webb",
"created": true
}