{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eloqua/json-schema/eloqua-contact-rest20-schema.json",
  "title": "Contact",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eloqua-application-2-0-contacts-api-openapi.yml#/components/schemas/ContactRest20",
  "properties": {
    "type": {
      "type": "string",
      "description": "The asset's type in Eloqua. This is a read-only property. "
    },
    "id": {
      "type": "string",
      "readOnly": true,
      "description": "Id of the contact. This is a read-only property."
    },
    "currentStatus": {
      "type": "string",
      "description": "The contact's current status."
    },
    "name": {
      "type": "string",
      "description": "The name of the contact."
    },
    "description": {
      "type": "string",
      "description": "The description of the contact."
    },
    "permissions": {
      "type": "array",
      "description": "The permissions for the contact granted to your current instance. This is a read-only property.",
      "items": {
        "type": "string"
      }
    },
    "folderId": {
      "type": "string",
      "readOnly": true,
      "description": "The folder id of the folder which contains the contact."
    },
    "sourceTemplateId": {
      "type": "string",
      "description": "Id of the template used to create the asset."
    },
    "createdBy": {
      "type": "string",
      "readOnly": true,
      "description": "The login id of the user who created the contact."
    },
    "createdByName": {
      "type": "string",
      "description": "The name of the user who created the contact."
    },
    "createdAt": {
      "type": "string",
      "readOnly": true,
      "description": "The date and time the contact was created, expressed in Unix time."
    },
    "updatedBy": {
      "type": "string",
      "readOnly": true,
      "description": "The login id of the user that last updated the contact."
    },
    "updatedByName": {
      "type": "string",
      "description": "The name of the user who last updated the contact."
    },
    "updatedAt": {
      "type": "string",
      "readOnly": true,
      "description": "Unix timestamp for the date and time the contact was last updated."
    },
    "scheduledFor": {
      "type": "string",
      "readOnly": true,
      "description": "The date the contact is scheduled."
    },
    "depth": {
      "type": "string",
      "readOnly": true,
      "description": "Level of detail returned by the request. Eloqua APIs can retrieve entities at three different levels of depth: <code>minimal</code>, <code>partial</code>, and <code>complete</code>. Any other values passed are reset to <code>complete</code> by default. For more information, see <a href='https://docs.oracle.com/cloud/latest/marketingcs_gs/OMCAB/index.html#CSHID=RequestDepth'>Request depth</a>."
    },
    "firstName": {
      "type": "string",
      "description": "The contact's first name."
    },
    "lastName": {
      "type": "string",
      "description": "The contact's last name."
    },
    "emailAddress": {
      "type": "string",
      "description": "The contact's email address."
    },
    "emailFormatPreference": {
      "type": "string",
      "description": "The contact's email format preference."
    },
    "isSubscribed": {
      "type": "string",
      "description": "Whether or not the contact is subscribed."
    },
    "isSmsSubscribed": {
      "type": "string",
      "description": "Whether or not the contact is subscribed for SMS."
    },
    "isBounceback": {
      "type": "string",
      "description": "Whether or not the contact has any associated bouncebacks."
    },
    "accountName": {
      "type": "string",
      "description": "The account name in which the contact belongs."
    },
    "accountId": {
      "type": "string",
      "description": "The account id in which the contact belongs. This is a read-only property."
    },
    "title": {
      "type": "string",
      "description": "The contact's title."
    },
    "subscriptionDate": {
      "type": "string",
      "description": "The contact's subscription date."
    },
    "unsubscriptionDate": {
      "type": "string",
      "description": "The contact's unsubscription date."
    },
    "bouncebackDate": {
      "type": "string",
      "description": "The contact's bounceback date."
    },
    "fieldValues": {
      "type": "array",
      "description": "Array containing <code>type</code> and <code>id</code> values for all of the contactFields associated with a given contact.",
      "items": {
        "$ref": "#/$defs/FieldValueRest20"
      }
    },
    "address1": {
      "type": "string",
      "description": "The contact's first address."
    },
    "address2": {
      "type": "string",
      "description": "The contact's second address."
    },
    "address3": {
      "type": "string",
      "description": "The contact's third address."
    },
    "city": {
      "type": "string",
      "description": "The contact's city."
    },
    "province": {
      "type": "string",
      "description": "The contact's province."
    },
    "postalCode": {
      "type": "string",
      "description": "The contact's postal code."
    },
    "country": {
      "type": "string",
      "description": "The contact's country."
    },
    "businessPhone": {
      "type": "string",
      "description": "The contact's business phone number."
    },
    "mobilePhone": {
      "type": "string",
      "description": "The contact's mobile phone number."
    },
    "fax": {
      "type": "string",
      "description": "The contact's fax number."
    },
    "salesPerson": {
      "type": "string",
      "description": "The contact's account representative."
    },
    "stepEntryTime": {
      "type": "string",
      "description": "The time the contact was added to a step. This is a read-only property. This property can only be retrieved when a <code>stepid</code> is provided."
    },
    "nextEvaluationTime": {
      "type": "string",
      "description": "The time when the contact is scheduled to be processed. This is a read-only property.  This property can only be retrieved when a <code>stepid</code> is provided."
    },
    "createdSourceType": {
      "type": "string",
      "description": "Contact_Field_CreatedSourceType_Description"
    },
    "updatedSourceType": {
      "type": "string",
      "description": "Contact_Field_UpdatedSourceType_Description"
    }
  },
  "$defs": {
    "FieldValueRest20": {
      "title": "FieldValue",
      "properties": {
        "type": {
          "type": "string",
          "description": "The asset's type in Eloqua. This is a read-only property."
        },
        "value": {
          "type": "string",
          "description": "The value to set the corresponding field id to. Date values must be submitted as a unix timestamp."
        },
        "id": {
          "type": "string",
          "readOnly": true,
          "description": "The id of the field to be set to the corresponding value."
        },
        "name": {
          "type": "string",
          "description": "Name of the field value."
        }
      }
    }
  }
}