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

# Search statements

> Deprecated: use [List statements](/api-reference/xapi/list-statements). Requires the `xapi:read` scope.

Returns up to 10,000 statements per request (`limit` is ignored); use `skip` to page.



## OpenAPI

````yaml /api-reference/openapi.yaml post /api/v1/public-api/xapi/.search
openapi: 3.1.0
info:
  title: Juno Journey API
  version: 1.0.0
  description: >-
    The Juno public API. See the [API
    overview](https://docs.junojourney.com/integrations/api-overview) for
    authentication, scopes and limits.
servers:
  - url: https://api.the-juno.com
security:
  - BearerAuth: []
paths:
  /api/v1/public-api/xapi/.search:
    post:
      tags:
        - xAPI
      summary: Search statements
      description: >-
        Deprecated: use [List statements](/api-reference/xapi/list-statements).
        Requires the `xapi:read` scope.


        Returns up to 10,000 statements per request (`limit` is ignored); use
        `skip` to page.
      operationId: searchXapiStatements
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/XapiSearchRequest'
            example:
              filters:
                timestamp:
                  from: '2024-01-01T00:00:00.000Z'
                  to: '2024-05-01T00:00:00.000Z'
                verb.id: http://activitystrea.ms/schema/1.0/complete
                object.id: https://www.junojourney.com/units/64f0c0ffee0000000000000d
                userId: 64f0c0ffee00000000000001
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  dataLength:
                    type: integer
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        actor:
                          type: object
                          properties:
                            name:
                              type: string
                            account:
                              type: object
                              properties:
                                homePage:
                                  type: string
                                  format: uri
                            mbox:
                              type: string
                              format: email
                        context:
                          type: object
                          properties:
                            registration:
                              type: string
                            contextActivities:
                              type: object
                              properties:
                                grouping:
                                  type: string
                                parent:
                                  type: string
                            extensions:
                              type: string
                        object:
                          type: object
                          properties:
                            id:
                              type: string
                              format: uri
                            definition:
                              type: object
                              properties:
                                name:
                                  type: string
                                type:
                                  type: string
                                  format: uri
                                description:
                                  type:
                                    - string
                                    - 'null'
                                interactionType:
                                  type:
                                    - string
                                    - 'null'
                                target:
                                  type:
                                    - string
                                    - 'null'
                        verb:
                          type: object
                          properties:
                            id:
                              type: string
                              format: uri
                            display:
                              type: string
                        timestamp:
                          type: object
                          properties:
                            value:
                              type: string
                              format: date-time
                        result:
                          type:
                            - object
                            - 'null'
                        userId:
                          type: string
                        tid:
                          type: string
              examples:
                List XAPI Statements filtered from date:
                  value:
                    dataLength: 50
                    data:
                      - actor:
                          name: Alex Morgan
                          account:
                            homePage: https://your-company.the-juno.com
                          mbox: alex.morgan@acme.com
                        context:
                          registration: 56ce3d60-5cfa-4bad-8dac-99c8567df3e9
                          contextActivities:
                            grouping: >-
                              [{"definition":{"description":{},"name":{"en-US":"Welcome
                              to the
                              company"},"type":"http://adlnet.gov/expapi/activities/course"},"id":"https://www.junojourney.com/units/64f0c0ffee00000000000009"}]
                            parent: >-
                              [{"definition":{"description":{},"name":{"en-US":"Welcome
                              to the
                              company"},"type":"http://adlnet.gov/expapi/activities/course"},"id":"https://www.junojourney.com/units/64f0c0ffee00000000000009"}]
                          extensions: '{"https://www.junojourney.com/verbs/duration":10787}'
                        object:
                          id: >-
                            https://www.junojourney.com/units/64f0c0ffee0000000000000a
                          definition:
                            name: '{"en-US":"Welcome to the company"}'
                            type: http://adlnet.gov/expapi/activities/module
                            description: null
                            interactionType: null
                            target: null
                        verb:
                          id: http://activitystrea.ms/schema/1.0/consume
                          display: '{"en-US":"consume"}'
                        timestamp:
                          value: '2024-01-02T13:48:32.298Z'
                        result: null
                        userId: 64f0c0ffee00000000000001
                        tid: 64f0c0ffee00000000000002
                      - actor:
                          name: Alex Morgan
                          account:
                            homePage: https://your-company.the-juno.com
                          mbox: alex.morgan@acme.com
                        context:
                          registration: 56ce3d60-5cfa-4bad-8dac-99c8567df3e9
                          contextActivities:
                            grouping: >-
                              [{"definition":{"description":{},"name":{"en-US":"Welcome
                              to the
                              company"},"type":"http://adlnet.gov/expapi/activities/course"},"id":"https://www.junojourney.com/units/64f0c0ffee00000000000009"}]
                            parent: >-
                              [{"definition":{"description":{},"name":{"en-US":"Welcome
                              to the
                              company"},"type":"http://adlnet.gov/expapi/activities/course"},"id":"https://www.junojourney.com/units/64f0c0ffee00000000000009"}]
                          extensions: '{"https://www.junojourney.com/verbs/duration":20000}'
                        object:
                          id: >-
                            https://www.junojourney.com/units/64f0c0ffee0000000000000b
                          definition:
                            name: >-
                              {"en-US":"Get through your first day like a
                              boss!"}
                            type: http://adlnet.gov/expapi/activities/module
                            description: null
                            interactionType: null
                            target: null
                        verb:
                          id: http://activitystrea.ms/schema/1.0/consume
                          display: '{"en-US":"consume"}'
                        timestamp:
                          value: '2024-01-02T13:48:52.631Z'
                        result: null
                        userId: 64f0c0ffee00000000000001
                        tid: 64f0c0ffee00000000000002
                List XAPI Statements filtered by event type (verb.id):
                  value:
                    dataLength: 50
                    data:
                      - actor:
                          name: Alex Morgan
                          account:
                            homePage: https://your-company.the-juno.com
                          mbox: alex.morgan@acme.com
                        context:
                          registration: null
                          contextActivities:
                            grouping: >-
                              [{"definition":{"description":{},"name":{"en-US":"Good
                              Leaders vs Bad
                              Leaders"},"type":"http://adlnet.gov/expapi/activities/course"},"id":"https://www.junojourney.com/units/64f0c0ffee0000000000000c"}]
                            parent: >-
                              [{"definition":{"description":{},"name":{"en-US":"Good
                              Leaders vs Bad
                              Leaders"},"type":"http://adlnet.gov/expapi/activities/course"},"id":"https://www.junojourney.com/units/64f0c0ffee0000000000000c"}]
                          extensions: null
                        object:
                          id: >-
                            https://www.junojourney.com/units/64f0c0ffee0000000000000d
                          definition:
                            name: "{\"en-US\":\"What is poor leadership?\_\"}"
                            type: http://adlnet.gov/expapi/activities/module
                            description: null
                            interactionType: null
                            target: null
                        verb:
                          id: http://activitystrea.ms/schema/1.0/complete
                          display: '{"en-US":"complete"}'
                        timestamp:
                          value: '2024-04-03T11:49:44.879Z'
                        result: null
                        userId: 64f0c0ffee00000000000001
                        tid: 64f0c0ffee00000000000002
                      - actor:
                          name: Alex Morgan
                          account:
                            homePage: https://your-company.the-juno.com
                          mbox: alex.morgan@acme.com
                        context:
                          registration: null
                          contextActivities:
                            grouping: >-
                              [{"definition":{"description":{},"name":{"en-US":"Good
                              Leaders vs Bad
                              Leaders"},"type":"http://adlnet.gov/expapi/activities/course"},"id":"https://www.junojourney.com/units/64f0c0ffee0000000000000c"}]
                            parent: >-
                              [{"definition":{"description":{},"name":{"en-US":"Good
                              Leaders vs Bad
                              Leaders"},"type":"http://adlnet.gov/expapi/activities/course"},"id":"https://www.junojourney.com/units/64f0c0ffee0000000000000c"}]
                          extensions: null
                        object:
                          id: >-
                            https://www.junojourney.com/units/64f0c0ffee0000000000000e
                          definition:
                            name: '{"en-US":"What makes a good leader?"}'
                            type: http://adlnet.gov/expapi/activities/module
                            description: null
                            interactionType: null
                            target: null
                        verb:
                          id: http://activitystrea.ms/schema/1.0/complete
                          display: '{"en-US":"complete"}'
                        timestamp:
                          value: '2024-04-03T11:49:50.003Z'
                        result: null
                        userId: 64f0c0ffee00000000000001
                        tid: 64f0c0ffee00000000000002
                List XAPI Statements filter by specific training (object.id):
                  value:
                    dataLength: 14
                    data:
                      - actor:
                          name: Alex Morgan
                          account:
                            homePage: https://your-company.the-juno.com
                          mbox: alex.morgan@acme.com
                        context:
                          registration: null
                          contextActivities:
                            grouping: >-
                              [{"definition":{"description":{},"name":{"en-US":"Good
                              Leaders vs Bad
                              Leaders"},"type":"http://adlnet.gov/expapi/activities/course"},"id":"https://www.junojourney.com/units/64f0c0ffee0000000000000c"}]
                            parent: >-
                              [{"definition":{"description":{},"name":{"en-US":"Good
                              Leaders vs Bad
                              Leaders"},"type":"http://adlnet.gov/expapi/activities/course"},"id":"https://www.junojourney.com/units/64f0c0ffee0000000000000c"}]
                          extensions: null
                        object:
                          id: >-
                            https://www.junojourney.com/units/64f0c0ffee0000000000000d
                          definition:
                            name: "{\"en-US\":\"What is poor leadership?\_\"}"
                            type: http://adlnet.gov/expapi/activities/module
                            description: null
                            interactionType: null
                            target: null
                        verb:
                          id: http://activitystrea.ms/schema/1.0/complete
                          display: '{"en-US":"complete"}'
                        timestamp:
                          value: '2024-04-03T11:49:44.879Z'
                        result: null
                        userId: 64f0c0ffee00000000000001
                        tid: 64f0c0ffee00000000000002
                      - actor:
                          name: Alex Morgan
                          account:
                            homePage: https://your-company.the-juno.com
                          mbox: alex.morgan@acme.com
                        context:
                          registration: 1164449a-393a-4b30-8dce-7a8e02eb6c8a
                          contextActivities:
                            grouping: >-
                              [{"definition":{"description":{},"name":{"en-US":"Good
                              Leaders vs Bad
                              Leaders"},"type":"http://adlnet.gov/expapi/activities/course"},"id":"https://www.junojourney.com/units/64f0c0ffee0000000000000c"}]
                            parent: >-
                              [{"definition":{"description":{},"name":{"en-US":"Good
                              Leaders vs Bad
                              Leaders"},"type":"http://adlnet.gov/expapi/activities/course"},"id":"https://www.junojourney.com/units/64f0c0ffee0000000000000c"}]
                          extensions: '{"https://www.junojourney.com/verbs/duration":4827}'
                        object:
                          id: >-
                            https://www.junojourney.com/units/64f0c0ffee0000000000000d
                          definition:
                            name: "{\"en-US\":\"What is poor leadership?\_\"}"
                            type: http://adlnet.gov/expapi/activities/module
                            description: null
                            interactionType: null
                            target: null
                        verb:
                          id: http://activitystrea.ms/schema/1.0/consume
                          display: '{"en-US":"consume"}'
                        timestamp:
                          value: '2024-04-03T11:49:48.594Z'
                        result: null
                        userId: 64f0c0ffee00000000000001
                        tid: 64f0c0ffee00000000000002
                List XAPI Statements filtered by specific user:
                  value:
                    dataLength: 50
                    data:
                      - actor:
                          name: Alex Morgan
                          account:
                            homePage: https://your-company.the-juno.com
                          mbox: alex.morgan@acme.com
                        context:
                          registration: null
                          contextActivities: null
                          extensions: >-
                            {"https://www.junojourney.com/journey/steps":["64f0c0ffee0000000000000f","64f0c0ffee00000000000010","64f0c0ffee0000000000000c","64f0c0ffee00000000000011","64f0c0ffee00000000000012","64f0c0ffee00000000000013","64f0c0ffee00000000000014","64f0c0ffee00000000000015"]}
                        object:
                          id: >-
                            https://www.junojourney.com/units/64f0c0ffee00000000000016
                          definition:
                            name: '{"en-US":"Intro To Leadership 101"}'
                            type: http://activitystrea.ms/schema/1.0/process
                            description: '{}'
                            interactionType: null
                            target: 64f0c0ffee00000000000017
                        verb:
                          id: http://activitystrea.ms/schema/1.0/assign
                          display: '{"en-US":"assign"}'
                        timestamp:
                          value: '2024-04-09T11:23:13.096Z'
                        result: null
                        userId: 64f0c0ffee00000000000001
                        tid: 64f0c0ffee00000000000002
                      - actor:
                          name: Alex Morgan
                          account:
                            homePage: https://your-company.the-juno.com
                          mbox: alex.morgan@acme.com
                        context:
                          registration: null
                          contextActivities: null
                          extensions: >-
                            {"https://www.junojourney.com/journey/steps":["64f0c0ffee0000000000000f","64f0c0ffee00000000000010","64f0c0ffee0000000000000c","64f0c0ffee00000000000011","64f0c0ffee00000000000012","64f0c0ffee00000000000013","64f0c0ffee00000000000014","64f0c0ffee00000000000015"]}
                        object:
                          id: >-
                            https://www.junojourney.com/units/64f0c0ffee00000000000016
                          definition:
                            name: '{"en-US":"Intro To Leadership 101"}'
                            type: http://activitystrea.ms/schema/1.0/process
                            description: '{}'
                            interactionType: null
                            target: 64f0c0ffee00000000000017
                        verb:
                          id: http://activitystrea.ms/schema/1.0/assign
                          display: '{"en-US":"assign"}'
                        timestamp:
                          value: '2024-04-17T12:08:58.262Z'
                        result: null
                        userId: 64f0c0ffee00000000000001
                        tid: 64f0c0ffee00000000000002
                List XAPI Statements all filters (user, date, verb id, training):
                  value:
                    dataLength: 1
                    data:
                      - actor:
                          name: Alex Morgan
                          account:
                            homePage: https://your-company.the-juno.com
                          mbox: alex.morgan@acme.com
                        context:
                          registration: null
                          contextActivities:
                            grouping: >-
                              [{"definition":{"description":{},"name":{"en-US":"Good
                              Leaders vs Bad
                              Leaders"},"type":"http://adlnet.gov/expapi/activities/course"},"id":"https://www.junojourney.com/units/64f0c0ffee0000000000000c"}]
                            parent: >-
                              [{"definition":{"description":{},"name":{"en-US":"Good
                              Leaders vs Bad
                              Leaders"},"type":"http://adlnet.gov/expapi/activities/course"},"id":"https://www.junojourney.com/units/64f0c0ffee0000000000000c"}]
                          extensions: null
                        object:
                          id: >-
                            https://www.junojourney.com/units/64f0c0ffee0000000000000d
                          definition:
                            name: "{\"en-US\":\"What is poor leadership?\_\"}"
                            type: http://adlnet.gov/expapi/activities/module
                            description: null
                            interactionType: null
                            target: null
                        verb:
                          id: http://activitystrea.ms/schema/1.0/complete
                          display: '{"en-US":"complete"}'
                        timestamp:
                          value: '2024-04-03T11:49:44.879Z'
                        result: null
                        userId: 64f0c0ffee00000000000001
                        tid: 64f0c0ffee00000000000002
      deprecated: true
      security:
        - BearerAuth: []
components:
  schemas:
    XapiSearchRequest:
      type: object
      properties:
        filters:
          type: object
          description: >-
            MongoDB-style filters. The endpoint description lists the supported
            fields.
        skip:
          type: integer
          minimum: 0
          default: 0
          description: Number of results to skip before returning.
        sort:
          type: object
          description: 'MongoDB-style sort, for example `{ "createdAt": -1 }`.'
        select:
          type: object
          description: >-
            Fields to return, MongoDB projection style, for example `{
            "primaryEmail": 1 }`.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Personal access token. Create one in Admin → Security → Developer
        Settings → Generate Personal Access Token.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.