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

# CheckSavedItems

> CheckSavedItems checks whether specific items are in the user's saved collection.
 Useful for rendering save/unsave toggle state in the UI. Requires the "read" scope.



## OpenAPI

````yaml /api/anghami-sdk.openapi.yaml post /v1/library/saved:check
openapi: 3.1.0
info:
  title: Anghami + OSN+ SDK
  description: >-
    Unified OpenAPI bundle covering all Anghami + OSN+ SDK services (music +
    video streaming).
  contact:
    name: Anghami Developer Platform
    email: developers@anghami.com
  version: 1.0.0
servers:
  - url: https://sdk.anghami.com
security: []
paths:
  /v1/library/saved:check:
    post:
      tags:
        - LibraryService
      summary: CheckSavedItems
      description: >-
        CheckSavedItems checks whether specific items are in the user's saved
        collection.
         Useful for rendering save/unsave toggle state in the UI. Requires the "read" scope.
      operationId: CheckSavedItems
      parameters:
        - name: Authorization
          in: header
          description: >-
            OAuth 2.0 Bearer token with the 'read' scope. Required for all
            library operations. Format: Bearer <access_token>.
          required: true
          schema:
            type: string
            example: Bearer eyJhbGciOiJSUzI1NiIs...
        - name: Accept-Language
          in: header
          description: Preferred locale for localized content in returned items (BCP 47).
          required: false
          schema:
            type: string
            example: ar
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/sdk_library_v1_CheckSavedItemsRequest'
        required: true
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/sdk_library_v1_CheckSavedItemsResponse'
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
        default:
          description: Error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    sdk_library_v1_CheckSavedItemsRequest:
      type: object
      properties:
        showIds:
          $ref: '#/components/schemas/sdk_shared_v1_ShowIDList'
        movieIds:
          $ref: '#/components/schemas/sdk_shared_v1_MovieIDList'
      description: >-
        CheckSavedItemsRequest is the request message for checking whether items
        are in the user's saved collection.
         Only movies and shows can be saved.
    sdk_library_v1_CheckSavedItemsResponse:
      type: object
      properties:
        results:
          type: object
          additionalProperties:
            type: boolean
          description: >-
            Map of item ID to saved status. Every requested ID appears in this
            map.
             True indicates the item is in the user's saved collection.
      description: >-
        CheckSavedItemsResponse is the response message indicating which items
        are saved.
    ValidationError:
      type: object
      properties:
        violations:
          type: array
          items:
            $ref: '#/components/schemas/FieldViolation'
          description: List of validation violations
      required:
        - violations
      description: >-
        ValidationError is returned when request validation fails. It contains a
        list of field violations describing what went wrong.
    Error:
      type: object
      properties:
        message:
          type: string
          description: Error message (e.g., 'user not found', 'database connection failed')
      description: >-
        Error is returned when a handler encounters an error. It contains a
        simple error message that the developer can customize.
    sdk_shared_v1_ShowIDList:
      type: object
      properties:
        values:
          type: array
          items:
            $ref: '#/components/schemas/sdk_shared_v1_ShowID'
      description: ShowIDList is a list of show identifiers for batch operations.
    sdk_shared_v1_MovieIDList:
      type: object
      properties:
        values:
          type: array
          items:
            $ref: '#/components/schemas/sdk_shared_v1_MovieID'
      description: MovieIDList is a list of movie identifiers for batch operations.
    FieldViolation:
      type: object
      properties:
        field:
          type: string
          description: >-
            The field path that failed validation (e.g., 'user.email' for nested
            fields). For header validation, this will be the header name (e.g.,
            'X-API-Key')
        description:
          type: string
          description: >-
            Human-readable description of the validation violation (e.g., 'must
            be a valid email address', 'required field missing')
      required:
        - field
        - description
      description: FieldViolation describes a single validation error for a specific field.
    sdk_shared_v1_ShowID:
      type: object
      properties:
        value:
          type: string
          description: The string value of the show identifier.
      required:
        - value
      description: ShowID is a typed identifier for a show.
    sdk_shared_v1_MovieID:
      type: object
      properties:
        value:
          type: string
          description: The string value of the movie identifier.
      required:
        - value
      description: MovieID is a typed identifier for a movie.

````