---
title: "Get routine suggestions based on user goals"
method: POST
path: "/activity-library/routine-suggestions"
tags: ["activity-library"]
---

# Get routine suggestions based on user goals

`POST /activity-library/routine-suggestions`

## 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/activity-library/routine-suggestions`
- Auth: HTTP bearer

## Request body

- GetRoutineSuggestionsDto
  - `habit_theme` string
  - `user_goals` UserGoalDto[], required
    - `goal` string, required
    - `isCustom` boolean
  - `routine_duration` number, required
  - `routine` string
  - `groupByGoals` boolean
  - `language` 'en' | 'es' | 'de' | 'ja' | 'vi' | 'pt-BR' | 'pt-PT' | 'zh-CN' | 'zh-TW' | 'nl' | 'tl' | 'fr' | 'it' | 'pl' | 'ru' | 'ar' | 'ro'

## Response `201`

- object

## Other responses

- `429`: Too many requests

---

[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)
