---
title: "Create new site user."
method: POST
path: "/v1/sites/users"
tags: ["Site Users"]
---

# Create new site user.

`POST /v1/sites/users`

Create new user that has site access rights.

## Request body

- CreateSiteUserRequest
  - `name` string, required — Name of the site user
  - `email` string, required — Email address of the site user

## Response `200`

OK

- CreateSiteUserResponse
  - `success` boolean — whether the request succeeded
  - `errors` string[]
  - `messages` string[], nullable
  - `result` SiteUserExtended
    - `id` integer — ID of the site user
    - `site_id` integer — ID of the Site the Site User has access to
    - `name` string — Name of the site user
    - `email` string — Site user's email address (username)
    - `status` 'Active' | 'Declined' | 'Invited' — Status of the site user's access to this site
    - `token` string — Password Reset Token
    - `created_at` string — Time stamp of when the record was created

## Other responses

- `400` — Bad Request
- `401` — Authentication failed
- `403` — Not authorized to access endpoint
- `404` — Given site not found for user
- `405` — Invalid input
- `500` — Internal error

---

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