Decline a team invite
curl --request POST \
--url https://my.server.express/api/v1/user/teams/invites/{token}/declineconst options = {method: 'POST'};
fetch('https://my.server.express/api/v1/user/teams/invites/{token}/decline', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/user/teams/invites/{token}/decline"
response = requests.post(url)
print(response.text){
"success": true,
"data": {
"declined": true,
"teamName": "<string>",
"message": "<string>"
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}Teams
Decline a team invite
Deletes the invite so the emailed link stops working. No sign-in needed — holding the token is enough, since the only outcome is deletion. Already accepted → 409. Writes a TEAM_INVITE_DECLINED audit entry.
POST
/
v1
/
user
/
teams
/
invites
/
{token}
/
decline
Decline a team invite
curl --request POST \
--url https://my.server.express/api/v1/user/teams/invites/{token}/declineconst options = {method: 'POST'};
fetch('https://my.server.express/api/v1/user/teams/invites/{token}/decline', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/user/teams/invites/{token}/decline"
response = requests.post(url)
print(response.text){
"success": true,
"data": {
"declined": true,
"teamName": "<string>",
"message": "<string>"
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}