Skip to main content
Invitation endpoints complete the flow started by an organization owner. Invite details are public so they can be shown before sign-in; acceptance requires a matching signed-in user.
Invite endpoints are served at the API host root, not under /api/v1: https://api.autosage.ai/invites.

Endpoints

MethodPathDescriptionAuth
GET/invites/:token/infoGet invitation details for displayPublic
POST/invites/acceptAccept an invitation[User]

Get invitation info

GET /invites/:token/info Returns the invited email, assigned role, organization name, inviter name, and expiration time. No session or API key is required.
token
string
required
Invitation token from the invite link.
curl "https://api.autosage.ai/invites/INVITE_TOKEN/info"
Invalid, expired, accepted, or revoked tokens return an error rather than invitation details.

Accept an invitation

POST /invites/accept Adds the signed-in user to the organization with the role assigned by the inviter.
token
string
required
Invitation token to accept.
curl -X POST "https://api.autosage.ai/invites/accept" \
  -H "Cookie: YOUR_SESSION_COOKIE" \
  -H "Content-Type: application/json" \
  -d '{ "token": "INVITE_TOKEN" }'
The signed-in user’s email must match the invitation email. Invitations expire 7 days after they are created and cannot be reused after acceptance or revocation.
The response includes success, orgId, and the accepted role.

Next steps

Invite lifecycle

Learn how owners send, track, and revoke invitations.

Members & roles

Understand the access granted after acceptance.

Organizations API

Manage members and pending invitations.