How to GET Pdf

Fetch the information of an already created PDF. Typically this is useful to poll until pdf.read_status == 'SUCCESS' (and not pdf.read_status == 'FAILED') before asking questions against the PDF.

Get PDF

get

Retrieve details of a PDF by its ID.

Authorizations
Path parameters
pdf-idstring · uuidRequired

The unique identifier of the PDF.

Responses
200
Details of the PDF.
application/json
get
GET /api/v1/pdf/{pdf-id} HTTP/1.1
Host: app.humata.ai
Authorization: Bearer YOUR_API_KEY
Accept: */*
{
  "id": "9294544b-2b6a-4c93-976c-d1910b8c1423",
  "name": "example.pdf",
  "organization_id": "fcf6c954-ba68-4e39-a7b5-960dc8274ec0",
  "created_at": "2024-12-05T20:18:53.289618+00:00",
  "updated_at": "2024-12-05T20:18:55.584786+00:00",
  "number_of_pages": 1,
  "folder_id": "6c702c82-bb8a-4274-8cb6-074e0bf78084",
  "read_status": "SUCCESS",
  "created_by": "07f5bfc7-72c9-40b7-8151-dcfc2f9613dc",
  "from_url": "text",
  "file_type": "PDF"
}

Last updated