Making an API call
Let's make an API call to our newly deployed API endpoint with Postman. This section assumes that you have the Postman client installed locally.
Of course, this is simply a basic POST API call which can be performed with the API testing tool of your choosing.
Making the API call in Postman:
- In Postman, open your workspace and click on the
Import
button, choose the Postman Collection you downloaded in the previous step from Unstract to import it. - You should not have a collection with 2 endpoints:
- An Extraction endpoint which returns extracted, structured JSON data given a credit card statement
- A Status Check endpoint which you can use to check the status of an extraction job
- Optionally, under
Body
, you can create theinclude_metadata
key and set it toTrue
if you want Unstract to return LLM cost and other debug information to you. - From the file input against the
files
key, select theChase Freedom.pdf
file from thetesting
folder in the downloaded sample files. - Click
Send
. This should post the document to your newly deployed API. After several seconds, you should see the data output in JSON format.
Congratulations! You've now deployed an API that can parse credit card statements!
Further Reading
For more information on API deployment and related APIs, refer to the API Deployment documentation.