---
updatedAt: 2025-01-20T13:47:13.000Z
agentTools:
  projectIndex: https://docs.loanwise.nl/llms.txt
---

# Get all available categories

List of all available categories

# OpenAPI definition

````json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Transaction API",
    "version": "1.2",
    "contact": {
      "name": "Loanwise Support",
      "url": "https://www.loanwise.nl/",
      "email": "contact@loanwise.nl"
    },
    "description": "An API key can be obtained from your dashboard: (www.loanwise.nl/dashboard)\n"
  },
  "servers": [
    {
      "url": "https://www.loanwise.nl/api",
      "description": "Production"
    }
  ],
  "tags": [
    {
      "name": "Categories",
      "description": ""
    },
    {
      "name": "Webhooks",
      "description": "Webhooks are a way for Loanwise to notify your application when a specific event occurs. For example, when a household is analysed, a webhook can be triggered to notify your application.\n\n### Authentication\n\nWebhooks are authenticated using a secret key that is unique to your account. This secret key is used to sign the payload of the webhook. The signature is passed in the `Signature` header of the webhook request.\nOur signing method is simple but efficient. For every webhook we call, we pass an additional header called `Signature` that contains the hash of the payload.\n\nIn your webhook, you can validate if that `Signature` header contains the hash you expected.\n\n#### Computing the correct signature\n\n```php\n$computedSignature = hash_hmac('sha256', $payload, $secret);\n```\n- The `$payload` is the body of the POST request, which will be a JSON representation of the event.\n- The `$secret` can be set on the [developer page](https://www.loanwise.nl/dashboard/developers) in your dashboard.\n- The `hash_hmac()` function is a [PHP function](https://www.php.net/hash_hmac) that generates a keyed hash value using the HMAC method.\n- The `$computedSignature` should match the Signature header in the webhook call.\n"
    }
  ],
  "paths": {
    "/categories": {
      "get": {
        "summary": "Get all available categories",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ResponseWrapperArray"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "uniqueItems": true,
                          "minItems": 1,
                          "items": {
                            "required": [
                              "name",
                              "slug"
                            ],
                            "properties": {
                              "name": {
                                "type": "string",
                                "minLength": 1
                              },
                              "slug": {
                                "type": "string",
                                "minLength": 1
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "get-categories",
        "description": "List of all available categories",
        "tags": [
          "Categories"
        ]
      }
    }
  },
  "webhooks": {
    "test": {
      "post": {
        "summary": "test",
        "description": "Test webhook to verify your implementation.\n",
        "tags": [
          "Webhooks"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/Webhook"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "data": {
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "string",
                            "example": "success"
                          }
                        }
                      }
                    }
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Acknowledged"
          }
        }
      }
    },
    "household_status_updated": {
      "post": {
        "summary": "household_status_updated",
        "description": "Triggered when the status of a household changes. The status can be one of the following:\n- `waiting_for_consent` (Household was created and is waiting on for consent from the consumer)\n- `analysis_completed` (Transactions are analysed)\n- `cleaned` (Household information is deleted)\n",
        "tags": [
          "Webhooks"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/Webhook"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "data": {
                        "$ref": "#/components/schemas/Household"
                      }
                    }
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Acknowledged"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ResponseWrapperArray": {
        "title": "ResponseWrapperArray",
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        },
        "required": [
          "data"
        ]
      },
      "Webhook": {
        "title": "Webhook",
        "type": "object",
        "description": "Base object for webhooks",
        "properties": {
          "type": {
            "type": "string",
            "description": "The unique identifier of the webhook",
            "example": "household_status_updated"
          },
          "data": {
            "type": "object",
            "description": "The content of the webhook"
          }
        },
        "required": [
          "type",
          "data"
        ]
      },
      "Household": {
        "title": "Household",
        "type": "object",
        "description": "A household can optionally have multiple members.",
        "x-examples": {},
        "x-tags": [
          "Models"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "external_reference": {
            "type": "string"
          },
          "members": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Member"
            }
          },
          "wizard_url": {
            "type": "string",
            "description": "Url that should be used by the consumer to provide all bank consents."
          },
          "analysis_url": {
            "description": "Provides direct access to Loanwise analysis page (Loanwise account required).",
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "waiting_for_consent",
              "analysis_completed",
              "cleaned"
            ]
          },
          "product_type": {
            "type": "string",
            "enum": [
              "check",
              "report"
            ]
          },
          "brand": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "name": {
                "type": "string"
              },
              "code": {
                "type": "string"
              }
            }
          },
          "consent_confirmed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "example": "2025-11-11T15:30:00+00:00",
            "description": "Date and time when the consumer confirmed consent in the consent flow."
          }
        },
        "required": [
          "id",
          "external_reference",
          "members",
          "wizard_url",
          "analysis_url",
          "status",
          "product_type",
          "brand",
          "consent_confirmed_at"
        ]
      },
      "Member": {
        "title": "Member",
        "x-examples": {
          "example-1": {
            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
            "household_id": "f01c6697-3de0-4446-8e7d-4bffe5f9377b",
            "initials": "string",
            "tussenvoegsels": "string",
            "last_name": "string"
          }
        },
        "description": "A member within a household",
        "type": "object",
        "x-tags": [
          "Models"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "household_id": {
            "type": "string",
            "format": "uuid"
          },
          "initials": {
            "type": "string"
          },
          "last_name_prefix": {
            "type": "string"
          },
          "last_name": {
            "type": "string"
          }
        }
      }
    },
    "securitySchemes": {
      "Authorization": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "Bearer"
      }
    }
  },
  "security": [
    {
      "Authorization": []
    }
  ]
}
````