Get invitation details
curl --request GET \
--url https://agents.labs.bandwidth.com/api/v1/organizations/invites/{token}/details \
--header 'Authorization: Bearer <token>'import requests
url = "https://agents.labs.bandwidth.com/api/v1/organizations/invites/{token}/details"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://agents.labs.bandwidth.com/api/v1/organizations/invites/{token}/details', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"account_exists": true,
"email": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"status": "<string>",
"targets": [
{
"role": "<string>",
"tenant_name": "<string>"
}
],
"inviter": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Members and invitations
Get invitation details
Retrieve invitation details for a signed-in recipient.
GET
/
api
/
v1
/
organizations
/
invites
/
{token}
/
details
Get invitation details
curl --request GET \
--url https://agents.labs.bandwidth.com/api/v1/organizations/invites/{token}/details \
--header 'Authorization: Bearer <token>'import requests
url = "https://agents.labs.bandwidth.com/api/v1/organizations/invites/{token}/details"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://agents.labs.bandwidth.com/api/v1/organizations/invites/{token}/details', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"account_exists": true,
"email": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"status": "<string>",
"targets": [
{
"role": "<string>",
"tenant_name": "<string>"
}
],
"inviter": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Requires an OAuth bearer token. Use the token from the invitation link. The response includes the recipient, expiry, status, and target workspace roles. A missing invitation returns
404. Treat the invitation token as sensitive; API keys are not accepted.Authorizations
Bandwidth Labs OAuth access token. Uses the user's selected workspace; the workspace header is not required. Do not also send an API key. Bearer-only operations may additionally require the Labs super_user role.