---
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}`

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/fastapi.md) · [All operations](https://skmtc.dev/caresquare/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/caresquare/fastapi/revisions/c9df874d8d59/schema)
