Send us a message.
POST /contact
POST https://dev.zankms.com/contact
| ID da operação |
contact.post
|
|---|---|
| Acesso | Signed in through ZanAuth: the access token cookie, with its ID token and refresh token companions. Ou: An access token the site's ZanAuth issuer minted for its app, or a static key. Ou: Qualquer pessoa, conectada ou não |
Parâmetros
| Nome | Em | Tipo | Descrição | |
|---|---|---|---|---|
ZanPolice-Work
| Cabeçalho | Opcional | 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. |
Corpo da requisição
Obrigatório, enviado como application/x-www-form-urlencoded, application/json.
Esquema: ContactMessageBody
| Propriedade | Tipo | Descrição | |
|---|---|---|---|
messages_name
| string | Obrigatório | Your name, so we know who we're writing back to. |
messages_email
| string (email) | Obrigatório | Where we answer you. |
messages_message
| string | Obrigatório | What you'd like to ask or tell us. |
Respostas
| Status | Descrição | Esquema | Tipo de conteúdo |
|---|---|---|---|
| 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 |
| Qualquer outro 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.
| Propriedade | Tipo | Descrição | |
|---|---|---|---|
messages_id
| string (snowflake) | Obrigatório | The id we gave your message. |
messages_created_at
| integer (int64) | Obrigatório | When the message arrived, in milliseconds since the Unix epoch. |
422 The input was rejected; errors names each failure.
| Propriedade | Tipo | Descrição | |
|---|---|---|---|
type
| string | Obrigatório | 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 | Obrigatório | The HTTP status as text, such as Not Found. |
status
| integer (int32) | Obrigatório | The HTTP status code of the response. |
detail
| string | Obrigatório | An explanation of what went wrong, written for people to read. |
instance
| string | Obrigatório | The path the request was sent to. |
errors
| InputErrors | Obrigatório | 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.
| Propriedade | Tipo | Descrição | |
|---|---|---|---|
type
| string | Obrigatório | 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 | Obrigatório | The HTTP status as text, such as Not Found. |
status
| integer (int32) | Obrigatório | The HTTP status code of the response. |
detail
| string | Obrigatório | An explanation of what went wrong, written for people to read. |
instance
| string | Obrigatório | The path the request was sent to. |
work
| WorkChallenge | Obrigatório | 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. |
Qualquer outro status: The request was refused. The problem's type names why, and its detail explains it for people to read.
| Propriedade | Tipo | Descrição | |
|---|---|---|---|
type
| string | Obrigatório | 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 | Obrigatório | The HTTP status as text, such as Not Found. |
status
| integer (int32) | Obrigatório | The HTTP status code of the response. |
detail
| string | Obrigatório | An explanation of what went wrong, written for people to read. |
instance
| string | Obrigatório | The path the request was sent to. |
Exemplo
curl -X POST 'https://dev.zankms.com/contact' \
-H 'Content-Type: application/json' \
-d '{
"messages_name": "<string>",
"messages_email": "<string (email)>",
"messages_message": "<string>"
}'