> ## 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.

# Activate referral (deprecated June 30, 2026)

> Deprecated on June 30, 2026. New onboarding should use delegated on-chain permission accounts or `/v1/referral/activate-tx` instead.



## OpenAPI

````yaml /openapi/phoenix-public-api.json post /v1/referral/activate
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/referral/activate:
    post:
      tags:
        - Invite
      summary: Activate referral (deprecated June 30, 2026)
      description: >-
        Deprecated on June 30, 2026. New onboarding should use delegated
        on-chain permission accounts or `/v1/referral/activate-tx` instead.
      operationId: post.v1.referral.activate
      requestBody:
        description: JSON request payload for `post.v1.referral.activate`.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ActivateInviteWithReferralRequest'
            example:
              authority: string
              referral_code: string
        required: true
      responses:
        '200':
          description: Trader created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActivateInviteResponse'
        '400':
          $ref: '#/components/responses/ErrorResponse'
        '401':
          $ref: '#/components/responses/ErrorResponse'
        '403':
          $ref: '#/components/responses/ErrorResponse'
        '409':
          $ref: '#/components/responses/ErrorResponse'
        '429':
          $ref: '#/components/responses/ErrorResponse'
        '504':
          $ref: '#/components/responses/ErrorResponse'
      security:
        - PhoenixBearerAuth: []
components:
  schemas:
    ActivateInviteWithReferralRequest:
      type: object
      required:
        - authority
        - referral_code
      properties:
        authority:
          type: string
        referral_code:
          type: string
    ActivateInviteResponse:
      type: object
      required:
        - trader_pda
      properties:
        trader_pda:
          type: string
    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.

````