Resend an invitation
POST /fapi/v1/organizations/{org_id}/invitations/{invitation_id}:resend · called from the environment's sign-in host
Sends a pending e-mail invitation again, with a new link; the earlier link stops working. The expiry date does not move. An invitation can be sent at most five times, at least ten minutes apart; a send that comes too soon or one too many returns 429 invite_rate_limited with Retry-After. An invitation that is no longer pending, or one created without e-mail delivery, returns 422 invitation_invalid. The link itself is never returned.
Requires the authenticated user's __Host-idp_session cookie with an exact Origin, or a first-party app's front API access token (Authorization: DPoP <token> with a DPoP proof; see Front API access token). The user must be an active member of the organization with the idp_members:invite permission. A user who is not a member gets 404 not_found; a member without the permission gets 403 insufficient_permissions. Only a member who holds the admin role can resend an invitation that carries a privileged role (403 role_not_assignable).
With @keenauth/js: await keenauth.organizations.resendInvitation(orgId, invitationId).
Request
Headers:
| Header | Required | Description |
|---|---|---|
Idp-Client |
yes | SDK identifier. |
Origin |
yes, with the cookie | https://<sign-in host>. |
org_id: the organization identifier (org_…). invitation_id: the invitation identifier (inv_…).
No body.
Response
200 OK with the invitation and ETag: "<version>"; send_count and last_sent_at reflect this send.
Errors
| Status | Code | When |
|---|---|---|
| 401 | unauthenticated |
No valid session cookie or token. |
| 403 | insufficient_permissions |
The user lacks idp_members:invite in the organization. |
| 403 | role_not_assignable |
The invitation carries a privileged role and the user does not hold the admin role. |
| 403 | origin_not_allowed |
The Origin does not match. |
| 404 | not_found |
No such organization or invitation for this user; an unknown, malformed or foreign identifier answers the same. |
| 409 | organization_disabled |
The organization is disabled or pending deletion (organization_pending_deletion). |
| 422 | invitation_invalid |
The invitation is not pending, or it was not created for e-mail delivery. |
| 429 | invite_rate_limited |
Sent five times already, or less than ten minutes since the last send; retry after Retry-After. |
| 501 | not_implemented |
E-mail delivery is not available in this deployment. |
| 503 | service_unavailable |
Temporarily unavailable; retry after Retry-After. |
Example
curl -X POST "https://example.keenauth.app/fapi/v1/organizations/org_01jbz6x8kq3m2n4p5r6s7t8v9a/invitations/inv_01jbz6x8kq3m2n4p5r6s7t8v9d:resend" \
-H "Idp-Client: my-app/1.0.0 (node/22.0.0)" \
-H "Origin: https://example.keenauth.app" \
-b cookies.txt
{
"id": "inv_01jbz6x8kq3m2n4p5r6s7t8v9d",
"email": "new.member@example.com",
"role_ids": ["rol_01jbz6x8kq3m2n4p5r6s7t8v9w"],
"delivery": "email",
"delivery_status": "queued",
"status": "pending",
"send_count": 2,
"last_sent_at": "2026-11-03T10:30:00Z",
"expires_at": "2026-11-10T10:00:00Z",
"accepted_user_id": null,
"accepted_at": null,
"revoked_at": null,
"created_at": "2026-11-03T10:00:00Z",
"updated_at": "2026-11-03T10:30:00Z",
"version": 2
}
Personal data
This endpoint carries personal data: organization memberships and invitations. Personal data in the KeenAuth APIs describes what is stored, how long it is kept and how it is deleted. Do not send special categories of personal data (health, biometric data, religion, political opinions, sexual orientation) in any field.