---
agentTools:
  projectIndex: https://sekuritance.readme.io/llms.txt
---

# Create a new Due Diligence Configuration

Creates a new Due Diligence configuration for a merchant.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Sekuritance KYC & KYB Service",
    "description": "Handles all the KYC/KYB/AML related data.",
    "contact": {
      "name": "Sekuritance",
      "url": "https://www.sekuritance.com",
      "email": "info@sekuritance.com"
    },
    "license": {
      "name": "LICENSE",
      "url": "http://www.sekuritance.com/wp-content/uploads/2020/01/SekuritanceSiteLogo-e1578570790466.png"
    },
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://dev.sekuritance.io/verification"
    }
  ],
  "tags": [
    {
      "name": "Due Diligence Service",
      "description": "Set of API endpoints to perform Due Diligence of a company"
    }
  ],
  "paths": {
    "/v1/due-diligence": {
      "post": {
        "tags": [
          "Due Diligence Service"
        ],
        "summary": "Create a new Due Diligence Configuration",
        "description": "Creates a new Due Diligence configuration for a merchant.",
        "operationId": "createDueDiligenceConfig",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/DDConfigRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DDConfigResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "*/*": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponseSekuritanceErrorCode"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponseErrorCode"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponseCommonErrorCodes"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseSekuritanceErrorCode"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseSekuritanceErrorCode"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseErrorCode"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "ErrorResponseSekuritanceErrorCode": {
        "type": "object",
        "properties": {
          "errorCode": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "params": {
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        }
      },
      "ErrorResponseCommonErrorCodes": {
        "type": "object",
        "properties": {
          "errorCode": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "params": {
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        }
      },
      "ErrorResponseErrorCode": {
        "type": "object",
        "properties": {
          "errorCode": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "params": {
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        }
      },
      "CSS": {
        "type": "object",
        "properties": {
          "backgroundColor": {
            "$ref": "#/components/schemas/Gradient"
          }
        },
        "description": "The CSS configuration for the form."
      },
      "DDConfigRequest": {
        "required": [
          "companyName",
          "emailAddress",
          "formBaseUrl",
          "header",
          "merchantId"
        ],
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string"
          },
          "merchantId": {
            "type": "string",
            "description": "ID of the merchant this configuration is created for",
            "format": "uuid"
          },
          "emailAddress": {
            "type": "string",
            "description": "E-mail Address where the link for this form will be sent to."
          },
          "expiresAt": {
            "type": "string"
          },
          "callbackUrl": {
            "type": "string",
            "description": "Sends callbacks to this URL"
          },
          "formBaseUrl": {
            "type": "string"
          },
          "locale": {
            "type": "string"
          },
          "sendEmails": {
            "type": "boolean",
            "description": "Whether Sekuritance should handle sending of E-mails to external parties (such as participants) or whether this is going to be handled by the caller themselves."
          },
          "header": {
            "$ref": "#/components/schemas/Header"
          }
        }
      },
      "Gradient": {
        "required": [
          "degree",
          "end",
          "endAlpha",
          "start",
          "startAlpha"
        ],
        "type": "object",
        "properties": {
          "degree": {
            "type": "number",
            "description": "The degree of the gradient"
          },
          "start": {
            "pattern": "^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$",
            "type": "string",
            "description": "Starting color"
          },
          "startAlpha": {
            "type": "number",
            "description": "Starting color alpha"
          },
          "end": {
            "pattern": "^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$",
            "type": "string",
            "description": "Ending color"
          },
          "endAlpha": {
            "type": "number",
            "description": "Ending color alpha"
          }
        },
        "description": "Gradient "
      },
      "Header": {
        "required": [
          "image"
        ],
        "type": "object",
        "properties": {
          "image": {
            "type": "string",
            "format": "binary"
          },
          "css": {
            "$ref": "#/components/schemas/CSS"
          }
        },
        "description": "Form header details"
      },
      "DDConfigResponse": {
        "title": "Due Diligence Config Response",
        "required": [
          "companyName",
          "dueDiligenceId",
          "emailAddress",
          "formBaseUrl",
          "merchantId",
          "url"
        ],
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string"
          },
          "merchantId": {
            "type": "string",
            "description": "ID of the merchant this configuration is created for",
            "format": "uuid"
          },
          "emailAddress": {
            "type": "string",
            "description": "E-mail Address where the link for this form will be sent to."
          },
          "expiresAt": {
            "type": "string"
          },
          "callbackUrl": {
            "type": "string",
            "description": "Sends callbacks to this URL"
          },
          "formBaseUrl": {
            "type": "string"
          },
          "locale": {
            "type": "string"
          },
          "sendEmails": {
            "type": "boolean",
            "description": "Whether Sekuritance should handle sending of E-mails to external parties (such as participants) or whether this is going to be handled by the caller themselves."
          },
          "id": {
            "type": "string",
            "description": "Due Diligence Form Configuration Id",
            "format": "uuid"
          },
          "dueDiligenceId": {
            "type": "string",
            "description": "If the Due Diligence form has been initialised, we return the ID so that the merchant can continue the flow.",
            "format": "uuid"
          },
          "url": {
            "type": "string",
            "description": "The Due Diligence Form URL"
          },
          "createdAt": {
            "type": "string"
          },
          "header": {
            "$ref": "#/components/schemas/Header"
          },
          "enabledOptionalFields": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "WHITEPAPER",
                "TOKENOMICS",
                "COMPANY_MEMBERS"
              ]
            }
          }
        },
        "description": "DTO that is sent back when the configuration is requested."
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 97,
      "1": 17,
      "2": 9,
      "3": 223,
      "4": 221,
      "5": 122,
      "6": 226,
      "7": 0,
      "8": 108,
      "9": 33,
      "10": 92,
      "11": 216
    }
  }
}
```