Returns a list of activities from after a datetime given by the nextPageToken parameter. Also allows for filtering by lead static list membership, or by a list of up to 30 lead ids. Required Permissions: Read-Only Activity, Read-Write Activity
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "activityDate": "2019-08-24T14:15:22Z",
- "activityTypeId": 0,
- "attributes": [
- {
- "apiName": "string",
- "name": "string",
- "value": { }
}
], - "campaignId": 0,
- "id": 0,
- "leadId": 0,
- "marketoGUID": "string",
- "primaryAttributeValue": "string",
- "primaryAttributeValueId": 0
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns a list of leads deleted after a given datetime. Deletions greater than 14 days old may be pruned. Required Permissions: Read-Only Activity, Read-Write Activity
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "activityDate": "2019-08-24T14:15:22Z",
- "activityTypeId": 0,
- "attributes": [
- {
- "apiName": "string",
- "name": "string",
- "value": { }
}
], - "campaignId": 0,
- "id": 0,
- "leadId": 0,
- "marketoGUID": "string",
- "primaryAttributeValue": "string",
- "primaryAttributeValueId": 0
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Allows insertion of custom activities associated to given lead records. Requires provisioning of custom activity types to utilize. Required Permissions: Read-Write Activity
customActivityRequest
required | Array of objects (CustomActivity) List of custom activities to insert |
OK
{- "input": [
- {
- "activityDate": "string",
- "activityTypeId": 0,
- "apiName": "string",
- "attributes": [
- {
- "apiName": "string",
- "name": "string",
- "value": { }
}
], - "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "id": 0,
- "leadId": 0,
- "marketoGUID": "string",
- "primaryAttributeValue": "string",
- "status": "created"
}
]
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "activityDate": "string",
- "activityTypeId": 0,
- "apiName": "string",
- "attributes": [
- {
- "apiName": "string",
- "name": "string",
- "value": { }
}
], - "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "id": 0,
- "leadId": 0,
- "marketoGUID": "string",
- "primaryAttributeValue": "string",
- "status": "created"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Creates a new custom activity type draft in the target instance. Required Permissions: Read-Write Activity Metadata
customActivityTypeRequest
OK
{- "apiName": "string",
- "description": "string",
- "filterName": "string",
- "name": "string",
- "primaryAttribute": {
- "apiName": "string",
- "dataType": "string",
- "description": "string",
- "isPrimary": false,
- "name": "string"
}, - "triggerName": "string"
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "apiName": "string",
- "attributes": [
- {
- "apiName": "string",
- "dataType": "string",
- "description": "string",
- "isPrimary": false,
- "name": "string"
}
], - "createdAt": "string",
- "description": "string",
- "filterName": "string",
- "id": 0,
- "name": "string",
- "primaryAttribute": {
- "apiName": "string",
- "dataType": "string",
- "description": "string",
- "isPrimary": false,
- "name": "string"
}, - "status": "draft",
- "triggerName": "string",
- "updatedAt": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Updates the target custom activity type. All changes are applied to the draft version of the type. Required Permissions: Read-Write Activity Metadata
customActivityTypeRequest
OK
{- "apiName": "string",
- "description": "string",
- "filterName": "string",
- "name": "string",
- "primaryAttribute": {
- "apiName": "string",
- "dataType": "string",
- "description": "string",
- "isPrimary": false,
- "name": "string"
}, - "triggerName": "string"
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "apiName": "string",
- "attributes": [
- {
- "apiName": "string",
- "dataType": "string",
- "description": "string",
- "isPrimary": false,
- "name": "string"
}
], - "createdAt": "string",
- "description": "string",
- "filterName": "string",
- "id": 0,
- "name": "string",
- "primaryAttribute": {
- "apiName": "string",
- "dataType": "string",
- "description": "string",
- "isPrimary": false,
- "name": "string"
}, - "status": "draft",
- "triggerName": "string",
- "updatedAt": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Approves the current draft of the type, and makes it the live version. This will delete the current live version of the type. Required Permissions: Read-Write Activity Metadata
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "apiName": "string",
- "attributes": [
- {
- "apiName": "string",
- "dataType": "string",
- "description": "string",
- "isPrimary": false,
- "name": "string"
}
], - "createdAt": "string",
- "description": "string",
- "filterName": "string",
- "id": 0,
- "name": "string",
- "primaryAttribute": {
- "apiName": "string",
- "dataType": "string",
- "description": "string",
- "isPrimary": false,
- "name": "string"
}, - "status": "draft",
- "triggerName": "string",
- "updatedAt": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Adds activity attributes to the target type. These are added to the draft version of the type. Required Permissions: Read-Write Activity Metadata
OK
{- "attributes": [
- {
- "apiName": "string",
- "dataType": "string",
- "description": "string",
- "isPrimary": false,
- "name": "string"
}
]
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "apiName": "string",
- "attributes": [
- {
- "apiName": "string",
- "dataType": "string",
- "description": "string",
- "isPrimary": false,
- "name": "string"
}
], - "createdAt": "string",
- "description": "string",
- "filterName": "string",
- "id": 0,
- "name": "string",
- "primaryAttribute": {
- "apiName": "string",
- "dataType": "string",
- "description": "string",
- "isPrimary": false,
- "name": "string"
}, - "status": "draft",
- "triggerName": "string",
- "updatedAt": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Deletes the target attributes from the custom activity type draft. The apiName of each attribute is the primary key for the update. Required Permissions: Read-Write Activity Metadata
OK
{- "attributes": [
- {
- "apiName": "string",
- "dataType": "string",
- "description": "string",
- "isPrimary": false,
- "name": "string"
}
]
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "apiName": "string",
- "attributes": [
- {
- "apiName": "string",
- "dataType": "string",
- "description": "string",
- "isPrimary": false,
- "name": "string"
}
], - "createdAt": "string",
- "description": "string",
- "filterName": "string",
- "id": 0,
- "name": "string",
- "primaryAttribute": {
- "apiName": "string",
- "dataType": "string",
- "description": "string",
- "isPrimary": false,
- "name": "string"
}, - "status": "draft",
- "triggerName": "string",
- "updatedAt": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Updates the attributes of the custom activity type draft. The apiName of each attribute is the primary key for the update. Required Permissions: Read-Write Activity Metadata
OK
{- "attributes": [
- {
- "apiName": "string",
- "dataType": "string",
- "description": "string",
- "isPrimary": false,
- "name": "string"
}
]
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "apiName": "string",
- "attributes": [
- {
- "apiName": "string",
- "dataType": "string",
- "description": "string",
- "isPrimary": false,
- "name": "string"
}
], - "createdAt": "string",
- "description": "string",
- "filterName": "string",
- "id": 0,
- "name": "string",
- "primaryAttribute": {
- "apiName": "string",
- "dataType": "string",
- "description": "string",
- "isPrimary": false,
- "name": "string"
}, - "status": "draft",
- "triggerName": "string",
- "updatedAt": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Deletes the target custom activity type. The type must first be removed from use by any assets, such as triggers or filters. Required Permissions: Read-Write Activity Metadata
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "apiName": "string",
- "attributes": [
- {
- "apiName": "string",
- "dataType": "string",
- "description": "string",
- "isPrimary": false,
- "name": "string"
}
], - "createdAt": "string",
- "description": "string",
- "filterName": "string",
- "id": 0,
- "name": "string",
- "primaryAttribute": {
- "apiName": "string",
- "dataType": "string",
- "description": "string",
- "isPrimary": false,
- "name": "string"
}, - "status": "draft",
- "triggerName": "string",
- "updatedAt": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns metadata for a specific custom activity type. Required Permissions: Read-Only Activity Metadata, Read-Write Activity Metadata
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "apiName": "string",
- "attributes": [
- {
- "apiName": "string",
- "dataType": "string",
- "description": "string",
- "isPrimary": false,
- "name": "string"
}
], - "createdAt": "string",
- "description": "string",
- "filterName": "string",
- "id": 0,
- "name": "string",
- "primaryAttribute": {
- "apiName": "string",
- "dataType": "string",
- "description": "string",
- "isPrimary": false,
- "name": "string"
}, - "status": "draft",
- "triggerName": "string",
- "updatedAt": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Discards the current draft of the custom activity type. Required Permissions: Read-Write Activity Metadata
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "apiName": "string",
- "attributes": [
- {
- "apiName": "string",
- "dataType": "string",
- "description": "string",
- "isPrimary": false,
- "name": "string"
}
], - "createdAt": "string",
- "description": "string",
- "filterName": "string",
- "id": 0,
- "name": "string",
- "primaryAttribute": {
- "apiName": "string",
- "dataType": "string",
- "description": "string",
- "isPrimary": false,
- "name": "string"
}, - "status": "draft",
- "triggerName": "string",
- "updatedAt": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns metadata regarding custom activities provisioned in the target instance. Required Permissions: Read-Only Activity Metadata, Read-Write Activity Metadata
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "apiName": "string",
- "attributes": [
- {
- "apiName": "string",
- "dataType": "string",
- "description": "string",
- "isPrimary": false,
- "name": "string"
}
], - "createdAt": "string",
- "description": "string",
- "filterName": "string",
- "id": 0,
- "name": "string",
- "primaryAttribute": {
- "apiName": "string",
- "dataType": "string",
- "description": "string",
- "isPrimary": false,
- "name": "string"
}, - "status": "draft",
- "triggerName": "string",
- "updatedAt": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns a list of Data Value Changes and New Lead activities after a given datetime. Required Permissions: Read-Only Activity, Read-Write Activity
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "activityDate": "2019-08-24T14:15:22Z",
- "activityTypeId": 0,
- "attributes": [
- {
- "apiName": "string",
- "name": "string",
- "value": { }
}
], - "campaignId": 0,
- "fields": [
- {
- "id": 0,
- "name": "string",
- "newValue": "string",
- "oldValue": "string"
}
], - "id": 0,
- "leadId": 0,
- "marketoGUID": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns a paging token for use in retrieving activities and data value changes. Required Permissions: Read-Only Activity, Read-Write Activity
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns a list of available activity types in the target instance, along with associated metadata of each type. Required Permissions: Read-Only Activity, Read-Write Activity
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "apiName": "string",
- "attributes": [
- {
- "apiName": "string",
- "dataType": "string",
- "name": "string"
}
], - "description": "string",
- "id": 0,
- "name": "string",
- "primaryAttribute": {
- "apiName": "string",
- "dataType": "string",
- "name": "string"
}
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns a list of export jobs that were created in the past 7 days. Required Permissions: Read-Only Activity
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "createdAt": "2019-08-24T14:15:22Z",
- "errorMsg": "string",
- "exportId": "string",
- "fileSize": 0,
- "fileChecksum": "string",
- "finishedAt": "2019-08-24T14:15:22Z",
- "format": "string",
- "numberOfRecords": 0,
- "queuedAt": "2019-08-24T14:15:22Z",
- "startedAt": "2019-08-24T14:15:22Z",
- "status": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Create export job for search criteria defined via "filter" parameter. Request returns the "exportId" which is passed as a parameter in subsequent calls to Bulk Export Activities endpoints. Use Enqueue Export Activity Job endpoint to queue the export job for processing. Use Get Export Activity Job Status endpoint to retrieve status of export job. Required Permissions: Read-Only Activity
exportActivityRequest
ColumnHeaderNames: A JSON object containing key-value pairs of field and column header names.
Example:"columnHeaderNames":{
"primaryAttributeValueId":"Attribute ID",
"primaryAttributeValue":"Attribute Value",
"attributes":"Secondary Attributes"
}
OK
{- "columnHeaderNames": {
- "name": "string",
- "value": "string"
}, - "fields": [
- "string"
], - "filter": {
- "activityTypeIds": [
- 0
], - "primaryAttributeValueIds": [
- 0
], - "primaryAttributeValues": [
- "string"
], - "createdAt": {
- "endAt": "string",
- "startAt": "string"
}
}, - "format": "string"
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "requestId": "string",
- "result": [
- {
- "createdAt": "2019-08-24T14:15:22Z",
- "errorMsg": "string",
- "exportId": "string",
- "fileSize": 0,
- "fileChecksum": "string",
- "finishedAt": "2019-08-24T14:15:22Z",
- "format": "string",
- "numberOfRecords": 0,
- "queuedAt": "2019-08-24T14:15:22Z",
- "startedAt": "2019-08-24T14:15:22Z",
- "status": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Cancel export job. Required Permissions: Read-Only Activity
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "requestId": "string",
- "result": [
- {
- "createdAt": "2019-08-24T14:15:22Z",
- "errorMsg": "string",
- "exportId": "string",
- "fileSize": 0,
- "fileChecksum": "string",
- "finishedAt": "2019-08-24T14:15:22Z",
- "format": "string",
- "numberOfRecords": 0,
- "queuedAt": "2019-08-24T14:15:22Z",
- "startedAt": "2019-08-24T14:15:22Z",
- "status": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Enqueue export job. This will place export job in queue, and will start the job when computing resources become available. The export job must be in "Created" state. Use Get Export Activity Job Status endpoint to retrieve status of export job. Required Permissions: Read-Only Activity
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "requestId": "string",
- "result": [
- {
- "createdAt": "2019-08-24T14:15:22Z",
- "errorMsg": "string",
- "exportId": "string",
- "fileSize": 0,
- "fileChecksum": "string",
- "finishedAt": "2019-08-24T14:15:22Z",
- "format": "string",
- "numberOfRecords": 0,
- "queuedAt": "2019-08-24T14:15:22Z",
- "startedAt": "2019-08-24T14:15:22Z",
- "status": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns the file content of an export job. The export job must be in "Completed" state. Use Get Export Activity Job Status endpoint to retrieve status of export job. Required Permissions: Read-Only Activity
The file format is specified by calling the Create Export Activity Job endpoint. The following is an example of the default file format ("CSV"). Note that the "attributes" field is formatted as JSON.marketoGUID,leadId,activityDate,activityTypeId,campaignId,primaryAttributeValueId,primaryAttributeValue, attributes
122323,6,2013-09-26T06:56:35+0000,12,11,6,Owyliphys Iledil,[{"name":"Source Type","value":"Web page visit"}]
OK
{ }
Returns status of an export job. Job status is available for 30 days after Completed or Failed status was reached. Required Permissions: Read-Only Activity
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "requestId": "string",
- "result": [
- {
- "createdAt": "2019-08-24T14:15:22Z",
- "errorMsg": "string",
- "exportId": "string",
- "fileSize": 0,
- "fileChecksum": "string",
- "finishedAt": "2019-08-24T14:15:22Z",
- "format": "string",
- "numberOfRecords": 0,
- "queuedAt": "2019-08-24T14:15:22Z",
- "startedAt": "2019-08-24T14:15:22Z",
- "status": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns a list of export jobs that were created in the past 7 days. Required Permissions: Read-Only Custom Object
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "createdAt": "2019-08-24T14:15:22Z",
- "errorMsg": "string",
- "exportId": "string",
- "fileSize": 0,
- "fileChecksum": "string",
- "finishedAt": "2019-08-24T14:15:22Z",
- "format": "string",
- "numberOfRecords": 0,
- "queuedAt": "2019-08-24T14:15:22Z",
- "startedAt": "2019-08-24T14:15:22Z",
- "status": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Create export job for search criteria defined via "filter" parameter. Request returns the "exportId" which is passed as a parameter in subsequent calls to Bulk Export Custom Object endpoints. Use Enqueue Export Custom Object Job endpoint to queue the export job for processing. Use Get Export Custom Object Job Status endpoint to retrieve status of export job. Required Permissions: Read-Only Custom Object
exportCustomObjectRequest
ColumnHeaderNames: A JSON object containing key-value pairs of custom object attributes and column header names.
Example:"columnHeaderNames":{
"attrName1":"value1",
"attrName2":"value2",
"attrName3":"value3"
}
OK
{- "columnHeaderNames": {
- "name": "string",
- "value": "string"
}, - "fields": [
- "string"
], - "filter": {
- "updatedAt": {
- "endAt": "string",
- "startAt": "string"
}, - "smartListId": 0,
- "smartListName": "string",
- "staticListId": 0,
- "staticListName": "string"
}, - "format": "string"
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "requestId": "string",
- "result": [
- {
- "createdAt": "2019-08-24T14:15:22Z",
- "errorMsg": "string",
- "exportId": "string",
- "fileSize": 0,
- "fileChecksum": "string",
- "finishedAt": "2019-08-24T14:15:22Z",
- "format": "string",
- "numberOfRecords": 0,
- "queuedAt": "2019-08-24T14:15:22Z",
- "startedAt": "2019-08-24T14:15:22Z",
- "status": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Cancel export job. Required Permissions: Read-Only Custom Object
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "requestId": "string",
- "result": [
- {
- "createdAt": "2019-08-24T14:15:22Z",
- "errorMsg": "string",
- "exportId": "string",
- "fileSize": 0,
- "fileChecksum": "string",
- "finishedAt": "2019-08-24T14:15:22Z",
- "format": "string",
- "numberOfRecords": 0,
- "queuedAt": "2019-08-24T14:15:22Z",
- "startedAt": "2019-08-24T14:15:22Z",
- "status": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Enqueue export job. This will place export job in queue, and will start the job when computing resources become available. The export job must be in "Created" state. Use Get Export Custom Object Job Status endpoint to retrieve status of export job. Required Permissions: Read-Only Custom Object
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "requestId": "string",
- "result": [
- {
- "createdAt": "2019-08-24T14:15:22Z",
- "errorMsg": "string",
- "exportId": "string",
- "fileSize": 0,
- "fileChecksum": "string",
- "finishedAt": "2019-08-24T14:15:22Z",
- "format": "string",
- "numberOfRecords": 0,
- "queuedAt": "2019-08-24T14:15:22Z",
- "startedAt": "2019-08-24T14:15:22Z",
- "status": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns the file content of an export job. The export job must be in "Completed" state. Use Get Export Custom Object Job Status endpoint to retrieve status of export job. Required Permissions: Read-Only Custom Object
The file format is specified by calling the Create Export Custom Object Job endpoint. The following is an example of the default file format ("CSV").leadId,marketoGUID,itemName
11,c93f0494-bbd9-44e8-9c0e-dae9b525073f,Hoka One One Mach 4
OK
{ }
Returns status of an export job. Job status is available for 30 days after Completed or Failed status was reached. Required Permissions: Read-Only Custom Object
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "requestId": "string",
- "result": [
- {
- "createdAt": "2019-08-24T14:15:22Z",
- "errorMsg": "string",
- "exportId": "string",
- "fileSize": 0,
- "fileChecksum": "string",
- "finishedAt": "2019-08-24T14:15:22Z",
- "format": "string",
- "numberOfRecords": 0,
- "queuedAt": "2019-08-24T14:15:22Z",
- "startedAt": "2019-08-24T14:15:22Z",
- "status": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns a list of export jobs that were created in the past 7 days. Required Permissions: Read-Only Lead
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "createdAt": "2019-08-24T14:15:22Z",
- "errorMsg": "string",
- "exportId": "string",
- "fileSize": 0,
- "fileChecksum": "string",
- "finishedAt": "2019-08-24T14:15:22Z",
- "format": "string",
- "numberOfRecords": 0,
- "queuedAt": "2019-08-24T14:15:22Z",
- "startedAt": "2019-08-24T14:15:22Z",
- "status": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Create export job for search criteria defined via "filter" parameter. Request returns the "exportId" which is passed as a parameter in subsequent calls to Bulk Export Leads endpoints. Use Enqueue Export Lead Job endpoint to queue the export job for processing. Use Get Export Lead Job Status endpoint to retrieve status of export job. Required Permissions: Read-Only Lead
exportLeadRequest
ColumnHeaderNames: A JSON object containing key-value pairs of field and column header names.
Example:"columnHeaderNames":{
"firstName":"First Name",
"lastName":"Last Name",
"email":"Email Address"
}
OK
{- "columnHeaderNames": {
- "name": "string",
- "value": "string"
}, - "fields": [
- "string"
], - "filter": {
- "createdAt": {
- "endAt": "string",
- "startAt": "string"
}, - "smartListId": 0,
- "smartListName": "string",
- "staticListId": 0,
- "staticListName": "string",
- "updatedAt": {
- "endAt": "string",
- "startAt": "string"
}
}, - "format": "string"
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "requestId": "string",
- "result": [
- {
- "createdAt": "2019-08-24T14:15:22Z",
- "errorMsg": "string",
- "exportId": "string",
- "fileSize": 0,
- "fileChecksum": "string",
- "finishedAt": "2019-08-24T14:15:22Z",
- "format": "string",
- "numberOfRecords": 0,
- "queuedAt": "2019-08-24T14:15:22Z",
- "startedAt": "2019-08-24T14:15:22Z",
- "status": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "requestId": "string",
- "result": [
- {
- "createdAt": "2019-08-24T14:15:22Z",
- "errorMsg": "string",
- "exportId": "string",
- "fileSize": 0,
- "fileChecksum": "string",
- "finishedAt": "2019-08-24T14:15:22Z",
- "format": "string",
- "numberOfRecords": 0,
- "queuedAt": "2019-08-24T14:15:22Z",
- "startedAt": "2019-08-24T14:15:22Z",
- "status": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Enqueue export job. This will place export job in queue, and will start the job when computing resources become available. The export job must be in "Created" state. Use Get Export Lead Job Status endpoint to retrieve status of export job. Required Permissions: Read-Only Lead
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "requestId": "string",
- "result": [
- {
- "createdAt": "2019-08-24T14:15:22Z",
- "errorMsg": "string",
- "exportId": "string",
- "fileSize": 0,
- "fileChecksum": "string",
- "finishedAt": "2019-08-24T14:15:22Z",
- "format": "string",
- "numberOfRecords": 0,
- "queuedAt": "2019-08-24T14:15:22Z",
- "startedAt": "2019-08-24T14:15:22Z",
- "status": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns the file content of an export job. The export job must be in "Completed" state. Use Get Export Lead Job Status endpoint to retrieve status of export job. Required Permissions: Read-Only Lead
The file format is specified by calling the Create Export Lead Job endpoint. The following is an example of the default file format ("CSV").firstName,lastName,email
Marvin,Gaye,marvin.gaye@motown.com
OK
{ }
Returns status of an export job. Job status is available for 30 days after Completed or Failed status was reached. Required Permissions: Read-Only Lead
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "requestId": "string",
- "result": [
- {
- "createdAt": "2019-08-24T14:15:22Z",
- "errorMsg": "string",
- "exportId": "string",
- "fileSize": 0,
- "fileChecksum": "string",
- "finishedAt": "2019-08-24T14:15:22Z",
- "format": "string",
- "numberOfRecords": 0,
- "queuedAt": "2019-08-24T14:15:22Z",
- "startedAt": "2019-08-24T14:15:22Z",
- "status": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns a list of export jobs that were created in the past 7 days. Required Permissions: Read-Only Lead
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "createdAt": "2019-08-24T14:15:22Z",
- "errorMsg": "string",
- "exportId": "string",
- "fileSize": 0,
- "fileChecksum": "string",
- "finishedAt": "2019-08-24T14:15:22Z",
- "format": "string",
- "numberOfRecords": 0,
- "queuedAt": "2019-08-24T14:15:22Z",
- "startedAt": "2019-08-24T14:15:22Z",
- "status": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Create export job for search criteria defined via "filter" parameter. Request returns the "exportId" which is passed as a parameter in subsequent calls to Bulk Export Program Members endpoints. Use Enqueue Export Program Member Job endpoint to queue the export job for processing. Use Get Export Program Member Job Status endpoint to retrieve status of export job. Required Permissions: Read-Only Lead
exportProgramMemberRequest
ColumnHeaderNames: A JSON object containing key-value pairs of field and column header names.
Example:"columnHeaderNames":{
"firstName":"First Name",
"lastName":"Last Name",
"email":"Email Address"
}
OK
{- "columnHeaderNames": {
- "name": "string",
- "value": "string"
}, - "fields": [
- "string"
], - "filter": {
- "programId": 0,
- "programIds": [
- 0
], - "isExhausted": true,
- "nurtureCadence": "paus",
- "statusNames": [
- "string"
], - "updatedAt": {
- "endAt": "string",
- "startAt": "string"
}
}, - "format": "string"
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "requestId": "string",
- "result": [
- {
- "createdAt": "2019-08-24T14:15:22Z",
- "errorMsg": "string",
- "exportId": "string",
- "fileSize": 0,
- "fileChecksum": "string",
- "finishedAt": "2019-08-24T14:15:22Z",
- "format": "string",
- "numberOfRecords": 0,
- "queuedAt": "2019-08-24T14:15:22Z",
- "startedAt": "2019-08-24T14:15:22Z",
- "status": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Cancel export job. Required Permissions: Read-Only Lead
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "requestId": "string",
- "result": [
- {
- "createdAt": "2019-08-24T14:15:22Z",
- "errorMsg": "string",
- "exportId": "string",
- "fileSize": 0,
- "fileChecksum": "string",
- "finishedAt": "2019-08-24T14:15:22Z",
- "format": "string",
- "numberOfRecords": 0,
- "queuedAt": "2019-08-24T14:15:22Z",
- "startedAt": "2019-08-24T14:15:22Z",
- "status": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Enqueue export job. This will place export job in queue, and will start the job when computing resources become available. The export job must be in "Created" state. Use Get Export Program Member Job Status endpoint to retrieve status of export job. Required Permissions: Read-Only Lead
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "requestId": "string",
- "result": [
- {
- "createdAt": "2019-08-24T14:15:22Z",
- "errorMsg": "string",
- "exportId": "string",
- "fileSize": 0,
- "fileChecksum": "string",
- "finishedAt": "2019-08-24T14:15:22Z",
- "format": "string",
- "numberOfRecords": 0,
- "queuedAt": "2019-08-24T14:15:22Z",
- "startedAt": "2019-08-24T14:15:22Z",
- "status": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns the file content of an export job. The export job must be in "Completed" state. Use Get Export Program Member Job Status endpoint to retrieve status of export job. Required Permissions: Read-Only Lead
The file format is specified by calling the Create Export Program Member Job endpoint. The following is an example of the default file format ("CSV").firstName,lastName,email
Marvin,Gaye,marvin.gaye@motown.com
OK
{ }
Returns status of an export job. Job status is available for 30 days after Completed or Failed status was reached. Required Permissions: Read-Only Lead
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "requestId": "string",
- "result": [
- {
- "createdAt": "2019-08-24T14:15:22Z",
- "errorMsg": "string",
- "exportId": "string",
- "fileSize": 0,
- "fileChecksum": "string",
- "finishedAt": "2019-08-24T14:15:22Z",
- "format": "string",
- "numberOfRecords": 0,
- "queuedAt": "2019-08-24T14:15:22Z",
- "startedAt": "2019-08-24T14:15:22Z",
- "status": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Imports a file containing data records into the target instance. Required Permissions: Read-Write Custom Object
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "batchId": 0,
- "importTime": "string",
- "message": "string",
- "numOfObjectsProcessed": 0,
- "numOfRowsFailed": 0,
- "numOfRowsWithWarning": 0,
- "objectApiName": "string",
- "operation": "string",
- "status": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns the status of an import batch job. Required Permissions: Read-Write Custom Object
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "batchId": 0,
- "importTime": "string",
- "message": "string",
- "numOfObjectsProcessed": 0,
- "numOfRowsFailed": 0,
- "numOfRowsWithWarning": 0,
- "objectApiName": "string",
- "operation": "string",
- "status": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Imports a file containing data records into the target instance. Required Permissions: Read-Write Lead
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "batchId": 0,
- "importId": "string",
- "message": "string",
- "numOfLeadsProcessed": 0,
- "numOfRowsFailed": 0,
- "numOfRowsWithWarning": 0,
- "status": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns the status of an import batch job. Required Permissions: Read-Write Lead
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "batchId": 0,
- "importId": "string",
- "message": "string",
- "numOfLeadsProcessed": 0,
- "numOfRowsFailed": 0,
- "numOfRowsWithWarning": 0,
- "status": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Imports a file containing data records into the target instance. Required Permissions: Read-Write Lead
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "requestId": "string",
- "result": [
- {
- "batchId": 0,
- "importId": "string",
- "status": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns the status of an import batch job. Required Permissions: Read-Write Lead
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "requestId": "string",
- "result": [
- {
- "batchId": 0,
- "importId": "string",
- "status": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns a list of campaign records. Required Permissions: Read-Only Campaigns, Read-Write Campaigns
Note: This endpoint has been superceded. Use Get Smart Campaigns endpoint instead.
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "active": false,
- "createdAt": "string",
- "description": "string",
- "id": 0,
- "name": "string",
- "programId": 0,
- "programName": "string",
- "type": "batch",
- "updatedAt": "string",
- "workspaceName": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns the record of a campaign by its id. Required Permissions: Read-Only Campaigns, Read-Write Campaigns
Note: This endpoint has been superceded. Use Get Smart Campaign by Id endpoint instead.
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "active": false,
- "createdAt": "string",
- "description": "string",
- "id": 0,
- "name": "string",
- "programId": 0,
- "programName": "string",
- "type": "batch",
- "updatedAt": "string",
- "workspaceName": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Remotely schedules a batch campaign to run at a given time. My tokens local to the campaign's parent program can be overridden for the run to customize content. When using the "cloneToProgramName" parameter described below, this endpoint is limited to 20 calls per day. Required Permissions: Execute Campaign
OK
{- "input": {
- "cloneToProgramName": "string",
- "runAt": "2019-08-24T14:15:22Z",
- "tokens": [
- {
- "name": "string",
- "value": "string"
}
]
}
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "active": false,
- "createdAt": "string",
- "description": "string",
- "id": 0,
- "name": "string",
- "programId": 0,
- "programName": "string",
- "type": "batch",
- "updatedAt": "string",
- "workspaceName": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Passes a set of leads to a trigger campaign to run through the campaign's flow. The designated campaign must have a Campaign is Requested: Web Service API trigger, and must be active. My tokens local to the campaign's parent program can be overridden for the run to customize content. A maximum of 100 leads are allowed per call. Required Permissions: Execute Campaign
OK
{- "input": {
- "leads": [
- {
- "id": 0
}
], - "tokens": [
- {
- "name": "string",
- "value": "string"
}
]
}
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "active": false,
- "createdAt": "string",
- "description": "string",
- "id": 0,
- "name": "string",
- "programId": 0,
- "programName": "string",
- "type": "batch",
- "updatedAt": "string",
- "workspaceName": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Retrieves company records from the destination instance based on the submitted filter. Required Permissions: Read-Only Company, Read-Write Company
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "id": 0,
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "seq": 0,
- "status": "created"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Allows inserting, updating, or upserting of company records into Marketo. Required Permissions: Read-Write Company
syncCompanyRequest
OK
{- "action": "createOnly",
- "dedupeBy": "string",
- "input": [
- {
- "externalCompanyId": "string",
- "id": 0,
- "company": "string"
}
]
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "id": 0,
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "seq": 0,
- "status": "created"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Deletes the included list of company records from the destination instance. Required Permissions: Read-Write Company
deleteCompanyRequest
OK
{- "deleteBy": "string",
- "input": [
- {
- "externalCompanyId": "string",
- "id": 0,
- "company": "string"
}
]
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "id": 0,
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "seq": 0,
- "status": "created"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns metadata about companies and the fields available for interaction via the API. Required Permissions: Read-Only Company, Read-Write Company
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "createdAt": "2019-08-24T14:15:22Z",
- "dedupeFields": [
- "string"
], - "description": "string",
- "displayName": "string",
- "pluralName": "string",
- "fields": [
- {
- "dataType": "string",
- "displayName": "string",
- "length": 0,
- "name": "string",
- "updateable": false,
- "crmManaged": false
}
], - "idField": "string",
- "apiName": "string",
- "relationships": [
- {
- "field": "string",
- "relatedTo": {
- "field": "string",
- "name": "string"
}, - "type": "string"
}
], - "searchableFields": [
- [
- "string"
]
], - "updatedAt": "2019-08-24T14:15:22Z",
- "state": "draft",
- "version": "draft"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Retrieves metadata for single company field. Required Permissions: Read-Write Schema Standard Field, Read-Write Schema Custom Field
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "displayName": "string",
- "name": "string",
- "description": "string",
- "dataType": "string",
- "length": 0,
- "isHidden": false,
- "isHtmlEncodingInEmail": false,
- "isSensitive": false,
- "isCustom": false,
- "isApiCreated": false
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Retrieves metadata for all company fields in the target instance. Required Permissions: Read-Write Schema Standard Field, Read-Write Schema Custom Field
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "displayName": "string",
- "name": "string",
- "description": "string",
- "dataType": "string",
- "length": 0,
- "isHidden": false,
- "isHtmlEncodingInEmail": false,
- "isSensitive": false,
- "isCustom": false,
- "isApiCreated": false
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns a list of Custom Object types available in the target instance, along with id and deduplication information for each type. Required Permissions: Read-Only Custom Object, Read-Write Custom Object
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "createdAt": "2019-08-24T14:15:22Z",
- "dedupeFields": [
- "string"
], - "description": "string",
- "displayName": "string",
- "pluralName": "string",
- "fields": [
- {
- "dataType": "string",
- "displayName": "string",
- "length": 0,
- "name": "string",
- "updateable": false,
- "crmManaged": false
}
], - "idField": "string",
- "apiName": "string",
- "relationships": [
- {
- "field": "string",
- "relatedTo": {
- "field": "string",
- "name": "string"
}, - "type": "string"
}
], - "searchableFields": [
- [
- "string"
]
], - "updatedAt": "2019-08-24T14:15:22Z",
- "state": "draft",
- "version": "draft"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Retrieves a list of custom objects records based on filter and set of values. There are two unique types of requests for this endpoint: one is executed normally using a GET with URL parameters, the other is by passing a JSON object in the body of a POST and specifying _method=GET in the querystring. The latter is used when dedupeFields attribute has more than one field, which is known as a "compound key". Required Permissions: Read-Only Custom Object, Read-Write Custom Object
Optional JSON request for retrieving custom objects with compound keys. Example:{
"filterType":"dedupeFields",
"fields":[
"marketoGuid",
"Bedrooms",
"yearBuilt"
],
"input":[
{
"mlsNum":"1962352",
"houseOwnerId":"42645756"
},
{
"mlsNum":"3962352",
"houseOwnerId":"62645756"
}
]
}
OK
{- "batchSize": 0,
- "fields": [
- "string"
], - "filterType": "string",
- "input": [
- {
- "marketoGUID": "string",
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "seq": 0
}
], - "nextPageToken": "string"
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "marketoGUID": "string",
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "seq": 0
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Inserts, updates, or upserts custom object records to the target instance. Required Permissions: Read-Write Custom Object
syncCustomObjectRequest
OK
{- "action": "createOnly",
- "dedupeBy": "string",
- "input": [
- {
- "marketoGUID": "string",
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "seq": 0
}
]
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "marketoGUID": "string",
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "seq": 0
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Deletes a given set of custom object records. Required Permissions: Read-Write Custom Object
deleteCustomObjectRequest
OK
{- "deleteBy": "string",
- "input": [
- {
- "marketoGUID": "string",
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "seq": 0
}
]
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "marketoGUID": "string",
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "seq": 0
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns metadata regarding a given custom object. Required Permissions: Read-Only Custom Object, Read-Write Custom Object
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "createdAt": "2019-08-24T14:15:22Z",
- "dedupeFields": [
- "string"
], - "description": "string",
- "displayName": "string",
- "pluralName": "string",
- "fields": [
- {
- "dataType": "string",
- "displayName": "string",
- "length": 0,
- "name": "string",
- "updateable": false,
- "crmManaged": false
}
], - "idField": "string",
- "apiName": "string",
- "relationships": [
- {
- "field": "string",
- "relatedTo": {
- "field": "string",
- "name": "string"
}, - "type": "string"
}
], - "searchableFields": [
- [
- "string"
]
], - "updatedAt": "2019-08-24T14:15:22Z",
- "state": "draft",
- "version": "draft"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns a list of Custom Object Types available in the target instance, along with id, deduplication, relationship, and field information for each type. Required Permissions: Read-Only Custom Object Type, Read-Write Custom Object Type
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "createdAt": "2019-08-24T14:15:22Z",
- "dedupeFields": [
- "string"
], - "description": "string",
- "displayName": "string",
- "pluralName": "string",
- "fields": [
- {
- "dataType": "string",
- "displayName": "string",
- "length": 0,
- "name": "string",
- "updateable": false,
- "crmManaged": false
}
], - "idField": "string",
- "apiName": "string",
- "relationships": [
- {
- "field": "string",
- "relatedTo": {
- "field": "string",
- "name": "string"
}, - "type": "string"
}
], - "searchableFields": [
- [
- "string"
]
], - "updatedAt": "2019-08-24T14:15:22Z",
- "state": "draft",
- "version": "draft"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Inserts, updates, or upserts custom object type record to the target instance. Required Permissions: Read-Write Custom Object Type
JSON object containing custom object type attributes
OK
{- "action": "createOnly",
- "displayName": "string",
- "apiName": "string",
- "pluralName": "string",
- "description": "string",
- "showInLeadDetail": true
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "requestId": "string",
- "result": [
- null
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Approves the current draft of the type, and makes it the live version. This will delete the current live version of the type. Required Permissions: Read-Write Custom Object Type
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "requestId": "string",
- "result": [
- null
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Discards the current draft of the custom object type. Required Permissions: Read-Write Custom Object Type
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "requestId": "string",
- "result": [
- null
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Deletes the target custom object type. The type must first be removed from use by any assets, such as triggers or filters. Required Permissions: Read-Write Custom Object Type
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "requestId": "string",
- "result": [
- null
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns metadata regarding a given custom object type (including relationships and fields). Required Permissions: Read-Only Custom Object Type, Read-Write Custom Object Type
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "createdAt": "2019-08-24T14:15:22Z",
- "dedupeFields": [
- "string"
], - "description": "string",
- "displayName": "string",
- "pluralName": "string",
- "fields": [
- {
- "dataType": "string",
- "displayName": "string",
- "length": 0,
- "name": "string",
- "updateable": false,
- "crmManaged": false
}
], - "idField": "string",
- "apiName": "string",
- "relationships": [
- {
- "field": "string",
- "relatedTo": {
- "field": "string",
- "name": "string"
}, - "type": "string"
}
], - "searchableFields": [
- [
- "string"
]
], - "updatedAt": "2019-08-24T14:15:22Z",
- "state": "draft",
- "version": "draft"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Adds fields to custom object type. Required Permissions: Read-Write Custom Object Type
OK
{- "input": [
- {
- "name": "string",
- "displayName": "string",
- "dataType": "string",
- "description": "string",
- "isDedupeField": true,
- "relatedTo": {
- "name": "string",
- "field": "string"
}
}
]
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "requestId": "string",
- "result": [
- null
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Deletes fields from custom object type. Required Permissions: Read-Write Custom Object Type
OK
{- "input": [
- {
- "name": "string"
}
]
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "requestId": "string",
- "result": [
- null
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Updates a field in custom object type. Required Permissions: Read-Write Custom Object Type
JSON object containing custom object type fields
OK
{- "name": "string",
- "displayName": "string",
- "dataType": "string",
- "description": "string",
- "isDedupeField": true,
- "relatedTo": {
- "name": "string",
- "field": "string"
}
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "requestId": "string",
- "result": [
- null
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns a list of permissible data types that are assigned to custom object fields. Required Permissions: Read-Only Custom Object Type, Read-Write Custom Object Type
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "requestId": "string",
- "result": [
- "string"
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns a list of linkable custom objects and their fields. Required Permissions: Read-Only Custom Object Type, Read-Write Custom Object Type
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "requestId": "string",
- "result": [
- {
- "name": "string",
- "displayName": "string",
- "fields": [
- {
- "name": "string",
- "displayName": "string",
- "dataType": "string"
}
]
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns a list of dependent assets for a custom object type, including their in-instance location. Required Permissions: Read-Only Custom Object Type, Read-Write Custom Object Type
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "requestId": "string",
- "result": [
- {
- "assetType": "string",
- "assetId": 0,
- "assetName": "string",
- "usedFields": [
- "string"
]
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Retrieves a single lead record through its Marketo id. Required Permissions: Read-Only Lead, Read-Write Lead
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "id": 0,
- "membership": {
- "acquiredBy": false,
- "isExhausted": false,
- "membershipDate": "string",
- "nurtureCadence": "string",
- "progressionStatus": "string",
- "reachedSuccess": false,
- "stream": "string"
}, - "reason": {
- "code": "string",
- "message": "string"
}, - "status": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns a list of up to 300 leads based on a list of values in a particular field. Required Permissions: Read-Only Lead, Read-Write Lead
filterType required | string The lead field to filter on. Any custom field (string, email, or integer types only), and any of the following fields are supported: cookies, email, facebookId, id, leadPartitionId, linkedInId, sfdcAccountId, sfdcContactId, sfdcLeadId, sfdcLeadOwnerId, sfdcOpptyId, twitterId. |
filterValues required | Array of strings A comma-separated list of values to filter on in the specified fields. |
fields | Array of strings A comma-separated list of lead fields to return for each record |
batchSize | integer <int32> The batch size to return. The max and default value is 300. |
nextPageToken | string A token will be returned by this endpoint if the result set is greater than the batch size and can be passed in a subsequent call through this parameter. See Paging Tokens for more info. |
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "id": 0,
- "membership": {
- "acquiredBy": false,
- "isExhausted": false,
- "membershipDate": "string",
- "nurtureCadence": "string",
- "progressionStatus": "string",
- "reachedSuccess": false,
- "stream": "string"
}, - "reason": {
- "code": "string",
- "message": "string"
}, - "status": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Syncs a list of leads to the target instance. Required Permissions: Read-Write Lead
syncLeadRequest
OK
{- "action": "createOnly",
- "asyncProcessing": false,
- "input": [
- {
- "id": 0,
- "membership": {
- "acquiredBy": false,
- "isExhausted": false,
- "membershipDate": "string",
- "nurtureCadence": "string",
- "progressionStatus": "string",
- "reachedSuccess": false,
- "stream": "string"
}, - "reason": {
- "code": "string",
- "message": "string"
}, - "status": "string"
}
], - "lookupField": "string",
- "partitionName": "string"
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "id": 0,
- "membership": {
- "acquiredBy": false,
- "isExhausted": false,
- "membershipDate": "string",
- "nurtureCadence": "string",
- "progressionStatus": "string",
- "reachedSuccess": false,
- "stream": "string"
}, - "reason": {
- "code": "string",
- "message": "string"
}, - "status": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Delete a list of leads from the destination instance. Required Permissions: Read-Write Lead
OK
{- "input": [
- {
- "id": 0
}
]
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "id": 0,
- "membership": {
- "acquiredBy": false,
- "isExhausted": false,
- "membershipDate": "string",
- "nurtureCadence": "string",
- "progressionStatus": "string",
- "reachedSuccess": false,
- "stream": "string"
}, - "reason": {
- "code": "string",
- "message": "string"
}, - "status": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns metadata about lead objects in the target instance, including a list of all fields available for interaction via the APIs. Required Permissions: Read-Only Lead, Read-Write Lead
Note: This endpoint has been superceded. Use Describe Lead2 endpoint instead.
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "dataType": "string",
- "displayName": "string",
- "id": 0,
- "length": 0,
- "rest": {
- "name": "string",
- "readOnly": false
}, - "soap": {
- "name": "string",
- "readOnly": false
}
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns list of searchable fields on lead objects in the target instance. Required Permissions: Read-Only Lead, Read-Write Lead
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "name": "string",
- "searchableFields": [
- [
- "string"
]
], - "fields": [
- {
- "name": "string",
- "displayName": "string",
- "dataType": "string",
- "length": 0,
- "updateable": true,
- "crmManaged": true
}
]
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Retrieves metadata for single lead field. Required Permissions: Read-Write Schema Standard Field, Read-Write Schema Custom Field
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "displayName": "string",
- "name": "string",
- "description": "string",
- "dataType": "string",
- "length": 0,
- "isHidden": false,
- "isHtmlEncodingInEmail": false,
- "isSensitive": false,
- "isCustom": false,
- "isApiCreated": false
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Update metadata for a lead field in the target instance. See update rules here. Required Permissions: Read-Write Schema Standard Field, Read-Write Schema Custom Field
OK
{- "input": [
- {
- "displayName": "string",
- "description": "string",
- "isHidden": false,
- "isHtmlEncodingInEmail": false,
- "isSensitive": false
}
]
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "name": "string",
- "status": "created"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Retrieves metadata for all lead fields in the target instance. Required Permissions: Read-Write Schema Standard Field, Read-Write Schema Custom Field
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "displayName": "string",
- "name": "string",
- "description": "string",
- "dataType": "string",
- "length": 0,
- "isHidden": false,
- "isHtmlEncodingInEmail": false,
- "isSensitive": false,
- "isCustom": false,
- "isApiCreated": false
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Create lead fields in the target instance. Required Permissions: Read-Write Schema Custom Field
createLeadFieldRequest
required | Array of objects (CreateLeadField) List of lead fields for input |
OK
{- "input": [
- {
- "displayName": "string",
- "name": "string",
- "description": "string",
- "dataType": "boolean",
- "isHidden": false,
- "isHtmlEncodingInEmail": false,
- "isSensitive": false
}
]
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "name": "string",
- "status": "created"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns metadata about program member objects in the target instance, including a list of all fields available for interaction via the APIs. Required Permissions: Read-Only Lead, Read-Write Lead
Note: This endpoint has been superceded. Use Describe Program Member endpoint instead.
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "name": "string",
- "fields": [
- {
- "name": "string",
- "displayName": "string",
- "dataType": "string",
- "length": 0,
- "updateable": true,
- "crmManaged": true
}
]
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns a list of available partitions in the target instance. Required Permissions: Read-Only Lead, Read-Write Lead
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "description": "string",
- "id": 0,
- "name": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Updates the lead partition for a list of leads. Required Permissions: Read-Write Lead
updateLeadPartitionRequest
required | Array of objects (UpdateLeadPartition) List of leads for input |
OK
{- "input": [
- {
- "id": 0,
- "partitionName": "string"
}
]
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "id": 0,
- "membership": {
- "acquiredBy": false,
- "isExhausted": false,
- "membershipDate": "string",
- "nurtureCadence": "string",
- "progressionStatus": "string",
- "reachedSuccess": false,
- "stream": "string"
}, - "reason": {
- "code": "string",
- "message": "string"
}, - "status": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Retrieves a list of leads which are members of the designated program. Required Permissions: Read-Only Lead, Read-Write Lead
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "id": 0,
- "membership": {
- "acquiredBy": false,
- "isExhausted": false,
- "membershipDate": "string",
- "nurtureCadence": "string",
- "progressionStatus": "string",
- "reachedSuccess": false,
- "stream": "string"
}, - "reason": {
- "code": "string",
- "message": "string"
}, - "status": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Changes the program status of a list of leads in a target program. Only existing members of the program may have their status changed with this API. Required Permissions: Read-Write Lead
Note: This endpoint has been superceded. Use Sync Program Member Status endpoint instead.
changeLeadProgramStatusRequest
OK
{- "input": [
- {
- "id": 0
}
], - "status": "string"
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "id": 0,
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "status": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Upserts a lead and generates a Push Lead to Marketo activity. Required Permissions: Read-Write Lead
OK
{- "input": [
- {
- "id": 0,
- "reason": {
- "code": "string",
- "message": "string"
}, - "status": "string"
}
], - "lookupField": "string",
- "partitionName": "string",
- "programName": "string",
- "programStatus": "string",
- "reason": "string",
- "source": "string"
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "requestId": "string",
- "result": [
- {
- "id": 0,
- "membership": {
- "acquiredBy": false,
- "isExhausted": false,
- "membershipDate": "string",
- "nurtureCadence": "string",
- "progressionStatus": "string",
- "reachedSuccess": false,
- "stream": "string"
}, - "reason": {
- "code": "string",
- "message": "string"
}, - "status": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Upserts a lead and generates a "Fill out Form" activity which is associated back to program and/or campaign. Required Permissions: Read-Write Lead
submitFormRequest
OK
{- "input": [
- {
- "leadFormFields": {
- "email": "string"
}, - "visitorData": {
- "pageURL": "string",
- "queryString": "string",
- "leadClientIpAddress": "string",
- "userAgentString": "string"
}, - "cookie": "string"
}
], - "formId": 0,
- "programId": 0
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "requestId": "string",
- "result": [
- {
- "id": 0,
- "status": "created",
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
]
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Associates a known Marketo lead record to a munchkin cookie and its associated web acitvity history. Required Permissions: Read-Write Lead
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "nextPageToken": "string",
- "requestId": "string",
- "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Merges two or more known lead records into a single lead record. Required Permissions: Read-Write Lead
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "nextPageToken": "string",
- "requestId": "string",
- "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Query static list membership for one lead. Required Permissions: Read-Only Asset
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "createdAt": "string",
- "listId": 0,
- "updatedAt": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Query program membership for one lead. Required Permissions: Read-Only Asset
nextPageToken | string A token will be returned by this endpoint if the result set is greater than the batch size and can be passed in a subsequent call through this parameter. See Paging Tokens for more info. |
batchSize | integer <int32> Maximum number of records to return. Maximum and default is 300. |
earliestUpdatedAt | string Exclude programs prior to this date. Must be valid ISO-8601 string. See Datetime field type description. |
latestUpdatedAt | string Exclude programs after this date. Must be valid ISO-8601 string. See Datetime field type description. |
filterType | string Set to "programId" to filter a set of programs. |
filterValues | Array of strings Comma-separated list of program ids to match against |
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "id": 0,
- "acquiredBy": false,
- "isExhausted": false,
- "membershipDate": "string",
- "nurtureCadence": "string",
- "progressionStatus": "string",
- "reachedSuccess": false,
- "stream": "string",
- "updatedAt": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Query smart campaign membership for one lead. Required Permissions: Read-Only Asset
nextPageToken | string A token will be returned by this endpoint if the result set is greater than the batch size and can be passed in a subsequent call through this parameter. See Paging Tokens for more info. |
batchSize | integer <int32> Maximum number of records to return. Maximum and default is 300. |
earliestUpdatedAt | string Exclude smart campaigns prior to this date. Must be valid ISO-8601 string. See Datetime field type description. |
latestUpdatedAt | string Exclude smart campaigns after this date. Must be valid ISO-8601 string. See Datetime field type description. |
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "createdAt": "string",
- "smartCampaignId": 0,
- "updatedAt": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Retrieves the named accounts which are members of the given list. Required Permissions: Read-Only Named Account, Read-Write Named Account
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "marketoGUID": "string",
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "seq": 0,
- "status": "created"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Adds named account records to a named account list. Required Permissions: Read-Write Named Account
OK
{- "input": [
- {
- "marketoGUID": "string",
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "seq": 0,
- "status": "created"
}
]
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "marketoGUID": "string",
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "seq": 0,
- "status": "created"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Removes named account members from a named account list. Required Permissions: Read-Write Named Account
OK
{- "input": [
- {
- "marketoGUID": "string",
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "seq": 0,
- "status": "created"
}
]
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "marketoGUID": "string",
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "seq": 0,
- "status": "created"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Retrieves a list of named account list records based on the filter type and values given. Required Permissions: Read-Only Named Account List, Read-Write Named Account List
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "createdAt": "string",
- "marketoGUID": "string",
- "name": "string",
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "seq": 0,
- "status": "created",
- "type": "string",
- "updateable": false,
- "updatedAt": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Creates and/or updates named account list records. Required Permissions: Read-Write Named Account List
syncNamedAccountListRequest
OK
{- "action": "createOnly",
- "dedupeBy": "string",
- "input": [
- {
- "createdAt": "string",
- "marketoGUID": "string",
- "name": "string",
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "seq": 0,
- "status": "created",
- "type": "string",
- "updateable": false,
- "updatedAt": "string"
}
]
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "createdAt": "string",
- "marketoGUID": "string",
- "name": "string",
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "seq": 0,
- "status": "created",
- "type": "string",
- "updateable": false,
- "updatedAt": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Delete named account lists by dedupe fields, or by id field. Required Permissions: Read-Write Named Account List
OK
{- "deleteBy": "string",
- "input": [
- {
- "createdAt": "string",
- "marketoGUID": "string",
- "name": "string",
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "seq": 0,
- "status": "created",
- "type": "string",
- "updateable": false,
- "updatedAt": "string"
}
]
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "createdAt": "string",
- "marketoGUID": "string",
- "name": "string",
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "seq": 0,
- "status": "created",
- "type": "string",
- "updateable": false,
- "updatedAt": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Retrieves metadata for single named account field. Required Permissions: Read-Write Schema Standard Field, Read-Write Schema Custom Field
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "displayName": "string",
- "name": "string",
- "description": "string",
- "dataType": "string",
- "length": 0,
- "isHidden": false,
- "isHtmlEncodingInEmail": false,
- "isSensitive": false,
- "isCustom": false,
- "isApiCreated": false
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Retrieves metadata for all named account fields in the target instance. Required Permissions: Read-Write Schema Standard Field, Read-Write Schema Custom Field
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "displayName": "string",
- "name": "string",
- "description": "string",
- "dataType": "string",
- "length": 0,
- "isHidden": false,
- "isHtmlEncodingInEmail": false,
- "isSensitive": false,
- "isCustom": false,
- "isApiCreated": false
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Retrieves namedaccount records from the destination instance based on the submitted filter. Required Permissions: Read-Only Named Account, Read-Write Named Account
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "marketoGUID": "string",
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "seq": 0,
- "status": "created"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Allows inserts, updates, or upserts of namedaccounts to the target instance. Required Permissions: Read-Write Named Account
syncAccountRequest
OK
{- "action": "createOnly",
- "dedupeBy": "string",
- "input": [
- {
- "marketoGUID": "string",
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "seq": 0,
- "status": "created"
}
]
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "marketoGUID": "string",
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "seq": 0,
- "status": "created"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Deletes a list of namedaccount records from the target instance. Input records should have only one member, based on the value of 'dedupeBy'. Required Permissions: Read-Write Named Account
OK
{- "deleteBy": "string",
- "input": [
- {
- "marketoGUID": "string",
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "seq": 0,
- "status": "created"
}
]
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "marketoGUID": "string",
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "seq": 0,
- "status": "created"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns metadata about namedaccounts and the fields available for interaction via the API. Required Permissions: Read-Only Named Account, Read-Write Named Account
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "createdAt": "2019-08-24T14:15:22Z",
- "dedupeFields": [
- "string"
], - "description": "string",
- "displayName": "string",
- "pluralName": "string",
- "fields": [
- {
- "dataType": "string",
- "displayName": "string",
- "length": 0,
- "name": "string",
- "updateable": false,
- "crmManaged": false
}
], - "idField": "string",
- "apiName": "string",
- "relationships": [
- {
- "field": "string",
- "relatedTo": {
- "field": "string",
- "name": "string"
}, - "type": "string"
}
], - "searchableFields": [
- [
- "string"
]
], - "updatedAt": "2019-08-24T14:15:22Z",
- "state": "draft",
- "version": "draft"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Retrieves metadata for single opportunity field. Required Permissions: Read-Write Schema Standard Field, Read-Write Schema Custom Field
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "displayName": "string",
- "name": "string",
- "description": "string",
- "dataType": "string",
- "length": 0,
- "isHidden": false,
- "isHtmlEncodingInEmail": false,
- "isSensitive": false,
- "isCustom": false,
- "isApiCreated": false
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Retrieves metadata for all opportunity fields in the target instance. Required Permissions: Read-Write Schema Standard Field, Read-Write Schema Custom Field
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "displayName": "string",
- "name": "string",
- "description": "string",
- "dataType": "string",
- "length": 0,
- "isHidden": false,
- "isHtmlEncodingInEmail": false,
- "isSensitive": false,
- "isCustom": false,
- "isApiCreated": false
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns a list of opportunities based on a filter and set of values. Required Permissions: Read-Only Opportunity, Read-Write Named Opportunity
customObjectLookupRequest
OK
{- "batchSize": 0,
- "fields": [
- "string"
], - "filterType": "string",
- "input": [
- {
- "marketoGUID": "string",
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "seq": 0
}
], - "nextPageToken": "string"
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "marketoGUID": "string",
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "seq": 0
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Allows inserting, updating, or upserting of opportunity records into the target instance. Required Permissions: Read-Write Named Opportunity
syncCustomObjectRequest
OK
{- "action": "createOnly",
- "dedupeBy": "string",
- "input": [
- {
- "marketoGUID": "string",
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "seq": 0
}
]
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "marketoGUID": "string",
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "seq": 0
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Deletes a list of opportunity records from the target instance. Input records should only have one member, based on the value of 'dedupeBy'. Required Permissions: Read-Write Named Opportunity
OK
{- "deleteBy": "string",
- "input": [
- {
- "marketoGUID": "string",
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "seq": 0
}
]
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "marketoGUID": "string",
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "seq": 0
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns object and field metadata for Opportunity type records in the target instance. Required Permissions: Read-Only Opportunity, Read-Write Named Opportunity
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "createdAt": "2019-08-24T14:15:22Z",
- "dedupeFields": [
- "string"
], - "description": "string",
- "displayName": "string",
- "pluralName": "string",
- "fields": [
- {
- "dataType": "string",
- "displayName": "string",
- "length": 0,
- "name": "string",
- "updateable": false,
- "crmManaged": false
}
], - "idField": "string",
- "apiName": "string",
- "relationships": [
- {
- "field": "string",
- "relatedTo": {
- "field": "string",
- "name": "string"
}, - "type": "string"
}
], - "searchableFields": [
- [
- "string"
]
], - "updatedAt": "2019-08-24T14:15:22Z",
- "state": "draft",
- "version": "draft"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns a list of opportunity roles based on a filter and set of values. Required Permissions: Read-Only Opportunity, Read-Write Named Opportunity
Optional JSON request for retrieving opportunity roles with compound keys
OK
{- "batchSize": 0,
- "fields": [
- "string"
], - "filterType": "string",
- "input": [
- {
- "marketoGUID": "string",
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "seq": 0
}
], - "nextPageToken": "string"
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "marketoGUID": "string",
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "seq": 0
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Allows inserts, updates and upserts of Opportunity Role records in the target instance. Required Permissions: Read-Write Named Opportunity
syncCustomObjectRequest
OK
{- "action": "createOnly",
- "dedupeBy": "string",
- "input": [
- {
- "marketoGUID": "string",
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "seq": 0
}
]
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "marketoGUID": "string",
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "seq": 0
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Deletes a list of opportunities from the target instance. Required Permissions: Read-Write Named Opportunity
OK
{- "deleteBy": "string",
- "input": [
- {
- "marketoGUID": "string",
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "seq": 0
}
]
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "marketoGUID": "string",
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "seq": 0
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns object and field metadata for Opportunity Roles in the target instance. Required Permissions: Read-Only Opportunity, Read-Write Named Opportunity
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "createdAt": "2019-08-24T14:15:22Z",
- "dedupeFields": [
- "string"
], - "description": "string",
- "displayName": "string",
- "pluralName": "string",
- "fields": [
- {
- "dataType": "string",
- "displayName": "string",
- "length": 0,
- "name": "string",
- "updateable": false,
- "crmManaged": false
}
], - "idField": "string",
- "apiName": "string",
- "relationships": [
- {
- "field": "string",
- "relatedTo": {
- "field": "string",
- "name": "string"
}, - "type": "string"
}
], - "searchableFields": [
- [
- "string"
]
], - "updatedAt": "2019-08-24T14:15:22Z",
- "state": "draft",
- "version": "draft"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Retrieves metadata for single program member field. Required Permissions: Read-Write Schema Standard Field, Read-Write Schema Custom Field
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "displayName": "string",
- "name": "string",
- "description": "string",
- "dataType": "string",
- "length": 0,
- "isHidden": false,
- "isHtmlEncodingInEmail": false,
- "isSensitive": false,
- "isCustom": false,
- "isApiCreated": false
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Update metadata for a program member field in the target instance. See update rules here. Required Permissions: Read-Write Schema Standard Field, Read-Write Schema Custom Field
OK
{- "input": [
- {
- "displayName": "string",
- "description": "string",
- "isHidden": false,
- "isHtmlEncodingInEmail": false,
- "isSensitive": false
}
]
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "name": "string",
- "status": "created"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Retrieves metadata for all program member fields in the target instance. Required Permissions: Read-Write Schema Standard Field, Read-Write Schema Custom Field
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "displayName": "string",
- "name": "string",
- "description": "string",
- "dataType": "string",
- "length": 0,
- "isHidden": false,
- "isHtmlEncodingInEmail": false,
- "isSensitive": false,
- "isCustom": false,
- "isApiCreated": false
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Create program member fields in the target instance. Required Permissions: Read-Write Schema Custom Field
createLeadFieldRequest
required | Array of objects (CreateLeadField) List of lead fields for input |
OK
{- "input": [
- {
- "displayName": "string",
- "name": "string",
- "description": "string",
- "dataType": "boolean",
- "isHidden": false,
- "isHtmlEncodingInEmail": false,
- "isSensitive": false
}
]
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "name": "string",
- "status": "created"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Changes the program member status of a list of leads in a target program. If member is not part of the program, member is added to the program. Required Permissions: Read-Write Lead
OK
{- "statusName": "string",
- "input": [
- {
- "leadId": 0
}
]
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "status": "updated",
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "leadId": 0,
- "seq": 0
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns a list of up to 300 program members on a list of values in a particular field. If you specify a filterType that is a custom field, the custom field’s dataType must be either “string” or “integer”. If you specify a filterType other than “leadId”, a maximum of 100,000 program member records can be processed by the request. Required Permissions: Read-Only Lead, Read-Write Lead
filterType required | string The program member field to filter on. Any custom field (string or integer types only), "updatedAt", or any searchable field. Searchable fields can be obtained via the Describe Program Member endpoint. |
filterValues required | Array of strings A comma-separated list of values to filter on in the specified fields. |
startAt | string When using filterType=updatedAt, the start of date range filter (ISO 8601-format) |
endAt | string When using filterType=updatedAt, the end of date range filter (ISO 8601-format) |
fields | Array of strings A comma-separated list of lead fields to return for each record. |
batchSize | integer <int32> The batch size to return. The max and default value is 300. |
nextPageToken | string A token will be returned by this endpoint if the result set is greater than the batch size and can be passed in a subsequent call through this parameter. See Paging Tokens for more info. |
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "seq": 0,
- "leadId": 0,
- "reachedSuccess": false,
- "programId": 0,
- "acquiredBy": false,
- "membershipDate": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Changes the program member data of a list of leads in a target program. Only existing members of the program may have their data changed with this API. Required Permissions: Read-Write Lead
OK
{- "input": [
- {
- "leadId": 0,
- "{fieldApiName}": "string",
- "{fieldApiName2}": "string"
}
]
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "status": "updated",
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "leadId": 0,
- "seq": 0
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Delete a list of members from the destination instance. Required Permissions: Read-Write Lead
OK
{- "input": [
- {
- "leadId": 0
}
]
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "status": "deleted",
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "leadId": 0,
- "seq": 0
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns metadata about program member objects in the target instance, including a list of all fields available for interaction via the APIs. Required Permissions: Read-Only Lead, Read-Write Lead
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "name": "string",
- "description": "string",
- "createdAt": "string",
- "updatedAt": "string",
- "dedupeFields": [
- "string"
], - "searchableFields": [
- [
- "string"
]
], - "fields": [
- {
- "name": "string",
- "displayName": "string",
- "dataType": "string",
- "length": 0,
- "updateable": true,
- "crmManaged": true
}
]
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Retrieves salesperson records from the destination instance based on the submitted filter. Required Permissions: Read-Only Sales Person, Read-Write Sales Person
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "id": 0,
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "seq": 0,
- "status": "created"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Allows inserts, updates, or upserts of salespersons to the target instance. Required Permissions: Read-Write Sales Person
syncSalesPersonRequest
OK
{- "action": "createOnly",
- "dedupeBy": "string",
- "input": [
- {
- "id": 0,
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "seq": 0,
- "status": "created"
}
]
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "id": 0,
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "seq": 0,
- "status": "created"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Deletes a list of salesperson records from the target instance. Input records should have only one member, based on the value of 'dedupeBy'. Required Permissions: Read-Write Sales Person
OK
{- "deleteBy": "string",
- "input": [
- {
- "id": 0,
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "seq": 0,
- "status": "created"
}
]
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "id": 0,
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "seq": 0,
- "status": "created"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns metadata about salespersons and the fields available for interaction via the API. Required Permissions: Read-Only Sales Person, Read-Write Sales Person
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "createdAt": "2019-08-24T14:15:22Z",
- "dedupeFields": [
- "string"
], - "description": "string",
- "displayName": "string",
- "pluralName": "string",
- "fields": [
- {
- "dataType": "string",
- "displayName": "string",
- "length": 0,
- "name": "string",
- "updateable": false,
- "crmManaged": false
}
], - "idField": "string",
- "apiName": "string",
- "relationships": [
- {
- "field": "string",
- "relatedTo": {
- "field": "string",
- "name": "string"
}, - "type": "string"
}
], - "searchableFields": [
- [
- "string"
]
], - "updatedAt": "2019-08-24T14:15:22Z",
- "state": "draft",
- "version": "draft"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Retrieves person records which are members of the given static list. Required Permissions: Read-Only Lead, Read-Write Lead
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "id": 0,
- "membership": {
- "acquiredBy": false,
- "isExhausted": false,
- "membershipDate": "string",
- "nurtureCadence": "string",
- "progressionStatus": "string",
- "reachedSuccess": false,
- "stream": "string"
}, - "reason": {
- "code": "string",
- "message": "string"
}, - "status": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns a set of static list records based on given filter parameters. Required Permissions: Read-Only Lead, Read-Write Lead
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "createdAt": "string",
- "description": "string",
- "id": 0,
- "name": "string",
- "programName": "string",
- "updatedAt": "string",
- "workspaceName": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns a list record by its id. Required Permissions: Read-Only Lead, Read-Write Lead
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "createdAt": "string",
- "description": "string",
- "id": 0,
- "name": "string",
- "programName": "string",
- "updatedAt": "string",
- "workspaceName": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Retrieves person records which are members of the given static list. Required Permissions: Read-Only Lead, Read-Write Lead
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "id": 0,
- "membership": {
- "acquiredBy": false,
- "isExhausted": false,
- "membershipDate": "string",
- "nurtureCadence": "string",
- "progressionStatus": "string",
- "reachedSuccess": false,
- "stream": "string"
}, - "reason": {
- "code": "string",
- "message": "string"
}, - "status": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Adds a given set of person records to a target static list. There is a limit of 300 lead ids per request. Required Permissions: Read-Write Lead
Optional JSON request body for submitting leads
required | Array of objects (LeadInputData) List of leads for input |
OK
{- "input": [
- {
- "id": 0
}
]
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "id": 0,
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "status": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Removes a given set of person records from a target static list. Required Permissions: Read-Write Lead
OK
{- "input": [
- {
- "id": 0
}
]
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "id": 0,
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "status": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Checks if leads are members of a given static list. Required Permissions: Read-Write Lead
OK
{- "input": [
- {
- "id": 0
}
]
}
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "id": 0,
- "reasons": [
- {
- "code": "string",
- "message": "string"
}
], - "status": "string"
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Retrieves a count of each error type they have encountered in the current day. Required Permissions: None
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "date": "2019-08-24T14:15:22Z",
- "errors": [
- {
- "count": 0,
- "errorCode": "string"
}
], - "total": 0
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns a count of each error type they have encountered in the past 7 days. Required Permissions: None
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "date": "2019-08-24T14:15:22Z",
- "errors": [
- {
- "count": 0,
- "errorCode": "string"
}
], - "total": 0
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns the number of calls consumed for the day. Required Permissions: None
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "date": "2019-08-24T14:15:22Z",
- "total": 0,
- "users": [
- {
- "count": 0,
- "userId": "string"
}
]
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}
Returns the number of calls consumed in the past 7 days. Required Permissions: None
OK
{- "errors": [
- {
- "code": "string",
- "message": "string"
}
], - "moreResult": false,
- "nextPageToken": "string",
- "requestId": "string",
- "result": [
- {
- "date": "2019-08-24T14:15:22Z",
- "total": 0,
- "users": [
- {
- "count": 0,
- "userId": "string"
}
]
}
], - "success": false,
- "warnings": [
- {
- "code": 0,
- "message": "string"
}
]
}