---
updatedAt: 2026-10-26T15:37:56.000Z
agentTools:
  projectIndex: https://docs-us.thisisbud.com/llms.txt
---

# Generate Spending Analysis URL

Generates a URL to access the customer's spending analysis.

# OpenAPI definition

````json
{
  "openapi": "3.0.3",
  "info": {
    "version": "1.0.0",
    "title": "Widgets 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+EzODHjDLTcj5Ns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Am6AsiT0Nljp/CYl0Twaze9ZaaN3u5w5jAy5L2ylhe/4nAu+S1Qwl+oCsrjCV2wM2KXfwSPUcmPIGv9LPZ91Ye1TEnEb80ztNLE+Dv8MS0RERERERERERERERERERERERERERERERERERERERERERERERERs+Q/rhi5WauEgfQAAAABJRU5ErkJggg=="
    },
    "description": "These endpoints let you embed Bud's frontend widgets in your own application and manage the account selection\nthat the widgets use.\n"
  },
  "tags": [
    {
      "name": "Frontend Widgets",
      "x-displayName": "Frontend Widgets",
      "description": "A collection of frontend widgets representing customer financial data."
    }
  ],
  "x-readme": {
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "servers": [
    {
      "url": "https://api-sandbox.thisisbud.com",
      "description": "Bud sandbox"
    }
  ],
  "paths": {
    "/widget/v1/summary/url": {
      "post": {
        "tags": [
          "Frontend Widgets"
        ],
        "summary": "Generate Card Summary URL",
        "description": "Generates customer's weekly summary insights.",
        "deprecated": false,
        "security": [
          {
            "OAuth2": []
          }
        ],
        "operationId": "insights_v1_summary_url_post",
        "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"
          },
          {
            "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"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "summary_type"
                ],
                "properties": {
                  "summary_type": {
                    "type": "string",
                    "enum": [
                      "weekly",
                      "monthly",
                      "quarterly"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful response containing the Card Summary URL and metadata.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "operation_id": {
                      "type": "string",
                      "enum": [
                        "insights_v1_summary_url_post"
                      ]
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "url": {
                          "type": "string",
                          "format": "uri"
                        }
                      }
                    },
                    "metadata": {
                      "type": "object",
                      "properties": {
                        "sufficient_data": {
                          "type": "boolean"
                        },
                        "number_of_insights": {
                          "type": "integer"
                        },
                        "summary_to": {
                          "title": "Date/Time (ISO 8601)",
                          "type": "string",
                          "description": "ISO Date Format",
                          "example": "2022-03-05T13:34:33Z"
                        },
                        "summary_from": {
                          "$ref": "#/paths/~1widget~1v1~1summary~1url/post/responses/201/content/application~1json/schema/properties/metadata/properties/summary_to"
                        }
                      }
                    }
                  }
                },
                "example": {
                  "operation_id": "insights_v1_summary_url_post",
                  "data": {
                    "url": "https://widgets.thisisbud.com/summary/953ea9c1-faee-4daf-9790-4cfd649f66f7?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBfaWQiOiI5MWQ5ZmRjZC03MjI3LTQyMTAtYWNiYi0xY2VhNDY0OTA0NzAiLCJhdWQiOlsiaHR0cHM6Ly93aWRnZXQtcHJveHkudGhpc2lzYnVkLmNvbSJdLCJjdXN0b21lcl9pZCI6IjY5Yjg4YmM3LTI5OGYtNDY2NC04NWQ5LWM5YWJiZTM5NDg1NiIsImV4cCI6MTczMjY1MTIwMCwic3ViIjoiMTIzNDU2Nzg5MCIsIm9yZ19pZCI6IjdmMDU5OTUwLWNjYTctNGZiMS1hZTQyLTc1NzdkNzA5N2NmNyIsIm9yZ19zbHVnIjoiYnVkIn0.0ufJFC16yNps0npeOp60dC97GP6er2t1zuQcQ11IHp8"
                  },
                  "metadata": {
                    "sufficient_data": true,
                    "number_of_insights": 5,
                    "summary_to": "2023-05-16T17:30:00Z",
                    "summary_from": "2023-05-09T17:30:00Z"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Not supported summary type was requested"
          },
          "401": {
            "description": "Customer doesn't exist"
          },
          "5XX": {
            "description": "An unexpected error occurred on the server side"
          }
        }
      }
    },
    "/widget/v1/spending-analysis/url": {
      "post": {
        "tags": [
          "Frontend Widgets"
        ],
        "security": [
          {
            "OAuth2": []
          }
        ],
        "operationId": "insights_v1_spending_analysis_url_post",
        "summary": "Generate Spending Analysis URL",
        "description": "Generates a URL to access the customer's spending analysis.",
        "parameters": [
          {
            "$ref": "#/paths/~1widget~1v1~1summary~1url/post/parameters/0"
          },
          {
            "$ref": "#/paths/~1widget~1v1~1summary~1url/post/parameters/1"
          },
          {
            "$ref": "#/paths/~1widget~1v1~1summary~1url/post/parameters/2"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "additional_query_params": {
                    "allOf": [
                      {
                        "$ref": "#/paths/~1widget~1v1~1accounts~1url/post/requestBody/content/application~1json/schema/properties/additional_query_params/allOf/0"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful response containing Spending Analysis URL and metadata.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "operation_id": {
                      "type": "string",
                      "enum": [
                        "insights_v1_spending_analysis_url_post"
                      ]
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "url": {
                          "type": "string",
                          "format": "uri"
                        }
                      }
                    },
                    "metadata": {
                      "type": "object",
                      "properties": {
                        "sufficient_data": {
                          "type": "boolean"
                        }
                      }
                    }
                  }
                },
                "example": {
                  "operation_id": "insights_v1_spending_analysis_url_post",
                  "data": {
                    "url": "https://widgets.thisisbud.com/spending-analysis?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBfaWQiOiI5MWQ5ZmRjZC03MjI3LTQyMTAtYWNiYi0xY2VhNDY0OTA0NzAiLCJhdWQiOlsiaHR0cHM6Ly93aWRnZXQtcHJveHkudGhpc2lzYnVkLmNvbSJdLCJjdXN0b21lcl9pZCI6IjY5Yjg4YmM3LTI5OGYtNDY2NC04NWQ5LWM5YWJiZTM5NDg1NiIsImV4cCI6MTczMjY1MTIwMCwic3ViIjoiMTIzNDU2Nzg5MCIsIm9yZ19pZCI6IjdmMDU5OTUwLWNjYTctNGZiMS1hZTQyLTc1NzdkNzA5N2NmNyIsIm9yZ19zbHVnIjoiYnVkIn0.0ufJFC16yNps0npeOp60dC97GP6er2t1zuQcQ11IHp8"
                  },
                  "metadata": {
                    "sufficient_data": true
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "5XX": {
            "description": "An unexpected error occurred on the server side"
          }
        }
      }
    },
    "/widget/v1/accounts/url": {
      "post": {
        "tags": [
          "Frontend Widgets"
        ],
        "summary": "Generate Accounts URL",
        "description": "Generates a URL to access the customer's account.",
        "deprecated": false,
        "security": [
          {
            "OAuth2": []
          }
        ],
        "operationId": "insights_v1_accounts_url_post",
        "parameters": [
          {
            "$ref": "#/paths/~1widget~1v1~1summary~1url/post/parameters/0"
          },
          {
            "$ref": "#/paths/~1widget~1v1~1summary~1url/post/parameters/1"
          },
          {
            "$ref": "#/paths/~1widget~1v1~1summary~1url/post/parameters/2"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "additional_query_params": {
                    "allOf": [
                      {
                        "type": "object",
                        "properties": {
                          "base_heading_level": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 6
                          },
                          "color_mode": {
                            "type": "string",
                            "enum": [
                              "system",
                              "light",
                              "dark"
                            ]
                          }
                        }
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful response containing accounts URL and metadata.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "operation_id": {
                      "type": "string",
                      "enum": [
                        "insights_v1_accounts_url_post"
                      ]
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "url": {
                          "type": "string",
                          "format": "uri"
                        }
                      }
                    },
                    "metadata": {
                      "type": "object",
                      "properties": {
                        "sufficient_data": {
                          "type": "boolean"
                        }
                      }
                    }
                  }
                },
                "example": {
                  "operation_id": "insights_v1_accounts_url_post",
                  "data": {
                    "url": "https://widgets.thisisbud.com/accounts?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBfaWQiOiI5MWQ5ZmRjZC03MjI3LTQyMTAtYWNiYi0xY2VhNDY0OTA0NzAiLCJhdWQiOlsiaHR0cHM6Ly93aWRnZXQtcHJveHkudGhpc2lzYnVkLmNvbSJdLCJjdXN0b21lcl9pZCI6IjY5Yjg4YmM3LTI5OGYtNDY2NC04NWQ5LWM5YWJiZTM5NDg1NiIsImV4cCI6MTczMjY1MTIwMCwic3ViIjoiMTIzNDU2Nzg5MCIsIm9yZ19pZCI6IjdmMDU5OTUwLWNjYTctNGZiMS1hZTQyLTc1NzdkNzA5N2NmNyIsIm9yZ19zbHVnIjoiYnVkIn0.0ufJFC16yNps0npeOp60dC97GP6er2t1zuQcQ11IHp8"
                  },
                  "metadata": {
                    "sufficient_data": true
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "5XX": {
            "description": "An unexpected error occurred on the server side"
          }
        }
      }
    }
  },
  "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"
      }
    }
  }
}
````