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

# Get user XP day-summary by CASE subject

> Returns net XP for one org-local calendar day, grouped by canonical CASE subject.
Includes an explicit unassigned bucket for rows the resolver cannot map.
The day boundary uses the student organization's configured time zone.



## OpenAPI

````yaml /openapi/learn-with-ai/platform-api.yaml get /xp/1.0/users/{userId}/day-summary
openapi: 3.1.1
info:
  title: TimeBack Platform API
  description: >-
    RESTful API for the TimeBack Platform. Covers authentication, rostering,
    curriculum, insights, assessments, content grading, and more.
  version: 2026.09.30.1
servers:
  - url: https://platform.dev.timeback.com
    description: integration
security: []
tags:
  - name: Auth
    description: Authentication and authorization endpoints
  - name: Organizations
    description: Organizations module contains all endpoints around organization management
  - name: Applications
    description: Applications module contains all endpoints for managing LTI applications
  - name: Users
    description: >-
      Users module contains all endpoints around user creation, update and
      consultation
  - name: Students
    description: Students module contains all endpoints around student management
  - name: Demographics
    description: >-
      Demographics module contains all endpoints around demographics
      consultation
  - name: Consent
    description: >-
      Initiate and query TimeBack parental consent for a student, backed by an
      immutable audit trail.
  - name: Classes
    description: Classes module contains all endpoints around class management
  - name: Courses
    description: Courses module contains all endpoints around course management
  - name: Enrollments
    description: Enrollments module contains all endpoints around enrollment consultation
  - name: CASE
    description: Competency and Academic Standards Exchange (CASE) 1.1 API
  - name: Curriculum
    description: Curriculum module contains endpoints for managing curriculum data
  - name: Competency Track
    description: Competency track endpoints
  - name: Content Grading
    description: >-
      Registration and management of graders for free-response content items —
      bring-your-own external graders (Tier 2) and, once shipped,
      platform-managed grading prompts (Tier 1).
  - name: Caliper
    description: The Caliper module contains all endpoints around Caliper Analytics
  - name: Insights
    description: Coaching insights and session analytics endpoints
paths:
  /xp/1.0/users/{userId}/day-summary:
    get:
      tags:
        - XP
      summary: Get user XP day-summary by CASE subject
      description: >-
        Returns net XP for one org-local calendar day, grouped by canonical CASE
        subject.

        Includes an explicit unassigned bucket for rows the resolver cannot map.

        The day boundary uses the student organization's configured time zone.
      operationId: getUserXpDaySummary
      parameters:
        - name: userId
          in: path
          description: User ID
          required: true
          schema:
            type: string
            format: uuid
        - name: date
          in: query
          description: >-
            Org-local calendar day (YYYY-MM-DD). Defaults to today in the
            resolved time zone.
          required: false
          schema:
            type: string
            format: date
      responses:
        '200':
          description: XP day-summary retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserXpDaySummaryOutput'
        '400':
          $ref: '#/components/responses/XpBadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/XpNotFound'
        '500':
          $ref: '#/components/responses/XpInternalError'
      security:
        - CognitoUserPoolAuthorizer:
            - https://purl.imsglobal.org/spec/caliper/v1p2/scope/events.readonly
components:
  schemas:
    UserXpDaySummaryOutput:
      type: object
      properties:
        userId:
          type: string
          format: uuid
        date:
          type: string
          format: date
        timeZone:
          type: string
          description: IANA time zone used for the org-local day boundary
        window:
          type: object
          properties:
            start:
              type: string
              format: date-time
            end:
              type: string
              format: date-time
          required:
            - start
            - end
        totalXp:
          type: number
          format: double
        subjects:
          type: array
          items:
            $ref: '#/components/schemas/XpSubjectBucketOutput'
        unassigned:
          $ref: '#/components/schemas/XpUnassignedBucketOutput'
      required:
        - userId
        - date
        - timeZone
        - window
        - totalXp
        - subjects
        - unassigned
    XpSubjectBucketOutput:
      type: object
      properties:
        subjectId:
          type: string
          format: uuid
        title:
          type: string
        xp:
          type: number
          format: double
      required:
        - subjectId
        - title
        - xp
    XpUnassignedBucketOutput:
      type: object
      properties:
        xp:
          type: number
          format: double
      required:
        - xp
  responses:
    XpBadRequest:
      description: Bad request
    Unauthorized:
      description: Unauthorized
    Forbidden:
      description: Forbidden
    XpNotFound:
      description: Resource not found
    XpInternalError:
      description: Internal server error
  securitySchemes:
    CognitoUserPoolAuthorizer:
      type: oauth2
      description: >-
        OAuth 2.0 client credentials flow. Contact timeback@trilogy.com to
        request credentials for your application.
      flows:
        clientCredentials:
          tokenUrl: https://platform.dev.timeback.com/auth/1.0/token
          scopes:
            https://purl.imsglobal.org/spec/or/v1p2/scope/roster.readonly: roster readonly
            https://purl.imsglobal.org/spec/or/v1p2/scope/roster-core.readonly: roster-core readonly
            https://purl.imsglobal.org/spec/or/v1p2/scope/roster.createput: roster createput
            https://purl.imsglobal.org/spec/lti/v1p3/scope/lti.readonly: lti readonly
            https://purl.imsglobal.org/spec/or/v1p2/scope/roster-demographics.readonly: roster-demographics readonly
            https://timeback-platform.trilogy.com/consent/scope/consent.write: consent write
            https://timeback-platform.trilogy.com/consent/scope/consent.read: consent read
            https://purl.imsglobal.org/spec/or/v1p2/scope/roster-core.createput: roster-core createput
            https://purl.imsglobal.org/spec/or/v1p2/scope/roster.delete: roster delete
            https://purl.imsglobal.org/spec/or/v1p2/scope/roster-core.delete: roster-core delete
            https://purl.imsglobal.org/spec/case/v1p0/scope/case.readonly: case readonly
            https://purl.imsglobal.org/spec/case/v1p0/scope/case.createput: case createput
            https://purl.imsglobal.org/spec/case/v1p0/scope/case.delete: case delete
            https://timeback-platform.trilogy.com/competency-track/scope/competency-track.readonly: competency-track readonly
            https://timeback-platform.trilogy.com/competency-track/scope/competency-track.write: competency-track write
            https://timeback-platform.trilogy.com/competency-track/scope/competency-track.delete: competency-track delete
            https://timeback-platform.trilogy.com/content/scope/content.write: content write
            https://timeback-platform.trilogy.com/content/scope/content.read: content read
            https://purl.imsglobal.org/spec/caliper/v1p2/scope/events.write: events write
            https://purl.imsglobal.org/spec/caliper/v1p2/scope/events.readonly: events readonly
            https://timeback-platform.trilogy.com/webhooks/scope/webhooks.write: webhooks write
            https://timeback-platform.trilogy.com/webhooks/scope/webhooks.read: webhooks read
            https://timeback-platform.trilogy.com/webhooks/scope/webhooks.delete: webhooks delete

````