Invite users by their emails
curl --request POST \
--url https://incoming.qomon.app/users/invitation \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"data": {
"invitations": [
{
"email": "<string>",
"role_id": 1,
"team_ids": [
1
]
}
]
}
}
'import requests
url = "https://incoming.qomon.app/users/invitation"
payload = { "data": { "invitations": [
{
"email": "<string>",
"role_id": 1,
"team_ids": [1]
}
] } }
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({data: {invitations: [{email: '<string>', role_id: 1, team_ids: [1]}]}})
};
fetch('https://incoming.qomon.app/users/invitation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://incoming.qomon.app/users/invitation",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'data' => [
'invitations' => [
[
'email' => '<string>',
'role_id' => 1,
'team_ids' => [
1
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://incoming.qomon.app/users/invitation"
payload := strings.NewReader("{\n \"data\": {\n \"invitations\": [\n {\n \"email\": \"<string>\",\n \"role_id\": 1,\n \"team_ids\": [\n 1\n ]\n }\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://incoming.qomon.app/users/invitation")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"data\": {\n \"invitations\": [\n {\n \"email\": \"<string>\",\n \"role_id\": 1,\n \"team_ids\": [\n 1\n ]\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://incoming.qomon.app/users/invitation")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"data\": {\n \"invitations\": [\n {\n \"email\": \"<string>\",\n \"role_id\": 1,\n \"team_ids\": [\n 1\n ]\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"msg": "<string>",
"invitations": [
{
"created_at": "2023-11-07T05:31:56Z",
"email": "<string>",
"group_id": 1,
"id": 1,
"last_sent": "2023-11-07T05:31:56Z",
"mobile_phone": "<string>",
"role": {
"id": 1,
"name": "<string>",
"order": 1
},
"role_id": 1,
"team_ids": [
1
],
"user_id": 1
}
]
},
"status": "<string>"
}{
"detail": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "about:blank"
}Invitations
Invite users by their emails
Send an invitation to the specified mail addresses.
POST
/
users
/
invitation
Invite users by their emails
curl --request POST \
--url https://incoming.qomon.app/users/invitation \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"data": {
"invitations": [
{
"email": "<string>",
"role_id": 1,
"team_ids": [
1
]
}
]
}
}
'import requests
url = "https://incoming.qomon.app/users/invitation"
payload = { "data": { "invitations": [
{
"email": "<string>",
"role_id": 1,
"team_ids": [1]
}
] } }
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({data: {invitations: [{email: '<string>', role_id: 1, team_ids: [1]}]}})
};
fetch('https://incoming.qomon.app/users/invitation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://incoming.qomon.app/users/invitation",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'data' => [
'invitations' => [
[
'email' => '<string>',
'role_id' => 1,
'team_ids' => [
1
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://incoming.qomon.app/users/invitation"
payload := strings.NewReader("{\n \"data\": {\n \"invitations\": [\n {\n \"email\": \"<string>\",\n \"role_id\": 1,\n \"team_ids\": [\n 1\n ]\n }\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://incoming.qomon.app/users/invitation")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"data\": {\n \"invitations\": [\n {\n \"email\": \"<string>\",\n \"role_id\": 1,\n \"team_ids\": [\n 1\n ]\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://incoming.qomon.app/users/invitation")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"data\": {\n \"invitations\": [\n {\n \"email\": \"<string>\",\n \"role_id\": 1,\n \"team_ids\": [\n 1\n ]\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"msg": "<string>",
"invitations": [
{
"created_at": "2023-11-07T05:31:56Z",
"email": "<string>",
"group_id": 1,
"id": 1,
"last_sent": "2023-11-07T05:31:56Z",
"mobile_phone": "<string>",
"role": {
"id": 1,
"name": "<string>",
"order": 1
},
"role_id": 1,
"team_ids": [
1
],
"user_id": 1
}
]
},
"status": "<string>"
}{
"detail": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "about:blank"
}Invitations are sent asynchronously, so the response will only indicate that the invitation request has been received, not that the emails have been sent. To check the status of invitations, use
GET /users/invitation to retrieve the list of invitations and their details.Authorizations
OAuth2 access token. Pass the token in the Authorization header as Bearer <token>. The token is looked up in Redis to resolve the caller identity.
Body
application/json
Show child attributes
Show child attributes
Last modified on July 7, 2026
Was this page helpful?
⌘I

