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

# Get agent activity

> Return what members' coding agents did on Qovery over a time range, linked to the skills they loaded: skill loads (agent loads only, a person's VIEW is not counted), API calls made from a Qovery skill, Qovery MCP server tool calls, every audited call made by a policy token, and requests refused by a policy or by role permissions. A refusal by a policy token's policy (401) and a refusal by role permissions (403) both count as DENIED. Activity is shown by member, by skill and by policy token. Requires the MANAGE_ORGANIZATION_DATA permission (organization owner or admin); members read their own activity with `getMyAgentActivity`.

Every filter is optional and they combine. `policyTokenId` implies `actorKind` POLICY_TOKEN, and neither combines with `userSub`: those combinations, an unknown enum value or a malformed id are refused with 400.

Coverage: only actions taken through Qovery (its API, CLI, skills and MCP server) are visible. What an agent does elsewhere, such as in a shell, in git or in a cloud console, is not. The response repeats this in `coverage`.

Attribution is indicative, not proof. A member is matched on the username the audit log records, and an action is attributed to a skill from the `QoverySkill/<skill>` user agent the client sends: a client can claim a skill it does not run, or leave the user agent out. What an agent may actually do is enforced by its token's policy, and every refusal is recorded.

No request content is returned: only what the audit log shows (event, target, project and environment names, time, source), never prompt text or request bodies.

The range defaults to the 30 days ending now and spans at most 90 days. `by_member` holds at most 500 rows, `by_skill` 100, `by_policy_token` 100, `actions_by_type` 200 and `recent` the 100 most recent agent actions. Buckets are cut in UTC; empty buckets are omitted.



## OpenAPI

````yaml /api-reference/openapi.yaml get /organization/{organizationId}/agentActivity
openapi: 3.0.0
info:
  version: 1.0.4
  title: Qovery API
  description: >
    - Qovery is the fastest way to deploy your full-stack apps on any Cloud
    provider.

    - ℹ️ The API is stable and still in development.
  contact:
    name: Qovery Product Team
    url: https://www.qovery.com
    email: support+api+documentation@qovery.com
  x-logo:
    url: https://console.qovery.com/assets/logos/logo-white.svg
    altText: Qovery
servers:
  - url: https://api.qovery.com
security:
  - bearerAuth: []
  - ApiKeyAuth: []
