--- title: REST API endpoints for Copilot usage metrics shortTitle: Copilot usage metrics intro: >- Use the REST API to view {% data variables.product.prodname_copilot_short %} usage metrics. versions: # DO NOT MANUALLY EDIT. CHANGES WILL BE OVERWRITTEN BY A 🤖 fpt: '*' ghec: '*' autogenerated: rest allowTitleToDifferFromFilename: true category: - Use Copilot and AI services --- To enable these endpoints, the "{% data variables.product.prodname_copilot_short %} usage metrics" policy must be set to **Enabled everywhere** for the enterprise. See [AUTOTITLE](/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-enterprise-policies#defining-policies-for-your-enterprise). For more information on the metrics returned by these endpoints, see [AUTOTITLE](/copilot/reference/copilot-usage-metrics).