0% found this document useful (0 votes)
3 views

Covalent Vaidate API

The document contains two cURL commands for making API requests. The first command retrieves a token using username and password authentication, while the second command validates a document with specific parameters and an authorization bearer token. Both requests use different content types and data formats.

Uploaded by

Hamza Siddiqui
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Covalent Vaidate API

The document contains two cURL commands for making API requests. The first command retrieves a token using username and password authentication, while the second command validates a document with specific parameters and an authorization bearer token. Both requests use different content types and data formats.

Uploaded by

Hamza Siddiqui
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

curl --location 'http://10.128.20.

130:89/Token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=password' \
--data-urlencode 'username=MCBi-DOC-API' \
--data-urlencode 'password=mC3!c0v@'

curl --location 'http://10.128.20.130:89/API/Validate' \


--header 'Content-Type: application/json' \
--header 'Authorization: bearer YU6LAlm5iwrHyNARhZF3FtT0VLKRn5lB0xi52ueHFZW1q5-
IruQNpxRlaiXEBQ3DG5ZgHFqSiBk18lqBM91Yq_pTQo4HsAk50BxbkYQRQFCeujBbWjJVNuu_9swQ2PELj0
eWpOZFtRr85bD22jsnp-0PYzYS1-
BTUn3y7JwGANWfOWBUiFNf9DjfSEq4q8x_dPX1kx0po6rx9XuNRNW6QumVlJNji53XUEdogkuRFwY' \
--data '{
"documentTypeId": 1,
"isPhtocopyallowed": true,
"cnicBack":
"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/wQAAwEB/
ksyWgAAAABJRU5ErkJggg=="}"
"cnicFront":
"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/wQAAwEB/
ksyWgAAAABJRU5ErkJggg=="}'

You might also like