Coghub icon

Coghub

Interagir com a API do Coghub

Actions129

Contacts → Contact Create

AI-generated

Summary

Create a new contact in the Coghub system by providing the required account ID, inbox ID, and contact details such as name, email, phone number, and optional attributes.

Inputs

  • account_id (required) — The numeric ID of the account under which to create the contact.
  • inbox_id (required) — The ID of the inbox to which the contact belongs.
  • name — The name of the contact.
  • email — The email address of the contact.
  • blocked — Boolean indicating whether the contact is blocked.
  • phone_number — The phone number of the contact.
  • avatar — Binary or form data representing the contact's avatar image.
  • avatar_url — URL pointing to the contact's avatar image file (jpeg, png).
  • identifier — A unique identifier for the contact in an external system.
  • additional_attributes — A JSON object storing extra attributes for the contact (e.g., {"type":"customer","age":30}).
  • custom_attributes — A JSON object for storing custom attributes for the contact, adhering to valid custom attribute definitions.

Output shape

a single JSON object representing the newly created contact.

The output JSON contains the details of the created contact as returned by the Coghub API. No pagination or batching applies to this single creation operation.

Examples

Example 1: Create a contact with basic details

Provide account_id, inbox_id, name, email, and phone_number to create a basic contact.

Links

Discussion