> ## 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 skill usage

> Return how the members' coding agents loaded skills in the organization over a time range: totals, a timeline, and breakdowns by skill, by member and by preset. Requires the MANAGE_ORGANIZATION_DATA permission (organization owner or admin).

Usage counts agent loads only: a load is one call to `getResolvedSkill` with `purpose` LOAD (the default) that returned a skill, cached ones included. A 304 counts as a cached load, a 404 is not counted, and VIEW calls (a person reading a skill) are never counted. Loads are counted whether or not a preset applies. Recording a load is best effort and never blocks the agent, so a load can be missing here while the audit log, which records every load as a `SKILL_LOAD` event, still has it.

The range defaults to the 30 days ending now and spans at most 90 days. Timeline buckets are cut in UTC, and buckets with no load are left out rather than returned as zero. Rows in `by_skill` and `by_member` are sorted by loads, most first, and capped at 100 and 500 rows.



## OpenAPI

````yaml /api-reference/openapi.yaml get /organization/{organizationId}/skillPreset/usage
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}/skillPreset/usage:
    get:
      tags:
        - Skill Presets
      summary: Get skill usage
      description: >-
        Return how the members' coding agents loaded skills in the organization
        over a time range: totals, a timeline, and breakdowns by skill, by
        member and by preset. Requires the MANAGE_ORGANIZATION_DATA permission
        (organization owner or admin).


        Usage counts agent loads only: a load is one call to `getResolvedSkill`
        with `purpose` LOAD (the default) that returned a skill, cached ones
        included. A 304 counts as a cached load, a 404 is not counted, and VIEW
        calls (a person reading a skill) are never counted. Loads are counted
        whether or not a preset applies. Recording a load is best effort and
        never blocks the agent, so a load can be missing here while the audit
        log, which records every load as a `SKILL_LOAD` event, still has it.


        The range defaults to the 30 days ending now and spans at most 90 days.
        Timeline buckets are cut in UTC, and buckets with no load are left out
        rather than returned as zero. Rows in `by_skill` and `by_member` are
        sorted by loads, most first, and capped at 100 and 500 rows.
      operationId: getSkillUsage
      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: skillName
          in: query
          description: Only count the loads of this skill.
          required: false
          schema:
            type: string
        - name: userSub
          in: query
          description: >-
            Only count the loads of this member, by the id returned by "List
            organization members".
          required: false
          schema:
            type: string
        - name: skillPresetId
          in: query
          description: Only count the loads made under this preset.
          required: false
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Skill usage over the range
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SkillUsageResponse'
        '400':
          description: >-
            `to` is not after `from`, the range exceeds 90 days, or a query
            parameter is malformed
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
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.
    SkillUsageResponse:
      type: object
      required:
        - from
        - to
        - bucket
        - totals
        - timeline
        - by_skill
        - by_member
        - by_preset
      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'
        totals:
          $ref: '#/components/schemas/SkillUsageTotals'
        timeline:
          type: array
          description: >-
            Loads per hour or per day, oldest first. Buckets are cut in UTC, and
            buckets with no load are left out rather than returned as zero.
          items:
            $ref: '#/components/schemas/SkillUsagePoint'
        by_skill:
          type: array
          description: Loads per skill, most loaded first, at most 100 rows.
          items:
            $ref: '#/components/schemas/SkillUsageBySkill'
        by_member:
          type: array
          description: Loads per member, most active first, at most 500 rows.
          items:
            $ref: '#/components/schemas/SkillUsageByMember'
        by_preset:
          type: array
          description: >-
            Loads per preset, most loaded first. A row with a null preset groups
            the loads made with no preset.
          items:
            $ref: '#/components/schemas/SkillUsageByPreset'
    SkillUsageTotals:
      type: object
      required:
        - loads
        - cached_loads
        - members
        - approx_injected_tokens
      properties:
        loads:
          type: integer
          format: int64
          description: Skill loads in the range, cached ones included.
        cached_loads:
          type: integer
          format: int64
          description: Loads answered with a 304, where the agent reused its cached copy.
        members:
          type: integer
          format: int64
          description: Distinct members whose agents loaded at least one skill.
        approx_injected_tokens:
          type: integer
          format: int64
          description: >-
            Estimated tokens of organization content and team context sent to
            agents, the number of characters divided by 4. Cached loads send
            nothing and add zero. The text of the Qovery skills themselves is
            not counted.
    SkillUsagePoint:
      type: object
      required:
        - start
        - loads
        - cached_loads
      properties:
        start:
          type: string
          format: date-time
          description: Start of the hour or day, in UTC.
        loads:
          type: integer
          format: int64
        cached_loads:
          type: integer
          format: int64
    SkillUsageBySkill:
      type: object
      required:
        - skill_name
        - loads
        - cached_loads
        - members
        - last_loaded_at
      properties:
        skill_name:
          type: string
        loads:
          type: integer
          format: int64
        cached_loads:
          type: integer
          format: int64
        members:
          type: integer
          format: int64
          description: Distinct members who loaded this skill.
        last_loaded_at:
          type: string
          format: date-time
    SkillUsageByMember:
      type: object
      required:
        - user_sub
        - user_name
        - loads
        - skills
        - last_loaded_at
      properties:
        user_sub:
          type: string
          description: The member's id, as returned by "List organization members".
        user_name:
          type: string
          description: The member's name at their most recent load in the range.
        loads:
          type: integer
          format: int64
        skills:
          type: integer
          format: int64
          description: Distinct skills this member's agent loaded.
        last_loaded_at:
          type: string
          format: date-time
    SkillUsageByPreset:
      type: object
      required:
        - loads
      properties:
        skill_preset_id:
          type: string
          format: uuid
          nullable: true
          description: Null groups the loads made when no preset applied.
        skill_preset_name:
          type: string
          nullable: true
          description: >-
            The preset's name at its most recent load in the range. Null when no
            preset applied.
        loads:
          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 what to load for one skill](https://www.qovery.com/docs/api-reference/skill-presets/get-what-to-load-for-one-skill.md)
- [Get a skill preset](https://www.qovery.com/docs/api-reference/skill-presets/get-a-skill-preset.md)
- [Get the skill preset that applies to the caller](https://www.qovery.com/docs/api-reference/skill-presets/get-the-skill-preset-that-applies-to-the-caller.md)
- [Get agent activity](https://www.qovery.com/docs/api-reference/agent-activity/get-agent-activity.md)
- [Qovery Agent Skills](https://www.qovery.com/docs/getting-started/quickstart/agent-skills.md)


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