Send us a message.

POST /contact

POST https://dev.zanhosting.com/contact

Operations-ID contact.post
Zugriff Signed in through ZanAuth: the access token cookie, with its ID token and refresh token companions. Oder: An access token the site's ZanAuth issuer minted for its app, or a static key. Oder: Jeder, angemeldet oder nicht

Parameter

NameInTypBeschreibung
ZanPolice-Work Header Optional string The answer to the work a 428 asked for: the challenge as it came, a colon, and the nonce that solves each sub-puzzle, joined by commas.

Anfragetext

Erforderlich, gesendet als application/x-www-form-urlencoded, application/json.

Schema: ContactMessageBody

EigenschaftTypBeschreibung
messages_name string Erforderlich Your name, so we know who we're writing back to.
messages_email string (email) Erforderlich Where we answer you.
messages_message string Erforderlich What you'd like to ask or tell us.

Antworten

StatusBeschreibungSchemaInhaltstyp
201 Sent. We respond within 1–2 business days. SentMessageAnswer application/json
422 The input was rejected; errors names each failure. ValidationProblem application/json
428 Served once the request carries the work its challenge asks for: send it again with the answer in the header the challenge names. WorkRequiredProblem application/json
Jeder andere Status The request was refused. The problem's type names why, and its detail explains it for people to read. Problem application/json

201 Sent. We respond within 1–2 business days.

EigenschaftTypBeschreibung
messages_id string (snowflake) Erforderlich The id we gave your message.
messages_created_at integer (int64) Erforderlich When it arrived, in milliseconds since the Unix epoch.

422 The input was rejected; errors names each failure.

EigenschaftTypBeschreibung
type string Erforderlich A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check.
title string Erforderlich The HTTP status as text, such as Not Found.
status integer (int32) Erforderlich The HTTP status code of the response.
detail string Erforderlich An explanation of what went wrong, written for people to read.
instance string Erforderlich The path the request was sent to.
errors InputErrors Erforderlich What is wrong with each refused value. Parameters come as a list, and body errors as a tree shaped like the body.

428 Served once the request carries the work its challenge asks for: send it again with the answer in the header the challenge names.

EigenschaftTypBeschreibung
type string Erforderlich A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check.
title string Erforderlich The HTTP status as text, such as Not Found.
status integer (int32) Erforderlich The HTTP status code of the response.
detail string Erforderlich An explanation of what went wrong, written for people to read.
instance string Erforderlich The path the request was sent to.
work WorkChallenge Erforderlich The work to do. For each sub-puzzle i, find the smallest nonce n whose Argon2id hash of "<challenge>:<i>:<n>" (version 0x13, parallelism 1, with the salt) starts with as many zero bits as bits gives.

Jeder andere Status: The request was refused. The problem's type names why, and its detail explains it for people to read.

EigenschaftTypBeschreibung
type string Erforderlich A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check.
title string Erforderlich The HTTP status as text, such as Not Found.
status integer (int32) Erforderlich The HTTP status code of the response.
detail string Erforderlich An explanation of what went wrong, written for people to read.
instance string Erforderlich The path the request was sent to.

Beispiel

curl -X POST 'https://dev.zanhosting.com/contact' \
  -H 'Content-Type: application/json' \
  -d '{
    "messages_name": "<string>",
    "messages_email": "<string (email)>",
    "messages_message": "<string>"
}'

Gesamte Dokumentation

2 Datenbankabfragen · 12 Lesezugriffe aus dem Cache · 1.7 ms Wartezeit auf die Datenbank · 26,0 MiB Spitzenspeicher
public.settingsSELECTaus dem Cache
public.mesh_nodesSELECTaus dem Cache
public.fqdnsSELECTaus dem Cache
public.sitesSELECTaus dem Cache
public.api_buildsSELECTaus dem Cache
public.docs_guidesSELECTaus dem Cache
public.filesSELECTaus dem Cache
public.filesSELECTaus dem Cache
public.filesSELECTaus dem Cache
public.filesSELECTaus dem Cache
public.localized_textsSELECT1.0 ms
public.localized_text_valuesSELECT0.7 ms
public.api_buildsSELECTaus dem Cache
public.docs_guidesSELECTaus dem Cache