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

# Register Publisher

> Create a new Xenarch publisher account — the entry point for charging AI bots with x402 USDC micropayments and setting pay-per-crawl pricing.

<RequestExample>
  ```bash theme={null}
  curl -X POST https://xenarch.dev/v1/publishers \
    -H "Content-Type: application/json" \
    -d '{"email": "publisher@example.com", "password": "secure_password"}'
  ```
</RequestExample>

<ResponseExample>
  ```json 201 theme={null}
  {
    "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "api_key": "xk_pub_abc123..."
  }
  ```
</ResponseExample>

## Notes

* **Save the `api_key`** — it is returned once and stored as a SHA-256 hash. It cannot be retrieved later.
* Rate limited: 5 requests/min per IP
* Email does not require verification to use the API (verification is optional)


## OpenAPI

````yaml POST /v1/publishers
openapi: 3.1.0
info:
  title: Xenarch Platform
  version: 0.1.0
servers: []
security: []
paths:
  /v1/publishers:
    post:
      tags:
        - publishers
      summary: Register Publisher
      operationId: register_publisher_v1_publishers_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PublisherRegisterRequest'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublisherRegisterResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PublisherRegisterRequest:
      properties:
        email:
          type: string
          format: email
          title: Email
        password:
          type: string
          maxLength: 128
          minLength: 8
          title: Password
      type: object
      required:
        - email
        - password
      title: PublisherRegisterRequest
    PublisherRegisterResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        api_key:
          type: string
          title: Api Key
      type: object
      required:
        - id
        - api_key
      title: PublisherRegisterResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````