openapi: 3.2.0 info: description: Marketo Engage Rest API version: '1.0' title: Marketo Engage Rest Bulk Import Leads API termsOfService: https://www.adobe.com/legal.html contact: name: Adobe Developer Relations url: https://experienceleague.adobe.com/en/docs/marketo-developer/marketo/home email: '' license: name: API License Agreement url: https://experienceleague.adobe.com/en/docs/marketo-developer/marketo/api-license servers: - url: https://localhost:8080/ tags: - name: Bulk Import Leads description: Bulk Import Leads Controller paths: /bulk/v1/leads.json: post: tags: - Bulk Import Leads summary: Import Leads description: 'Imports a file containing data records into the target instance. Required Permissions: Read-Write Lead' operationId: importLeadUsingPOST parameters: - name: format in: query description: Import file format. required: true schema: type: string enum: - csv - tsv - ssv - name: lookupField in: query description: 'Field to use for deduplication. Custom fields (string, email, integer), and the following field types are supported: id, cookies, email, twitterId, facebookId, linkedInId, sfdcAccountId, sfdcContactId, sfdcLeadId, sfdcLeadOwnerId, sfdcOpptyId. Default is email.
Note: You can use id for update only operations. ' required: false schema: type: string - name: partitionName in: query description: Name of the lead partition to import to. required: false schema: type: string - name: listId in: query description: Id of the static list to import into. required: false schema: type: integer format: int32 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/ResponseOfImportLeadResponse' requestBody: content: multipart/form-data: schema: type: object properties: file: type: string description: File containing the data records to import. format: binary required: - file /bulk/v1/leads/batch/{batchId}.json: get: tags: - Bulk Import Leads summary: Get Import Lead Status description: 'Returns the status of an import batch job. Required Permissions: Read-Write Lead' operationId: getImportLeadStatusUsingGET parameters: - name: batchId in: path description: Id of the import batch job. required: true schema: type: integer format: int32 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/ResponseOfImportLeadResponse' /bulk/v1/leads/batch/{batchId}/failures.json: get: tags: - Bulk Import Leads summary: Get Import Lead Failures description: 'Returns the list of failures for the import batch job. Required Permissions: Read-Write Lead' operationId: getImportLeadFailuresUsingGET parameters: - name: batchId in: path description: Id of the import batch job. required: true schema: type: integer format: int32 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/ObservableOfInputStreamContent' /bulk/v1/leads/batch/{batchId}/warnings.json: get: tags: - Bulk Import Leads summary: Get Import Lead Warnings description: 'Returns the list of warnings for the import batch job. Required Permissions: Read-Write Lead' operationId: getImportLeadWarningsUsingGET parameters: - name: batchId in: path description: Id of the import batch job. required: true schema: type: integer format: int32 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/ObservableOfInputStreamContent' components: schemas: Error: type: object required: - code - message properties: code: type: string description: Error code of the error. See full list of error codes here message: type: string description: Message describing the cause of the error ImportLeadResponse: type: object required: - batchId - numOfLeadsProcessed - status properties: batchId: type: integer format: int32 description: Unique integer id of the import batch importId: type: string message: type: string numOfLeadsProcessed: type: integer format: int32 description: Number of rows processed so far numOfRowsFailed: type: integer format: int32 description: Number of rows failed so far numOfRowsWithWarning: type: integer format: int32 description: Number of rows with a warning so far status: type: string description: Status of the batch description: Response containing import status information Warning: type: object required: - code - message properties: code: type: integer format: int32 description: Integer code of the warning message: type: string description: Message describing the warning ResponseOfImportLeadResponse: type: object required: - errors - requestId - result - success - warnings properties: errors: type: array description: Array of errors that occurred if the request was unsuccessful items: $ref: '#/components/schemas/Error' moreResult: type: boolean example: false description: Boolean indicating if there are more results in subsequent pages nextPageToken: type: string description: Paging token given if the result set exceeded the allowed batch size requestId: type: string description: Id of the request made result: type: array description: Array of results for individual records in the operation, may be empty items: $ref: '#/components/schemas/ImportLeadResponse' success: type: boolean example: false description: Whether the request succeeded warnings: type: array description: Array of warnings given for the operation items: $ref: '#/components/schemas/Warning' ObservableOfInputStreamContent: type: object