> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wavynode.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get report download URL

> Retrieves a signed URL to download a specific compliance report.

`{reportId}` is the report file name (e.g. `12345.xml`), not an internal ID. Reports live in project storage under a path like `mx/<projectId>/2026-04/<userId>.xml` (México) or `co/<projectId>/2026-04/<userId>.txt` (Colombia).

Use the `projectId`, `countryCode`, and `period` query parameters so the full storage path can be reconstructed:

```bash theme={null}
curl -H "x-api-key: ApiKey wavy_your_api_key_here" \
  "https://api.wavynode.com/v1/reports/12345.xml?projectId=$PROJECT_ID&countryCode=MX&period=2026-04"
```

Alternatively, pass the full storage path with the `path` query parameter instead of using `{reportId}`:

```bash theme={null}
curl -H "x-api-key: ApiKey wavy_your_api_key_here" \
  "https://api.wavynode.com/v1/reports/download?path=mx/$PROJECT_ID/2026-04/12345.xml"
```

> [!NOTE]
>
> The signed URL is temporary (valid for 30 days). Use it to download the report file.


## OpenAPI

````yaml GET /reports/{reportId}
openapi: 3.1.0
info:
  title: Wavy Node API
  description: >-
    Compliance, fraud prevention, and risk analysis API for payment providers
    and cryptocurrency exchanges in Latin America.
  version: 1.0.0
  contact:
    name: Wavy Node Support
    email: support@wavynode.com
servers:
  - url: https://api.wavynode.com/v1
    description: Production
security:
  - apiKeyAuth: []
paths:
  /reports/{reportId}:
    get:
      tags:
        - Reports
      summary: Get report download URL
      description: Retrieves a signed URL to download a specific compliance report.
      operationId: getReportDownload
      parameters:
        - name: reportId
          in: path
          required: true
          description: >-
            The report file name (e.g. `12345.xml`), or any value when using the
            `path` query parameter
          schema:
            type: string
        - name: path
          in: query
          required: false
          description: >-
            Full storage path of the report (e.g. `mx/1/2026-04/12345.xml`).
            Takes precedence over `reportId`.
          schema:
            type: string
        - name: projectId
          in: query
          required: false
          description: >-
            Project ID, used to reconstruct the storage path when only a file
            name is provided
          schema:
            type: string
        - name: countryCode
          in: query
          required: false
          description: >-
            Country code (MX, CO), used to reconstruct the storage path when
            only a file name is provided
          schema:
            type: string
        - name: period
          in: query
          required: false
          description: >-
            Report period in YYYY-MM format, used to reconstruct the storage
            path when only a file name is provided
          schema:
            type: string
      responses:
        '200':
          description: Report download details
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data:
                    $ref: '#/components/schemas/ReportDetail'
        '404':
          description: Report not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    ReportDetail:
      type: object
      properties:
        name:
          type: string
          description: Report name
        signedUrl:
          type: string
          description: Signed URL to download the report
        period:
          type: string
          description: Report period (YYYY-MM)
    Error:
      type: object
      required:
        - error
        - message
      properties:
        error:
          type: string
          description: Error code
        message:
          type: string
          description: Error description
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        Enter the full value with the `ApiKey` prefix. Example: `ApiKey
        wavy_your-api-key`. The prefix is required for authentication.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.