---
title: "Add User To Workspace"
method: POST
path: "/workspaces/{workspace_id}/users"
tags: ["Workspaces"]
---

# Add User To Workspace

`POST /workspaces/{workspace_id}/users`

## Request

- Base URL: `https://api.aspect.inc`
- URL: `https://api.aspect.inc/workspaces/{workspace_id}/users`
- Auth: API key in header `Authorization`

Add a user to a workspace with the specified role.

If the person has no Aspect account yet, they're invited by email.

Only workspace owners (ADMIN) can add users to a workspace.
Role must be a valid workspace role: owner, member, or member_limited.

## Path parameters

- `workspace_id` string, uuid, required

## Request body

- WorkspaceAddUserRequest: Add a person to a workspace. If the email has no Aspect account yet, the person is invited.
  - `email` string, required: Email of the user to add to workspace
  - `role` 'owner' | 'member' | 'member_limited': Role in a workspace.
  - `purchase_seat` boolean: Buy a seat if none is free (prorated, charged now). Ignored when a seat is free.

## Response `201`

Successful Response

- WorkspaceUserResponse: API response schema for a workspace user.
  - `id` string, uuid, required: User ID
  - `first_name` string, required: User's first name
  - `last_name` string, required: User's last name
  - `email` string, required: User's email address
  - `avatar_url` string, nullable: User's avatar URL
  - `role` 'owner' | 'member' | 'member_limited', required: Role in a workspace.

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/aspect/apis/aspect-api.md) - [All operations](https://skmtc.dev/aspect/apis/aspect-api/llms.txt) - [OpenAPI document](https://skmtc.dev/aspect/apis/aspect-api/revisions/28ea5f1adb54?raw)
