Generate short-lived worker token

Generate short-lived tokens for client (e.g. Mobile App) to call FormX.ai directly

FormX.ai is commonly used to handle user-uploaded documents to speed up some applications. For example, a shopping mall might allow its customers to upload receipts from a mobile app to redeem spending for loyalty points directly. Similarly, an insurance company can allow users to upload medical claim receipts from their mobile apps to handle the claims procedure.

In certain use cases, developers may want to upload images directly from client devices (websites or mobile apps) to FormX. This improves processing time by avoiding the extra latency caused by first uploading the images to an application server and then forwarding them to FormX.ai.

Directly embedding a long-lived FormX worker token in client devices can lead to abuse. This API allows developers to generate a short-lived worker token from an application server. The website or mobile app can then use this temporary token to securely send documents directly to FormX.ai for processing.

How to use

  • Generate Token: Right before each extraction, call your server to get a fresh temporary token from FormX
  • Direct API Call: Immediately use the temporary token to call FormX APIs directly from the frontend

Notes

  • Tokens are valid for up to 3600 seconds (default: 30 minutes).
  • This API have a rate limit of 500 calls per minute.
  • You can only use the Access Token; Temporary tokens cannot generate new tokens
Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!