Skip to content

Resend invitation

POST
/api/v1/organizations/{orgId}/invitations/{id}/resend
curl --request POST \
--url http://localhost:3000/api/v1/organizations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/invitations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/resend \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <X-API-Key>' \
--data '{ "expiresInDays": 7 }'

Resends an invitation email and optionally resets the expiration.

orgId
required
string format: uuid

Organization UUID

id
required
string format: uuid

Invitation UUID

Media type application/json
object
expiresInDays

Number of days until the invitation expires (resets the expiration)

number
default: 7 >= 1 <= 30
Example
7

Invitation resent successfully

Media type application/json
object
id
required

Unique invitation identifier

string format: uuid
email
required

Email address the invitation was sent to

string format: email
roleId
required

Role ID that will be assigned when the invitation is accepted

string format: uuid
organizationId
required

Organization ID the user will be added to

string format: uuid
organizationName
required

Name of the organization

string
invitedById

User ID who sent the invitation (null if inviter was deleted)

string format: uuid
invitedByEmail

Email of the user who sent the invitation (null if inviter was deleted)

string format: email
expiresAt
required

When the invitation expires

string format: date-time
acceptedAt

When the invitation was accepted (null if pending)

string format: date-time
createdAt
required

When the invitation was created

string format: date-time
isPending
required

Whether the invitation is pending (not accepted)

boolean
isExpired
required

Whether the invitation has expired

boolean
Example
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"email": "newuser@example.com",
"roleId": "550e8400-e29b-41d4-a716-446655440001",
"organizationId": "550e8400-e29b-41d4-a716-446655440002",
"organizationName": "Acme Corporation",
"invitedById": "550e8400-e29b-41d4-a716-446655440003",
"invitedByEmail": "admin@acme.com",
"expiresAt": "2024-06-27T10:30:00Z",
"acceptedAt": "2024-06-21T14:45:00Z",
"createdAt": "2024-06-20T10:30:00Z",
"isPending": true,
"isExpired": false
}

Invitation already accepted

Unauthorized

Forbidden - Insufficient permissions

Invitation not found