> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superdocs.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Agent Challenge

> Get a proof-of-work challenge for signup (only needed when the challenge gate is enabled).

Solve it headlessly with no browser: brute-force an integer `n` in
[0, maxNumber] such that `SHA-256(salt + str(n))` equals `challenge`, then
base64-encode `{algorithm, challenge, number:n, salt, signature}` and send it
as the `altcha` field in POST /v1/agents/signup.



## OpenAPI

````yaml /openapi.json get /v1/agents/challenge
openapi: 3.1.0
info:
  title: Universal Document AI API
  description: AI-powered document editing with multi-tenant organization support
  version: 2.0.0
servers: []
security: []
paths:
  /v1/agents/challenge:
    get:
      tags:
        - agents
      summary: Agent Challenge
      description: >-
        Get a proof-of-work challenge for signup (only needed when the challenge
        gate is enabled).


        Solve it headlessly with no browser: brute-force an integer `n` in

        [0, maxNumber] such that `SHA-256(salt + str(n))` equals `challenge`,
        then

        base64-encode `{algorithm, challenge, number:n, salt, signature}` and
        send it

        as the `altcha` field in POST /v1/agents/signup.
      operationId: agent_challenge_v1_agents_challenge_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}

````