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

# Collect a Moment

> Collect a Moment on the In•Process protocol. This endpoint allows users to collect moments with an optional comment.



## OpenAPI

````yaml POST /moment/collect
openapi: 3.1.0
info:
  title: In•Process API
  description: >-
    The In•Process API enables browsing and managing moments from timelines.
    Retrieve moments from a specific artist's timeline, browse the in•process
    collective timeline, or filter by collection. The API supports creating
    moments, managing collections, handling payments, and interacting with the
    In•Process protocol ecosystem.
  version: 1.0.0
servers:
  - url: https://api.inprocess.world/api
    description: Production server
security: []
paths:
  /moment/collect:
    post:
      summary: Collect a Moment
      description: >-
        Collect a Moment on the In•Process protocol. This endpoint allows users
        to collect moments with an optional comment.
      operationId: collectMoment
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CollectMomentRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransactionResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - apiKeyAuth: []
components:
  schemas:
    CollectMomentRequest:
      type: object
      required:
        - moment
        - amount
        - comment
      properties:
        moment:
          $ref: '#/components/schemas/MomentIdentifier'
        amount:
          type: number
          description: Amount to be collected
        comment:
          type: string
          description: Comment
    TransactionResponse:
      type: object
      required:
        - hash
        - chainId
      properties:
        hash:
          type: string
          description: Transaction hash of the operation
        chainId:
          type: integer
          description: Chain ID where the transaction was executed
          example: 8453
    Error:
      type: object
      required:
        - status
        - message
      properties:
        status:
          type: string
          enum:
            - error
          description: Error status
        message:
          type: string
          description: Error message
        errors:
          type: array
          description: >-
            Optional array of field-level validation errors. Typically included
            in 400 Bad Request responses for validation errors.
          items:
            type: object
            required:
              - field
              - message
            properties:
              field:
                type: string
                description: The field name that failed validation
              message:
                type: string
                description: The validation error message for this field
    MomentIdentifier:
      type: object
      required:
        - collectionAddress
        - tokenId
      properties:
        collectionAddress:
          type: string
          description: Contract address of the Moment
        tokenId:
          type: string
          description: Token ID of the Moment
        chainId:
          type: integer
          description: 'Chain ID (optional, default: Base 8453)'
          default: 8453
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        Artist API key for authentication. Get your API key from
        https://inprocess.world/manage/api-keys

````