Lead
Leads are used to track potential new opportunities and can be converted to accounts. The Lead type in Bunny's GraphQL API and its fields.
| Name | Type | Description |
|---|---|---|
| account | Account | Account that lead has converted to |
| accountId | ID | |
| accountType | AccountType | Type of account |
| accountTypeId | ID | |
| campaigns | List (Campaign) | The campaigns the lead is a member of |
| city | String | City of the lead |
| company | String | Company of the lead |
| companyOrFullName | String | Company if present, else contact’s fullname |
| converted | Boolean | Flag indicating if the lead has been converted to an account |
| convertedAt | ISO8601DateTime | Datetime the lead was converted to an account |
| country | String | Country of the lead |
| createdAt | ISO8601DateTime | Datetime the lead was created |
| customFieldDefinitions | List (CustomField) | Custom field definitions for this object type |
| customFieldsData | JSON | All custom field values for this object as a JSON object |
| description | String | Description of the lead |
| String | Email address of the contact | |
| employees | Int | Number of employees |
| entity | Entity | The entity this lead belongs to |
| entityId | ID | The ID of the entity this lead belongs to |
| firstName | String | First name of the contact |
| fullName | String | Full name of the contact |
| groupId | ID | Group that the lead belongs to |
| hasCustomFields | Boolean | Whether this object type has any custom fields defined |
| id | ID | Unique identifier for the lead |
| industry | Industry | Industry of the lead |
| industryId | ID | Industry of the lead |
| lastName | String | Last name of the contact |
| leadSource | LeadSource | Source of the lead |
| leadSourceId | ID | Source of the lead |
| leadSources | List (LeadSource) | List of lead sources |
| leadStatus | LeadStatus | Status of the lead |
| leadStatusId | ID | Status of the lead |
| leadStatuses | List (LeadStatus) | List of lead statuses |
| linkedinUrl | String | Link to the contact’s LinkedIn profile |
| mobile | String | Mobile number of the contact |
| owner | User | Owner of the lead |
| ownerUserId | ID | Owner of the lead |
| phone | String | Phone number of the contact |
| revenue | Int | Annual revenue of the lead |
| state | String | State of the lead |
| street | String | Street address of the lead |
| title | String | Job title of the contact |
| updatedAt | ISO8601DateTime | Datetime the lead was last updated |
| users | List (User) | Users with access to the lead |
| website | String | Company website URL |
| zip | String | Zip/PostalCode of the lead |