Get user's document (SSN, Driving License etc.) by FileType in request

The GET /Files/document/{fileType} API method allows users to retrieve a previously uploaded document based on its type. This endpoint fetches the document associated with the specified fileType and returns it in base64-encoded format along with its content type.

Functionality:

  • Fetches a document of a specified type that was previously uploaded.
  • Returns the document in base64-encoded format along with its MIME type.

Path Parameter:

  • fileType (required): The type of the document to retrieve. The fileType should correspond to one of the predefined types such as UserIcon, DriverLicense, TaxFiling, etc.

Key Features:

  • Base64-encoded Document: Returns the document as a base64-encoded string for easy integration and display.
  • Content Type Information: Provides the MIME type (e.g., image/jpeg, application/pdf) to ensure correct handling and rendering of the document.
  • Flexible Document Retrieval: Allows retrieval of various document types previously uploaded, facilitating access to important user or transaction documents.

📘

This API is useful for retrieving and displaying documents linked to user accounts or transactions, supporting applications that require access to user-provided or system-stored documents.

Language
Credentials
Bearer
JWT
Click Try It! to start a request and see the response here!