# Finout

> Read virtual cost allocation tags, billing dimensions, anomaly alerts and CostGuard scans.

App · 9 actions. Web page: https://docs.lodol.com/docs/integrations/finout

## Actions

### Get a virtual tag

Get one virtual tag with its rules and access settings.

**Inputs**

- ID (`id`, text, required): The virtual tag ID.

**Outputs**

- `data` (object): The response from Finout.

**Example output**

```json
{
  "data": {
    "data": {
      "createdAt": "Wed Apr 15 2026 20:22:35 GMT+0000 (Greenwich Mean Time)",
      "createdBy": "alice@example.com",
      "defaultValue": "Untagged",
      "id": "f84c9ab0-dab2-4cf1-b7aa-f4a767d9724b",
      "name": "Environment",
      "rules": [
        {
          "filters": {
            "costCenter": "Azure",
            "displayName": "environment",
            "key": "environment",
            "operator": "exists",
            "type": "tag"
          },
          "to": {
            "costCenter": "Azure",
            "key": "environment",
            "type": "tag"
          }
        },
        {
          "filters": {
            "costCenter": "GCP",
            "displayName": "env",
            "key": "env",
            "operator": "exists",
            "type": "tag"
          },
          "to": "Prod"
        },
        {
          "filters": {
            "costCenter": "AWS",
            "displayName": "environment",
            "key": "environment",
            "operator": "exists",
            "type": "tag"
          },
          "to": {
            "costCenter": "AWS",
            "key": "environment",
            "type": "tag"
          }
        }
      ],
      "updatedAt": "Wed Apr 15 2026 20:22:35 GMT+0000 (Greenwich Mean Time)",
      "updatedBy": "alice@example.com"
    },
    "requestId": "2cfe3847-49b3-491e-8fcb-9cb8c7a08d88"
  }
}
```

### Get a virtual tag version

Get the rules and settings saved in a virtual tag version.

**Inputs**

- Tag (`tag_id`, text, required): The virtual tag ID.
- ID (`id`, text, required): The version ID.

**Outputs**

- `data` (object): The response from Finout.

**Example output**

```json
{
  "data": {
    "data": {
      "changeDescription": "doc demo 1",
      "createdAt": "2026-03-25T13:19:06.200Z",
      "createdBy": "sam.smith@finout.io",
      "id": "aba7efe5-de85-4f4b-bd89-0861d140c018",
      "isLive": false,
      "versionData": {
        "defaultValue": "Untagged",
        "rules": [
          {
            "filters": {
              "costCenter": "AWS",
              "displayName": "API Operation",
              "key": "operation",
              "operator": "oneOf",
              "type": "billing_enrichment",
              "value": [
                "AAAA"
              ]
            },
            "to": {
              "costCenter": "Virtual Tags",
              "key": "4f816fc1-6b3a-4902-b6b5-9759ba5ca83c",
              "type": "virtual_tag"
            }
          }
        ]
      }
    },
    "requestId": "c85f0423-7048-432b-a144-73f76c2e0512"
  }
}
```

### Get virtual tag metadata

Get the metadata stored against values of a virtual tag.

**Inputs**

- ID (`id`, text, required): The virtual tag ID.

**Outputs**

- `data` (object): The response from Finout.

**Example output**

```json
{
  "data": {
    "data": {
      "metadata": {
        "App Team": {
          "customMetadata": {
            "owner": "Dave"
          },
          "endpoints": [
            "770e4021-08f3-48d9-bdc1-ae9a8fd07cea"
          ],
          "groups": [
            "d704e672-b33c-4fda-b4fc-bde7a8774de4"
          ]
        },
        "Data Team": {
          "customMetadata": {
            "owner": "Dan"
          },
          "endpoints": [
            "4f806937-6f5b-478e-a81a-f4b2ece14bb1"
          ],
          "groups": [
            "f9e4a3f1-b8e4-4ff6-8307-e414dfc69ddb"
          ]
        },
        "DevOps Team": {
          "customMetadata": {
            "owner": "Sam"
          },
          "groups": [
            "4b6f659e-6a7a-4dc4-975c-30a641f0a42b"
          ]
        }
      }
    },
    "requestId": "103774e3-fee4-482a-9535-ddc5f09e9bee"
  }
}
```

### List anomaly alerts

List alerts detected during a time window of up to seven days.

**Inputs**

- From (`from`, date and time, required): Start of the time window.
- To (`to`, date and time, required): End of the time window.
- Type (`type`, list): Which alert types to include. One or more of: `cost`, `usage`, `unitEconomics`, `financialPlanRunRate`, `commitmentExpiration`.
- Page size (`page_size`, number): Maximum records on this page. From 1 to 100.
- Cursor (`cursor`, text): Cursor from the previous page.
- Sort direction (`sort_direction`, text): Order by time, oldest or newest first. One of: `asc`, `desc`.

**Outputs**

