Send an invitation to a new user
curl --request POST \
--url https://api.wacht.dev/invited-users \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"email": "jsmith@example.com",
"role": "<string>",
"organization_id": "<string>"
}'
{
"id": "<string>",
"email": "jsmith@example.com",
"invited_at": "2023-11-07T05:31:56Z"
}
JWT Bearer token authentication using the Authorization header
Invitation sent successfully
The response is of type object
.
curl --request POST \
--url https://api.wacht.dev/invited-users \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"email": "jsmith@example.com",
"role": "<string>",
"organization_id": "<string>"
}'
{
"id": "<string>",
"email": "jsmith@example.com",
"invited_at": "2023-11-07T05:31:56Z"
}