Disable file upload

The allowed capture sources to be used for a document scan can be configured to disable file uploads. The camera capture source allows the user to live capture an ID document. The file capture source allows the user to upload an already captured ID document. The setting is not required to send with the request. By default, a user is allowed both capture sources.

POST https://api.cm.com/id-scan/v1/transactions

Request headers

Content-Type: application/json
Authorization: Bearer GENERATED_TOKEN_HERE
{
    "tasks": [
        "document_scan"
    ],
    "settings": {
        "documentScan": {
            "captureSources": [
                "camera",
              	"file"
            ]
        }
    }
}

For a full list of all options see the API reference