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

# Post apiv1referralclick



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/referral/click
openapi: 3.1.0
info:
  title: ekiden-gateway
  description: >-
    API Gateway and WebSocket proxy based on Axum and Utoipa, handling auth,
    rate limiting, and connection buffering.
  license:
    name: ''
  version: 0.1.1
servers:
  - url: https://api.ekiden.fi/
    description: Production
  - url: https://api.cnt.ekiden.fi/
    description: Testnet
  - url: https://api.canton.ekiden.fi/
    description: Staging
security: []
paths:
  /api/v1/referral/click:
    post:
      tags:
        - User
      operationId: record_referral_click
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RecordReferralClickRequest'
        required: true
      responses:
        '200':
          description: Click recorded
        '400':
          description: Malformed code
components:
  schemas:
    RecordReferralClickRequest:
      type: object
      required:
        - code
      properties:
        code:
          type: string

````