How to use DIGI service - Javascript example

Step 1

Login or register your account at digi.costpocket.com

You will receive a one time usable link to your email, which will direct you to the DIGI Portal.

Step 2

In the DIGI Portal, find your first token (password). Copy this token, we will need it.

Step 3

Integrate DIGI into your code. You will need to:

  • Choose the API endpoint suitable to your needs from the documentation.
  • Use your token (password) in the headers as {"Authorization": "your-token-here"}
  • Pass in the document as formData with "image"

Here is an example with Javascript, using Axios:

Was this article helpful?
Related resources: