naftiko: 1.0.0-alpha2 info: label: GitHub Copilot REST API — Copilot Usage Reports description: 'GitHub Copilot REST API — Copilot Usage Reports. 8 operations. Lead operation: Github Copilot Get Enterprise Copilot Usage Metrics for a Specific Day. Self-contained Naftiko capability covering one Github Copilot business surface.' tags: - Github Copilot - Copilot Usage Reports created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GITHUB_COPILOT_API_KEY: GITHUB_COPILOT_API_KEY capability: consumes: - type: http namespace: github-copilot-copilot-usage-reports baseUri: https://api.github.com description: GitHub Copilot REST API — Copilot Usage Reports business capability. Self-contained, no shared references. resources: - name: enterprises-enterprise-copilot-metrics-reports-enterprise-1-day path: /enterprises/{enterprise}/copilot/metrics/reports/enterprise-1-day operations: - name: getenterprisecopilotusagedaily method: GET description: Github Copilot Get Enterprise Copilot Usage Metrics for a Specific Day outputRawFormat: json outputParameters: - name: result type: object value: $. - name: enterprises-enterprise-copilot-metrics-reports-enterprise-28-day-latest path: /enterprises/{enterprise}/copilot/metrics/reports/enterprise-28-day/latest operations: - name: getenterprisecopilotusage28day method: GET description: Github Copilot Get Latest 28-day Enterprise Copilot Usage Metrics outputRawFormat: json outputParameters: - name: result type: object value: $. - name: enterprises-enterprise-copilot-metrics-reports-users-1-day path: /enterprises/{enterprise}/copilot/metrics/reports/users-1-day operations: - name: getenterpriseuserscopilotusagedaily method: GET description: Github Copilot Get Enterprise User-level Copilot Usage Metrics for a Specific Day outputRawFormat: json outputParameters: - name: result type: object value: $. - name: enterprises-enterprise-copilot-metrics-reports-users-28-day-latest path: /enterprises/{enterprise}/copilot/metrics/reports/users-28-day/latest operations: - name: getenterpriseuserscopilotusage28day method: GET description: Github Copilot Get Latest 28-day Enterprise User-level Copilot Usage Metrics outputRawFormat: json outputParameters: - name: result type: object value: $. - name: orgs-org-copilot-metrics-reports-organization-1-day path: /orgs/{org}/copilot/metrics/reports/organization-1-day operations: - name: getorganizationcopilotusagedaily method: GET description: Github Copilot Get Organization Copilot Usage Metrics for a Specific Day outputRawFormat: json outputParameters: - name: result type: object value: $. - name: orgs-org-copilot-metrics-reports-organization-28-day-latest path: /orgs/{org}/copilot/metrics/reports/organization-28-day/latest operations: - name: getorganizationcopilotusage28day method: GET description: Github Copilot Get Latest 28-day Organization Copilot Usage Metrics outputRawFormat: json outputParameters: - name: result type: object value: $. - name: orgs-org-copilot-metrics-reports-users-1-day path: /orgs/{org}/copilot/metrics/reports/users-1-day operations: - name: getorganizationuserscopilotusagedaily method: GET description: Github Copilot Get Organization User-level Copilot Usage Metrics for a Specific Day outputRawFormat: json outputParameters: - name: result type: object value: $. - name: orgs-org-copilot-metrics-reports-users-28-day-latest path: /orgs/{org}/copilot/metrics/reports/users-28-day/latest operations: - name: getorganizationuserscopilotusage28day method: GET description: Github Copilot Get Latest 28-day Organization User-level Copilot Usage Metrics outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.GITHUB_COPILOT_API_KEY}}' exposes: - type: rest namespace: github-copilot-copilot-usage-reports-rest port: 8080 description: REST adapter for GitHub Copilot REST API — Copilot Usage Reports. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/enterprises/{enterprise}/copilot/metrics/reports/enterprise-1-day name: enterprises-enterprise-copilot-metrics-reports-enterprise-1-day description: REST surface for enterprises-enterprise-copilot-metrics-reports-enterprise-1-day. operations: - method: GET name: getenterprisecopilotusagedaily description: Github Copilot Get Enterprise Copilot Usage Metrics for a Specific Day call: github-copilot-copilot-usage-reports.getenterprisecopilotusagedaily outputParameters: - type: object mapping: $. - path: /v1/enterprises/{enterprise}/copilot/metrics/reports/enterprise-28-day/latest name: enterprises-enterprise-copilot-metrics-reports-enterprise-28-day-latest description: REST surface for enterprises-enterprise-copilot-metrics-reports-enterprise-28-day-latest. operations: - method: GET name: getenterprisecopilotusage28day description: Github Copilot Get Latest 28-day Enterprise Copilot Usage Metrics call: github-copilot-copilot-usage-reports.getenterprisecopilotusage28day outputParameters: - type: object mapping: $. - path: /v1/enterprises/{enterprise}/copilot/metrics/reports/users-1-day name: enterprises-enterprise-copilot-metrics-reports-users-1-day description: REST surface for enterprises-enterprise-copilot-metrics-reports-users-1-day. operations: - method: GET name: getenterpriseuserscopilotusagedaily description: Github Copilot Get Enterprise User-level Copilot Usage Metrics for a Specific Day call: github-copilot-copilot-usage-reports.getenterpriseuserscopilotusagedaily outputParameters: - type: object mapping: $. - path: /v1/enterprises/{enterprise}/copilot/metrics/reports/users-28-day/latest name: enterprises-enterprise-copilot-metrics-reports-users-28-day-latest description: REST surface for enterprises-enterprise-copilot-metrics-reports-users-28-day-latest. operations: - method: GET name: getenterpriseuserscopilotusage28day description: Github Copilot Get Latest 28-day Enterprise User-level Copilot Usage Metrics call: github-copilot-copilot-usage-reports.getenterpriseuserscopilotusage28day outputParameters: - type: object mapping: $. - path: /v1/orgs/{org}/copilot/metrics/reports/organization-1-day name: orgs-org-copilot-metrics-reports-organization-1-day description: REST surface for orgs-org-copilot-metrics-reports-organization-1-day. operations: - method: GET name: getorganizationcopilotusagedaily description: Github Copilot Get Organization Copilot Usage Metrics for a Specific Day call: github-copilot-copilot-usage-reports.getorganizationcopilotusagedaily outputParameters: - type: object mapping: $. - path: /v1/orgs/{org}/copilot/metrics/reports/organization-28-day/latest name: orgs-org-copilot-metrics-reports-organization-28-day-latest description: REST surface for orgs-org-copilot-metrics-reports-organization-28-day-latest. operations: - method: GET name: getorganizationcopilotusage28day description: Github Copilot Get Latest 28-day Organization Copilot Usage Metrics call: github-copilot-copilot-usage-reports.getorganizationcopilotusage28day outputParameters: - type: object mapping: $. - path: /v1/orgs/{org}/copilot/metrics/reports/users-1-day name: orgs-org-copilot-metrics-reports-users-1-day description: REST surface for orgs-org-copilot-metrics-reports-users-1-day. operations: - method: GET name: getorganizationuserscopilotusagedaily description: Github Copilot Get Organization User-level Copilot Usage Metrics for a Specific Day call: github-copilot-copilot-usage-reports.getorganizationuserscopilotusagedaily outputParameters: - type: object mapping: $. - path: /v1/orgs/{org}/copilot/metrics/reports/users-28-day/latest name: orgs-org-copilot-metrics-reports-users-28-day-latest description: REST surface for orgs-org-copilot-metrics-reports-users-28-day-latest. operations: - method: GET name: getorganizationuserscopilotusage28day description: Github Copilot Get Latest 28-day Organization User-level Copilot Usage Metrics call: github-copilot-copilot-usage-reports.getorganizationuserscopilotusage28day outputParameters: - type: object mapping: $. - type: mcp namespace: github-copilot-copilot-usage-reports-mcp port: 9090 transport: http description: MCP adapter for GitHub Copilot REST API — Copilot Usage Reports. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: github-copilot-get-enterprise-copilot description: Github Copilot Get Enterprise Copilot Usage Metrics for a Specific Day hints: readOnly: true destructive: false idempotent: true call: github-copilot-copilot-usage-reports.getenterprisecopilotusagedaily outputParameters: - type: object mapping: $. - name: github-copilot-get-latest-28 description: Github Copilot Get Latest 28-day Enterprise Copilot Usage Metrics hints: readOnly: true destructive: false idempotent: true call: github-copilot-copilot-usage-reports.getenterprisecopilotusage28day outputParameters: - type: object mapping: $. - name: github-copilot-get-enterprise-user description: Github Copilot Get Enterprise User-level Copilot Usage Metrics for a Specific Day hints: readOnly: true destructive: false idempotent: true call: github-copilot-copilot-usage-reports.getenterpriseuserscopilotusagedaily outputParameters: - type: object mapping: $. - name: github-copilot-get-latest-28-2 description: Github Copilot Get Latest 28-day Enterprise User-level Copilot Usage Metrics hints: readOnly: true destructive: false idempotent: true call: github-copilot-copilot-usage-reports.getenterpriseuserscopilotusage28day outputParameters: - type: object mapping: $. - name: github-copilot-get-organization-copilot description: Github Copilot Get Organization Copilot Usage Metrics for a Specific Day hints: readOnly: true destructive: false idempotent: true call: github-copilot-copilot-usage-reports.getorganizationcopilotusagedaily outputParameters: - type: object mapping: $. - name: github-copilot-get-latest-28-3 description: Github Copilot Get Latest 28-day Organization Copilot Usage Metrics hints: readOnly: true destructive: false idempotent: true call: github-copilot-copilot-usage-reports.getorganizationcopilotusage28day outputParameters: - type: object mapping: $. - name: github-copilot-get-organization-user description: Github Copilot Get Organization User-level Copilot Usage Metrics for a Specific Day hints: readOnly: true destructive: false idempotent: true call: github-copilot-copilot-usage-reports.getorganizationuserscopilotusagedaily outputParameters: - type: object mapping: $. - name: github-copilot-get-latest-28-4 description: Github Copilot Get Latest 28-day Organization User-level Copilot Usage Metrics hints: readOnly: true destructive: false idempotent: true call: github-copilot-copilot-usage-reports.getorganizationuserscopilotusage28day outputParameters: - type: object mapping: $.