Documents

Retrieve a document

Retrieve a document by its unique identifier for the authenticated team.

get/documents/{id}

Request

  • Base URL
    https://api.midday.ai
  • URL
    https://api.midday.ai/documents/{id}
  • Auth
    • OAuth 2
      Authorization code: https://app.midday.ai/oauth/authorize
      Token URL: https://api.midday.ai/oauth/token
    • or HTTP bearer

Path parameters

idstring nullable required

Response

Retrieve a document by its unique identifier

idstring required

Unique identifier for the document.

titlestring nullable required

Title of the document.

pathTokensstring[] required

Array of path tokens representing the document's location.

processingStatusstring required

Processing status of the document.

summarystring nullable required

Summary or extracted content from the document.

datestring nullable required

Date associated with the document (ISO 8601).

Example response

{
  "id": "doc_1234567890abcdef",
  "title": "Invoice April 2024",
  "pathTokens": [
    "invoices",
    "2024",
    "april",
    "invoice-123.pdf"
  ],
  "metadata": {
    "size": 204800,
    "mimetype": "application/pdf"
  },
  "processingStatus": "processed",
  "summary": "Invoice for April 2024, total $1,200.00",
  "date": "2024-04-30"
}

Changes

No recorded changes to this operation across all 1 revision of this API.