tags:
  - name: Account
  - name: Account Info
  - name: IPs
  - name: Alert Receivers
  - name: Alert Rules
  - name: Admin
  - name: ArgoCD
  - name: Agentic Workflows
  - name: Application
  - name: Application Actions
  - name: Application Build Analysis
  - name: Application Configuration
  - name: Application Database
  - name: Application Deployment Restriction
  - name: Application Deployment History
  - name: Application Environment Variable
  - name: Application Logs
  - name: Application Main Calls
  - name: Application Secret
  - name: Application Annotations Group
  - name: Applications
  - name: AutoscalingPolicy
  - name: Container
  - name: Container Actions
  - name: Container Configuration
  - name: Container Database
  - name: Container Deployment History
  - name: Container Environment Variable
  - name: Container Logs
  - name: Container Main Calls
  - name: Container Registry
  - name: Container Secret
  - name: Container Annotations Group
  - name: Containers
  - name: Deployment Stage Main Calls
  - name: Job
  - name: Job Actions
  - name: Job Build Analysis
  - name: Job Configuration
  - name: Job Database
  - name: Job Deployment Restriction
  - name: Job Deployment History
  - name: Job Environment Variable
  - name: Job Logs
  - name: Job Main Calls
  - name: Job Registry
  - name: Job Secret
  - name: Job Annotations Group
  - name: Jobs
  - name: KedaTriggerAuthentication
  - name: Helm
  - name: Helm Actions
  - name: Helm Configuration
  - name: Helm Database
  - name: Helm Deployment Restriction
  - name: Helm Deployment History
  - name: Helm Logs
  - name: Helm Main Calls
  - name: Helm Repository
  - name: Helms
  - name: Backups
  - name: Billing
  - name: Blueprint Catalog
  - name: Cloud Provider
  - name: Cloud Provider Credentials
  - name: Clusters
  - name: Cluster Deployment History
  - name: Cluster Operator
  - name: Platform Configuration
  - name: Custom Domain
  - name: Container Custom Domain
  - name: LLM Providers
  - name: MCP Servers
  - name: Agent Activity
    description: >-
      What members' coding agents did on Qovery, linked to the skills they
      loaded: skill loads, API calls made from a Qovery skill, Qovery MCP server
      tool calls and policy denials. Built only from what Qovery already
      records. It returns no prompt text and no request content.
  - name: Skill Presets
    description: >-
      A skill preset is how an organization tells its members' coding agents to
      use Qovery: which Qovery skills apply, team instructions on top of them,
      and skills of the organization's own. Admins manage presets and assign
      each one to the organization, to roles or to members. Any member can read
      the preset that applies to them, which is what the agent's Qovery loader
      skill fetches. Every saved preset is inspected for content that could turn
      a member's agent against them, and every create, edit, delete and skill
      load is recorded in the audit log.
  - name: Database
  - name: Database Actions
  - name: Database Application
  - name: Database Container
  - name: Database Deployment History
  - name: Database Main Calls
  - name: Database Annotations Group
  - name: Databases
  - name: Environment
  - name: Environment Actions
  - name: Environment Custom Domain
  - name: Environment Deployment History
  - name: Environment Deployment Rule
  - name: Environment Logs
  - name: Environment Main Calls
  - name: Environment Secret
  - name: Environment Variable
  - name: Environments
  - name: Git
  - name: Github App
  - name: Git repositories
  - name: Members
  - name: Organization
  - name: Organization Account Git Repositories
  - name: Organization Cluster Lock
  - name: Organization Main Calls
  - name: Organization Custom Role
  - name: Organization Custom Domain
  - name: Organization Event
  - name: Organization Api Token
  - name: Organization Policy Api Token
  - name: Organization Webhook
  - name: Organization Annotations Group
  - name: Organization Labels Group
  - name: Organization Enterprise Connection
  - name: Project
  - name: Project Deployment Rule
  - name: Project Environment Variable
  - name: Project Main Calls
  - name: Project Secret
  - name: Projects
  - name: Referral & Rewards
  - name: Secret Manager Access
  - name: Terraforms
  - name: Terraform Main Calls
  - name: Terraform Resources
  - name: Terraform Deployment History
  - name: Terraform Deployment Restriction
  - name: Container Registries
  - name: Helm Repositories
  - name: User Sign Up
  - name: Variable Main Calls
  - name: Helm Custom Domain
  - name: Lifecycle Template Main Calls
  - name: Blueprint Main Calls
