cURL
curl --request POST \ --url https://api.treasuryprime.com/document \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --data '{ "fields": { "date_of_birth": "1980-03-15" }, "file_id": "file_567890", "name": "California Drivers License", "type": "drivers_license" }'
{ "bankdata": {}, "created_at": "2021-03-25T21:31:50Z", "fields": { "date_of_birth": "1980-03-15" }, "file_id": "file_567890", "id": "doc_123456", "name": "California Drivers License", "type": "drivers_license", "updated_at": "2021-03-25T21:31:50Z", "userdata": {} }
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
The document to create
The body is of type object.
object
The document created
The response is of type object.