# Create workspace kyc submit

Attest to the KYC file. What is sent is merged OVER what is stored, so an empty body attests to the draft that is already there. Refused with a 400 listing `missing_fields` while a required field is still blank. Submitting is what unlocks Lenders; an operator's later verification does not undo it, and a file already verified is not knocked back. Admin or owner.

Access class: `workspace:admin`.

## Endpoint

`POST /v1/workspace/kyc/submit`

## Request body

Content type: `application/json`.

```json
{
  "body": {
    "fields": {
      "authorized_signer_email": "string",
      "authorized_signer_name": "string",
      "authorized_signer_title": "string",
      "dba": "string",
      "entity_type": "string",
      "legal_name": "string",
      "notice_address": "string",
      "notice_email": "string",
      "tax_id_last4": "string"
    }
  },
  "params": {},
  "query": {}
}
```

## Responses

### 201

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "kycStatus": "string",
    "lendersUnlocked": true,
    "msaSigned": true,
    "msaVersion": "string",
    "unlocked": true,
    "workspace": {
      "agreement": {
        "signedByWorkspace": true,
        "version": "string"
      },
      "kycFields": {
        "authorized_signer_email": "string",
        "authorized_signer_name": "string",
        "authorized_signer_title": "string",
        "dba": "string",
        "entity_type": "string",
        "legal_name": "string",
        "notice_address": "string",
        "notice_email": "string",
        "tax_id_last4": "string"
      },
      "kycMissingFields": [
        "string"
      ],
      "kycStatus": "string"
    },
    "you": {
      "msaSigned": true,
      "msaVersion": "string",
      "needsKyc": true
    }
  }
}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
