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

# Look up a TraderCode (deprecated PitPass path)

> Look up a TraderCode (public).

 Public, unauthenticated lookup used to validate a referral code at signup.
 The code is a wallet address; returns the normalized code when it resolves
 to a known wallet. Returns 404 when the code does not resolve to a user.



## OpenAPI

````yaml /proto-openapi/api/openapi.yaml get /api/v1/pitpass/codes/{code}
openapi: 3.0.3
info:
  title: Monaco Protocol API
  description: REST API for the Monaco Protocol hybrid CLOB exchange.
  version: 1.0.0
servers:
  - url: https://staging.apimonaco.xyz
    description: Staging server (Testnet)
security: []
tags:
  - name: AccountsService
  - name: ApplicationsService
  - name: AuthService
  - name: BuildercodeRewardsService
  - name: CopyTradingService
  - name: DelegatedAgentsService
  - name: FaucetService
  - name: FeesService
  - name: HealthService
  - name: ManagedMarketsService
    description: |-
      Wallet-authenticated maker assignments. The signed session must match both
       configured maker user and application. Owner IDs are process fences, never auth.
       Only wallet sessions are supported; delegated-agent sessions receive 403.
  - name: MarginAccountsService
    description: |-
      Current public isolated-margin semantics:
       - a user has one parent margin account per application scope
       - opening orders create or reuse isolated position buckets under that parent
       - parent account creation is handled internally by margin workflows
  - name: MarketService
  - name: OrderbookService
  - name: OrdersService
  - name: PositionsService
    description: |-
      Current public isolated-margin semantics:
       - positions link to a parent margin account and, when applicable, a bucket id
       - opening orders create or reuse isolated position buckets under the parent
       - users can open another isolated position by reusing the parent account with a different market bucket
  - name: PulseService
  - name: SweeperService
  - name: TraderCodeService
  - name: TradesService
  - name: WhitelistService
  - name: WithdrawalsService
paths:
  /api/v1/pitpass/codes/{code}:
    get:
      tags:
        - TraderCodeService
        - PitPass
      summary: Look up a TraderCode (deprecated PitPass path)
      description: |-
        Look up a TraderCode (public).

         Public, unauthenticated lookup used to validate a referral code at signup.
         The code is a wallet address; returns the normalized code when it resolves
         to a known wallet. Returns 404 when the code does not resolve to a user.
      operationId: pitpass_get_trader_code_info
      parameters:
        - name: code
          in: path
          required: true
          schema:
            type: string
            default: '0x742d35cc6634c0532925a3b8d4060f31e2c3d8b5'
          example: '0x742d35cc6634c0532925a3b8d4060f31e2c3d8b5'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetTraderCodeInfoResponse'
        '404':
          description: Code not found
        '500':
          description: Internal server error
      deprecated: true
components:
  schemas:
    GetTraderCodeInfoResponse:
      type: object
      properties:
        code:
          example: '0x0000000000000000000000000000000000000002'
          type: string
          description: The resolved TraderCode (normalized wallet address)
          nullable: true

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.