---
updatedAt: 2026-06-03T11:10:53.000Z
agentTools:
  projectIndex: https://docs-us.thisisbud.com/llms.txt
---

# Retrieve Balances Actionable Insights

Generate balances actionable insights.

> 📘 Note:
>
> For more information about Actionable Insights, please refer to our [guide](https://docs-us.thisisbud.com/docs/actionable-insights).


# OpenAPI definition

````json
{
  "openapi": "3.0.3",
  "info": {
    "version": "1.0.0",
    "title": "Insights API",
    "contact": {
      "name": "API Support",
      "url": "https://www.thisisbud.com/support",
      "email": "contact@thisisbud.com"
    },
    "x-logo": {
      "url": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATAAAABuCAQAAAAKAYdLAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAB3RJTUUH4wQDDggcbXcx7wAABeJJREFUeNrt3W2IFVUcx/HvXRW1VdQedy1bZVfoYX0osVQyfSGElKbRA5oFIaIlhAkWUYm6gvqqDMHMoBeKlhayCCZC2AMRPay7aJrSZmauZhQqaj7t7u1Fi965987s7D1n7pk7/j73zX2Y85//mXt2Zu45Z2ZBREREREREREREREREREREREREREREREREREREREREREREREREROIiZSFGH+YxgsOs5U/X1bFiPDPpQT3bu1DmcaZyg+vErWpjD+s47zoN6Mte0qRJc4Iq18lYMJv2jvosD11mRUeJpD32UO7664BFGQl94DoZY704fbU2rQwKVWYwbc6bQlSPBaYbtMz4K7nP53lpGkK/q8+7MTxUmeEWtmJcGX+j5psmM0I3l9vCirKAV36OuE46QsbfaHL/9opnL9tcpxBf3V0nkAgzWMRj9HadhrH+3Gk7pBqYDZdY3oXfnHE2gc1U2gyoQ6Rk+pKZdgOqgYnXF7TYDGe3gcWgW85QH9cJxMAVm8HsNrBqhhV1U9g33XUCzo1gsM1wdhtYio8ZWsytYdksFrpOwbGhbLYb0PavyLs5wA+c9v28lRa+Zzt/+y5RwwKqaOCdgCjZRvEit/A1a7jou8xwJjOMAb7D+ylqqCmw1imeZ0oCBrv7Mzp+/QofFTDCdZG13Jw3Wi1nOpbZT9+QGUziUkeZ3T49z+P4pqCRuCkhM1jjfMwwqsdG182rsAaWJs0JxuWJ9knGEq+EzODHjDLTcj5NsbjgwehwDazm6vyL5D2MG5i7booKdjE25917M57XhoxUG1hmJUsjrmWtlVl18ZQ2DeCyH6ycT7kpIJ+wuQWVeZJXI69HcpsXHDQN4LajtZIlkcbvzWqn9St1R3nPNIT93wzt/MSZPO+nqKA65699Nos5FdHmgZkMzHnvIj9zLm9+Q7jd0nqP8VtkdSqWNppYxT+u08g+yW8OnKRXw4ac08hnPUscyvjkw5AZXM4os9jzyY6sdZ3h5YC++jLm0lrASf50T5krzEn0QbOLbB8in2FvwKfNPJczCXd0hLV7wPPqL8bybt691//aWWfhkPo2681PjZPDbgP7lYZOl1nNJs9rW4elXD2zfkK8wIFOy2w1XuuWyOpTkuw2sHOhlqrzvIqu59gbuYEdIcqcjSyb65SLX5EHOepgrbuKtJ6nHNQtxtx0U5xM8DoXMkez7K5xM7Tp4iS4WOvszvss5feSP9Fvo5EVnDDfHGJfpd157Y48xFRGmfaEaWcu/qqYZxpCDcxcqR8Mg9xlGkANzNz+BDcx4zEJNTBzv5gPCSeXTvJtmM+3PJqIKdNj6GE3pJsG5mIwOMp1ptnABgd1sq+G7ebnXZncHCKjG3+M1zpLTzMz7AZ00cBG5pmlFb3JmkQTSpPd21HZbWD9Qy21zPPK/zricNH6+B7mvZFreTpEtAFWt0dpsnoWZreBVTG+kyVS1GVN4/vDd9lJVIRY5yzfPdPlrPHHdTwYItr1bkLcTia8M1qPM9F3yRRjcuaYprNmHxzyfNbQyQlnGTM47ynhndFan7WuCywLODz35I2sC9DCXheZHBNpsXvZmu1fkZXs5rjPnPzb8hyAzrIzINr9HOBIwNXat+ZcleS1hame1714izc55jNvbVDBtz7pyWuJuI15P/tnx1F0UwzsQpprO5nil2KIQSZbqcspnwp57+iu2MQT1mMmhNue/MMR3xfwMi8VYRhnmJqXP/MG1lZwyVNMy9l/FR4tf/mdvB553Uz2sXFn+n1YaGCNBZZr5mH25by7xzCb3PKrmM+lgmK1BV4hdc0+2g2zjq8m1wlAOY1dvqXGKep87oZYzUmDW3Vs8+myuIf6Am6AsiT0Nljp/CYl0Twaze9ZaaN3u5w5jAy5L2ylhe/4nAu+S1Qwl+oCsrjCV2wM2KXfwSPUcmPIGv9LPZ91Ye1TEnEb80ztNLE+Dv8MS0RERERERERERERERERERERERERERERERERERERERERERERERERs+Q/rhi5WauEgfQAAAABJRU5ErkJggg=="
    },
    "description": "These endpoints handle the retrieval of actionable insights for a customer. An actionable insight is an indicator of\nthe state of a customer's financial situation that could induce a change in behaviour.\n"
  },
  "tags": [
    {
      "name": "Retrieve Actionable Insights",
      "x-displayName": "Retrieve Actionable Insights",
      "description": "Retrieve a customer's actionable insights generated from their financial data.\n"
    },
    {
      "name": "Custom Insights",
      "x-displayName": "Custom Insights",
      "description": "Understand and target messaging to your customers more effectively by defining your own custom insights.\n"
    }
  ],
  "x-readme": {
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "servers": [
    {
      "url": "https://api-sandbox.thisisbud.com",
      "description": "Bud sandbox"
    }
  ],
  "paths": {
    "/insights/v1/actionable/balances": {
      "get": {
        "tags": [
          "Retrieve Actionable Insights"
        ],
        "summary": "Retrieve Balances Actionable Insights",
        "description": "Generate balances actionable insights.\n\n> 📘 Note:\n>\n> For more information about Actionable Insights, please refer to our [guide](https://docs-us.thisisbud.com/docs/actionable-insights).\n",
        "operationId": "insights_v1_actionable_balances_get",
        "security": [
          {
            "OAuth2": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/paths/~1insights~1v1~1custom~1manage/get/parameters/0"
          },
          {
            "$ref": "#/paths/~1insights~1v1~1custom~1profile/get/parameters/1"
          },
          {
            "$ref": "#/paths/~1insights~1v1~1custom~1profile/get/parameters/2"
          },
          {
            "$ref": "#/paths/~1insights~1v1~1actionable~1income/get/parameters/3"
          },
          {
            "$ref": "#/paths/~1insights~1v1~1actionable~1income/get/parameters/4"
          },
          {
            "in": "query",
            "name": "enabled_insights",
            "required": false,
            "schema": {
              "type": "string",
              "description": "A comma-separated list of insight types to check for. If not specified, a default list will be used, which may be added to over time.",
              "example": "in_overdraft",
              "enum": [
                "cannot_cover_bills",
                "in_overdraft",
                "close_to_credit_limit",
                "low_balance"
              ]
            }
          },
          {
            "in": "query",
            "name": "close_to_credit_limit.percentage_utilisation_threshold",
            "required": false,
            "schema": {
              "type": "number",
              "description": "A minimum percentage utilisation of the credit limit for this insight to trigger. If not specified, a configured value will be used. Please note that including this request on a customer level will increase latency of this endpoint. Instead, we recommend to update the thresholds for your organisation by raising a support request."
            }
          },
          {
            "in": "query",
            "name": "low_balance.balance_threshold",
            "required": false,
            "schema": {
              "type": "number",
              "description": "A balance threshold such that balances lower than this will trigger the low balance insight. If not specified, a configured value will be used. Please note that including this request on a customer level will increase latency of this endpoint. Instead, we recommend to update the thresholds for your organisation by raising a support request."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Balances Insights Response",
                  "description": "Balances insights response, providing identified balances insights for this customer.",
                  "type": "object",
                  "required": [
                    "data",
                    "operation_id",
                    "metadata"
                  ],
                  "properties": {
                    "operation_id": {
                      "type": "string",
                      "enum": [
                        "insights_v1_actionable_balances_get"
                      ]
                    },
                    "data": {
                      "type": "object",
                      "required": [
                        "insights"
                      ],
                      "properties": {
                        "insights": {
                          "type": "array",
                          "items": {
                            "title": "Balances Insight Response",
                            "description": "Balances insight identified from the customer's financial data",
                            "allOf": [
                              {
                                "$ref": "#/paths/~1insights~1v1~1actionable~1income/get/responses/200/content/application~1json/schema/properties/data/properties/insights/items/allOf/0"
                              },
                              {
                                "type": "object",
                                "required": [
                                  "account_id",
                                  "balance",
                                  "threshold"
                                ],
                                "properties": {
                                  "account_id": {
                                    "type": "string",
                                    "description": "The account ID whose current, projected, or past balance information this insight relates to."
                                  },
                                  "balance": {
                                    "title": "Credit Debit Indicator",
                                    "type": "object",
                                    "description": "An amount of money, in a specific currency with a credit/debit indicator.",
                                    "required": [
                                      "currency",
                                      "value",
                                      "credit_debit_indicator"
                                    ],
                                    "properties": {
                                      "currency": {
                                        "$ref": "#/paths/~1insights~1v1~1custom~1detail~1{custom_insight_id}/get/responses/200/content/application~1json/schema/properties/data/items/properties/running_balance/properties/currency"
                                      },
                                      "value": {
                                        "$ref": "#/paths/~1insights~1v1~1custom~1detail~1{custom_insight_id}/get/responses/200/content/application~1json/schema/properties/data/items/properties/running_balance/properties/value"
                                      },
                                      "credit_debit_indicator": {
                                        "type": "string",
                                        "enum": [
                                          "credit",
                                          "debit"
                                        ]
                                      }
                                    }
                                  },
                                  "threshold": {
                                    "$ref": "#/paths/~1insights~1v1~1actionable~1balances/get/responses/200/content/application~1json/schema/properties/data/properties/insights/items/allOf/1/properties/balance"
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    },
                    "metadata": {
                      "type": "object",
                      "required": [
                        "results",
                        "from",
                        "to",
                        "options"
                      ],
                      "properties": {
                        "results": {
                          "type": "integer",
                          "description": "Number of insights returned in the response."
                        },
                        "from": {
                          "$ref": "#/paths/~1insights~1v1~1actionable~1income/get/parameters/3/schema"
                        },
                        "to": {
                          "$ref": "#/paths/~1insights~1v1~1actionable~1income/get/parameters/3/schema"
                        },
                        "options": {
                          "type": "array",
                          "items": {
                            "title": "Insight Option",
                            "type": "object",
                            "description": "An option used to configure the returned insights.",
                            "required": [
                              "insight_type",
                              "option",
                              "value"
                            ],
                            "properties": {
                              "insight_type": {
                                "type": "string",
                                "description": "The insight this option is applied to"
                              },
                              "option": {
                                "type": "string",
                                "description": "The name of the option"
                              },
                              "value": {
                                "type": "string",
                                "description": "The value of the option"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "operation_id": "insights_v1_actionable_balances_get",
                  "data": {
                    "insights": [
                      {
                        "id": "in_overdraft_8789764a-df2f-4589-b550-00bcd0e9cb2c",
                        "type": "in_overdraft",
                        "created_at": "2026-05-07T11:00:59Z",
                        "account_id": "8789764a-df2f-4589-b550-00bcd0e9cb2c",
                        "balance": {
                          "value": "100.00",
                          "currency": "USD",
                          "credit_debit_indicator": "debit"
                        },
                        "threshold": {
                          "value": "0.00",
                          "currency": "USD",
                          "credit_debit_indicator": "debit"
                        },
                        "_links": {
                          "details": "https://domain/insights/v1/actionable/balances/in_overdraft/in_overdraft_8789764a-df2f-4589-b550-00bcd0e9cb2c/details"
                        }
                      }
                    ]
                  },
                  "metadata": {
                    "results": 1,
                    "from": "2022-11-01T00:00:00Z",
                    "to": "2023-05-16T17:30:00Z",
                    "options": []
                  }
                }
              }
            }
          }
        }
      }
    },
    "/insights/v1/actionable/income": {
      "get": {
        "tags": [
          "Retrieve Actionable Insights"
        ],
        "summary": "Retrieve Income Actionable Insights",
        "description": "Generate income actionable insights.\n\n> 📘 Note:\n>\n> For more information about Actionable Insights, please refer to our [guide](https://docs-us.thisisbud.com/docs/actionable-insights).\n",
        "operationId": "insights_v1_actionable_income_get",
        "security": [
          {
            "OAuth2": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/paths/~1insights~1v1~1custom~1manage/get/parameters/0"
          },
          {
            "$ref": "#/paths/~1insights~1v1~1custom~1profile/get/parameters/1"
          },
          {
            "$ref": "#/paths/~1insights~1v1~1custom~1profile/get/parameters/2"
          },
          {
            "in": "query",
            "name": "from",
            "required": false,
            "description": "A start time to check financial data for insights from. Configures the earliest financial data which may be used to generate insights. If omitted, defaults to the start of the sixth complete month prior to the latest ingested financial data. Note that some insights will only be checked for complete months entirely between the `from` and `to` dates.",
            "schema": {
              "title": "Date/Time (ISO 8601)",
              "type": "string",
              "description": "ISO Date Format",
              "example": "2022-03-05T13:34:33Z"
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": false,
            "description": "An end time to check financial data for insights up to. Configures the latest financial data which may be used to generate insights. If omitted, defaults to the date of the latest ingested financial data. Note that some insights will only be checked for complete months entirely between the `from` and `to` dates. Insights relating to potential future events, such as cannot_cover_bills, may forecast them up to a month after this point.",
            "schema": {
              "$ref": "#/paths/~1insights~1v1~1actionable~1income/get/parameters/3/schema"
            }
          },
          {
            "in": "query",
            "name": "enabled_insights",
            "required": false,
            "schema": {
              "type": "string",
              "description": "A comma-separated list of insight types to check for. If not specified, a default list will be used, which may be added to over time.",
              "example": "late_income",
              "enum": [
                "late_income",
                "regular_income_changed",
                "gambling_income",
                "pension_income"
              ]
            }
          },
          {
            "in": "query",
            "name": "gambling_income.minimum_monthly_threshold",
            "required": false,
            "schema": {
              "type": "number",
              "description": "A minimum absolute total of gambling income for the insight to trigger. Both `gambling_income.minimum_monthly_threshold` and `gambling_income.minimum_percentage_total_threshold` must be met to trigger. If not specified, a configured value will be used. Please note that including this request on a customer level will increase latency of this endpoint. Instead, we recommend to update the thresholds for your organisation by raising a support request."
            }
          },
          {
            "in": "query",
            "name": "gambling_income.minimum_percentage_total_threshold",
            "required": false,
            "schema": {
              "type": "number",
              "description": "A minimum percentage of all income that must be gambling income for the insight to trigger. Both `gambling_income.minimum_monthly_threshold` and `gambling_income.minimum_percentage_total_threshold` must be met to trigger. If not specified, a configured value will be used. Please note that including this request on a customer level will increase latency of this endpoint. Instead, we recommend to update the thresholds for your organisation by raising a support request."
            }
          },
          {
            "in": "query",
            "name": "late_income.minimum_value_threshold",
            "required": false,
            "schema": {
              "type": "number",
              "description": "A minimum value of a late transaction in that transaction's currency for the insight to trigger. Both `late_income.minimum_value_threshold` and `late_income.minimum_days_late_threshold` must be met to trigger. If not specified, a configured value will be used. Please note that including this request on a customer level will increase latency of this endpoint. Instead, we recommend to update the thresholds for your organisation by raising a support request."
            }
          },
          {
            "in": "query",
            "name": "late_income.minimum_days_late_threshold",
            "required": false,
            "schema": {
              "type": "number",
              "description": "A minimum number of days late for a transaction to be for the insight to trigger. Both `late_income.minimum_value_threshold` and `late_income.minimum_days_late_threshold` must be met to trigger. If not specified, a configured value will be used. Please note that including this request on a customer level will increase latency of this endpoint. Instead, we recommend to update the thresholds for your organisation by raising a support request."
            }
          },
          {
            "in": "query",
            "name": "pension_income.minimum_monthly_threshold",
            "required": false,
            "schema": {
              "type": "number",
              "description": "A minimum absolute total of pension income for the insight to trigger. Both `pension_income.minimum_monthly_threshold` and `pension_income.minimum_percentage_total_threshold` must be met to trigger. If not specified, a configured value will be used. Please note that including this request on a customer level will increase latency of this endpoint. Instead, we recommend to update the thresholds for your organisation by raising a support request."
            }
          },
          {
            "in": "query",
            "name": "pension_income.minimum_percentage_total_threshold",
            "required": false,
            "schema": {
              "type": "number",
              "description": "A minimum percentage of all income that must be pension income for the insight to trigger.. Both `pension_income.minimum_monthly_threshold` and `pension_income.minimum_percentage_total_threshold` must be met to trigger. If not specified, a configured value will be used. Please note that including this request on a customer level will increase latency of this endpoint. Instead, we recommend to update the thresholds for your organisation by raising a support request."
            }
          },
          {
            "in": "query",
            "name": "regular_income_changed.minimum_absolute_change_threshold",
            "required": false,
            "schema": {
              "type": "number",
              "description": "A minimum absolute change between the previous and latest amounts of a regular payment for the insight to trigger. Both `regular_income_changed.minimum_absolute_change_threshold` and `regular_income_changed.minimum_percentage_change_threshold` must be met to trigger. If not specified, a configured value will be used. Please note that including this request on a customer level will increase latency of this endpoint. Instead, we recommend to update the thresholds for your organisation by raising a support request."
            }
          },
          {
            "in": "query",
            "name": "regular_income_changed.minimum_percentage_change_threshold",
            "required": false,
            "schema": {
              "type": "number",
              "description": "A minimum percentage change between the previous and latest amounts of a regular payment for the insight to trigger. Both `regular_income_changed.minimum_absolute_change_threshold` and `regular_income_changed.minimum_percentage_change_threshold` must be met to trigger. If not specified, a configured value will be used. Please note that including this request on a customer level will increase latency of this endpoint. Instead, we recommend to update the thresholds for your organisation by raising a support request."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Income Insights Response",
                  "description": "Income insights response, providing identified income insights for this customer.",
                  "type": "object",
                  "required": [
                    "data",
                    "operation_id",
                    "metadata"
                  ],
                  "properties": {
                    "operation_id": {
                      "type": "string",
                      "enum": [
                        "insights_v1_actionable_income_get"
                      ]
                    },
                    "data": {
                      "type": "object",
                      "required": [
                        "insights",
                        "totals"
                      ],
                      "properties": {
                        "insights": {
                          "type": "array",
                          "items": {
                            "title": "Income Insight Response",
                            "description": "Income insight identified from the customer's financial data",
                            "allOf": [
                              {
                                "title": "Common Insight Response",
                                "description": "Common parts of an identified insight, shared across all identified insights",
                                "type": "object",
                                "required": [
                                  "id",
                                  "type",
                                  "created_at",
                                  "_links"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "An ID for this returned insight. Will be unique within the response, and consistent until financial data is refreshed. For a customised insights request, this will only be consistent across requests specifying the same configuration."
                                  },
                                  "type": {
                                    "type": "string",
                                    "description": "The type of insight triggered. Specifies the meaning of the insight, and the format of the additional_info object.",
                                    "example": "gambling_threshold"
                                  },
                                  "created_at": {
                                    "$ref": "#/paths/~1insights~1v1~1actionable~1income/get/parameters/3/schema",
                                    "description": "The date and time at which this insight was created, in ISO 8601 format."
                                  },
                                  "_links": {
                                    "title": "Links",
                                    "description": "URLs for resources related to this insight",
                                    "type": "object",
                                    "required": [
                                      "details"
                                    ],
                                    "properties": {
                                      "details": {
                                        "type": "string",
                                        "description": "An endpoint, including options, to make a GET request to in order to retrieve insight-specific details for this insight, and the transaction and account data that caused it to trigger."
                                      }
                                    }
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "required": [
                                  "transactions"
                                ],
                                "properties": {
                                  "transactions": {
                                    "type": "array",
                                    "description": "The transaction or transactions that most immediately triggered the insight, in our Transactions V2 format.",
                                    "items": {
                                      "title": "Transaction",
                                      "type": "object",
                                      "description": "A financial transaction",
                                      "required": [
                                        "transaction_id",
                                        "account_id",
                                        "description",
                                        "amount",
                                        "credit_debit_indicator",
                                        "status",
                                        "date_time",
                                        "suggested_description"
                                      ],
                                      "properties": {
                                        "transaction_id": {
                                          "type": "string",
                                          "description": "Unique identifier for the transaction. May be mutable depending on original ingestion source."
                                        },
                                        "account_id": {
                                          "type": "string",
                                          "description": "Identifier for the account associated with the transaction."
                                        },
                                        "provider": {
                                          "type": "string",
                                          "description": "Name of the transaction source provider. Optional as it may not have been supplied when using first party data."
                                        },
                                        "description": {
                                          "type": "string",
                                          "description": "Description of the transaction."
                                        },
                                        "credit_debit_indicator": {
                                          "type": "string",
                                          "description": "Credit/Debit Indicator",
                                          "enum": [
                                            "credit",
                                            "debit"
                                          ]
                                        },
                                        "status": {
                                          "type": "string",
                                          "description": "Status of the transaction. Defaults to booked.\n\nNote: declined transactions are only available for transactions ingested by First Party Ingestion endpoints.\n",
                                          "enum": [
                                            "booked",
                                            "pending",
                                            "declined"
                                          ]
                                        },
                                        "amount": {
                                          "$ref": "#/paths/~1insights~1v1~1custom~1detail~1{custom_insight_id}/get/responses/200/content/application~1json/schema/properties/data/items/properties/amount"
                                        },
                                        "date_time": {
                                          "type": "string",
                                          "description": "Date that the transaction occured compliant with RFC3339."
                                        },
                                        "posted_date_time": {
                                          "type": "string",
                                          "deprecated": true,
                                          "description": "Date the assets involved in the transaction transferred compliant with RFC3339. For credits this is the date that the asset becomes available, for debits this is the date that the asset ceased to be available"
                                        },
                                        "value_date_time": {
                                          "nullable": true,
                                          "type": "string",
                                          "description": "Date and time at which assets become available to the account owner in case of a credit entry, or cease to be available to the account owner in case of a debit transaction entry. ISODateTime. Null if this field is not applicable."
                                        },
                                        "suggested_description": {
                                          "type": "string",
                                          "description": "The description Bud suggests client apps show for a given transaction."
                                        },
                                        "suggested_logo": {
                                          "type": "string",
                                          "description": "The logo Bud suggests client apps show for a given transaction."
                                        },
                                        "enrichments": {
                                          "$ref": "#/paths/~1insights~1v1~1custom~1detail~1{custom_insight_id}/get/responses/200/content/application~1json/schema/properties/data/items/properties/enrichments"
                                        },
                                        "merchant_category_code": {
                                          "type": "string",
                                          "description": "Merchant category code conforming to ISO 18245, related to the type of services or goods the merchant provides for the transaction."
                                        },
                                        "tags": {
                                          "type": "array",
                                          "description": "A list of potential tags associated with the transaction after contextual enrichment, which can be used for filtering.\n\nRegion and client specific.\n\n| Value                   | Description                                               |\n|:------------------------|:----------------------------------------------------------|\n| `benefit`               | A government/non-profit benefit transaction               |\n| `debt-collection`       | A transaction associated with a known debt-collector      |\n| `loan`                  | A transaction associated with a loan                      |\n| `hcst`                  | A transaction associated with a high cost short term loan |\n| `income`                | A transaction associated with income                      |\n| `pending`               | A transaction which has not been booked                   |\n| `regular-transaction`   | A transaction predicted to occur with a regular frequency |\n| `subscription`          | A transaction associated with a subscription service      |\n| `online`                | A transaction associated with an online merchant          |\n",
                                          "items": {
                                            "type": "string"
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            ]
                          }
                        },
                        "totals": {
                          "title": "Transaction Totals",
                          "description": "Total income and expenses for the customer across the period checked for insights",
                          "type": "object",
                          "required": [
                            "income",
                            "expenditure"
                          ],
                          "properties": {
                            "income": {
                              "type": "array",
                              "description": "The total income for the period, in every currency that had an insight trigger within the period.",
                              "items": {
                                "$ref": "#/paths/~1insights~1v1~1custom~1detail~1{custom_insight_id}/get/responses/200/content/application~1json/schema/properties/data/items/properties/amount"
                              }
                            },
                            "expenditure": {
                              "type": "array",
                              "description": "The total expenses for the period, in every currency that had an insight trigger within the period.",
                              "items": {
                                "$ref": "#/paths/~1insights~1v1~1custom~1detail~1{custom_insight_id}/get/responses/200/content/application~1json/schema/properties/data/items/properties/amount"
                              }
                            }
                          }
                        }
                      }
                    },
                    "metadata": {
                      "type": "object",
                      "required": [
                        "results",
                        "from",
                        "to",
                        "options"
                      ],
                      "properties": {
                        "results": {
                          "type": "integer",
                          "description": "Number of insights returned in the response."
                        },
                        "from": {
                          "$ref": "#/paths/~1insights~1v1~1actionable~1income/get/parameters/3/schema"
                        },
                        "to": {
                          "$ref": "#/paths/~1insights~1v1~1actionable~1income/get/parameters/3/schema"
                        },
                        "options": {
                          "type": "array",
                          "items": {
                            "title": "Insight Option",
                            "type": "object",
                            "description": "An option used to configure the returned insights.",
                            "required": [
                              "insight_type",
                              "option",
                              "value"
                            ],
                            "properties": {
                              "insight_type": {
                                "type": "string",
                                "description": "The insight this option is applied to"
                              },
                              "option": {
                                "type": "string",
                                "description": "The name of the option"
                              },
                              "value": {
                                "description": "The value of the option"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "operation_id": "insights_v1_actionable_income_get",
                  "data": {
                    "insights": [
                      {
                        "id": "late_income_8789764a-df2f-4589-b550-00bcd0e9cb2c",
                        "type": "late_income",
                        "created_at": "2026-05-07T11:00:59Z",
                        "transactions": [
                          {
                            "transaction_id": "a_transaction_id",
                            "account_id": "ee7a2d6a-2baa-461a-aca2-844e88a3f3e7",
                            "provider": "a_bank_account_provider",
                            "description": "SALARY",
                            "credit_debit_indicator": "credit",
                            "status": "booked",
                            "suggested_description": "salary",
                            "amount": {
                              "value": "3000.00",
                              "currency": "USD"
                            },
                            "date_time": "2023-04-10T10:00:00Z",
                            "enrichments": {
                              "categories": {
                                "l1": {
                                  "slug": "income",
                                  "confidence": "0.99"
                                },
                                "l2": {
                                  "slug": "employment_income",
                                  "confidence": "0.98"
                                }
                              },
                              "regularity": {
                                "frequency": "monthly",
                                "predicted_date_times": [
                                  "2023-05-10T10:00:00Z"
                                ]
                              }
                            }
                          }
                        ],
                        "_links": {
                          "details": "https://domain/insights/v1/actionable/income/late_income/late_income_8789764a-df2f-4589-b550-00bcd0e9cb2c/details"
                        }
                      }
                    ],
                    "totals": {
                      "income": [
                        {
                          "value": "12000.00",
                          "currency": "USD"
                        }
                      ],
                      "expenditure": [
                        {
                          "value": "14000.00",
                          "currency": "USD"
                        }
                      ]
                    }
                  },
                  "metadata": {
                    "results": 1,
                    "from": "2022-11-01T00:00:00Z",
                    "to": "2023-05-16T17:30:00Z",
                    "options": [
                      {
                        "insight_type": "late_income",
                        "option": "minimum_days_late_threshold",
                        "value": "3"
                      },
                      {
                        "insight_type": "late_income",
                        "option": "minimum_value_threshold",
                        "value": "100.00"
                      }
                    ]
                  }
                }
              }
            }
          }
        }
      }
    },
    "/insights/v1/custom/manage": {
      "get": {
        "tags": [
          "Custom Insights"
        ],
        "summary": "List existing custom insights",
        "description": "Retrieve a list of created custom insights, if they are currently active, and when they were created\n",
        "deprecated": false,
        "security": [
          {
            "OAuth2": []
          }
        ],
        "operationId": "custom_insight_v1_manage_get",
        "parameters": [
          {
            "in": "header",
            "name": "X-Client-Id",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The API Client Identifier (Service Application Identifier).",
            "example": "8711bbef-b357-4c2d-97ca-0d9df4206e9a"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "operation_id",
                    "data"
                  ],
                  "properties": {
                    "operation_id": {
                      "type": "string"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "custom_insight_id"
                        ],
                        "properties": {
                          "custom_insight_id": {
                            "type": "string",
                            "format": "uuid",
                            "description": "A uuid for the query"
                          },
                          "identifier": {
                            "type": "string",
                            "description": "A human readable identifier set in the query INFER <identifier> FROM ..."
                          },
                          "query": {
                            "type": "string",
                            "description": "The budql query representing the custom insight"
                          },
                          "created_at": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "active": {
                            "type": "boolean",
                            "description": "whether the insight is 'active' or not"
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "operation_id": "custom_insight_v1_manage_get",
                  "data": [
                    {
                      "custom_insight_id": "123e4567-e89b-12d3-a456-426655440000",
                      "identifier": "risky_spender",
                      "query": "INFER risky_spender FROM transactions WHERE category_l2 = \"crypto_platform_incoming\"",
                      "created_at": "2023-10-20T13:36:58Z"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Malformed request"
          },
          "5XX": {
            "description": "An unexpected error occurred on the server side"
          }
        }
      }
    },
    "/insights/v1/custom/detail/{custom_insight_id}": {
      "get": {
        "tags": [
          "Custom Insights"
        ],
        "summary": "Detail the transactions used to generate a custom insight",
        "description": "This endpoint will return some transactions used to determine the custom insight.\n\nMore specifically it will return transactions filtered for in the WHERE expression of the custom insight query.\n",
        "deprecated": false,
        "security": [
          {
            "OAuth2": []
          }
        ],
        "operationId": "custom_insight_v1_detail_get",
        "parameters": [
          {
            "$ref": "#/paths/~1insights~1v1~1custom~1manage/get/parameters/0"
          },
          {
            "$ref": "#/paths/~1insights~1v1~1custom~1profile/get/parameters/1"
          },
          {
            "$ref": "#/paths/~1insights~1v1~1custom~1profile/get/parameters/2"
          },
          {
            "in": "header",
            "name": "X-Customer-Secret",
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "The Bud Customer secret used to encrypt customer data. This is required only if the customer secret is not already stored with Bud."
          },
          {
            "in": "path",
            "name": "custom_insight_id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "operation_id",
                    "data"
                  ],
                  "properties": {
                    "operation_id": {
                      "type": "string"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "title": "Transaction",
                        "type": "object",
                        "description": "A financial transaction",
                        "required": [
                          "transaction_id",
                          "account_id",
                          "description",
                          "amount",
                          "credit_debit_indicator",
                          "status",
                          "date_time",
                          "suggested_description"
                        ],
                        "properties": {
                          "transaction_id": {
                            "type": "string",
                            "description": "Unique identifier for the transaction. May be mutable depending on original ingestion source."
                          },
                          "account_id": {
                            "type": "string",
                            "description": "Identifier for the account associated with the transaction."
                          },
                          "provider": {
                            "type": "string",
                            "description": "Name of the transaction source provider. Optional as it may not have been supplied when using first party data."
                          },
                          "description": {
                            "type": "string",
                            "description": "Description of the transaction."
                          },
                          "credit_debit_indicator": {
                            "type": "string",
                            "description": "Credit/Debit Indicator",
                            "enum": [
                              "credit",
                              "debit"
                            ]
                          },
                          "status": {
                            "type": "string",
                            "description": "Status of the transaction. Defaults to booked.\n\nNote: declined transactions are only available for transactions ingested by First Party Ingestion endpoints.\n",
                            "enum": [
                              "booked",
                              "pending",
                              "declined"
                            ]
                          },
                          "suggested_description": {
                            "type": "string",
                            "description": "The description Bud suggests client apps show for a given transaction."
                          },
                          "suggested_logo": {
                            "type": "string",
                            "description": "The logo Bud suggests client apps show for a given transaction."
                          },
                          "transaction_type": {
                            "title": "transaction_type",
                            "type": "object",
                            "description": "The code and a description of the transaction type. Providing these fields may help improve enrichment accuracy.\n",
                            "properties": {
                              "bud_code": {
                                "type": "string",
                                "description": "The code representing the type of the given transaction. This typically comes in the form of a proprietary code respective to the __provider__.\n\nCurrent list of valid accepted codes:\n\n| Code  | Meaning\n|:------|:-------------------------------------------------------------------|\n| DEB   | [Debit / Credit] Card                                              |\n| CSQ   | Cash / Cheque(s)                                                   |\n| CHG   | Charge                                                             |\n| COR   | Correction                                                         |\n| CPT   | Cashpoint / ATM                                                    |\n| INT   | Interest                                                           |\n| OTH   | Other                                                              |\n| BAT   | Bank Transfer (e.g. FP/MP/IB/BACS/CHAPS/SWIFT)                     |\n| DD    | Direct Debit                                                       |\n| SO    | Standing Order                                                     |\n"
                              },
                              "description": {
                                "type": "string",
                                "description": "A human-readable description of the given __bud_code__.\nexample: `Contactless POS`\n"
                              }
                            }
                          },
                          "amount": {
                            "title": "Standard Bud Amount",
                            "type": "object",
                            "description": "The monetary amount.",
                            "required": [
                              "value",
                              "currency"
                            ],
                            "properties": {
                              "value": {
                                "$ref": "#/paths/~1insights~1v1~1custom~1detail~1{custom_insight_id}/get/responses/200/content/application~1json/schema/properties/data/items/properties/running_balance/properties/value"
                              },
                              "currency": {
                                "$ref": "#/paths/~1insights~1v1~1custom~1detail~1{custom_insight_id}/get/responses/200/content/application~1json/schema/properties/data/items/properties/running_balance/properties/currency"
                              }
                            }
                          },
                          "date_time": {
                            "type": "string",
                            "description": "Date that the transaction occured compliant with RFC3339."
                          },
                          "posted_date_time": {
                            "deprecated": true,
                            "type": "string",
                            "description": "Date the assets involved in the transaction transferred compliant with RFC3339. For credits this is the date that the asset becomes available, for debits this is the date that the asset ceased to be available"
                          },
                          "value_date_time": {
                            "type": "string",
                            "description": "Date the assets involved in the transaction transferred compliant with RFC3339. For credits this is the date that the asset becomes available, for debits this is the date that the asset ceased to be available"
                          },
                          "enrichments": {
                            "title": "Enrichments",
                            "type": "object",
                            "description": "Contextual enrichments associated with a Transaction",
                            "properties": {
                              "categories": {
                                "title": "Categories",
                                "type": "object",
                                "description": "Categories enrichment associated with a Transaction, as generated by Bud's artificial intelligence models.  Currently two levels of category are supported, with `l1` being a coarse-grained category level and `l2` being more refined.\n",
                                "properties": {
                                  "l1": {
                                    "description": "Level 1 Category",
                                    "title": "Category",
                                    "type": "object",
                                    "required": [
                                      "slug",
                                      "confidence"
                                    ],
                                    "properties": {
                                      "slug": {
                                        "type": "string",
                                        "description": "Unique human readable identifier of the category. Not subject to version control."
                                      },
                                      "confidence": {
                                        "type": "string",
                                        "description": "Degree of belief of correct assignment, expressed as a probability."
                                      }
                                    }
                                  },
                                  "l2": {
                                    "$ref": "#/paths/~1insights~1v1~1custom~1detail~1{custom_insight_id}/get/responses/200/content/application~1json/schema/properties/data/items/properties/enrichments/properties/categories/properties/l1",
                                    "description": "Level 2 Category"
                                  }
                                }
                              },
                              "merchant": {
                                "title": "Merchant",
                                "type": "object",
                                "description": "Merchant enrichment associated with a Transaction, as generated using a combination of Bud's artificial  intelligence models and database of known merchants.\n",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "UUID corresponding to the merchant, if available. Subject to version control."
                                  },
                                  "slug": {
                                    "type": "string",
                                    "description": "Unique human readable identifier of the merchant. Not subject to version control."
                                  },
                                  "display_name": {
                                    "type": "string",
                                    "description": "UI friendly display name for the merchant."
                                  },
                                  "logo": {
                                    "type": "string",
                                    "description": "URL supplying merchant logo, if available."
                                  },
                                  "tokens": {
                                    "type": "array",
                                    "description": "A list of tokens calculated from the transaction model, used to identify the Merchant.  This list is often present even if the merchant details (id, slug, disply_name, logo) are not returned.\n",
                                    "items": {
                                      "title": "Token",
                                      "type": "object",
                                      "description": "The token item.",
                                      "required": [
                                        "value",
                                        "confidence"
                                      ],
                                      "properties": {
                                        "value": {
                                          "type": "string"
                                        },
                                        "confidence": {
                                          "type": "string",
                                          "description": "Degree of belief of correct assignment, expressed as a probability."
                                        }
                                      }
                                    }
                                  },
                                  "website": {
                                    "type": "string",
                                    "description": "URL supplying merchant website, if available."
                                  },
                                  "tags": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    },
                                    "description": "A list of tags describing the merchant"
                                  }
                                }
                              },
                              "processor": {
                                "title": "Processor",
                                "type": "object",
                                "description": "Processor enrichment associated with a Transaction, as generated using a combination of Bud's artificial  intelligence models and database of known payment processors.\n",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "description": "UUID corresponding to the processor, if available. Subject to version control."
                                  },
                                  "slug": {
                                    "type": "string",
                                    "description": "Unique human readable identifier of the processor. Not subject to version control."
                                  },
                                  "display_name": {
                                    "type": "string",
                                    "description": "UI friendly display name for the processor."
                                  },
                                  "logo": {
                                    "type": "string",
                                    "description": "URL supplying processor logo, if available."
                                  },
                                  "tokens": {
                                    "type": "array",
                                    "description": "A list of tokens calculated from the transaction model, used to identify the Merchant.  This list is often present even if the merchant details (id, slug, disply_name, logo) are not returned.\n",
                                    "items": {
                                      "$ref": "#/paths/~1insights~1v1~1custom~1detail~1{custom_insight_id}/get/responses/200/content/application~1json/schema/properties/data/items/properties/enrichments/properties/merchant/properties/tokens/items"
                                    }
                                  },
                                  "website": {
                                    "type": "string",
                                    "description": "URL supplying merchant website, if available."
                                  }
                                }
                              },
                              "regularity": {
                                "title": "Regularity",
                                "type": "object",
                                "description": "Regularity enrichment associated with a Transaction, as generated by Bud's artificial intelligence models.  Transactions that are similar and have a known frequency will all have the same regularity enrichment.\n",
                                "properties": {
                                  "frequency": {
                                    "type": "string",
                                    "description": "Detected frequency of the Transaction.",
                                    "enum": [
                                      "unknown",
                                      "daily",
                                      "weekly",
                                      "biweekly",
                                      "monthly",
                                      "quarterly"
                                    ]
                                  },
                                  "predicted_date_times": {
                                    "type": "array",
                                    "description": "Expected date times for the Transaction to repeat.",
                                    "items": {
                                      "type": "string"
                                    }
                                  },
                                  "group_label": {
                                    "type": "string",
                                    "description": "Unique label applied to multiple transactions in the same group."
                                  }
                                }
                              },
                              "corrections": {
                                "title": "Corrections",
                                "type": "object",
                                "description": "Identifiers for correction rules that were applied to this transaction during enrichment. Returned only when correction-rule surfacing is enabled for your organisation.\n",
                                "properties": {
                                  "applied_rule_ids": {
                                    "type": "array",
                                    "description": "IDs of correction rules that were applied to this transaction.",
                                    "items": {
                                      "type": "string"
                                    }
                                  }
                                }
                              },
                              "location": {
                                "title": "Location",
                                "type": "object",
                                "description": "Location enrichment associated with a Transaction",
                                "properties": {
                                  "address": {
                                    "type": "object",
                                    "description": "The address where the transaction occurred. The level of detail depends on the resolution with which we are able to detect the transaction location.",
                                    "properties": {
                                      "address_lines": {
                                        "type": "array",
                                        "description": "A list of all the address lines detected for the transaction. This could be anything from a full street address down to just the region.",
                                        "items": {
                                          "type": "string"
                                        }
                                      },
                                      "street_address": {
                                        "type": "string",
                                        "description": "The street address where the transaction occurred. Typically this will consist of the street number and street name with an optional suite."
                                      },
                                      "city": {
                                        "type": "string",
                                        "description": "The city or town where the transaction occurred."
                                      },
                                      "region": {
                                        "type": "string",
                                        "description": "The county or region where the transaction occurred."
                                      },
                                      "postal_code": {
                                        "type": "string",
                                        "description": "The postcode where the transaction occurred."
                                      },
                                      "country": {
                                        "type": "string",
                                        "description": "The ISO 3166-1 alpha-2 country code representing the country where the transaction occurred.\n\nIf a location could not be determined, but a `country_code` was supplied in the ingestion request; that value will be reflected here.\n"
                                      }
                                    }
                                  },
                                  "geolocation": {
                                    "type": "object",
                                    "description": "The geolocation where the transaction occurred. This is only available if we are able to narrow down the transaction location to an exact match.",
                                    "properties": {
                                      "latitude": {
                                        "type": "number",
                                        "format": "double",
                                        "description": "The latitudinal position where the transaction occurred."
                                      },
                                      "longitude": {
                                        "type": "number",
                                        "format": "double",
                                        "description": "The longitudinal position where the transaction occurred."
                                      }
                                    }
                                  },
                                  "tokens": {
                                    "type": "array",
                                    "description": "A list of substrings from the description identified as being relevant to the transaction location.",
                                    "items": {
                                      "type": "string"
                                    }
                                  }
                                }
                              },
                              "transaction_types": {
                                "type": "array",
                                "description": "Transaction types associated with the transaction",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "names": {
                                "type": "array",
                                "description": "Names that were detected in the transaction description",
                                "items": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "merchant_category_code": {
                            "type": "string",
                            "description": "Merchant category code conforming to ISO 18245, related to the type of services or goods the merchant provides for the transaction."
                          },
                          "running_balance": {
                            "description": "The running balance for the account that the transaction takes place against",
                            "title": "Standard Bud Amount",
                            "type": "object",
                            "required": [
                              "value",
                              "currency"
                            ],
                            "properties": {
                              "value": {
                                "title": "Monetary Value",
                                "description": "The value of the monetary amount. The value is formatted with the number of decimal places for the respective currency. \n\nExample: `10.98`\n",
                                "type": "string"
                              },
                              "currency": {
                                "title": "Currency",
                                "description": "The three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) of the monetary amount.\n\nExample: `GBP`\n",
                                "type": "string"
                              }
                            }
                          },
                          "running_balance_credit_debit_indicator": {
                            "type": "string",
                            "description": "Credit/Debit Indicator for the running balance field",
                            "enum": [
                              "credit",
                              "debit"
                            ]
                          },
                          "counterparty": {
                            "type": "object",
                            "description": "An object containing details of the counterparty in this transaction",
                            "properties": {
                              "name": {
                                "type": "string",
                                "description": "The name of the counterparty involved in this transaction."
                              },
                              "identifier": {
                                "type": "string",
                                "description": "An identifier for the account of the other party"
                              }
                            }
                          },
                          "tags": {
                            "type": "array",
                            "description": "A list of potential tags associated with the transaction after contextual enrichment, which can be used for filtering.\n\nRegion and client specific.\n\n| Value                   | Description                                               |\n|:------------------------|:----------------------------------------------------------|\n| `benefit`               | A government/non-profit benefit transaction               |\n| `debt-collection`       | A transaction associated with a known debt-collector      |\n| `loan`                  | A transaction associated with a loan                      |\n| `hcst`                  | A transaction associated with a high cost short term loan |\n| `income`                | A transaction associated with income                      |\n| `pending`               | A transaction which has not been booked                   |\n| `regular-transaction`   | A transaction predicted to occur with a regular frequency |\n| `subscription`          | A transaction associated with a subscription service      |\n| `online`                | A transaction associated with an online merchant          |\n| `bill`                  | A transaction associated with an bill payment             |\n| `internal-transfer`     | A transaction between a customers accounts                |\n",
                            "items": {
                              "type": "string"
                            }
                          },
                          "client_attributes": {
                            "title": "Client Attributes",
                            "type": "object",
                            "description": "An optional map of key-value string pairs that allows clients to attach arbitrary metadata to the transaction.\nThis field can be used to store any relevant information specific to the client's needs, such as:\nThese attributes can be added using the [Ingest Transactions](#operation/v2_ingest_transactions_post) endpoint.\n",
                            "properties": {
                              "key": {
                                "type": "string",
                                "description": "An arbitrary key-value pair for the client attribute."
                              }
                            }
                          },
                          "labels": {
                            "type": "array",
                            "description": "Customer-defined labels currently attached to this transaction. Managed via the __Manage Transaction Labels__ endpoints, and attached/removed via the __Assign Transaction Label__ and __Unassign Transaction Label__ endpoints.\n",
                            "items": {
                              "title": "Transaction Label",
                              "type": "object",
                              "description": "A customer-defined label attached to a transaction.",
                              "required": [
                                "id",
                                "name"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "format": "uuid",
                                  "description": "Unique identifier of the label."
                                },
                                "name": {
                                  "type": "string",
                                  "description": "Display name of the label."
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "metadata": {
                      "type": "object",
                      "properties": {
                        "created_at": {
                          "type": "string",
                          "description": "The time when the profile was last built, and this insight was generated."
                        },
                        "results": {
                          "type": "integer",
                          "description": "The number of transactions returned."
                        }
                      }
                    }
                  }
                },
                "example": {
                  "operation_id": "custom_insight_v1_detail_get",
                  "data": [
                    {
                      "transaction_id": "fbdc28e82f0f137586a526a88ec4a6be",
                      "account_id": "5bd9ecaf31fc2d5172fd89cb61b89fc6",
                      "provider": "BankOfBud",
                      "description": "paypal* specialty coffee",
                      "credit_debit_indicator": "debit",
                      "status": "booked",
                      "suggested_description": "Specialty Coffee Supplier Ltd.",
                      "suggested_logo": "http://url/specialty_coffee_supplier_logo.jpeg",
                      "amount": {
                        "value": "10.99",
                        "currency": "USD"
                      },
                      "date_time": "2022-05-28T10:00:00Z",
                      "posted_date_time": "2022-05-29T00:00:00Z",
                      "value_date_time": "2022-05-29T00:00:00Z",
                      "enrichments": {
                        "categories": {
                          "l1": {
                            "slug": "eating_out",
                            "confidence": "0.99"
                          },
                          "l2": {
                            "slug": "cafes_and_eating_out",
                            "confidence": "0.98"
                          }
                        },
                        "merchant": {
                          "id": "01cc2d49-6144-46f1-9414-67c99b139a95",
                          "slug": "specialty_coffee",
                          "display_name": "Specialty Coffee Supplier Ltd.",
                          "logo": "http://url/specialty_coffee_supplier_logo.jpeg",
                          "tokens": [
                            {
                              "value": "speciality coffee",
                              "confidence": "0.98"
                            }
                          ]
                        },
                        "location": {
                          "address": {
                            "address_lines": [
                              "180",
                              "Shepherds Bush Rd",
                              "London",
                              "W6 7NL",
                              "United Kingdom"
                            ],
                            "street_address": "Shepherds Bush Rd",
                            "city": "London",
                            "postal_code": "W6 7NL",
                            "country": "United Kingdom"
                          },
                          "geolocation": {
                            "longitude": 51.497678,
                            "latitude": -0.223766
                          }
                        },
                        "processor": {
                          "id": "18f63293-0217-4520-bbf0-071dca7a9d04",
                          "slug": "paypal",
                          "display_name": "PayPal",
                          "logo": "http://url/paypal_logo.jpeg",
                          "tokens": [
                            {
                              "value": "paypal",
                              "confidence": "0.92"
                            }
                          ]
                        },
                        "regularity": {
                          "frequency": "monthly",
                          "predicted_date_times": [
                            "2022-06-28T15:00:00Z",
                            "2022-07-28T15:00:00Z",
                            "2022-08-28T15:00:00Z"
                          ],
                          "group_label": "a_group_id"
                        },
                        "transaction_types": [
                          "card",
                          "debit"
                        ],
                        "names": [
                          "jane doe"
                        ]
                      },
                      "tags": [
                        "regular-transaction"
                      ]
                    },
                    {
                      "transaction_id": "a2294cebb45d2a6e0cfc70d270988d8c",
                      "account_id": "37c633a71237b9a8282e09587109668e",
                      "provider": "BankOfBud",
                      "description": "Tesco 2956 London GBR",
                      "credit_debit_indicator": "debit",
                      "status": "booked",
                      "suggested_description": "Tesco",
                      "suggested_logo": "https://assets.thisisbud.com/datasci-images/merchant_logos/17ac2742-8c93-4c11-a01f-17ad65b950ce/v2/tesco.jpeg",
                      "amount": {
                        "value": "50.23",
                        "currency": "USD"
                      },
                      "date_time": "2022-05-26T10:00:00Z",
                      "posted_date_time": "2022-05-27T00:00:00Z",
                      "value_date_time": "2022-05-27T00:00:00Z",
                      "enrichments": {
                        "categories": {
                          "l1": {
                            "slug": "eating_out",
                            "confidence": "0.99"
                          },
                          "l2": {
                            "slug": "cafes_and_eating_out",
                            "confidence": "0.98"
                          }
                        },
                        "merchant": {
                          "id": "0980cf54-6052-4527-84ff-e6f9b169884f",
                          "slug": "tesco_stores",
                          "display_name": "Tesco",
                          "logo": "http://url/tesco_stores_logo.jpeg",
                          "tokens": [
                            {
                              "value": "tesco",
                              "confidence": "0.96"
                            }
                          ]
                        },
                        "location": {
                          "address": {
                            "address_lines": [
                              "180",
                              "Shepherds Bush Rd",
                              "London",
                              "W6 7NL",
                              "United Kingdom"
                            ],
                            "street_address": "Shepherds Bush Rd",
                            "city": "London",
                            "postal_code": "W6 7NL",
                            "country": "United Kingdom"
                          },
                          "geolocation": {
                            "longitude": 51.497678,
                            "latitude": -0.223766
                          }
                        },
                        "transaction_types": [
                          "card",
                          "debit"
                        ]
                      }
                    }
                  ],
                  "metadata": {
                    "results": 2,
                    "created_at": "2023-11-23T10:41:55Z"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Custom insight doesn't exist, or there has been no profile built for this customer"
          },
          "5XX": {
            "description": "An unexpected error occurred on the server side"
          }
        }
      }
    },
    "/insights/v1/custom/profile": {
      "get": {
        "tags": [
          "Custom Insights"
        ],
        "summary": "Retrieve custom insights profile",
        "description": "Lists the insights which applied to a customer at \\'created_at\\'.\nTo recompute make a call to Build custom insights profile.\n",
        "deprecated": false,
        "security": [
          {
            "OAuth2": []
          }
        ],
        "operationId": "custom_insight_v1_profile_get",
        "parameters": [
          {
            "$ref": "#/paths/~1insights~1v1~1custom~1manage/get/parameters/0"
          },
          {
            "in": "header",
            "name": "X-Customer-Id",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "required": true,
            "description": "A unique identifier for a Customer, as registered on Bud's platform.",
            "example": "c3339af9-2426-44d4-9c4d-ddb8fd281e23"
          },
          {
            "in": "header",
            "name": "X-Customer-Idempotent-Identifier",
            "schema": {
              "type": "string"
            },
            "description": "Use the internal client identifier, provided in the `client_metadata` object when creating the customer in __Create Customer V3__, in place of an `X-Customer-Id` header.\n"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "operation_id",
                    "data"
                  ],
                  "properties": {
                    "operation_id": {
                      "type": "string"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "custom_insight_id",
                          "identifier",
                          "link",
                          "created_at"
                        ],
                        "properties": {
                          "custom_insight_id": {
                            "type": "string",
                            "format": "uuid",
                            "description": "A uuid for the query used to generate the insight"
                          },
                          "identifier": {
                            "type": "string",
                            "description": "A human readable identifier set in the query INFER <identifier> FROM ..."
                          },
                          "created_at": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "link": {
                            "description": "link to a detail view of the insight",
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "operation_id": "custom_insight_v1_profile_get",
                  "data": [
                    {
                      "identifier": "always_true",
                      "custom_insight_id": "19ebab24-9c73-4802-b5d2-c401f3558d8d",
                      "link": "insights/v1/custom/detail/19ebab24-9c73-4802-b5d2-c401f3558d8d",
                      "created_at": "2021-08-11T14:00:00Z"
                    }
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "OAuth2": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "/v1/oauth/token",
            "scopes": {}
          }
        },
        "description": "\nAuthentication flow:\n\n1. Perform OAuth2 Client Credentials authentication using API Credentials (`client_id`,`client_secret`) to obtain an `access_token` against `/v1/oauth/token` endpoint,\n2. Use `access_token` as Bearer Authorisation for every other API request,\n3. Include `X-Client-Id` (=client_id) within the header of every API request,\n4. Note that some of the requests may also require `X-Customer-Id` to be provided within the request header.\n\n### Examples\nObtain OAuth2 `access_token` and `refresh_token` using `grant_type=client_credentials` and HTTP Basic auth header\n\n```\ncurl --basic --user {{client_id}}:{{client_secret}} \\\n  -X POST https://api-sandbox.thisisbud.com/v1/oauth/token \\\n  -H 'Content-Type: application/x-www-form-urlencoded' \\\n  -d grant_type=client_credentials\n```\n\nSuccessful response:\n```\n{\n  \"operation_id\": \"oauth_token_post\",\n  \"data\": {\n    \"access_token\": \"dd0c17e3fd6d2ce94aa091257a3ea393b4f9b5cf3d3e998f07dc9826da86ff15\",\n    \"token_type\": \"bearer\",\n    \"expires_in\": 3600,\n    \"refresh_token\": \"fac32cca7559d9f6e8f1dfe9a99c71fa1dcfeb482bedf287d7934d2667ae54b3\"\n  }\n}\n```\n\nRefresh `access_token` token using `refresh_token` against `/v1/oauth/token` endpoint with `grant_type=refresh_token`\n\n```\ncurl -X POST \\\n  https://api-sandbox.thisisbud.com/v1/oauth/token \\\n  -H 'Content-Type: application/x-www-form-urlencoded' \\\n  -H 'X-Client-Id: {{client_id}}' \\\n  -d 'grant_type=refresh_token&refresh_token={{refresh_token}}'\n```\n\nSuccessful response:\n```\n{\n    \"operation_id\": \"oauth_token_post\",\n    \"data\": {\n        \"access_token\": \"cc0c17e3fd6d2ce94aa091257a3ea393b4f9b5cf3d3e998f07dc9826da86ff94\",\n        \"token_type\": \"bearer\",\n        \"expires_in\": 3600,\n        \"refresh_token\": \"ffc30cca7559d9f6e8f1dfe9a99c71fa1dcfeb482bedf287d7934d2667ae54b3\"\n    }\n}\n```\n"
      }
    }
  }
}
````