paths:
  /organization/{organizationId}/agentActivity:
    get:
      tags:
        - Agent Activity
      summary: Get agent activity
      description: >-
        Return what members' coding agents did on Qovery over a time range,
        linked to the skills they loaded: skill loads (agent loads only, a
        person's VIEW is not counted), API calls made from a Qovery skill,
        Qovery MCP server tool calls, every audited call made by a policy token,
        and requests refused by a policy or by role permissions. A refusal by a
        policy token's policy (401) and a refusal by role permissions (403) both
        count as DENIED. Activity is shown by member, by skill and by policy
        token. Requires the MANAGE_ORGANIZATION_DATA permission (organization
        owner or admin); members read their own activity with
        `getMyAgentActivity`.


        Every filter is optional and they combine. `policyTokenId` implies
        `actorKind` POLICY_TOKEN, and neither combines with `userSub`: those
        combinations, an unknown enum value or a malformed id are refused with
        400.


        Coverage: only actions taken through Qovery (its API, CLI, skills and
        MCP server) are visible. What an agent does elsewhere, such as in a
        shell, in git or in a cloud console, is not. The response repeats this
        in `coverage`.


        Attribution is indicative, not proof. A member is matched on the
        username the audit log records, and an action is attributed to a skill
        from the `QoverySkill/<skill>` user agent the client sends: a client can
        claim a skill it does not run, or leave the user agent out. What an
        agent may actually do is enforced by its token's policy, and every
        refusal is recorded.


        No request content is returned: only what the audit log shows (event,
        target, project and environment names, time, source), never prompt text
        or request bodies.


        The range defaults to the 30 days ending now and spans at most 90 days.
        `by_member` holds at most 500 rows, `by_skill` 100, `by_policy_token`
        100, `actions_by_type` 200 and `recent` the 100 most recent agent
        actions. Buckets are cut in UTC; empty buckets are omitted.
      operationId: getAgentActivity
      parameters:
        - $ref: '#/components/parameters/organizationId'
        - name: from
          in: query
          description: Start of the range, inclusive. Defaults to 30 days before `to`.
          required: false
          schema:
            type: string
            format: date-time
        - name: to
          in: query
          description: >-
            End of the range, exclusive. Defaults to now. Must be after `from`,
            and the range must not exceed 90 days, otherwise the request is
            refused with 400.
          required: false
          schema:
            type: string
            format: date-time
        - name: bucket
          in: query
          description: Width of each point of the timeline. Defaults to DAY.
          required: false
          schema:
            allOf:
              - $ref: '#/components/schemas/SkillUsageBucket'
            default: DAY
        - name: userSub
          in: query
          description: >-
            Only show this member, by the id returned by "List organization
            members". The member is matched on the username of their most recent
            skill load, so a member with no skill load in the last 90 days shows
            no action.
          required: false
          schema:
            type: string
        - name: skillName
          in: query
          description: >-
            Only count the activity attributed to this skill. Lowercase letters,
            digits, `.`, `_` or `-`, at most 64 characters, otherwise the
            request is refused with 400.
          required: false
          schema:
            type: string
            pattern: ^[a-z0-9._-]{1,64}$
        - name: actorKind
          in: query
          description: >-
            Only count members (MEMBER) or policy tokens (POLICY_TOKEN). Cannot
            be combined with `userSub` when POLICY_TOKEN, otherwise the request
            is refused with 400.
          required: false
          schema:
            $ref: '#/components/schemas/AgentActorKind'
        - name: policyTokenId
          in: query
          description: >-
            Only count this policy token, by its id. Implies `actorKind`
            POLICY_TOKEN. Cannot be combined with `actorKind` MEMBER or with
            `userSub`, otherwise the request is refused with 400. With `bucket`
            HOUR, it is required to fill the token's `timeline` in
            `by_policy_token`.
          required: false
          schema:
            type: string
            format: uuid
        - name: outcome
          in: query
          description: >-
            DENIED lists refusals only, and leaves skill loads out. ALLOWED
            lists everything else, skill loads included.
          required: false
          schema:
            $ref: '#/components/schemas/AgentActionOutcome'
        - name: source
          in: query
          description: Only count the activity from this source.
          required: false
          schema:
            $ref: '#/components/schemas/AgentActivitySource'
      responses:
        '200':
          description: Agent activity over the range
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentActivityResponse'
        '400':
          description: >-
            `to` is not after `from`, the range exceeds 90 days, `skillName`
            does not match its pattern, an enum value or `policyTokenId` is
            malformed, or the filters do not combine (`policyTokenId` with
            `actorKind` MEMBER, or `userSub` with `policyTokenId` or `actorKind`
            POLICY_TOKEN)
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '503':
          description: >-
            The activity of the range could not be read in time. Narrow the
            range, or filter by member or skill, and try again.
components:
  parameters:
    organizationId:
      name: organizationId
      in: path
      description: Organization ID
      required: true
      schema:
        type: string
        format: uuid
  schemas:
    SkillUsageBucket:
      type: string
      enum:
        - HOUR
        - DAY
      description: Width of each timeline point, an hour or a day, cut in UTC.
    AgentActorKind:
      type: string
      enum:
        - MEMBER
        - POLICY_TOKEN
      description: >-
        Who acted. MEMBER: a person, or their agent on their credentials.
        POLICY_TOKEN: an organization policy token.
    AgentActionOutcome:
      type: string
      enum:
        - ALLOWED
        - DENIED
      description: >-
        Whether Qovery carried out the action (ALLOWED) or refused it (DENIED).
        A refusal by policy (401) and a refusal by role permissions (403) are
        both DENIED.
    AgentActivitySource:
      type: string
      enum:
        - SKILL_LOAD
        - SKILL_API_ACTION
        - MCP_TOOL_CALL
        - POLICY_DENIAL
        - POLICY_TOKEN_API_ACTION
      description: >-
        Where agent activity comes from. SKILL_LOAD: a skill an agent loaded
        (agent loads only). SKILL_API_ACTION: an audited API call made with the
        `QoverySkill/<skill>` user agent. MCP_TOOL_CALL: a tool call through the
        Qovery MCP server. POLICY_DENIAL: a request refused by a policy token's
        policy (401), or by role permissions (403) for a call made from a skill
        or by a policy token. POLICY_TOKEN_API_ACTION: an audited call made by a
        policy token without a skill user agent, such as a script, a CI job or
        an agent's own HTTP client.
    AgentActivityResponse:
      type: object
      required:
        - from
        - to
        - bucket
        - coverage
        - totals
        - timeline
        - actions_by_type
        - by_member
        - by_skill
        - by_policy_token
        - recent
      properties:
        from:
          type: string
          format: date-time
          description: Start of the range actually used, after defaults.
        to:
          type: string
          format: date-time
          description: End of the range actually used, after defaults.
        bucket:
          $ref: '#/components/schemas/SkillUsageBucket'
        coverage:
          $ref: '#/components/schemas/AgentActivityCoverage'
        totals:
          $ref: '#/components/schemas/AgentActivityTotals'
        timeline:
          type: array
          description: >-
            Activity per hour or per day, oldest first. Buckets are cut in UTC;
            empty buckets are omitted.
          items:
            $ref: '#/components/schemas/AgentActivityPoint'
        actions_by_type:
          type: array
          description: >-
            Agent actions per audit event and target type, most frequent first,
            at most 200 rows.
          items:
            $ref: '#/components/schemas/AgentActionsByType'
        by_member:
          type: array
          description: Activity per member, most active first, at most 500 rows.
          items:
            $ref: '#/components/schemas/AgentActivityByMember'
        by_skill:
          type: array
          description: Activity per skill, most active first, at most 100 rows.
          items:
            $ref: '#/components/schemas/AgentActivityBySkill'
        by_policy_token:
          type: array
          description: >-
            Activity per policy token, most active first, at most 100 rows.
            Always empty on `getMyAgentActivity`.
          items:
            $ref: '#/components/schemas/AgentActivityByPolicyToken'
        recent:
          type: array
          description: The 100 most recent agent actions, newest first.
          items:
            $ref: '#/components/schemas/AgentActivityEntry'
    AgentActivityCoverage:
      type: object
      description: What this view can and cannot see.
      required:
        - sources
        - note
      properties:
        sources:
          type: array
          description: The sources the view is built from.
          items:
            $ref: '#/components/schemas/AgentActivitySource'
        note:
          type: string
          description: The coverage limit, in plain words, to show next to the data.
          example: >-
            Only actions taken through Qovery (its API, CLI, skills and MCP
            server) are visible. What an agent does elsewhere, such as in a
            shell, in git or in a cloud console, is not.
    AgentActivityTotals:
      type: object
      required:
        - skill_loads
        - actions
        - denials
        - members
        - policy_tokens
      properties:
        skill_loads:
          type: integer
          format: int64
          description: Skills loaded by agents.
        actions:
          type: integer
          format: int64
          description: Agent actions, allowed and denied.
        denials:
          type: integer
          format: int64
          description: Agent actions that were refused.
        members:
          type: integer
          format: int64
          description: Distinct actors with any activity, policy tokens included.
        policy_tokens:
          type: integer
          format: int64
          description: Distinct policy tokens with any activity.
    AgentActivityPoint:
      type: object
      required:
        - start
        - skill_loads
        - actions
        - denials
      properties:
        start:
          type: string
          format: date-time
          description: >-
            Start of the hour or day. Buckets are cut in UTC; empty buckets are
            omitted.
        skill_loads:
          type: integer
          format: int64
        actions:
          type: integer
          format: int64
        denials:
          type: integer
          format: int64
    AgentActionsByType:
      type: object
      required:
        - event
        - target_type
        - count
        - denied
      properties:
        event:
          type: string
          description: The audit event type, as in `OrganizationEventType`.
          example: DEPLOY_QUEUED
        target_type:
          type: string
          description: The audit target type, as in `OrganizationEventTargetType`.
          example: APPLICATION
        count:
          type: integer
          format: int64
        denied:
          type: integer
          format: int64
          description: How many of them were refused.
    AgentActivityByMember:
      type: object
      required:
        - user_name
        - skill_loads
        - actions
        - denials
        - top_skills
        - last_activity_at
        - actor_kind
      properties:
        actor_kind:
          $ref: '#/components/schemas/AgentActorKind'
        policy_token_id:
          type: string
          format: uuid
          nullable: true
          description: >-
            The policy token's id when `actor_kind` is POLICY_TOKEN and the
            token is known. Null otherwise.
        user_sub:
          type: string
          nullable: true
          description: >-
            The member's id, as returned by "List organization members". Null
            for an actor that loaded no skill in the range, such as a policy
            token.
        user_name:
          type: string
          description: The username the audit log records for the actor.
        skill_loads:
          type: integer
          format: int64
        actions:
          type: integer
          format: int64
        denials:
          type: integer
          format: int64
        top_skills:
          type: array
          description: The member's most used skills, at most 3, most used first.
          items:
            type: string
        last_activity_at:
          type: string
          format: date-time
    AgentActivityBySkill:
      type: object
      required:
        - loads
        - actions
        - denials
        - members
      properties:
        skill_name:
          type: string
          nullable: true
          description: >-
            Null groups the agent actions that name no skill: MCP tool calls and
            API calls made without a skill user agent, such as by a policy
            token.
        loads:
          type: integer
          format: int64
        actions:
          type: integer
          format: int64
        denials:
          type: integer
          format: int64
        members:
          type: integer
          format: int64
          description: Distinct members with activity on this skill.
    AgentActivityByPolicyToken:
      type: object
      description: >-
        One policy token's activity, grouped by token id so a renamed token
        keeps one entry.
      required:
        - deleted
        - skill_loads
        - actions
        - denials
        - last_activity_at
        - top_actions
        - top_skills
        - timeline
      properties:
        policy_token_id:
          type: string
          format: uuid
          nullable: true
          description: >-
            The token's id. Null groups older role refusals recorded before
            refusals named the token: a policy token, but not which one.
        token_name:
          type: string
          nullable: true
          description: >-
            The token's current name, or its last audited name when `deleted` is
            true. Null when unknown.
        deleted:
          type: boolean
          description: Whether the token no longer exists.
        role_id:
          type: string
          format: uuid
          nullable: true
          description: The token's current role. Null when the token is deleted or unknown.
        role_name:
          type: string
          nullable: true
          description: >-
            The name of the token's current role. Null when the token is deleted
            or unknown.
        expires_at:
          type: string
          format: date-time
          nullable: true
          description: >-
            When the token expires. Null when it never expires, or when it is
            deleted or unknown.
        skill_loads:
          type: integer
          format: int64
        actions:
          type: integer
          format: int64
        denials:
          type: integer
          format: int64
        last_activity_at:
          type: string
          format: date-time
        top_actions:
          type: array
          description: The token's most frequent actions, at most 3, most frequent first.
          items:
            $ref: '#/components/schemas/AgentActionsByType'
        top_skills:
          type: array
          description: The token's most used skills, at most 3, most used first.
          items:
            type: string
        timeline:
          type: array
          description: >-
            The token's actions per bucket of the requested size, oldest first,
            only for buckets where it acted. Filled when `bucket` is DAY, or
            when `policyTokenId` is set (so HOUR buckets need `policyTokenId`).
            Empty otherwise.
          items:
            $ref: '#/components/schemas/AgentActivityTokenPoint'
    AgentActivityEntry:
      type: object
      description: One agent action, as the audit log records it. No request content.
      required:
        - at
        - user_name
        - source
        - event
        - target_type
        - target_name
        - outcome
        - actor_kind
      properties:
        actor_kind:
          $ref: '#/components/schemas/AgentActorKind'
        policy_token_id:
          type: string
          format: uuid
          nullable: true
          description: >-
            The policy token's id when `actor_kind` is POLICY_TOKEN and the
            token is known. Null otherwise.
        at:
          type: string
          format: date-time
        user_sub:
          type: string
          nullable: true
          description: >-
            The member's id. Null when the actor loaded no skill in the range,
            such as a policy token.
        user_name:
          type: string
          description: The username the audit log records for the actor.
        source:
          allOf:
            - $ref: '#/components/schemas/AgentActivitySource'
          description: >-
            Where the action comes from: SKILL_API_ACTION, MCP_TOOL_CALL,
            POLICY_DENIAL or POLICY_TOKEN_API_ACTION. Skill loads are counted,
            never listed here, so SKILL_LOAD does not appear.
        skill_name:
          type: string
          nullable: true
          description: The skill named in the user agent. Null when the action names none.
        event:
          type: string
          description: The audit event type, as in `OrganizationEventType`.
        target_type:
          type: string
          description: The audit target type, as in `OrganizationEventTargetType`.
        target_name:
          type: string
        project_name:
          type: string
          nullable: true
        environment_name:
          type: string
          nullable: true
        outcome:
          $ref: '#/components/schemas/AgentActionOutcome'
    AgentActivityTokenPoint:
      type: object
      required:
        - start
        - actions
        - denials
      properties:
        start:
          type: string
          format: date-time
          description: >-
            Start of the hour or day. Buckets are cut in UTC; empty buckets are
            omitted.
        actions:
          type: integer
          format: int64
        denials:
          type: integer
          format: int64
  responses:
    '401':
      description: Access token is missing or invalid
    '403':
      description: Access forbidden
    '404':
      description: Resource not found
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT tokens should be used with OIDC account (human to machine). JWT
        tokens used by the Qovery console to communicate with the API have a
        TTL. Curl Example ' curl https://console.qovery.com/organization -H
        "Authorization: Bearer $qovery_token" '
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        Token API are generated by Qovery to manage machine to machine
        interaction and do not have a TTL. Curl Example ' curl
        https://console.qovery.com/organization -H "Authorization: Token
        $qovery_token" '

````

## Related topics

- [Get my agent activity](https://www.qovery.com/docs/api-reference/agent-activity/get-my-agent-activity.md)
- [Let a Coding Agent Deploy Without Cloud Admin Credentials](https://www.qovery.com/docs/getting-started/guides/use-cases/coding-agent-deploy-access.md)
- [Agent Tasks](https://www.qovery.com/docs/getting-started/agent-tasks.md)
- [Get an agentic workflow](https://www.qovery.com/docs/api-reference/agentic-workflows/get-an-agentic-workflow.md)
- [Get Started with Qovery](https://www.qovery.com/docs/getting-started/quickstart.md)


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