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

# Save Item

> Save a content node to the contact's list in this hub.

Idempotent: a re-save of an already-saved node returns 201 with the
original row (no recency bump, no duplicate SavedItemAdded event).

Body: {"data": {"type": "saved_items", "attributes": {"content_node_id": "..."}}}

Returns 201 with the saved_items resource (new or existing).
Returns 404 when the node is missing or inaccessible (no existence leak).
Returns 403 when the contact is not an active hub member.



## OpenAPI

````yaml /openapi/mio-openapi.json post /api/v1/hub/{hub_id}/saved-items
openapi: 3.1.0
info:
  description: >-
    Production API reference for Membership.io. Use the authored guides for
    workflows and the generated endpoint pages for exact parameters and schemas.
  title: Membership.io API
  version: 0.1.0
servers:
  - description: Production
    url: https://api.member.dev
security:
  - bearerAuth: []
paths:
  /api/v1/hub/{hub_id}/saved-items:
    post:
      tags:
        - saved-items
      summary: Save Item
      description: >-
        Save a content node to the contact's list in this hub.


        Idempotent: a re-save of an already-saved node returns 201 with the

        original row (no recency bump, no duplicate SavedItemAdded event).


        Body: {"data": {"type": "saved_items", "attributes": {"content_node_id":
        "..."}}}


        Returns 201 with the saved_items resource (new or existing).

        Returns 404 when the node is missing or inaccessible (no existence
        leak).

        Returns 403 when the contact is not an active hub member.
      operationId: saved_items.post_saved_items_post_hub_by_hub_id_saved_items
      parameters:
        - in: path
          name: hub_id
          required: true
          schema:
            title: Hub Id
            type: string
      requestBody:
        content:
          application/vnd.api+json:
            schema:
              $ref: '#/components/schemas/SavedItemCreateEnvelope'
        required: true
      responses:
        '201':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/JsonApiResponse_SavedItemAttributes_'
          description: Successful Response
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    SavedItemCreateEnvelope:
      description: Top-level JSON:API request envelope for POST /saved-items.
      properties:
        data:
          $ref: '#/components/schemas/SavedItemCreateData'
      required:
        - data
      title: SavedItemCreateEnvelope
      type: object
    JsonApiResponse_SavedItemAttributes_:
      properties:
        data:
          $ref: '#/components/schemas/JsonApiResource_SavedItemAttributes_'
        included:
          anyOf:
            - items: {}
              type: array
            - type: 'null'
          title: Included
        links:
          anyOf:
            - $ref: '#/components/schemas/JsonApiLinks'
            - type: 'null'
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
      required:
        - data
      title: JsonApiResponse[SavedItemAttributes]
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    SavedItemCreateData:
      description: JSON:API data envelope for POST body.
      properties:
        attributes:
          $ref: '#/components/schemas/SavedItemCreateAttributes'
        type:
          title: Type
          type: string
      required:
        - type
        - attributes
      title: SavedItemCreateData
      type: object
    JsonApiResource_SavedItemAttributes_:
      properties:
        attributes:
          $ref: '#/components/schemas/SavedItemAttributes'
        id:
          title: Id
          type: string
        links:
          anyOf:
            - $ref: '#/components/schemas/JsonApiLinks'
            - type: 'null'
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
        relationships:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Relationships
        type:
          title: Type
          type: string
      required:
        - id
        - type
        - attributes
      title: JsonApiResource[SavedItemAttributes]
      type: object
    JsonApiLinks:
      properties:
        self:
          anyOf:
            - type: string
            - type: 'null'
          title: Self
      title: JsonApiLinks
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
    SavedItemCreateAttributes:
      description: Attributes accepted in the POST body.
      properties:
        content_node_id:
          title: Content Node Id
          type: string
      required:
        - content_node_id
      title: SavedItemCreateAttributes
      type: object
    SavedItemAttributes:
      description: >-
        Wire-shape attributes for a saved_items resource.


        hub_id:          Hub the item was saved in.

        content_node_id: ID of the saved content node (maps to target_id
        internally).

        created_at:      When the item was saved (original, never bumped on
        re-save).
      properties:
        content_node_id:
          title: Content Node Id
          type: string
        created_at:
          format: date-time
          title: Created At
          type: string
        hub_id:
          title: Hub Id
          type: string
      required:
        - hub_id
        - content_node_id
        - created_at
      title: SavedItemAttributes
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT or mio_sk API key
      description: >-
        Send platform JWTs, contact JWTs, or team API keys as `Authorization:
        Bearer <token>`.
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````