Send the link to a request again
For somebody who has written in and lost the email. Nothing is returned but a constant: the link is mailed to the address, so control of the mailbox is what opens the ticket. An address with a ticket, an address we have never seen and an address whose only tickets are held are answered identically — anybody may type any address here and learn nothing from doing it. Every send mints a new token and leaves the earlier ones working.
curl -X POST https://api.auray.ai/v1/support/link \
-H "content-type: application/json" \
-d '{
"email": "…",
"challenge": "…",
"nonce": "…"
}'const res = await fetch("https://api.auray.ai/v1/support/link", {
method: "POST",
headers: {
"content-type": "application/json",
},
body: JSON.stringify({
"email": "…",
"challenge": "…",
"nonce": "…"
}),
});
console.log(await res.json());import requests
r = requests.post(
"https://api.auray.ai/v1/support/link",
json={
"email": "…",
"challenge": "…",
"nonce": "…"
},
)
r.raise_for_status()
print(r.json())package main
import (
"bytes"
"fmt"
"io"
"net/http"
)
func main() {
body := []byte(`{
"email": "…",
"challenge": "…",
"nonce": "…"
}`)
req, err := http.NewRequest("POST", "https://api.auray.ai/v1/support/link", bytes.NewReader(body))
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(res.Status, string(out))
}<?php
$ch = curl_init("https://api.auray.ai/v1/support/link");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode([
"email" => "…",
"challenge" => "…",
"nonce" => "…",
], JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE),
]);
$response = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_HTTP_CODE), " ", $response, PHP_EOL;require "net/http"
require "json"
uri = URI("https://api.auray.ai/v1/support/link")
req = Net::HTTP::Post.new(uri)
req["Content-Type"] = "application/json"
req.body = {
"email" => "…",
"challenge" => "…",
"nonce" => "…"
}.to_json
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(req) }
puts res.code, res.bodyimport java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
String body = """
{
"email": "…",
"challenge": "…",
"nonce": "…"
}""";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.auray.ai/v1/support/link"))
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString(body))
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode() + " " + response.body());
}
}using System.Text;
using var client = new HttpClient();
using var request = new HttpRequestMessage(HttpMethod.Post, "https://api.auray.ai/v1/support/link");
var body = """
{
"email": "…",
"challenge": "…",
"nonce": "…"
}
""";
request.Content = new StringContent(body, Encoding.UTF8, "application/json");
using var response = await client.SendAsync(request);
Console.WriteLine($"{(int)response.StatusCode} {await response.Content.ReadAsStringAsync()}");{
"status": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}Authorizations
No key needed — this document is public.
Accepted. The same answer for every address.
"sent_if_known".Headers:
| Header | Description |
|---|---|
X-Request-Id |
support_email_invalid, challenge_required, challenge_invalid, challenge_expired, challenge_unsolved, invalid_body or invalid_json.
The error body: error, message, docs (the entry that explains it) and request_id.
challenge_spent — that challenge has already been used.
The error body: error, message, docs (the entry that explains it) and request_id.
body_too_large — the body must be at most 65536 bytes.
The error body: error, message, docs (the entry that explains it) and request_id.
support_rate_limited — one of three buckets refused: the recipient address, your address, or its network. The recipient's is drawn first, because they are the party who did not ask for any of this.
The error body: error, message, docs (the entry that explains it) and request_id.
Was this page helpful?
curl -X POST https://api.auray.ai/v1/support/link \
-H "content-type: application/json" \
-d '{
"email": "…",
"challenge": "…",
"nonce": "…"
}'const res = await fetch("https://api.auray.ai/v1/support/link", {
method: "POST",
headers: {
"content-type": "application/json",
},
body: JSON.stringify({
"email": "…",
"challenge": "…",
"nonce": "…"
}),
});
console.log(await res.json());import requests
r = requests.post(
"https://api.auray.ai/v1/support/link",
json={
"email": "…",
"challenge": "…",
"nonce": "…"
},
)
r.raise_for_status()
print(r.json())package main
import (
"bytes"
"fmt"
"io"
"net/http"
)
func main() {
body := []byte(`{
"email": "…",
"challenge": "…",
"nonce": "…"
}`)
req, err := http.NewRequest("POST", "https://api.auray.ai/v1/support/link", bytes.NewReader(body))
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(res.Status, string(out))
}<?php
$ch = curl_init("https://api.auray.ai/v1/support/link");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode([
"email" => "…",
"challenge" => "…",
"nonce" => "…",
], JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE),
]);
$response = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_HTTP_CODE), " ", $response, PHP_EOL;require "net/http"
require "json"
uri = URI("https://api.auray.ai/v1/support/link")
req = Net::HTTP::Post.new(uri)
req["Content-Type"] = "application/json"
req.body = {
"email" => "…",
"challenge" => "…",
"nonce" => "…"
}.to_json
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(req) }
puts res.code, res.bodyimport java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
String body = """
{
"email": "…",
"challenge": "…",
"nonce": "…"
}""";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.auray.ai/v1/support/link"))
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString(body))
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode() + " " + response.body());
}
}using System.Text;
using var client = new HttpClient();
using var request = new HttpRequestMessage(HttpMethod.Post, "https://api.auray.ai/v1/support/link");
var body = """
{
"email": "…",
"challenge": "…",
"nonce": "…"
}
""";
request.Content = new StringContent(body, Encoding.UTF8, "application/json");
using var response = await client.SendAsync(request);
Console.WriteLine($"{(int)response.StatusCode} {await response.Content.ReadAsStringAsync()}");{
"status": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}