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

# Validate invite

> Validates an invite code and whitelists the wallet if the code is valid and unused.



## OpenAPI

````yaml /openapi/phoenix-public-api.json post /v1/invite/validate
openapi: 3.1.0
info:
  title: Phoenix Eternal API
  description: >-
    RESTful API for accessing Phoenix Eternal perpetual trading data. Provides
    real-time orderbook levels, asset information, and market metadata.
  termsOfService: https://www.phoenix.trade/terms-of-service
  contact:
    name: Phoenix Development Team
    url: https://github.com/Ellipsis-Labs/phoenix
  license:
    name: Proprietary
  version: 1.0.0
servers:
  - url: https://perp-api.phoenix.trade
    description: Phoenix Eternal Perp API
security: []
tags:
  - name: Auth
    description: Wallet and session authentication.
  - name: Exchange
    description: Exchange, market, candle, and no-referral register-instruction workflows.
  - name: Invite
    description: Invite validation, referral activation, and wallet allowlist checks.
  - name: Notifications
    description: Trader notification reads and acknowledgement helpers.
  - name: Trader
    description: Trader state, account history, and transaction builders.
externalDocs:
  url: https://docs.phoenix.trade
  description: Phoenix developer documentation
paths:
  /v1/invite/validate:
    post:
      tags:
        - Invite
      summary: Validate invite
      description: >-
        Validates an invite code and whitelists the wallet if the code is valid
        and unused.
      operationId: post.v1.invite.validate
      requestBody:
        description: JSON request payload for `post.v1.invite.validate`.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ValidateInviteRequest'
            example:
              code: string
              wallet_address: string
        required: true
      responses:
        '200':
          description: Validation successful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidateInviteResponse'
        '400':
          $ref: '#/components/responses/ErrorResponse'
        '409':
          $ref: '#/components/responses/ErrorResponse'
        '429':
          $ref: '#/components/responses/ErrorResponse'
        '500':
          $ref: '#/components/responses/ErrorResponse'
        '503':
          $ref: '#/components/responses/ErrorResponse'
      security:
        - PhoenixBearerAuth: []
components:
  schemas:
    ValidateInviteRequest:
      type: object
      required:
        - code
        - wallet_address
      properties:
        code:
          type: string
        transaction_signature:
          type:
            - string
            - 'null'
          description: >-
            Optional transaction signature if the client has already submitted
            an

            on-chain transaction
        wallet_address:
          type: string
    ValidateInviteResponse:
      type: object
      required:
        - success
        - message
        - whitelisted
      properties:
        message:
          type: string
        success:
          type: boolean
        whitelisted:
          type: boolean
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: string
  responses:
    ErrorResponse:
      description: Standard JSON error payload.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    PhoenixBearerAuth:
      type: http
      scheme: bearer
      description: Bearer access token issued by `/v1/auth/*` login endpoints.

````