# Get a Report

**GET** `/reports/{reportId}`

Base URL: `https://api.uat.triple-a.io/api/fiat-payout/v1`

This endpoint returns the details of a single report, including any generated files.

## Authorization

- oauth2 (http, bearer)

## Path parameters

- `reportId` (string, required)

## Responses

### 200

OK

- `id` (string<uuid>)
- `type` (string)
- `status` ("pending" | "error" | "completed")
- `params` (object)
  The request parameters the report was generated with.
- `delivery_channel` ("email" | "webhook")
- `sent_at` (string<date-time>)
  When the report was delivered via the chosen delivery_channel. Null until delivery has succeeded (a completed report may still have a null sent_at).
- `files` (object[])
  - `id` (string<uuid>)
  - `type` (string)
  - `access_url` (string<uri>)
    URL to fetch the file (see the download endpoint).
- `created_at` (string<date-time>)
- `updated_at` (string<date-time>)

Example:

```json
{
  "id": "00000000-0000-0000-0000-000000000000",
  "type": "string",
  "status": "pending",
  "params": {},
  "delivery_channel": "email",
  "sent_at": "1970-01-01T00:00:00.000Z",
  "files": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "type": "string",
      "access_url": "string"
    }
  ],
  "created_at": "1970-01-01T00:00:00.000Z",
  "updated_at": "1970-01-01T00:00:00.000Z"
}
```

### 400

Error defines errors may be returned from the system.

- `message` (string)
- `errors` (object[])
  - `errorCode` (string)
  - `message` (string)

Example:

```json
{
  "message": "string",
  "errors": [
    {
      "errorCode": "string",
      "message": "string"
    }
  ]
}
```

### 404

Error defines errors may be returned from the system.

- `message` (string)
- `errors` (object[])
  - `errorCode` (string)
  - `message` (string)

Example:

```json
{
  "message": "string",
  "errors": [
    {
      "errorCode": "string",
      "message": "string"
    }
  ]
}
```

### 500

Error defines errors may be returned from the system.

- `message` (string)
- `errors` (object[])
  - `errorCode` (string)
  - `message` (string)

Example:

```json
{
  "message": "string",
  "errors": [
    {
      "errorCode": "string",
      "message": "string"
    }
  ]
}
```