---
title: "Execute Action"
method: POST
path: "/api/chat/execute-action"
tags: ["Chat"]
---

# Execute Action

`POST /api/chat/execute-action`

## Request

- Base URL: `https://api.earmarkiq.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.earmarkiq.app/api/chat/execute-action`
- Auth: HTTP bearer

Execute an action suggested by the AI chat (create goal, budget, challenge).

## Request body

- ExecuteActionRequest
  - `action_type` string, required
  - `params` object

## Response `200`

Successful Response

- ExecuteActionResponse
  - `success` boolean, required
  - `message` string, required
  - `created_id` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/earmarkiq/apis/earmark-api.md) · [All operations](https://skmtc.dev/earmarkiq/apis/earmark-api/llms.txt) · [OpenAPI document](https://skmtc.dev/earmarkiq/apis/earmark-api/revisions/4a2c41907105?raw)