- `data` (object): The response from Finout.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "alertConfigurationID": "example-configuration",
        "data": {
          "actualCost": 240.0,
          "expectedCost": 200.0
        },
        "detectionTime": 1793491200000,
        "id": "example-alert",
        "name": "Daily spend",
        "type": "cost"
      }
    ],
    "pagination": {
      "hasMore": false,
      "nextCursor": ""
    },
    "requestId": "example-request"
  }
}
```

### List billing key values

List valid values for a key and cost center.

**Inputs**

- Cost center (`cost_center`, text, required): Cost center from List billing keys.
- Key (`key`, text, required): Key from List billing keys.
- Type (`type`, text): Key type from List billing keys. One of: `tag`, `billing_dimension` (Billing dimension), `resource`, `billing_enrichment` (Billing enrichment), `virtual_tag` (Virtual tag), `custom_cost` (Custom cost), `kubernetes_resource` (Kubernetes resource), `k8s_pod_label` (K8s pod label), `k8s_node_label` (K8s node label), `k8s_namespace` (K8s namespace).

**Outputs**

- `data` (object): The response from Finout.

**Example output**

```json
{
  "data": {
    "data": {
      "values": [
        "cold-fathom",
        "aged-reload",
        "lead-acre",
        "each-rate",
        "hard-nectarine"
      ]
    },
    "requestId": "d7f5c17e-2801-451e-a0bd-0bd459ced81c"
  }
}
```

### List billing keys

List keys available to filter cloud usage and spend.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Finout.

**Example output**

```json
{
  "data": {
    "data": {
      "keys": [
        {
          "costCenter": "Kubernetes",
          "displayName": "deployment",
          "key": "deployment",
          "types": [
            "k8s_namespace"
          ]
        },
        {
          "costCenter": "Oracle Cloud",
          "displayName": "SKU Unit Description",
          "key": "sku_unit_description",
          "types": [
            "tag"
          ]
        },
        {
          "costCenter": "Custom Cost",
          "displayName": "Key_1",
          "key": "customCost_Key_1",
          "types": [
            "custom_cost"
          ]
        }
      ]
    },
    "requestId": "cce9ed72-cd36-4848-8017-34c0e3d8c859"
  }
}
```

### List CostGuard scans

List the optimization scans available for your cloud accounts.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Finout.

**Example output**

```json
{
  "data": {
    "requestId": "example-request",
    "scans": [
      {
        "scanId": "example-scan",
        "scanMetadata": {
          "costCenter": "GCP",
          "type": "rightsizing"
        },
        "scanName": "VM rightsizing"
      }
    ]
  }
}
```

### List virtual tag versions

List the saved versions of a virtual tag, optionally within a time window.

**Inputs**

- Tag (`tag_id`, text, required): The virtual tag ID.
- From (`from`, date and time): Start of the time window.
- To (`to`, date and time): End of the time window.
- Page size (`page_size`, number): Maximum records on this page. From 1 to 100.
- Cursor (`cursor`, text): Cursor from the previous page.
- Sort direction (`sort_direction`, text): Order by time, oldest or newest first. One of: `asc`, `desc`.

**Outputs**

- `data` (object): The response from Finout.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "changeDescription": "Updated allocation rules",
        "createdAt": "2026-03-31T18:23:48.701Z",
        "createdBy": "sam.smith@finout.io",
        "id": "eb14e00a-97a8-4af3-84c5-f3dd07d847d8",
        "isLive": true
      },
      {
        "changeDescription": "Updated allocation rules",
        "createdAt": "2026-03-24T18:07:47.475Z",
        "createdBy": "sam.smith@finout.io",
        "id": "194f60db-7d2b-4599-b1c2-0fb58160a2d7",
        "isLive": false
      },
      {
        "changeDescription": "Duplicate from virtual tag \"AG/Team\"",
        "createdAt": "2026-03-24T16:59:49.766Z",
        "createdBy": "sam.smith@finout.io",
        "id": "36aea575-cb7f-445f-963e-9e68c4a3a46b",
        "isLive": false
      }
    ],
    "pagination": {
      "hasMore": false,
      "nextCursor": null
    },
    "requestId": "828a4454-5a41-4473-9fea-15ce7b3557f4"
  }
}
```

### List virtual tags

List virtual tags and their cost allocation rules.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Finout.

**Example output**

```json
{
  "data": {
    "data": {
      "virtualTags": [
        {
          "acl": {
            "read": {
              "groups": [],
              "type": "public",
              "users": []
            },
            "write": {
              "groups": [],
              "type": "private",
              "users": [
                "alice@example.com"
              ]
            }
          },
          "createdAt": "Wed Apr 15 2026 20:22:35 GMT+0000 (Greenwich Mean Time)",
          "createdBy": "alice@example.com",
          "defaultValue": "Untagged",
          "id": "f84c9ab0-dab2-4cf1-b7aa-f4a767d9724b",
          "name": "Environment",
          "rules": [
            {
              "filters": {
                "costCenter": "Azure",
                "displayName": "environment",
                "key": "environment",
                "operator": "exists",
                "type": "tag"
              },
              "to": {
                "costCenter": "Azure",
                "key": "environment",
                "type": "tag"
              }
            },
            {
              "filters": {
                "costCenter": "GCP",
                "displayName": "env",
                "key": "env",
                "operator": "exists",
                "type": "tag"
              },
              "to": "Prod"
            }
          ],
          "updatedAt": "Wed Apr 15 2026 20:22:35 GMT+0000 (Greenwich Mean Time)",
          "updatedBy": "alice@example.com"
        }
      ]
    },
    "requestId": "6dded699-9878-4e56-a462-5cfc334dbd5d"
  }
}
```
