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

# Mark Notifications Read

> Mark specific notifications as read for a customer in Gameball by providing notification IDs.

This API allows you to mark specific notifications as read for a customer in Gameball, identified by `customerId`. By providing notification IDs, you can update the read status of individual notifications.

<Warning>
  **Security**: Requires **apikey** and **secretkey** headers.
</Warning>


## OpenAPI

````yaml PUT /api/v4.0/integrations/customers/{customerId}/notifications/read
openapi: 3.1.0
info:
  title: Gameball API
  description: >-
    Gameball REST API v4.0 - Complete API reference for integrating loyalty,
    gamification, and customer engagement features
  version: 4.0.0
servers:
  - url: https://api.gameball.co
security:
  - bearerAuth: []
paths:
  /api/v4.0/integrations/customers/{customerId}/notifications/read:
    put:
      summary: Mark Customer Notifications as Read
      description: >-
        Mark specific notifications as read for a customer in Gameball by
        providing notification IDs.
      operationId: markNotificationsRead
      parameters:
        - name: customerId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MarkNotificationsReadRequest'
      responses:
        '200':
          description: Updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Success'
      security:
        - apiKey: []
          secretKey: []
      x-codeSamples:
        - lang: curl
          label: cURL
          source: >-
            curl -X POST
            'https://api.gameball.co/api/v4.0/integrations/customers/12345/notifications/read'
            -H 'Content-Type: application/json' -H 'apikey: YOUR_API_KEY' -H
            'secretkey: YOUR_SECRET_KEY' -d
            '{"notificationIds":["n_01","n_02"]}'
        - lang: javascript
          label: JavaScript
          source: >-
            await
            fetch('https://api.gameball.co/api/v4.0/integrations/customers/12345/notifications/read',{method:'POST',headers:{'Content-Type':'application/json',apikey:'YOUR_API_KEY',secretkey:'YOUR_SECRET_KEY'},body:JSON.stringify({notificationIds:['n_01','n_02']})});
        - lang: python
          label: Python
          source: >-
            import requests

            requests.post('https://api.gameball.co/api/v4.0/integrations/customers/12345/notifications/read',
            json={'notificationIds':['n_01','n_02']},
            headers={'apikey':'YOUR_API_KEY','secretkey':'YOUR_SECRET_KEY','Content-Type':'application/json'})
        - lang: csharp
          label: C#
          source: >-
            using System.Net.Http; using System.Text;

            var client = new HttpClient();

            client.DefaultRequestHeaders.Add("apikey", "YOUR_API_KEY");

            client.DefaultRequestHeaders.Add("secretkey", "YOUR_SECRET_KEY");

            var content = new
            StringContent("{\"notificationIds\":[\"n_01\",\"n_02\"]}",
            Encoding.UTF8, "application/json");

            var res = await
            client.PostAsync("https://api.gameball.co/api/v4.0/integrations/customers/12345/notifications/read",
            content);

            res.EnsureSuccessStatusCode();
        - lang: php
          label: PHP
          source: >-
            <?php\n$ch =
            curl_init('https://api.gameball.co/api/v4.0/integrations/customers/12345/notifications/read');\n$payload
            =
            json_encode(['notificationIds'=>['n_01','n_02']]);\ncurl_setopt_array($ch,
            [CURLOPT_POST=>true, CURLOPT_HTTPHEADER => ['Content-Type:
            application/json','apikey: YOUR_API_KEY','secretkey:
            YOUR_SECRET_KEY'], CURLOPT_POSTFIELDS => $payload,
            CURLOPT_RETURNTRANSFER => true]);\n$resp = curl_exec($ch);\n?>
components:
  schemas:
    MarkNotificationsReadRequest:
      type: object
      required:
        - notificationIds
      properties:
        notificationIds:
          type: array
          items:
            type: string
    Success:
      type: object
      properties:
        success:
          type: boolean
        message:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
    apiKey:
      type: apiKey
      in: header
      name: apikey
    secretKey:
      type: apiKey
      in: header
      name: secretkey

````