---
title: "POST /api/v1/spaces/{space}/invitations"
method: POST
path: "/api/v1/spaces/{space}/invitations"
tags: ["SpaceService"]
---

# POST /api/v1/spaces/{space}/invitations

`POST /api/v1/spaces/{space}/invitations`

CreateSpaceInvitation invites an existing active user to a space.

## Path parameters

- `space` string, required

## Request body

- SpaceInvitation — SpaceInvitation is a pending invitation for an existing user to join a space.
  - `name` string — The resource name. Format: spaces/{space}/invitations/{username}.
  - `invitee` string, required — Required. The invited user. Format: users/{username}.
  - `role` 'ROLE_UNSPECIFIED' | 'ADMIN' | 'USER', enum, required — Required. The role the user will receive after accepting the invitation.
  - `space` Space — Space is a collaboration boundary for placed memos.
    - `name` string — The resource name of the space. Format: spaces/{space}.
    - `title` string, required — Required. The human-readable title.
    - `description` string — Optional. A description of the space.
    - `currentUserRole` 'ROLE_UNSPECIFIED' | 'ADMIN' | 'USER', enum — Output only. The authenticated user's membership role in this space. ROLE_UNSPECIFIED when this Space is exposed as metadata-only.
    - `memberCount` integer — Output only. The number of accepted members in this space. Pending invitations are excluded. Zero when this Space is exposed as metadata-only.

## Response `200`

OK

- SpaceInvitation — SpaceInvitation is a pending invitation for an existing user to join a space.
  - `name` string — The resource name. Format: spaces/{space}/invitations/{username}.
  - `invitee` string, required — Required. The invited user. Format: users/{username}.
  - `role` 'ROLE_UNSPECIFIED' | 'ADMIN' | 'USER', enum, required — Required. The role the user will receive after accepting the invitation.
  - `space` Space — Space is a collaboration boundary for placed memos.
    - `name` string — The resource name of the space. Format: spaces/{space}.
    - `title` string, required — Required. The human-readable title.
    - `description` string — Optional. A description of the space.
    - `currentUserRole` 'ROLE_UNSPECIFIED' | 'ADMIN' | 'USER', enum — Output only. The authenticated user's membership role in this space. ROLE_UNSPECIFIED when this Space is exposed as metadata-only.
    - `memberCount` integer — Output only. The number of accepted members in this space. Pending invitations are excluded. Zero when this Space is exposed as metadata-only.

## Other responses

- `default` — Default error response

## Changes

- **2026-08-26** `46e01ed2a226` — 2 info
  - added the optional property `space/allOf[#/components/schemas/Space]/currentUserRole` to the response with the `200` status
  - added the optional property `space/allOf[#/components/schemas/Space]/memberCount` to the response with the `200` status
- **2026-08-25** `a77a8e6d70bb` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/usememos/apis/untitled-api/changes/api/v1/spaces/:space/invitations/post.md)

---

[API](https://skmtc.dev/usememos/apis/untitled-api.md) · [All operations](https://skmtc.dev/usememos/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/usememos/untitled-api/revisions/9f2688df7c2e/schema)
