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

# Add an organization member

> Assign a seat to a new member in a specified organization. Requires `seat_id` and `email` in the request body. The endpoint verifies that the organization and seat belong to the store by checking the `x-store-id` header.

- **Parameters:**
  - `id` (string, path, required): The ID of the organization.

- **Request Body:**
  - `seat_id`: Unique identifier of the seat.
  - `email`: Email address of the member to assign.

- **Responses:**
  - `200`: Successfully assigned a seat to a member.
  - `400`: Bad request if required fields are missing.
  - `401`: Unauthorized if `x-store-id` is not provided.
  - `404`: Either organization or seat not found.



## OpenAPI

````yaml /api-reference/blink-api.json post /organizations/{id}/members
openapi: 3.0.0
info:
  title: Blink API
  description: Comprehensive API documentation for Blink.
  version: 1.0.0
servers:
  - url: https://api.blink.store/v1
security:
  - storeIdHeader: []
tags:
  - name: Invoices
    description: Unified merchant of record invoices for products and subscriptions.
  - name: Geo Pricing
    description: Resolve Purchasing Power Parity (PPP) localized pricing.
paths:
  /organizations/{id}/members:
    post:
      tags:
        - Organizations
      summary: Add an organization member
      description: >-
        Assign a seat to a new member in a specified organization. Requires
        `seat_id` and `email` in the request body. The endpoint verifies that
        the organization and seat belong to the store by checking the
        `x-store-id` header.


        - **Parameters:**
          - `id` (string, path, required): The ID of the organization.

        - **Request Body:**
          - `seat_id`: Unique identifier of the seat.
          - `email`: Email address of the member to assign.

        - **Responses:**
          - `200`: Successfully assigned a seat to a member.
          - `400`: Bad request if required fields are missing.
          - `401`: Unauthorized if `x-store-id` is not provided.
          - `404`: Either organization or seat not found.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: ID of the organization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddOrganizationMemberRequest'
      responses:
        '200':
          description: Seat assigned successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  message:
                    type: string
        '400':
          description: Missing seat_id or email.
        '401':
          description: Unauthorized - Store ID header missing.
        '404':
          description: Organization or seat not found.
      security:
        - storeIdHeader: []
components:
  schemas:
    AddOrganizationMemberRequest:
      type: object
      properties:
        seat_id:
          type: string
        email:
          type: string
      required:
        - seat_id
        - email
  securitySchemes:
    storeIdHeader:
      type: apiKey
      in: header
      name: x-store-id

````