---
title: "POST /activity-library/habits/import/async"
method: POST
path: "/activity-library/habits/import/async"
tags: ["activity-library"]
---

# POST /activity-library/habits/import/async

`POST /activity-library/habits/import/async`

## 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/habits/import/async`
- Auth: HTTP bearer

## Request body

- HabitImportUploadedDto
  - `routineDurationMinutes` number
  - `mediaKey` string, required
  - `mediaType` 'audio' | 'image', required
  - `routineType` 'morning' | 'evening' | 'break'

## Response `202`

---

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