Vault Report Download

The following endpoint is to be used for downloading

/vault/reports/download/:vaultAddress

METHOD: GET

This endpoint allows you to download comprehensive security and risk reports for specific vault addresses on the Xerberus platform. The report is delivered as a PDF file accessible via a secure, time-limited download link.

Make sure to include the required headers in your request:

  • x-api-key: Your API key.

  • x-user-email: Your email address associated with your account.

Payment Required

This is a paid endpoint using the x402 payment protocol:

  • Price: 49 USDC

  • Network: Base

Request Flow

  1. API Key Validation - Your API credentials are verified

  2. Vault Address Validation - The vault address format is checked and report existence is confirmed

  3. Payment Processing - Payment is processed via x402 protocol (only if validation passes)

  4. Report Delivery - A time-limited signed URL to the PDF report is returned

The API call is a two step process -

  1. Initial call made to the API to request the resource

The above request will respond the following with a status code 402

  1. A second call post payment with the X-PAYMENT header containing the signed payment payload.

This will give the final response

The download URL remains active for 5 minutes. Users are advised to initiate the download immediately after the link is issued.

Error Responses

Invalid Vault Address Format

Status Code: 400 Bad Request

Report Not Found

Status Code: 404 Not Found

Internal Server Error

Status Code: 500 Internal Server Error

Important

  • No charges for invalid requests: The validation middleware ensures that payment is only processed for valid vault addresses with existing reports

  • Time-limited access: The signed URL expires in 5 minutes for security purposes

  • One-time payment: Each request requires a separate payment

Last updated