Verify an invitation code
curl --request POST \
--url https://mill-api.example.com/api/auth/invitation/verification/confirm \
--header 'Content-Type: application/json' \
--data '
{
"token": "<string>",
"name": "<string>",
"code": "<string>"
}
'import requests
url = "https://mill-api.example.com/api/auth/invitation/verification/confirm"
payload = {
"token": "<string>",
"name": "<string>",
"code": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({token: '<string>', name: '<string>', code: '<string>'})
};
fetch('https://mill-api.example.com/api/auth/invitation/verification/confirm', 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://mill-api.example.com/api/auth/invitation/verification/confirm",
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([
'token' => '<string>',
'name' => '<string>',
'code' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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://mill-api.example.com/api/auth/invitation/verification/confirm"
payload := strings.NewReader("{\n \"token\": \"<string>\",\n \"name\": \"<string>\",\n \"code\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://mill-api.example.com/api/auth/invitation/verification/confirm")
.header("Content-Type", "application/json")
.body("{\n \"token\": \"<string>\",\n \"name\": \"<string>\",\n \"code\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mill-api.example.com/api/auth/invitation/verification/confirm")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"token\": \"<string>\",\n \"name\": \"<string>\",\n \"code\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"verificationToken": "example-private-verification-token"
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>"
}
}Verify an invitation code
Checks the code and binds the returned verificationToken to the exact invited name. Supply that proof when accepting the invitation.
POST
/
api
/
auth
/
invitation
/
verification
/
confirm
Verify an invitation code
curl --request POST \
--url https://mill-api.example.com/api/auth/invitation/verification/confirm \
--header 'Content-Type: application/json' \
--data '
{
"token": "<string>",
"name": "<string>",
"code": "<string>"
}
'import requests
url = "https://mill-api.example.com/api/auth/invitation/verification/confirm"
payload = {
"token": "<string>",
"name": "<string>",
"code": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({token: '<string>', name: '<string>', code: '<string>'})
};
fetch('https://mill-api.example.com/api/auth/invitation/verification/confirm', 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://mill-api.example.com/api/auth/invitation/verification/confirm",
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([
'token' => '<string>',
'name' => '<string>',
'code' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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://mill-api.example.com/api/auth/invitation/verification/confirm"
payload := strings.NewReader("{\n \"token\": \"<string>\",\n \"name\": \"<string>\",\n \"code\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://mill-api.example.com/api/auth/invitation/verification/confirm")
.header("Content-Type", "application/json")
.body("{\n \"token\": \"<string>\",\n \"name\": \"<string>\",\n \"code\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mill-api.example.com/api/auth/invitation/verification/confirm")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"token\": \"<string>\",\n \"name\": \"<string>\",\n \"code\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"verificationToken": "example-private-verification-token"
}{
"error": {
"code": "<string>",
"message": "<string>",
"requestId": "<string>"
}
}No signed-in session is required. Endpoint-specific tokens, setup secrets or challenges may still be required.
Checks the code and binds the returned verificationToken to the exact invited name. Supply that proof when accepting the invitation.
Request conventions · API keys · MCP connections
Body
application/json
Response
Successful response. Examples are illustrative; field values vary by record.
Illustrative response shape. Fields can be absent in alternate successful flows; see the operation description and example.
Was this page helpful?
