Extract Text (OCR)
Extract text from an uploaded image or PDF document instantly using Optical Character Recognition (OCR).
This is a convenience alias for GET /api/v1/fetch/{mediaId}?format=txt. The extracted text is cached in your storage bucket, making subsequent reads lightning fast and free.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Media asset ID (e.g. 2f928a3f-1d2a-4a2b).
Query Parameters
Unix timestamp (seconds) when signed URL expires. Required for signed folders.
HMAC-SHA256 signature calculated over assetId:expires using your project's URL Signing Secret. Required for signed folders.
Response
Extracted text
The response is of type string.
"Invoice #1234\nTotal: $50.00"