---
title: "Handle Klaviyo Request"
method: POST
path: "/api/v1/integrations/klaviyo/{plan_manager_id}/{method}"
tags: ["klaviyo"]
---

# Handle Klaviyo Request

`POST /api/v1/integrations/klaviyo/{plan_manager_id}/{method}`

## Request

- Base URL: `https://api.caresquare.com.au` (the document declares no server; this is the origin it was published from)
- URL: `https://api.caresquare.com.au/api/v1/integrations/klaviyo/{plan_manager_id}/{method}`
- Auth: none declared

Generic handler for Klaviyo API requests.

Args:
    plan_manager_id: The ID of the plan manager
    method: The Klaviyo API method to call
    current_user: The authenticated user making the request

Returns:
    KlaviyoResponse: The response from the Klaviyo API

Raises:
    HTTPException: If the method is not supported or if there's an error

## Path parameters

- `plan_manager_id` string, required
- `method` string, required

## Request body

- object

## Response `200`

Successful Response

- KlaviyoResponse
  - `success` boolean, required
  - `data` unknown
  - `error` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/caresquare/apis/caresquare-api.md) - [All operations](https://skmtc.dev/caresquare/apis/caresquare-api/llms.txt) - [OpenAPI document](https://skmtc.dev/caresquare/apis/caresquare-api/revisions/d428fe38bf62?raw)
