Get User Document by File Type

Retrieve a previously uploaded user document (such as a driver's license or SSN document) by specifying its file type, returned as a base64-encoded string.

Get User Document by File Type

This endpoint retrieves a previously uploaded document associated with the authenticated user, identified by its file type. The document is returned in base64-encoded format along with its MIME content type, enabling downstream applications to decode and render it appropriately. Supported document types span identity documents, business records, financial statements, insurance documents, and card icons.

Endpoint

GET /Files/document

Authentication

Bearer token required. Obtain via:

POST https://api.banking.netevia.dev/api/auth/v2

Include in header: Authorization: Bearer {token}
Token lifetime: 10 minutes. Refresh via POST /api/auth/refresh.

When to use

Use this endpoint when your application needs to display or process a document that a user previously uploaded to their Netevia account — for example, showing a driver's license on file, retrieving a tax document, or accessing a business registration record. This is also useful for compliance workflows that require programmatic access to identity verification documents stored against a profile.

Query Parameters

ParameterTypeRequiredDescription
fileTypestring (enum)YesThe type of document to retrieve. Must match one of the predefined banking.models.filetype enum values (see allowed values below).

Allowed fileType values:

ValueDescription
UserIconProfile icon image for the user
TransactionIconIcon associated with a transaction
DriverLicenseDriver's license document
SocialSecurityNumberSSN document
TaxFilingTax filing document
OperatingAgreementBusiness operating agreement
ArticlesOfIncorporationArticles of incorporation
BusinessRegistrationBusiness registration document
BusinessLicenseBusiness license
TaxId_applicationTax ID application
PassportPassport document
RewardIntegrationImageImage used in rewards integration
Lease_AgreementLease agreement document
Utility_BillUtility bill
OtherAny other document type
CardIconSmallSmall card icon image
CardIconLargeLarge card icon image
UsMilitaryRecordOfServiceUS military record of service
StateUsMilitaryArmedForcesIdState-issued US military/armed forces ID
UsTaxFormUS tax form
W2W-2 tax form
Form1099Form 1099
PhoneBillPhone bill
CableBillCable bill
InternetBillInternet bill
BankStatementBank statement
Statement401k401(k) statement
BrokerageStatementBrokerage statement
LifeInsuranceLife insurance document
HealthInsuranceHealth insurance document
AutoInsuranceAuto insurance document
MunicipalIdMunicipal ID
StateIssuedIdState-issued ID
CertificateOfCitizenshipCertificate of citizenship
CourtOrderForLegalNameChangeCourt order for legal name change
StateUsPermanentResidentCardUS permanent resident card
StateConsularIdentificationCardConsular identification card
StateUsBorderCrossingCardUS border crossing card
StateUsEmploymentAuthorizationCardUS employment authorization card
StateTribalIdTribal ID
BirthCertificateBirth certificate
Form5498Form 5498
Form1098Form 1098
PayStubPay stub
MedicareCardMedicare card
CardIconLargeBackSideLarge card icon (back side)
BurnerCardIconSmallSmall burner card icon
BurnerCardIconLargeLarge burner card icon
BurnerCardIconLargeBackSideLarge burner card icon (back side)
SubscriptionIconSubscription icon image
StatementGeneral account statement

Response

200 OK

The document is returned as a base64-encoded payload along with its content type. The exact response structure depends on the document retrieved.

FieldTypeDescription
fileContentstringBase64-encoded content of the requested document
contentTypestringMIME type of the document (e.g., image/jpeg, application/pdf)
{
  "fileContent": "JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0ZpbHRlci9GbGF0ZURlY29kZT4+CnN0cmVhbQp4...",
  "contentType": "application/pdf"
}

Error Codes

CodeWhen it happens
400The fileType query parameter is missing, empty, or does not match a valid enum value
401Token missing, expired, or invalid
403Insufficient permissions to access the requested document
404No document of the specified fileType has been uploaded for the authenticated user
500Internal server error

Common Mistakes

  • Passing a fileType value that is not an exact case-sensitive match to the enum (e.g., driverLicense instead of DriverLicense) will result in a 400 error.
  • Attempting to retrieve a document type that was never uploaded for the user returns a 404 — ensure the upload step completed successfully before calling this endpoint.
  • Forgetting to decode the base64 fileContent before attempting to display or process the document.
  • Using the wrong MIME type for rendering — always use the returned contentType field to determine how to handle the file, rather than assuming a fixed format.

Related Endpoints

  • POST /Files/document — Upload a new document for the authenticated user by file type
  • DELETE /Files/document — Remove a previously uploaded document by file type
  • GET /Files — List all documents on file for the authenticated user

Example

curl -X GET "https://api.banking.netevia.dev/Files/document?fileType=DriverLicense" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Accept: application/json"
Query Params
string
enum
required
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses
200

Success

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
text/plain
application/json
text/json