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

# Get User Activity



## OpenAPI

````yaml /openapi.yaml get /user/activity
openapi: 3.0.0
info:
  title: claimr API
  version: 1.0.0
  description: >-
    Advanced features of claimr for business partners. This API provides a
    seamless integration with claimr services
  termsOfService: https://claimr.io/terms-of-service/
  contact:
    name: claimr support team
    email: support@claimr.io
servers:
  - url: https://prod.claimr.io/api/v1
    description: Production server
  - url: https://prod.claimr.io/api/v1
    description: Development server
security: []
tags: []
paths:
  /user/activity:
    get:
      tags:
        - User
      summary: Get User Activity
      parameters:
        - in: query
          name: account
          description: Account identifier of the user
          required: true
          schema:
            type: string
        - in: query
          name: platform
          description: Platform where the account exists
          required: true
          schema:
            type: string
        - in: query
          name: pid
          description: Campaign ID
          required: true
          schema:
            type: string
      responses:
        '200':
          description: >-
            User's comprehensive activity data including completed tasks,
            quests, rewards, and XP breakdown.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                        description: Campaign entry ID
                      user_id:
                        type: string
                        description: >-
                          User's account identifier (same as request account
                          parameter)
                      name:
                        type: string
                        description: User's display name in the campaign
                      actions:
                        type: array
                        description: List of user's completed tasks
                        items:
                          type: object
                          properties:
                            aid:
                              type: string
                              description: Task ID
                            status:
                              type: string
                              description: Task completion status
                            xp:
                              type: number
                              description: XP gained from this task
                            meta:
                              type: object
                              description: Additional task metadata
                              nullable: true
                            cat:
                              type: string
                              description: Completion date and time
                          required:
                            - aid
                            - status
                            - xp
                            - cat
                      quests:
                        type: array
                        description: List of user's completed quests
                        items:
                          type: object
                          properties:
                            cid:
                              type: string
                              description: Quest ID
                            xp:
                              type: number
                              description: XP gained from this quest
                            cat:
                              type: string
                              description: Completion date and time
                          required:
                            - cid
                            - xp
                            - cat
                      rewards:
                        type: array
                        description: List of user's earned rewards
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              description: Reward ID
                            reward:
                              type: string
                              description: Reward details/description
                            type:
                              type: string
                              description: Type of reward
                          required:
                            - id
                            - reward
                            - type
                      total_xp:
                        type: number
                        description: Total XP accumulated by the user
                      ref_xp:
                        type: number
                        description: XP earned through referrals
                      ugc_xp:
                        type: number
                        description: XP earned from user-generated content
                      xp_mul:
                        type: number
                        description: XP multiplier applied to the user
                      rank:
                        type: number
                        description: User's rank in the campaign
                      team:
                        type: string
                        description: Team identifier (empty string if no team)
                    required:
                      - id
                      - user_id
                      - name
                      - actions
                      - quests
                      - rewards
                      - total_xp
                      - ref_xp
                      - ugc_xp
                      - xp_mul
                      - rank
                      - team
                required:
                  - success
                  - data
        '400':
          $ref: '#/components/responses/bad_request'
        '401':
          $ref: '#/components/responses/unauthorized'
        '403':
          $ref: '#/components/responses/access_denied'
        '500':
          $ref: '#/components/responses/internal_error'
      security:
        - bearer: []
components:
  responses:
    bad_request:
      description: Bad request
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
              error:
                type: object
                properties:
                  code:
                    type: integer
                    format: int32
                    default: 400
                  message:
                    type: string
                    default: bad request
    unauthorized:
      description: Unauthorized request
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
              error:
                type: object
                properties:
                  code:
                    type: integer
                    format: int32
                    default: 401
                  message:
                    type: string
                    default: unauthorized
    access_denied:
      description: Access denied
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
              error:
                type: object
                properties:
                  code:
                    type: integer
                    format: int32
                    default: 403
                  message:
                    type: string
                    default: access denied
    internal_error:
      description: Internal server error
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
              error:
                type: object
                properties:
                  code:
                    type: integer
                    format: int32
                    default: 500
                  message:
                    type: string
                    default: internal error
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT

````