Thoughtly · Schema

Thoughtly Contact

Schema for the Thoughtly Contact object used by the Thoughtly API. A Contact represents a person whom an Agent can call or message.

Voice AIChat AIConversational AIAI AgentsOutbound CallingInbound CallingLead ConversionSMSWhatsAppCRMTelephony

Properties

Name Type Description
id string Unique identifier for the Contact, assigned by Thoughtly.
phone_number string E.164 phone number used to call or message the Contact.
name string Display name for the Contact.
email string Optional email address associated with the Contact.
country_code string ISO country code used when normalizing the phone number.
tags array User-defined tags for segmenting Contacts.
attributes object Custom key/value attributes referenced from Agent scripts as `{key_name}`.
created_at string ISO 8601 timestamp for when the Contact was created.
updated_at string ISO 8601 timestamp for the most recent Contact update.
View JSON Schema on GitHub

JSON Schema

thoughtly-contact-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://api-evangelist.com/schemas/thoughtly/thoughtly-contact-schema.json",
  "title": "Thoughtly Contact",
  "description": "Schema for the Thoughtly Contact object used by the Thoughtly API. A Contact represents a person whom an Agent can call or message.",
  "type": "object",
  "required": ["phone_number"],
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the Contact, assigned by Thoughtly."
    },
    "phone_number": {
      "type": "string",
      "description": "E.164 phone number used to call or message the Contact."
    },
    "name": {
      "type": "string",
      "description": "Display name for the Contact."
    },
    "email": {
      "type": "string",
      "format": "email",
      "description": "Optional email address associated with the Contact."
    },
    "country_code": {
      "type": "string",
      "description": "ISO country code used when normalizing the phone number."
    },
    "tags": {
      "type": "array",
      "items": { "type": "string" },
      "description": "User-defined tags for segmenting Contacts."
    },
    "attributes": {
      "type": "object",
      "additionalProperties": true,
      "description": "Custom key/value attributes referenced from Agent scripts as `{key_name}`."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 timestamp for when the Contact was created."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 timestamp for the most recent Contact update."
    }
  },
  "additionalProperties": true
}