Send us a message.
POST /contact
POST https://zanpki.com/contact
| Operation ID |
contact.post
|
|---|---|
| Access | Browser session signed in through ZanAuth, using the access token cookie alongside its ID token and refresh token cookies. Or: An access token issued for this site by its ZanAuth issuer, or a static key. Or: Anyone, signed in or not |
Parameters
| Name | In | Type | Description | |
|---|---|---|---|---|
ZanPolice-Work
| Header | Optional | string | Solution to the proof-of-work challenge from a 428 response: the original challenge string, a colon, and the comma-separated nonces solving each sub-puzzle. |
Idempotency-Key
| Header | Optional | string | This key identifies one request so that sending it again does not carry it out twice. Use a new random value, such as a UUID, for each new request, and send the same value again only with that same request. If you send the same request again with the same key within 10 minutes of the first response, and the first request was carried out, it is not carried out again. Instead, the server returns the first response, or HTTP 409 if that response was too large to keep. The same request means the same method, path, query, body, and Accept header, sent the same way (both as plain HTTP or both as an AI agent's tool call) by the same signed-in person or program, or from the same IP address if you are not signed in. If the first request was refused or failed, sending it again with the same key runs it again. If the first request is still being processed, the server returns HTTP 409. Wait a few seconds, then send the request again with the same key. If the same caller uses the same key for a different request to the same operation, the server returns HTTP 422. The key must be 1 to 255 printable ASCII characters long. If the server cannot record the key, for example during a database fault, the request is carried out without this check. |
Request body
Required, sent as application/x-www-form-urlencoded, application/json.
Schema: ContactMessageBody
| Property | Type | Description | |
|---|---|---|---|
messages_name
| string | Required | Your name, so we know who we're writing back to. |
messages_email
| string (email) | Required | Where we'll send our reply. |
messages_message
| string | Required | What you'd like to ask or tell us. |
Responses
| Status | Description | Schema | Content type |
|---|---|---|---|
| 201 | Sent. We respond within 1–2 business days. | SentMessageAnswer | application/json |
| 422 | The request input was rejected. The errors object lists each validation failure. | ValidationProblem | application/json |
| 428 | Proof of work required before processing this request. Solve the challenge and resend the request with the solution in the header specified by the challenge. | WorkRequiredProblem | application/json |
| Any other status | The request was rejected. The problem type identifies the error, and the detail field provides a human-readable explanation. | Problem | application/json |
201 Sent. We respond within 1–2 business days.
| Property | Type | Description | |
|---|---|---|---|
messages_id
| string (snowflake) | Required | The ID we gave your message. |
messages_created_at
| integer (int64) | Required | When the message arrived, in milliseconds since the Unix epoch. |
422 The request input was rejected. The errors object lists each validation failure.
| Property | Type | Description | |
|---|---|---|---|
type
| string | Required | 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 | Required | The HTTP status as text, such as Not Found. |
status
| integer (int32) | Required | The HTTP status code of the response. |
detail
| string | Required | A human-readable explanation of what went wrong. |
instance
| string | Required | The path the request was sent to. |
errors
| InputErrors | Required | Validation errors for each rejected value. Parameter errors are returned as a list, and body errors as a tree matching the request body structure. |
428 Proof of work required before processing this request. Solve the challenge and resend the request with the solution in the header specified by the challenge.
| Property | Type | Description | |
|---|---|---|---|
type
| string | Required | 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 | Required | The HTTP status as text, such as Not Found. |
status
| integer (int32) | Required | The HTTP status code of the response. |
detail
| string | Required | A human-readable explanation of what went wrong. |
instance
| string | Required | The path the request was sent to. |
work
| WorkChallenge | Required | This field provides the proof-of-work challenge to solve. For each sub-puzzle i, find the smallest nonce n such that the Argon2id hash of "<challenge>:<i>:<n>" (version 0x13, parallelism 1, using the provided salt) starts with four bytes that are less than hash_prefix_below when read as a big-endian unsigned 32-bit integer. |
Any other status: The request was rejected. The problem type identifies the error, and the detail field provides a human-readable explanation.
| Property | Type | Description | |
|---|---|---|---|
type
| string | Required | 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 | Required | The HTTP status as text, such as Not Found. |
status
| integer (int32) | Required | The HTTP status code of the response. |
detail
| string | Required | A human-readable explanation of what went wrong. |
instance
| string | Required | The path the request was sent to. |
Example
curl -X POST 'https://zanpki.com/contact' \
-H 'Content-Type: application/json' \
-d '{
"messages_name": "<string>",
"messages_email": "<string (email)>",
"messages_message": "<string>"
}'