---
title: "Attach a mailbox to current user"
method: POST
path: "/2/profile/ksuites/mailboxes"
tags: ["kSuite > Workspace"]
---

# Attach a mailbox to current user

`POST /2/profile/ksuites/mailboxes`

## Request body

- object
  - `password` string, required — Mailbox password
  - `is_primary` boolean — Set mailbox as primary

## Response `201`

Created

- object
  - `result` 'success' | 'error' | 'asynchronous', required — Result of the HTTP request
  - `data` boolean

## Other responses

- `400` — Too many attempts try again in 1 minute
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools.md) · [All operations](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/infomaniak/api-reference-developer-tools/revisions/667aae28fec6/schema)
