Documentation Index
Fetch the complete documentation index at: https://mintlify.com/egeuysall/ryva-archive/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Invitation endpoints allow users to view, accept, or decline invitations to join organizations. These endpoints are user-centric, showing invitations received by the authenticated user.All invitation endpoints require JWT authentication.
For organization-side invitation management (sending, canceling), see Organization Endpoints.
List User Invitations
/v1/invitations
Response
List of pending invitations
Total number of pending invitations
Example
Accept Invitation
/v1/invitations/:id/accept
Path Parameters
Invitation ID (UUID)
Response
Organization’s unique identifier
Organization name
Your role in the organization
Success message
Example
Decline Invitation
/v1/invitations/:id/decline
Path Parameters
Invitation ID (UUID)
Response
Returns204 No Content on success.
Example
Invitation States
Invitations can be in one of the following states:| State | Description |
|---|---|
| Pending | Invitation has been sent and is awaiting response |
| Accepted | User has accepted and joined the organization |
| Declined | User has declined the invitation |
| Expired | Invitation has passed its expiration date |
| Canceled | Organization has canceled the invitation |
Only pending invitations appear in the list endpoint. Accepted, declined, expired, or canceled invitations are automatically removed.
Invitation Expiration
Invitations expire after 7 days by default. After expiration:- The invitation can no longer be accepted
- It’s automatically removed from the pending list
- Organization admins can resend the invitation if needed
Email Matching
When accepting an invitation:- The system checks that your authenticated email matches the invitation email
- If emails don’t match, the request is rejected with a 403 error
- This ensures invitations can only be accepted by the intended recipient
Error Responses
Invitation Not Found (404)
The invitation doesn’t exist, has expired, or has already been accepted/declined.Email Mismatch (403)
Your email doesn’t match the invitation email.Already a Member (409)
You’re already a member of the organization.Next Steps
Organizations
Manage organizations and send invitations
Auth Endpoints
Manage your user profile