---
title: "GET Handle invitation link redirection"
description: "Redirects users based on their login status and the presence of an invitation code."
last_updated: "2026-05-06T07:33:57.60406+00:00"
canonical_url: "https://www.doc0.dev/docs/49c89830-117b-4def-8edc-b5bcc50766e0/api/auth/getinvitation"
---

<APIEndpoint
  method={"GET"}
  path={"/api/auth/invitation"}
  summary={"Handle invitation link redirection"}
  description={"Redirects users based on their login status and the presence of an invitation code."}
  deprecated={false}
  baseUrl={""}
/>

## Parameters

<APIParameters parameters={[{"name":"code","in":"query","required":false,"description":"The invitation code to be processed.","schema":{"type":"string"}}]} />

## Responses

<APIResponse
  statusCode={"302"}
  description={"Redirects to the home page, auth page with invite code, or invite handling page."}
  contentType={"text/html"}
/>

## Try It

<APIPlayground
  method={"GET"}
  path={"/api/auth/invitation"}
  parameters={[{"name":"code","in":"query","required":false,"description":"The invitation code to be processed.","schema":{"type":"string"}}]}
  baseUrl={""}
/>


## Sitemap

See the full [sitemap](https://www.doc0.dev/docs/49c89830-117b-4def-8edc-b5bcc50766e0/llms.txt) for all pages in this wiki.
