---
updatedAt: 2026-04-21T08:57:19.000Z
agentTools:
  projectIndex: https://docs.mesh.complyadvantage.com/llms.txt
---

# Create a new export

Create a new export by selecting an export type and a start and end date. The available export names are CUSTOMER_SCREENING, CUSTOMER, SCREENING_AND_MONITORING_CASES, PROFILES, PAYMENT_SCREENING_CASES, TRANSACTION_MONITORING_CASES_AND_ALERTS, TRANSACTIONS.


You need the "View and download insights" permission to use this endpoint.

# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "exports_CreateExportPayload": {
        "properties": {
          "end_date": {
            "description": "Export data end date",
            "example": "2023-11-05T21:00:00.000Z",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "export_name": {
            "description": "Export name, created by customer",
            "example": "profiles-2023-q1-exports",
            "maxLength": 50,
            "minLength": 0,
            "type": "string"
          },
          "export_type_key": {
            "description": "Export type key",
            "example": "CUSTOMER_SCREENING",
            "minLength": 1,
            "type": "string"
          },
          "start_date": {
            "description": "Export data start date",
            "example": "2023-11-01T21:00:00.000Z",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "export_name",
          "export_type_key"
        ],
        "type": "object"
      },
      "exports_ExportItem": {
        "properties": {
          "created_at": {
            "description": "Export creation time",
            "example": "2023-12-11T09:30:03.975Z",
            "format": "date-time",
            "type": "string"
          },
          "export_name": {
            "description": "Export name, created by customer",
            "example": "profiles-2023-q1-exports",
            "type": "string"
          },
          "export_type_key": {
            "description": "Export type key",
            "example": "CUSTOMER_SCREENING",
            "type": "string"
          },
          "identifier": {
            "description": "Export type id",
            "example": "550e8400-e29b-41d4-a716-446655440000",
            "format": "uuid",
            "type": "string"
          },
          "status": {
            "description": "Export status",
            "example": "PENDING",
            "type": "string"
          },
          "window_end_time": {
            "description": "Export data end date",
            "example": "2023-04-01T00:00:00.000Z",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          },
          "window_start_time": {
            "description": "Export data start date",
            "example": "2023-01-01T00:00:00.000Z",
            "format": "date-time",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "created_at",
          "export_name",
          "export_type_key",
          "identifier",
          "status"
        ],
        "type": "object"
      },
      "exports_ProblemDetailErrorResponse": {
        "additionalProperties": true,
        "properties": {
          "detail": {
            "nullable": true,
            "type": "string"
          },
          "identifier": {
            "format": "uuid",
            "type": "string"
          },
          "instance": {
            "format": "uri",
            "nullable": true,
            "type": "string"
          },
          "status": {
            "format": "int32",
            "nullable": true,
            "type": "integer"
          },
          "timestamp": {
            "format": "date-time",
            "type": "string"
          },
          "title": {
            "nullable": true,
            "type": "string"
          },
          "type": {
            "format": "uri",
            "nullable": true,
            "type": "string"
          }
        },
        "required": [
          "identifier",
          "timestamp"
        ],
        "type": "object"
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "description": "HTTP Bearer Token Authentication",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "title": "Mesh API",
    "version": "v2.0"
  },
  "openapi": "3.0.3",
  "paths": {
    "/v2/exports": {
      "post": {
        "description": "Create a new export by selecting an export type and a start and end date. The available export names are CUSTOMER_SCREENING, CUSTOMER, SCREENING_AND_MONITORING_CASES, PROFILES, PAYMENT_SCREENING_CASES, TRANSACTION_MONITORING_CASES_AND_ALERTS, TRANSACTIONS.\n\n\nYou need the \"View and download insights\" permission to use this endpoint.",
        "operationId": "exportsServiceCreateExport",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/exports_CreateExportPayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/exports_ExportItem"
                }
              }
            },
            "description": "Export successfully created"
          },
          "400": {
            "content": {
              "application/json": {
                "examples": {
                  "Invalid export_type_key": {
                    "description": "Invalid export_type_key",
                    "value": {
                      "errors": [
                        {
                          "field": "export_type_key",
                          "reasons": [
                            {
                              "key": "EXPORT_TYPE_INVALID",
                              "message": "export_type_key must be one of the following: CUSTOMER_SCREENING, CUSTOMER, SCREENING_AND_MONITORING_CASES, PROFILES, PAYMENT_SCREENING_CASES, TRANSACTION_MONITORING_CASES_AND_ALERTS, TRANSACTIONS.",
                              "parameters": null
                            }
                          ],
                          "rejected": "invalid-export-type-key"
                        }
                      ],
                      "identifier": "dc9f5c1a-915e-4860-ba57-bed23494a6ee",
                      "instance": "https://docs.mesh.complyadvantage.com/reference/errors",
                      "status": 400,
                      "timestamp": "2024-01-30T14:26:25.998Z",
                      "title": "Invalid input",
                      "type": "about:blank"
                    }
                  },
                  "export_name cannot be blank": {
                    "description": "export_name cannot be blank",
                    "value": {
                      "errors": [
                        {
                          "field": "export_name",
                          "reasons": [
                            {
                              "key": "EXPORT_NAME_BLANK",
                              "message": "export_name field must not be blank.",
                              "parameters": null
                            }
                          ],
                          "rejected": ""
                        }
                      ],
                      "identifier": "dc9f5c1a-915e-4860-ba57-bed23494a6ee",
                      "instance": "https://docs.mesh.complyadvantage.com/reference/errors",
                      "status": 400,
                      "timestamp": "2024-01-30T14:26:25.998Z",
                      "title": "Invalid input",
                      "type": "about:blank"
                    }
                  },
                  "export_name cannot be over character limit": {
                    "description": "export_name cannot be over character limit",
                    "value": {
                      "errors": [
                        {
                          "field": "export_name",
                          "reasons": [
                            {
                              "key": "EXPORT_NAME_LENGTH",
                              "message": "export_name field must be a maximum of 50 characters.",
                              "parameters": null
                            }
                          ],
                          "rejected": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
                        }
                      ],
                      "identifier": "dc9f5c1a-915e-4860-ba57-bed23494a6ee",
                      "instance": "https://docs.mesh.complyadvantage.com/reference/errors",
                      "status": 400,
                      "timestamp": "2024-01-30T14:26:25.998Z",
                      "title": "Invalid input",
                      "type": "about:blank"
                    }
                  },
                  "start_date and end_date must be in ISO 8601 format": {
                    "description": "start_date and end_date must be in ISO 8601 format",
                    "value": {
                      "errors": [
                        {
                          "field": "start_date",
                          "reasons": [
                            {
                              "key": "DATE_INVALID",
                              "message": "Invalid date format, the date format must be ISO 8601.",
                              "parameters": null
                            }
                          ],
                          "rejected": "01-11-2023"
                        }
                      ],
                      "identifier": "dc9f5c1a-915e-4860-ba57-bed23494a6ee",
                      "instance": "https://docs.mesh.complyadvantage.com/reference/errors",
                      "status": 400,
                      "timestamp": "2024-01-30T14:26:25.998Z",
                      "title": "Invalid input",
                      "type": "about:blank"
                    }
                  },
                  "start_date cannot be after end_date": {
                    "description": "start_date cannot be after end_date",
                    "value": {
                      "errors": [
                        {
                          "field": "start_date",
                          "reasons": [
                            {
                              "key": "START_DATE_AFTER_END_DATE",
                              "message": "start_date must be before end_date.",
                              "parameters": null
                            }
                          ],
                          "rejected": ""
                        }
                      ],
                      "identifier": "dc9f5c1a-915e-4860-ba57-bed23494a6ee",
                      "instance": "https://docs.mesh.complyadvantage.com/reference/errors",
                      "status": 400,
                      "timestamp": "2024-01-30T14:26:25.998Z",
                      "title": "Invalid input",
                      "type": "about:blank"
                    }
                  },
                  "start_date cannot be in the future": {
                    "description": "start_date cannot be in the future",
                    "value": {
                      "errors": [
                        {
                          "field": "start_date",
                          "reasons": [
                            {
                              "key": "START_DATE_IN_THE_FUTURE",
                              "message": "start_date cannot be in the future.",
                              "parameters": null
                            }
                          ],
                          "rejected": "2030-01-01T00:00:00.000Z"
                        }
                      ],
                      "identifier": "dc9f5c1a-915e-4860-ba57-bed23494a6ee",
                      "instance": "https://docs.mesh.complyadvantage.com/reference/errors",
                      "status": 400,
                      "timestamp": "2030-01-30T14:26:25.998Z",
                      "title": "Invalid input",
                      "type": "about:blank"
                    }
                  },
                  "start_date cannot be over a year ago": {
                    "description": "start_date cannot be over a year ago",
                    "value": {
                      "errors": [
                        {
                          "field": "start_date",
                          "reasons": [
                            {
                              "key": "START_DATE_MORE_THAN_ONE_YEAR_AGO",
                              "message": "start_date cannot be more than one year ago.",
                              "parameters": null
                            }
                          ],
                          "rejected": "2021-01-01T00:00:00.000Z"
                        }
                      ],
                      "identifier": "dc9f5c1a-915e-4860-ba57-bed23494a6ee",
                      "instance": "https://docs.mesh.complyadvantage.com/reference/errors",
                      "status": 400,
                      "timestamp": "2024-01-30T14:26:25.998Z",
                      "title": "Invalid input",
                      "type": "about:blank"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/exports_ProblemDetailErrorResponse"
                }
              }
            },
            "description": "Bad request"
          }
        },
        "summary": "Create a new export",
        "tags": [
          "Exports"
        ]
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "servers": [
    {
      "description": "ComplyAdvantage Mesh API",
      "url": "https://api.mesh.complyadvantage.com"
    }
  ],
  "tags": [
    {
      "name": "Exports"
    }
  ]
}
```