---
title: "Complete a habit by name and routine name"
method: POST
path: "/external/v1/habit/complete"
tags: ["External API (Zapier/n8n)"]
---

# Complete a habit by name and routine name

`POST /external/v1/habit/complete`

## Request

- Base URL: `https://api.focusbear.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.focusbear.io/external/v1/habit/complete`
- Auth: HTTP bearer

## Request body

- CompleteHabitDto
  - `habit_name` string, required: Name of the habit to complete
  - `routine_name` string: Name of the routine containing the habit (e.g., "morning", "evening", "break")
  - `duration_seconds` number: Duration in seconds (default: activity duration or 60)

## Response `200`

Habit completed successfully

---

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