Sign in

Add contact to phonebook

documented

Add a contact to a specific phonebook

POST /phonebooks/{id}/contacts/Phonebooksno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://api.callhub.io/v1/phonebooks/{{$phonebook_id}}/contacts/" \
  -X POST \
  -H "Authorization: Token {{CALLHUB_API_KEY}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"first_name": "{{$first_name}}", "last_name": "{{$last_name}}", "contact": "{{$phone}}", "mobile": "{{$mobile}}", "email": "{{$email}}", "country_code": "{{$country_code}}", "address": "{{$address}}", "city": "{{$city}}", "state": "{{$state}}", "company_name": "{{$company_name}}", "company_website": "{{$company_website}}", "job_title": "{{$job_title}}"}'