Create Invite
curl --request POST \
--url https://api.eesi.ai/v1/superuser/invites \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"waitlist_entry_id": 123,
"email": "jsmith@example.com",
"ttl_days": 30,
"send_email": true,
"grant_billing_exempt": false
}
'import requests
url = "https://api.eesi.ai/v1/superuser/invites"
payload = {
"waitlist_entry_id": 123,
"email": "jsmith@example.com",
"ttl_days": 30,
"send_email": True,
"grant_billing_exempt": False
}
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({
waitlist_entry_id: 123,
email: 'jsmith@example.com',
ttl_days: 30,
send_email: true,
grant_billing_exempt: false
})
};
fetch('https://api.eesi.ai/v1/superuser/invites', 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://api.eesi.ai/v1/superuser/invites",
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([
'waitlist_entry_id' => 123,
'email' => 'jsmith@example.com',
'ttl_days' => 30,
'send_email' => true,
'grant_billing_exempt' => false
]),
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://api.eesi.ai/v1/superuser/invites"
payload := strings.NewReader("{\n \"waitlist_entry_id\": 123,\n \"email\": \"jsmith@example.com\",\n \"ttl_days\": 30,\n \"send_email\": true,\n \"grant_billing_exempt\": false\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://api.eesi.ai/v1/superuser/invites")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"waitlist_entry_id\": 123,\n \"email\": \"jsmith@example.com\",\n \"ttl_days\": 30,\n \"send_email\": true,\n \"grant_billing_exempt\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eesi.ai/v1/superuser/invites")
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 \"waitlist_entry_id\": 123,\n \"email\": \"jsmith@example.com\",\n \"ttl_days\": 30,\n \"send_email\": true,\n \"grant_billing_exempt\": false\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"code": "<string>",
"status": "<string>",
"email": "<string>",
"waitlist_entry_id": 123,
"expires_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"grant_billing_exempt": false,
"email_sent": false,
"signup_url": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}main
Create Invite
Mint an EESI-XXXX-XXXX-XXXX invite and optionally email it.
Sources for the recipient address, in order:
emailon the request (any address — no waitlist required)- the waitlist entry’s email when
waitlist_entry_idis set
An email-only invite is linked to a waitlist row (created on demand with
source=“invite”) so the recipient shows up in the waitlist table as
invited instead of vanishing from the console.
POST
/
v1
/
superuser
/
invites
Create Invite
curl --request POST \
--url https://api.eesi.ai/v1/superuser/invites \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"waitlist_entry_id": 123,
"email": "jsmith@example.com",
"ttl_days": 30,
"send_email": true,
"grant_billing_exempt": false
}
'import requests
url = "https://api.eesi.ai/v1/superuser/invites"
payload = {
"waitlist_entry_id": 123,
"email": "jsmith@example.com",
"ttl_days": 30,
"send_email": True,
"grant_billing_exempt": False
}
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({
waitlist_entry_id: 123,
email: 'jsmith@example.com',
ttl_days: 30,
send_email: true,
grant_billing_exempt: false
})
};
fetch('https://api.eesi.ai/v1/superuser/invites', 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://api.eesi.ai/v1/superuser/invites",
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([
'waitlist_entry_id' => 123,
'email' => 'jsmith@example.com',
'ttl_days' => 30,
'send_email' => true,
'grant_billing_exempt' => false
]),
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://api.eesi.ai/v1/superuser/invites"
payload := strings.NewReader("{\n \"waitlist_entry_id\": 123,\n \"email\": \"jsmith@example.com\",\n \"ttl_days\": 30,\n \"send_email\": true,\n \"grant_billing_exempt\": false\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://api.eesi.ai/v1/superuser/invites")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"waitlist_entry_id\": 123,\n \"email\": \"jsmith@example.com\",\n \"ttl_days\": 30,\n \"send_email\": true,\n \"grant_billing_exempt\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eesi.ai/v1/superuser/invites")
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 \"waitlist_entry_id\": 123,\n \"email\": \"jsmith@example.com\",\n \"ttl_days\": 30,\n \"send_email\": true,\n \"grant_billing_exempt\": false\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"code": "<string>",
"status": "<string>",
"email": "<string>",
"waitlist_entry_id": 123,
"expires_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"grant_billing_exempt": false,
"email_sent": false,
"signup_url": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
BearerAuthApiKeyHeader
An EESI API key (sk-eesi-...) or a Clerk session token.
Body
application/json
Mint a code for a waitlist row and/or any email address.
email alone is enough — the invitee does not need to be on the
waitlist. send_email defaults to true whenever an address is known.
grant_billing_exempt marks the invitee's organization billing-exempt
the moment they first sign in — unlimited usage, nothing charged.
Response
Successful Response