Application

Create an application

Changed on

Report a final underwriting decision. The Application is created in its final status, approved, declined, or canceled, and the status cannot change afterward.

Each documents entry references a File you uploaded with POST /v2/files. Lead checks that each File exists, belongs to your program, and has a compliance document type. Send [] when you have no documents yet.

post/v2/applications

Request

  • Base URL
    https://api.sandbox.lead.bank
  • URL
    https://api.sandbox.lead.bank/v2/applications
  • Auth
    HTTP bearer

Headers

Idempotency-Keystring required

A unique key for this request, up to 255 characters. Retrying with the same key and body returns the original response without creating a second application. See Idempotency.

Request body

status'approved' | 'declined' | 'canceled' required

Terminal state of the application. Possible values: approved, declined, canceled.

product_namestring required

Your internal product name. It tells Lead which product the application opens a user account for if approved. Use a stable name.

metadataobject

Key-value pairs for your own use.

Example request

{
  "product_name": "Growth Business Credit Line",
  "entities": {
    "account_holders": [
      "entity_xyz123"
    ],
    "authorized_signers": [
      "entity_xyz123"
    ],
    "authorized_users": [
      "entity_xyz123"
    ]
  },
  "details": {
    "underwriting": {
      "underwriting_grade": "A2",
      "limit": 5000000,
      "max_limit": 10000000
    }
  },
  "documents": [
    {
      "file_id": "file_7RwQ2mK9pL4xT1vN8jS5",
      "timestamp": "2026-09-14T14:20:11Z",
      "version": "v2"
    }
  ]
}

Response

Application created.

idstring required

Unique identifier for the application. Prefixed with application_.

client_application_idstring

Your ID for applications you reported in an Application file. Lead omits it for applications created through the API.

status'approved' | 'declined' | 'canceled' | 'submitted' | 'under_review' required

The application's status. Applications created through the API are always approved, declined, or canceled, the statuses POST accepts.

submitted and under_review appear only on applications you reported in an Application file before a decision was made. They are read only: POST does not accept them, and a PATCH that includes status leaves it unchanged.

product_namestring required

Your internal product name.

metadataobject

Key-value pairs for your own use.

created_atstring date-time required

When the application was created. RFC 3339, UTC.

updated_atstring date-time required

When the application was last updated. RFC 3339, UTC.

Example response

{
  "id": "application_xyz123",
  "client_application_id": "APP-2024-001",
  "status": "approved",
  "product_name": "Growth Business Credit Line",
  "entities": {
    "account_holder_type": "commercial",
    "account_holders": [
      "entity_xyz123"
    ],
    "authorized_signers": [
      "entity_xyz123"
    ]
  },
  "details": {
    "underwriting": {
      "underwriting_grade": "A2",
      "limit": 5000000,
      "max_limit": 10000000
    }
  },
  "documents": [
    {
      "file_id": "file_7RwQ2mK9pL4xT1vN8jS5",
      "timestamp": "2026-09-14T14:20:11Z",
      "version": "v2"
    }
  ],
  "legacy_documents": [
    {
      "document_id": "loan_agreement_01_2026.pdf",
      "version": "v1"
    }
  ],
  "created_at": "2026-05-14T15:59:30Z",
  "updated_at": "2026-05-14T15:59:30Z"
}

Changes