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

# Get recent emotional states

> Return up to `limit` most recent emotional states, newest first.

Lets a client show the *arc* of how a relationship has been feeling — the last
few registers — rather than only the latest snapshot, which can swing on a
single brief exchange. Same per-relationship scoping, and the same ENG-2477
double-read, as `get_latest_emotional_state`.



## OpenAPI

````yaml https://app.stainlessapi.com/api/spec/documented/hyperspell.yaml get /emotional-state/recent
openapi: 3.1.0
info:
  title: Hyperspell API
  summary: >-
    Hyperspell is the memory layer for AI apps and agents. Through the API, you
    can add memories, connect data sources to index them in real-time, and
    search memories with our natural language query engine.
  termsOfService: https://hyperspell.com/blog/tos
  contact:
    name: Hyperspell
    url: https://hyperspell.com/
    email: hello@hyperspell.com
  version: 0.32.1
servers:
  - url: https://api.hyperspell.com
    description: Production
security:
  - APIKey: []
    AsUser: []
paths:
  /emotional-state/recent:
    get:
      tags:
        - Emotional State
      summary: Get recent emotional states
      description: >-
        Return up to `limit` most recent emotional states, newest first.


        Lets a client show the *arc* of how a relationship has been feeling —
        the last

        few registers — rather than only the latest snapshot, which can swing on
        a

        single brief exchange. Same per-relationship scoping, and the same
        ENG-2477

        double-read, as `get_latest_emotional_state`.
      operationId: get_recent_emotional_states_emotional_state_recent_get
      parameters:
        - name: relationship_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Relationship Id
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 20
            minimum: 1
            default: 5
            title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/EmotionalStateLatest'
                title: >-
                  Response Get Recent Emotional States Emotional State Recent
                  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKey: []
        - AsUser: []
components:
  schemas:
    EmotionalStateLatest:
      properties:
        resource_id:
          type: string
          title: Resource Id
        summary:
          type: string
          title: Summary
        extracted_at:
          type: string
          title: Extracted At
        session_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Session Id
        relationship_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Relationship Id
      type: object
      required:
        - resource_id
        - summary
        - extracted_at
        - session_id
        - relationship_id
      title: EmotionalStateLatest
      description: Latest emotional state for a user/relationship.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKey:
      type: http
      description: >-
        API Key or JWT User Token. If using an API Key, set the X-As-User header
        to act as a specific user. A JWT User Token is always scoped to a
        specific user.
      scheme: bearer
      bearerFormat: Bearer <token>
    AsUser:
      type: apiKey
      description: >-
        Optionally set this header to act as a specific user when using an API
        Key, equivalent to first exchanging the API Key for a User Token
      in: header
      name: X-As-User

````