SmartTask Developers
Main Website
  • Overview
  • Authentication
    • Basics
    • Details
  • Endpoints
    • Organization
      • Fetch Organizations
    • Task
      • Create a Task
    • Record Activity
      • Fetch Activities
      • Add Comment
    • Project
      • Fetch Projects
    • Organization User
      • Filter Users
    • Webhooks
      • Subscribe to an Event
      • Unsubscribe from a Webhook
  • Models
    • Organization
      • Organization User
    • Group
    • Project
    • Record
    • Record Activity
    • Task
    • Contact
    • Webhook
    • Membership
    • File
    • Custom Field
      • Custom Field Value
    • User
Powered by GitBook
On this page
  1. Models

Contact

Contact Model

{
    record_id?: string;
    organization_id: number;
    created_by_user_id: number;

    record_sub_type? = RecordSubTypeEnum.person;

    access_type = RecordAccessTypeEnum.default;

    name: string; // Max length 100
    designation?: string; // Max length 50
    avatar_url?: string;

    assigned_user?: UserModel;

    parent?: ContactTypeaheadModel;

    address?: string;       //4000 chars
    address_lat?: number;
    address_lng?: number;

    emails: ContactEmailModel[] = [];
    phones: ContactPhoneModel[] = [];

    url_details?: ContactUrlModel;

    projects: ProjectRecordModel[] = [];

    followers = new Array<OrganizationUserModel>();

    files: FileModel[] = [];

    custom_field_values: CustomFieldValueModel[] = [];

    archived: boolean = false;

    created_at: Date;
    modified_at: Date;
}

RecordSubTypeEnum

{
    organization = 'organization',
    person = 'person',
}

ContactEmailModel

{
    record_id: string;
    email: string; // Max length 320
}

ContactPhoneModel

{
    record_id: string;
    phone_number: string; // Max length 30
}

ContactUrlModel

{
    domain?: string;
    twitter_url?: string;
    linkedin_url?: string;
    facebook_url?: string;
    github_url?: string;
    instagram_url?: string;
} 

ContactTypeaheadModel

{
    record_id: string;
    record_sub_type: string;
    name: string;
    avatar_url?: string;
    parent_name?: string;
    designation?: string;
    archived: boolean;
}

More Information

  • For RecordAccessTypeEnum please refer to Record

  • For OrganizationUserModel please refer to Organization User

  • For FileModel please refer to File

  • For CustomFieldValueModel please refer to Custom Field Value

PreviousTaskNextWebhook

Last updated 7 days ago

For ProjectRecordModel please refer to

ProjectRecordModel