Get invitation
const options = {method: 'GET'};
fetch('http://localhost:8000/v1/auth/invitations/{token}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:8000/v1/auth/invitations/{token}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}curl --request GET \
--url http://localhost:8000/v1/auth/invitations/{token}import requests
url = "http://localhost:8000/v1/auth/invitations/{token}"
response = requests.get(url)
print(response.text){
"success": true,
"data": {
"token": "<string>",
"email": "jsmith@example.com",
"role": "owner",
"organization": {
"id": "<string>",
"name": "<string>",
"slug": "<string>"
},
"expiresAt": "<string>",
"userExists": true
},
"meta": {
"requestId": "<string>",
"timestamp": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
},
"meta": {
"requestId": "<string>",
"timestamp": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
},
"meta": {
"requestId": "<string>",
"timestamp": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
},
"meta": {
"requestId": "<string>",
"timestamp": "<string>"
}
}Invitations
Get invitation
Get invitation details by token. This is a public endpoint that does not require authentication.
GET
/
v1
/
auth
/
invitations
/
{token}
Get invitation
const options = {method: 'GET'};
fetch('http://localhost:8000/v1/auth/invitations/{token}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:8000/v1/auth/invitations/{token}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}curl --request GET \
--url http://localhost:8000/v1/auth/invitations/{token}import requests
url = "http://localhost:8000/v1/auth/invitations/{token}"
response = requests.get(url)
print(response.text){
"success": true,
"data": {
"token": "<string>",
"email": "jsmith@example.com",
"role": "owner",
"organization": {
"id": "<string>",
"name": "<string>",
"slug": "<string>"
},
"expiresAt": "<string>",
"userExists": true
},
"meta": {
"requestId": "<string>",
"timestamp": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
},
"meta": {
"requestId": "<string>",
"timestamp": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
},
"meta": {
"requestId": "<string>",
"timestamp": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
},
"meta": {
"requestId": "<string>",
"timestamp": "<string>"
}
}Was this page helpful?