> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apocor.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Confirm a direct KYC document upload

> Step 2 of direct document KYC. Call after a successful PUT to the presigned URL. Pass the `key` from step 1 as `s3Key`. Repeat for id_front, selfie, and id_back (id_back is not required for PASSPORT).



## OpenAPI

````yaml /openapi.json post /v1/applicants/{id}/kyc-direct/uploads/complete
openapi: 3.1.0
info:
  title: Apocor Core API
  version: 1.0.0
  description: >-
    The Apocor Cards API is the integration surface for issuing and managing
    cards. Authenticate with your Apocor API key, onboard applicants, run KYC,
    and issue virtual or physical cards — all through one white-labeled API.
  contact:
    name: Apocor Support
    url: https://apocor.ai
servers:
  - url: https://sandbox.apocor.ai
    description: Sandbox (live)
  - url: https://api.apocor.ai
    description: Production
  - url: http://localhost:4000
    description: Local development
security:
  - bearerAuth: []
tags:
  - name: Authentication
    description: Exchange Apocor API keys for a short-lived access token.
  - name: Applicants
    description: End-users and businesses, plus their identity verification (KYC).
  - name: KYC
    description: >-
      Identity verification settings, hosted sessions, BYOK share tokens, direct
      document upload, and issuer readiness.
    x-group: Identity verification (KYC)
  - name: Accounts
    description: Funding accounts that back issued cards.
  - name: Programs
    description: Card programs that define product type, currency, and BIN.
  - name: Cardholders
    description: Approved applicants turned into cardholders.
  - name: Cards
    description: Issue and manage virtual and physical cards.
  - name: Transactions
    description: Card transaction history from the issuer or local ledger.
  - name: Widget SDK
    description: >-
      Public Apocor-branded proxy for Method 1 Widget.js (no auth). PAN/CVV
      still render in issuer PCI iframes.
  - name: Card funding
    description: >-
      Fund prepaid cards with stablecoins: Apocor wallet service or
      bring-your-own (BYO) external wallet.
    x-group: Card funding
paths:
  /v1/applicants/{id}/kyc-direct/uploads/complete:
    post:
      tags:
        - Applicants
        - KYC
      summary: Confirm a direct KYC document upload
      description: >-
        Step 2 of direct document KYC. Call after a successful PUT to the
        presigned URL. Pass the `key` from step 1 as `s3Key`. Repeat for
        id_front, selfie, and id_back (id_back is not required for PASSPORT).
      operationId: createApplicantsByIdKycDirectUploadsComplete
      parameters:
        - $ref: '#/components/parameters/IdPath'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - category
                - s3Key
              properties:
                category:
                  type: string
                  enum:
                    - id_front
                    - id_back
                    - selfie
                s3Key:
                  type: string
                  description: The `key` returned by POST .../kyc-direct/uploads.
                contentType:
                  type: string
                fileName:
                  type: string
                size:
                  type: integer
            example:
              category: id_front
              s3Key: kyc-direct/org_abc/app_abc123/id_front/….jpg
              contentType: image/jpeg
              fileName: passport-front.jpg
      responses:
        '200':
          description: Documents recorded on the applicant.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      documents:
                        type: array
                        items:
                          type: object
                          properties:
                            category:
                              type: string
                            s3Key:
                              type: string
                            contentType:
                              type:
                                - string
                                - 'null'
                            fileName:
                              type:
                                - string
                                - 'null'
                            size:
                              type:
                                - integer
                                - 'null'
              example:
                data:
                  documents:
                    - category: id_front
                      s3Key: kyc-direct/org_abc/app_abc123/id_front/….jpg
                      contentType: image/jpeg
                      fileName: passport-front.jpg
        '400':
          $ref: '#/components/responses/BadRequest'
components:
  parameters:
    IdPath:
      name: id
      in: path
      required: true
      schema:
        type: string
      description: Resource identifier.
  responses:
    BadRequest:
      description: The request was invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: INVALID_REQUEST
              message: Applicant must be approved
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: Stable, machine-readable error code.
            message:
              type: string
              description: Human-readable explanation.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Bearer access token obtained from `POST /v1/oauth/token` using your
        Apocor API key.

````