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

# Invite Affiliate via Email

> This endpoint allows you to send an invitation to a potential affiliate via email to join the store's affiliate program. The `x-store-id` header is used for verification. You must provide an email in the request body. It constructs an invitation link based on the store's domain settings.



## OpenAPI

````yaml /api-reference/growth-api.json post /affiliates/invite
openapi: 3.0.0
info:
  title: Growth API
  description: Comprehensive API documentation for Blink.
  version: 1.0.0
servers:
  - url: https://api.blink.store/v1
security:
  - storeIdHeader: []
paths:
  /affiliates/invite:
    post:
      tags:
        - Affiliates
      summary: Invite Affiliate via Email
      description: >-
        This endpoint allows you to send an invitation to a potential affiliate
        via email to join the store's affiliate program. The `x-store-id` header
        is used for verification. You must provide an email in the request body.
        It constructs an invitation link based on the store's domain settings.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InviteAffiliateRequest'
      responses:
        '200':
          description: Invitation email sent successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  message:
                    type: string
      security:
        - storeIdHeader: []
components:
  schemas:
    InviteAffiliateRequest:
      type: object
      properties:
        email:
          type: string
      required:
        - email
  securitySchemes:
    storeIdHeader:
      type: apiKey
      in: header
      name: x-store-id

````