Python (SDK)
from meetkai_mka1 import SDK, models
with SDK() as sdk:
res = sdk.session.get_pending_invitation(security=models.GetPendingInvitationSecurity(
session_cookie="<YOUR_API_KEY_HERE>",
))
# Handle response
print(res)import { SDK } from "@meetkai/mka1";
const sdk = new SDK();
async function run() {
const result = await sdk.session.getPendingInvitation({
sessionCookie: "<YOUR_API_KEY_HERE>",
}, {});
console.log(result);
}
run();using MeetKai.MKA1;
using MeetKai.MKA1.Types.Requests;
var sdk = new SDK();
var res = await sdk.Session.GetPendingInvitationAsync(security: new GetPendingInvitationSecurity() {
SessionCookie = "<YOUR_API_KEY_HERE>",
});
// handle responsecurl --request GET \
--url https://apigw.mka1.com/api/v1/authentication/pending-invitation \
--cookie __Secure-mka1-auth-v2.session_token=const options = {method: 'GET', headers: {cookie: '__Secure-mka1-auth-v2.session_token='}};
fetch('https://apigw.mka1.com/api/v1/authentication/pending-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://apigw.mka1.com/api/v1/authentication/pending-invitation",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_COOKIE => "__Secure-mka1-auth-v2.session_token=",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://apigw.mka1.com/api/v1/authentication/pending-invitation"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cookie", "__Secure-mka1-auth-v2.session_token=")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://apigw.mka1.com/api/v1/authentication/pending-invitation")
.header("cookie", "__Secure-mka1-auth-v2.session_token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://apigw.mka1.com/api/v1/authentication/pending-invitation")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["cookie"] = '__Secure-mka1-auth-v2.session_token='
response = http.request(request)
puts response.read_body{
"invitation": {
"type": "organization",
"id": "<string>"
}
}{
"message": "<string>"
}{
"message": "<string>"
}Session
Find an unfinished invitation for the signed-in recipient
Requires a session with a verified email. Returns a pending, unexpired organization invitation first, otherwise an unclaimed, unexpired cluster invitation bound to that email. Open cluster invitations are never returned. Does not accept or modify the invitation.
GET
/
api
/
v1
/
authentication
/
pending-invitation
Python (SDK)
from meetkai_mka1 import SDK, models
with SDK() as sdk:
res = sdk.session.get_pending_invitation(security=models.GetPendingInvitationSecurity(
session_cookie="<YOUR_API_KEY_HERE>",
))
# Handle response
print(res)import { SDK } from "@meetkai/mka1";
const sdk = new SDK();
async function run() {
const result = await sdk.session.getPendingInvitation({
sessionCookie: "<YOUR_API_KEY_HERE>",
}, {});
console.log(result);
}
run();using MeetKai.MKA1;
using MeetKai.MKA1.Types.Requests;
var sdk = new SDK();
var res = await sdk.Session.GetPendingInvitationAsync(security: new GetPendingInvitationSecurity() {
SessionCookie = "<YOUR_API_KEY_HERE>",
});
// handle responsecurl --request GET \
--url https://apigw.mka1.com/api/v1/authentication/pending-invitation \
--cookie __Secure-mka1-auth-v2.session_token=const options = {method: 'GET', headers: {cookie: '__Secure-mka1-auth-v2.session_token='}};
fetch('https://apigw.mka1.com/api/v1/authentication/pending-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://apigw.mka1.com/api/v1/authentication/pending-invitation",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_COOKIE => "__Secure-mka1-auth-v2.session_token=",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://apigw.mka1.com/api/v1/authentication/pending-invitation"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cookie", "__Secure-mka1-auth-v2.session_token=")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://apigw.mka1.com/api/v1/authentication/pending-invitation")
.header("cookie", "__Secure-mka1-auth-v2.session_token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://apigw.mka1.com/api/v1/authentication/pending-invitation")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["cookie"] = '__Secure-mka1-auth-v2.session_token='
response = http.request(request)
puts response.read_body{
"invitation": {
"type": "organization",
"id": "<string>"
}
}{
"message": "<string>"
}{
"message": "<string>"
}Authorizations
Current Better Auth browser or device-login session
Headers
Optional external end-user identifier forwarded by the API gateway.
Response
Invitation to resume, or null when none exists
- Option 1
- Option 2
Show child attributes
Show child attributes
Was this page helpful?
⌘I