Endpoints
Team API
API endpoints for team invitation management
ProStack includes API endpoints for managing team invitations, allowing users to accept or reject invitations to join teams.
Team Invitation Endpoints
Accept Team Invitation
This endpoint accepts a team invitation and adds the authenticated user to the team. If the user is not authenticated, they will be redirected to the sign-in page with a callback to the accept invitation URL.
Reject Team Invitation
This endpoint rejects a team invitation, removing it from the user’s pending invitations.
Error Handling
If an error occurs during the invitation process, the API will return an HTML response with an error message:
Common error scenarios:
- Invalid invitation ID
- Expired invitation
- User already in team
- Insufficient permissions
Authentication Required
Both endpoints require authentication. If the user is not authenticated when accepting an invitation, they will be redirected to:
Next Steps
Was this page helpful?