Extract Cards
This guide is designed to help you understand how you can extract sensitive information out of images by leveraging Basis Theory secure environment to perform OCR.
The image to be used purposely has poor quality and uneven trim:
Key concepts in this guide:
Don't want to complete this guide? View the completed example application here.
Getting Started
To get started, you will need a Basis Theory account.
Next you will need a Management Application in order to provision the components in this guide.
Click here to create a Management Application or login to your Basis Theory account and create a new application from the Full Management Access template.
Save the API Key from the created Management Application as it will be used in this guide to provision the reactor.
Create a Private Application
We need a Private Application to create tokens and invoke our reactor:
curl "https://api.basistheory.com/applications" \
-H "BT-API-KEY: <API_KEY>" \
-H "Content-Type: application/json" \
-X "POST" \
-d '{
"name": "Extract Data App",
"type": "private",
"permissions": [
"token:create",
"token:use"
]
}'
Be sure to replace
<API_KEY> with the Management API Key you created in the Getting Started step.Save the API Key from the created Private Application as it will be used later in this guide.