Invite user to organisation
import requests
url = "https://platform.ankra.app/api/v1/org/organisation/invite"
payload = {
"invitee_email": "[email protected]",
"organisation_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({invitee_email: '[email protected]', organisation_id: '<string>'})
};
fetch('https://platform.ankra.app/api/v1/org/organisation/invite', 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/invite \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"invitee_email": "[email protected]",
"organisation_id": "<string>"
}
'{
"message": "<string>",
"success": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Organisation
Invite user to organisation
POST
/
api
/
v1
/
org
/
organisation
/
invite
Invite user to organisation
import requests
url = "https://platform.ankra.app/api/v1/org/organisation/invite"
payload = {
"invitee_email": "[email protected]",
"organisation_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({invitee_email: '[email protected]', organisation_id: '<string>'})
};
fetch('https://platform.ankra.app/api/v1/org/organisation/invite', 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/invite \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"invitee_email": "[email protected]",
"organisation_id": "<string>"
}
'{
"message": "<string>",
"success": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json