# Get extracted content

Return the extracted (unsigned) content of a previously uploaded document.
The returned bytes depend on the signature type:
* For **CAdES/XAdES**: returns the original document *without* the signature.
* For **PAdES**: returns the uploaded signed PDF (as described by the documentation UI behavior).

**Dependency**
This method must be invoked *after* running verification (`GET /documents/{document-id}/verify/report`),
because VOL does not extract content until signature verification is performed.
If invoked before verification, VOL returns `502 Bad Gateway` with an HTML error page.

Endpoint: GET /documents/{document-id}/content
Version: 1.0
Security: AuthToken

## Security:

  - `AuthToken` (unknown)
    apiKey in header Authorization

## Path parameters:

  - `document-id` (string, required)
    Unique document identifier returned by upload (hexadecimal)

## Response 200:

  - `200` (unknown)
    Extracted document content bytes

## Response 401:

  - `401` (unknown)
    Unauthorized (invalid or missing token)

## Response 401 fields (application/json):

  - `title` (string)

  - `description` (string)

  - `code` (string)

  - `message` (string)

## Response 404:

  - `404` (unknown)
    Resource not found (document expired/missing or wrong id)

## Response 404 fields (application/json):

  - `code` (string, required)
    Example: 404 Not Found

  - `description` (string)

## Response 502:

  - `502` (unknown)
    Upstream/service error (HTML body)

## Response 401 examples:

  - `invalidToken` (unknown)

## Response 404 examples:

  - `notFound` (unknown)

