---
title: "Send a user invitation"
method: POST
path: "/api/users/{userId}/invitation"
tags: ["User"]
---

# Send a user invitation

`POST /api/users/{userId}/invitation`

Sends or resends an invitation email to a user who has been invited but not yet accepted.

## Path parameters

- `userId` string, uuid, required

## Response `200`

The created invitation

- object — The created invitation
  - `id` string, uuid, required — Unique identifier of the invitation
  - `email` string, email, required — Email address the invitation was sent to
  - `status` 'pending' | 'accepted', required — Current status of the invitation
  - `userId` string, uuid, required — ID of the user associated with this invitation
  - `createdAt` string, required — Timestamp when the invitation was created
  - `expiresAt` string, nullable — Timestamp when the invitation expires

---

[API](https://skmtc.dev/gorules/apis/gorules-agent-api.md) · [All operations](https://skmtc.dev/gorules/apis/gorules-agent-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gorules/gorules-agent-api/revisions/52c0773fcd80/schema)
