---
title: "Invite Harbor User"
method: POST
path: "/api/harbors/{harbor_id}/users"
tags: ["Harbors"]
---

# Invite Harbor User

`POST /api/harbors/{harbor_id}/users`

Invites and assigns a new Harbor-only user.

The invited account is restricted to assigned Harbors and does not receive regular Polytomic application access.

## Path parameters

- `harbor_id` string, uuid, required — Unique identifier of the Harbor.

## Headers

- `X-Polytomic-Version` string

## Request body

- InviteHarborUserRequest
  - `email` string, required — Email address used to invite the Harbor-only user.

## Response `200`

OK

- HarborUserEnvelope
  - `data` HarborUserResponse
    - `created_at` string, date-time — When the user was invited.
    - `email` string — Email address used to sign in.
    - `harbor_ids` string[], nullable — Harbors assigned to this user.
    - `harbor_only` boolean — Whether the account is restricted to assigned Harbors.
    - `id` string, uuid — Unique identifier of the user.
    - `organization_id` string, uuid — Organization the user belongs to.
    - `status` string — Current account status.

## Other responses

- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict
- `422` — Unprocessable Entity
- `500` — Internal Server Error

---

[API](https://skmtc.net/polytomic/apis/polytomic-api.md) · [All operations](https://skmtc.net/polytomic/apis/polytomic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/polytomic/polytomic-api/revisions/00c653316d35/schema)
