Send us a message.

POST /contact

POST https://dev.zanpki.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

NomeEmTipoDescriçã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

PropriedadeTipoDescriçã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

StatusDescriçãoEsquemaTipo 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.

PropriedadeTipoDescriçã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.

PropriedadeTipoDescriçã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.

PropriedadeTipoDescriçã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.

PropriedadeTipoDescriçã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.zanpki.com/contact' \
  -H 'Content-Type: application/json' \
  -d '{
    "messages_name": "<string>",
    "messages_email": "<string (email)>",
    "messages_message": "<string>"
}'

Toda a documentação

2 instruções de banco de dados · 14 leituras do cache · 1.0 ms aguardando o banco de dados · 30,0 MiB de pico de memória
public.settingsSELECTdo cache
public.mesh_nodesSELECTdo cache
public.fqdnsSELECTdo cache
public.sitesSELECTdo cache
public.api_buildsSELECTdo cache
public.docs_guidesSELECTdo cache
public.filesSELECTdo cache
public.filesSELECTdo cache
public.filesSELECTdo cache
public.filesSELECTdo cache
public.filesSELECTdo cache
public.filesSELECTdo cache
public.localized_textsSELECT0.7 ms
public.localized_text_valuesSELECT0.3 ms
public.api_buildsSELECTdo cache
public.docs_guidesSELECTdo cache