Accept an invitation
curl --request POST \
--url https://agents.labs.bandwidth.com/api/v1/organizations/invites/{token}/accept \
--header 'Authorization: Bearer <token>'import requests
url = "https://agents.labs.bandwidth.com/api/v1/organizations/invites/{token}/accept"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://agents.labs.bandwidth.com/api/v1/organizations/invites/{token}/accept', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"message": "<string>",
"organization_id": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Members and invitations
Accept an invitation
Join the workspace groups granted by an invitation.
POST
/
api
/
v1
/
organizations
/
invites
/
{token}
/
accept
Accept an invitation
curl --request POST \
--url https://agents.labs.bandwidth.com/api/v1/organizations/invites/{token}/accept \
--header 'Authorization: Bearer <token>'import requests
url = "https://agents.labs.bandwidth.com/api/v1/organizations/invites/{token}/accept"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://agents.labs.bandwidth.com/api/v1/organizations/invites/{token}/accept', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"message": "<string>",
"organization_id": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Requires an OAuth bearer token for the invited email address. A different account returns
403; expired or no-longer-valid invitations return 410; a missing invitation returns 404. A workspace membership limit returns 409. Success returns an organization_id and message. Acceptance, including a successful retry, selects the first workspace group granted by the invitation for your account. Subsequent UI, OAuth bearer, and MCP requests use that selection unless you switch workspaces. Refresh workspace memberships after acceptance.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.