Skip to main content

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.

img Postman success

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:
  • Optionally, under Body, you can create the include_metadata key and set it to True if you want Unstract to return LLM cost and other debug information to you.
  • From the file input against the files key, select the Chase Freedom.pdf file from the testing 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.