Start here
Send the link to a request again
/v1/support/linkon https://api.auray.ai/v1For somebody who has written in and lost the email.
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.
#Authentication
No key needed — this document is public.
#Request
#Body
application/json, required.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
email | string | yes | — | Where the link is sent. Checked for shape only. 0 to 320 characters. |
challenge | string | yes | — | From POST /v1/support/challenge, unchanged. Demanded here even though nothing is created, because this endpoint causes mail to an address the caller chose. |
nonce | string | yes | — | 0 to 64 characters. |
#Example request
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()}");#Responses
#202 Accepted
Accepted. The same answer for every address.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
status | string | no | — | One of "sent_if_known". |
Headers:
| Header | Description |
|---|---|
X-Request-Id |
#400 Bad Request
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.
#409 Conflict
challenge_spent — that challenge has already been used.
The error body: error, message, docs (the entry that explains it) and request_id.
#413 Payload Too Large
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.
#429 Too Many Requests
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.
#503 Service Unavailable
support_disabled, support_not_configured or support_unavailable.
The error body: error, message, docs (the entry that explains it) and request_id.
#Status codes
| Status | Meaning |
|---|---|
202 | Accepted. The same answer for every address. |
400 | support_email_invalid, challenge_required, challenge_invalid, challenge_expired, challenge_unsolved, invalid_body or invalid_json. |
409 | challenge_spent — that challenge has already been used. |
413 | body_too_large — the body must be at most 65536 bytes. |
429 | support_rate_limited — one of three buckets refused: the recipient address, your address, or its network. |
503 | support_disabled, support_not_configured or support_unavailable. |
Every refusal names its code, and every code is explained at Errors.