---
title: "Send invite to site user."
method: POST
path: "/v1/sites/{id}/users"
tags: ["Site Users"]
---

# Send invite to site user.

`POST /v1/sites/{id}/users`

For a given site and send an invite for site user to join. The invite will expire in 7 days.

## Path parameters

- `id` integer, required — ID of the Site you are interacting with

## Request body

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

## Response `200`

OK

- InviteSiteUserResponse
  - `success` boolean — whether the request succeeded
  - `errors` string[]
  - `messages` string[], nullable
  - `result` object
    - `success` boolean — True if the user was invited successfully, false otherwise
    - `id` integer — ID of the user that was invited

## 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)
