Allowed capture sources

Configure the allowed capture sources to be used for a document scan. The camera capture source allows the user to live capture an ID document. The upload 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 only allowed to live capture an ID document with a camera.

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