List invitations
const options = {method: 'GET'};
fetch('https://api.example.com/v1/regions/global/organizations/{orgId}/invitations', 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 := "https://api.example.com/v1/regions/global/organizations/{orgId}/invitations"
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 https://api.example.com/v1/regions/global/organizations/{orgId}/invitationsimport requests
url = "https://api.example.com/v1/regions/global/organizations/{orgId}/invitations"
response = requests.get(url)
print(response.text){
"success": true,
"data": [
{
"id": "<string>",
"token": "<string>",
"email": "jsmith@example.com",
"projectId": "<string>",
"organizationId": "<string>",
"role": "admin",
"status": "pending",
"invitedBy": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"acceptedAt": "2023-11-07T05:31:56Z"
}
],
"meta": {
"total": 123
}
}Organization Invitations
List invitations
List invitations for an organization
GET
/
v1
/
regions
/
global
/
organizations
/
{orgId}
/
invitations
List invitations
const options = {method: 'GET'};
fetch('https://api.example.com/v1/regions/global/organizations/{orgId}/invitations', 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 := "https://api.example.com/v1/regions/global/organizations/{orgId}/invitations"
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 https://api.example.com/v1/regions/global/organizations/{orgId}/invitationsimport requests
url = "https://api.example.com/v1/regions/global/organizations/{orgId}/invitations"
response = requests.get(url)
print(response.text){
"success": true,
"data": [
{
"id": "<string>",
"token": "<string>",
"email": "jsmith@example.com",
"projectId": "<string>",
"organizationId": "<string>",
"role": "admin",
"status": "pending",
"invitedBy": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"acceptedAt": "2023-11-07T05:31:56Z"
}
],
"meta": {
"total": 123
}
}Path Parameters
Organization identifier
Query Parameters
Filter by invitation status
Available options:
pending, accepted, rejected, expired Was this page helpful?