# POST /marketing/campaigns/:campaign_id/costs

**Resource:** [MARKETING](./marketing.md)  
**MCP tool:** `log_marketing_cost`  
**Scopes:** `marketing:write`  
**Write operation:** yes

Log a cost against a campaign: cash (amount) or staff time (hours, with an optional estimated value kept apart from cash), actual or committed, with a category. Meta spend of linked Meta campaigns is imported on its own, so only log ads paid elsewhere; a warning says when an ads cost may double count.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `campaign_id` | path | string | yes | The campaign id (from list_marketing_campaigns). |
| `spent_on` | body | string | no | Day it was spent or worked, YYYY-MM-DD. Defaults to today. |
| `kind` | body | string | no | cash (money out, the default) or staff_time (hours worked; never added to cash). |
| `amount` | body | number | no | cash: the amount. staff_time: an optional estimated value of the hours, shown apart from cash. |
| `hours` | body | number | no | staff_time: hours worked. |
| `currency` | body | string | no | Currency code, default the campaign's currency. |
| `category` | body | string | no | ads, production, software, ai_credits, contractor, events or other. Meta ad spend from linked Meta campaigns is imported automatically, so only log ads paid elsewhere. |
| `status` | body | string | no | actual (spent, the default) or committed (agreed but not yet paid). |
| `note` | body | string | no | What it was for. |
| `require_approval` | body | boolean | no | Optional. Set true to route this write into the approval queue for human review instead of executing it immediately (returns 202 + an approval_id). Works even when your key/token has permission to execute directly. |

## Request example

```bash
curl -X POST   "https://api.trustpager.com/functions/v1/api/v1/marketing/campaigns/:campaign_id/costs"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"spent_on":"...","kind":"...","amount":"..."}'
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`