Send us a message.

POST /contact

POST https://zankms.com/contact

オペレーション ID contact.post
アクセス Signed in through ZanAuth: the access token cookie, with its ID token and refresh token companions. または: An access token the site's ZanAuth issuer minted for its app, or a static key. または: サインインの有無を問わず全員

パラメータ

名前場所型説明
ZanPolice-Work ヘッダー 任意 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.

リクエストボディ

必須(application/x-www-form-urlencoded, application/json として送信)。

スキーマ: ContactMessageBody

プロパティ型説明
messages_name string 必須 Your name, so we know who we're writing back to.
messages_email string (email) 必須 Where we answer you.
messages_message string 必須 What you'd like to ask or tell us.

レスポンス

ステータス説明スキーマコンテンツタイプ
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
その他のステータス 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.

プロパティ型説明
messages_id string (snowflake) 必須 The id we gave your message.
messages_created_at integer (int64) 必須 When the message arrived, in milliseconds since the Unix epoch.

422 The input was rejected; errors names each failure.

プロパティ型説明
type string 必須 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 必須 The HTTP status as text, such as Not Found.
status integer (int32) 必須 The HTTP status code of the response.
detail string 必須 An explanation of what went wrong, written for people to read.
instance string 必須 The path the request was sent to.
errors InputErrors 必須 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.

プロパティ型説明
type string 必須 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 必須 The HTTP status as text, such as Not Found.
status integer (int32) 必須 The HTTP status code of the response.
detail string 必須 An explanation of what went wrong, written for people to read.
instance string 必須 The path the request was sent to.
work WorkChallenge 必須 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.

その他のステータス: The request was refused. The problem's type names why, and its detail explains it for people to read.

プロパティ型説明
type string 必須 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 必須 The HTTP status as text, such as Not Found.
status integer (int32) 必須 The HTTP status code of the response.
detail string 必須 An explanation of what went wrong, written for people to read.
instance string 必須 The path the request was sent to.

例

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

すべてのドキュメント