PT EN

Desafio

URL base: $PUBLIC_API

O objecto

algorithmstring · obrigatório
challengestring · obrigatório
maxnumberinteger · obrigatório
saltstring · obrigatório
signaturestring · obrigatório
Operações
O objecto
{
  "algorithm": "SHA-256",
  "challenge": "challenge",
  "maxnumber": 1,
  "salt": "salt",
  "signature": "signature"
}

Obter um desafio

Registos

GET /challenge

Issue a proof-of-work bot challenge when the builtin provider is active

Issues a short-lived SHA-256 proof-of-work challenge when the server is configured with security.challenge.provider=builtin. Returns 404 otherwise. Served with Cache-Control: no-store and rate-limited per IP.

Parâmetros

scopestring · consulta · obrigatório

The form the challenge protects. The solved challenge is bound to this scope and is accepted only by the request of that form.

um de identity.signup, identity.login, identity.password_reset, identity.verification_code, connection.estimate, connection.request, intake.contact, intake.docs_feedback

Devolve

200 Challenge issued

Mostrar atributos
algorithmstring · obrigatório
challengestring · obrigatório
maxnumberinteger · obrigatório
saltstring · obrigatório
signaturestring · obrigatório

Erros 400 · 404 · 429

curl -X GET "$PUBLIC_API/challenge"
Resposta 200
{
  "algorithm": "SHA-256",
  "challenge": "challenge",
  "maxnumber": 1,
  "salt": "salt",
  "signature": "signature"
}