users
Create Invitation
POST
/
api
/
invitations
Create Invitation
curl --request POST \
--url https://api.aixy-gateway.com/api/invitations \
--header 'Content-Type: application/json' \
--cookie gateway_session= \
--data '
{
"email": "[email protected]"
}
'import requests
url = "https://api.aixy-gateway.com/api/invitations"
payload = { "email": "[email protected]" }
headers = {
"cookie": "gateway_session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {cookie: 'gateway_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({email: '[email protected]'})
};
fetch('https://api.aixy-gateway.com/api/invitations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"email": "<string>",
"role": "<string>",
"project_ids": [
"<string>"
],
"created_at": "<string>",
"updated_at": "<string>",
"expires_at": "<string>",
"email_sent_at": "<string>",
"delivery_status": "expired",
"object": "organization.invitation"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}Authorizations
Secure same-origin browser session cookie.
Response
Successful Response
Available options:
expired, sent, failed Allowed value:
"organization.invitation"⌘I
Create Invitation
curl --request POST \
--url https://api.aixy-gateway.com/api/invitations \
--header 'Content-Type: application/json' \
--cookie gateway_session= \
--data '
{
"email": "[email protected]"
}
'import requests
url = "https://api.aixy-gateway.com/api/invitations"
payload = { "email": "[email protected]" }
headers = {
"cookie": "gateway_session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {cookie: 'gateway_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({email: '[email protected]'})
};
fetch('https://api.aixy-gateway.com/api/invitations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"email": "<string>",
"role": "<string>",
"project_ids": [
"<string>"
],
"created_at": "<string>",
"updated_at": "<string>",
"expires_at": "<string>",
"email_sent_at": "<string>",
"delivery_status": "expired",
"object": "organization.invitation"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}