Accept an invitation
import requests
url = "https://platform.ankra.app/api/v1/org/organisation/invites/{invite_id}/accept"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/organisation/invites/{invite_id}/accept', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/org/organisation/invites/{invite_id}/accept \
--header 'Authorization: Bearer <token>'{
"success": true,
"message": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Organisation
Accept an invitation
Accepts a pending invitation addressed to the token’s owner: they become an active member of the inviting organisation with the role (or project role) the invitation carried. The invitation may be to any organisation; the token’s own organisation does not matter. An unverified email address is refused, an expired invitation answers 410, and an organisation on a single-user plan refuses a second member. Takes a personal token with no scope allowlist and no project pin: a service-account, scoped or pinned token is refused, since no permission names this act.
POST
/
api
/
v1
/
org
/
organisation
/
invites
/
{invite_id}
/
accept
Accept an invitation
import requests
url = "https://platform.ankra.app/api/v1/org/organisation/invites/{invite_id}/accept"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/organisation/invites/{invite_id}/accept', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/org/organisation/invites/{invite_id}/accept \
--header 'Authorization: Bearer <token>'{
"success": true,
"message": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}