Skip to content

IntegrationsApplication Development

GitHub Copilot API integration

Put GitHub Copilot in your product or your AI agent. Truto handles the sign-in and the token refresh, and keeps the connection working after launch.

Elaichi

From the team behind Truto

Control plane for MCP servers

Put your team’s own apps to work in their AI. Connect an app once, and everyone’s AI can use it.

Works in

  • Each person’s AI gets exactly their access. Nothing more.
  • Share an app with your team, not a password.
  • Every call is checked and logged.

No credit card required · 1,150+ apps

01Proxy API

Call the GitHub Copilot API directly. Every endpoint, through Truto.

Truto’s Proxy API is a 1-to-1 mapping of the GitHub Copilot API. You call us, we call GitHub Copilot, and pass the response back in the same cycle. Truto handles authentication and token refresh.

On every plan, including Free.

How the Proxy API works

Proxy APIGitHub Copilot

GEThttps://api.truto.one/proxy/seats?integrated_account_id=…

  • GET/proxy/billing
  • GET/proxy/organizations

GitHub Copilot’s own response, passed back

02MCP server

GitHub Copilot tools for any AI agent. Any MCP client, or the agent you build.

Whatever your agent runs on, it gets GitHub Copilot tools for each customer’s account: through an MCP server, or straight from the tools API.

On every plan, including Free.

What an agent can doin GitHub Copilot
  • SeatsList, Get one
  • Content exclusionsList, Bulk update
  • Enterprise coding agent policiesCreate, Bulk delete, Bulk update
  • BillingList
  • Seat teamsCreate, Bulk delete
  • Seat usersCreate, Bulk delete
  • Coding agent permissionsList, Bulk update
  • Coding agent repositoriesList, Update, Delete, Bulk update
  • Enterprise repository reports dailyList
  • Enterprise usage reports dailyList
  • Enterprise usage reports latestList
  • Enterprise user reports dailyList
  • Enterprise user reports latestList
  • Enterprise user team reports dailyList
  • Org repository reports dailyList
  • Org usage reports dailyList
  • Org usage reports latestList
  • Org user reports dailyList
  • Org user reports latestList
  • Org user team reports dailyList
  • Cloud agent configurationsList
  • OrganizationsList
Show tool names32 tools, for developers
  • get_single_git_hub_copilot_seat_by_idGet Copilot seat assignment details for a single organization member. Returns the seat record including created_at, last_activity_at, plan_type, assignee, and assigning_team. Required: org and id (the member's username handle).
  • list_all_git_hub_copilot_seatsList all Copilot seat assignments for an organization with a Copilot Business or Copilot Enterprise subscription. Returns seat records including created_at, updated_at, last_activity_at, plan_type, and assignee. Required: org.
  • list_all_git_hub_copilot_content_exclusionsGet the Copilot content exclusion path rules configured for a GitHub Copilot organization. Returns an object mapping each repository name to its array of excluded paths (e.g. {"octo-repo": ["/src/some-dir/kernel.rs"]}); comments are never returned and only the last occurrence of a duplicate key is kept. Required: org.
  • git_hub_copilot_content_exclusions_bulk_updateSet Copilot content exclusion path rules for an organization, replacing all existing rules. The request body is a map of repository name (or "*" for all repositories) to an array of excluded paths, e.g. {"octo-repo": ["/src/some-dir/kernel.rs"]}. Returns the saved rules in the same shape. Required: org, plus the body map. Comments and duplicate keys are unsupported; 413 if the payload is too large. Requires Copilot Business or Enterprise on the organization. Because the body keys are dynamic repository names, call this through the the connector proxy API rather than as a fixed-parameter tool.
  • git_hub_copilot_enterprise_coding_agent_policies_bulk_deleteRemove organizations from the enterprise coding agent policy in GitHub Copilot, disabling Copilot cloud agent for the specified organizations. Targets the organizations either by login or via custom property filters; the enterprise policy must be set to enabled_for_selected_orgs first. Returns an empty 204 response on success. Required: enterprise…
  • create_a_git_hub_copilot_enterprise_coding_agent_policyAdd organizations to the enterprise coding agent policy in GitHub Copilot, enabling Copilot cloud agent for the specified organizations by login or custom property filters. The enterprise policy must be set to enabled_for_selected_orgs before using this endpoint. Returns an empty 204 response on success. Required: enterprise (supply organizations…
  • git_hub_copilot_enterprise_coding_agent_policies_bulk_updateSet the coding agent policy for an enterprise in GitHub Copilot, controlling whether Copilot cloud agent is enabled for all organizations, disabled for all, configured by organization admins, or enabled for selected organizations only. Returns an empty 204 response on success. Required: enterprise and policy_state.
  • list_all_git_hub_copilot_billingGet Copilot seat information and settings for a GitHub organization, including its subscription's seat breakdown and feature policies. Returns: seat_breakdown, seat_management_setting, ide_chat, platform_chat, cli, public_code_suggestions, plan_type. Required: org. Endpoint is in public preview and subject to change.
  • git_hub_copilot_seat_teams_bulk_deleteRemove teams from the GitHub Copilot subscription for an organization, revoking Copilot access for all users in each named team. Returns: seats_cancelled. Required: org, selected_teams.
  • create_a_git_hub_copilot_seat_teamAdd teams to the GitHub Copilot subscription for an organization, purchasing a Copilot seat for every user within each specified team. Returns: seats_created. Required: org, selected_teams.
  • git_hub_copilot_seat_users_bulk_deleteRemove organization members from the GitHub Copilot subscription for an org, revoking their Copilot access and cancelling their seats. Returns: seats_cancelled. Required: org, selected_usernames. Public preview endpoint.
  • create_a_git_hub_copilot_seat_userAdd organization members to the GitHub Copilot subscription for an org, purchasing and billing a Copilot seat for each listed username. Returns: seats_created. Required: org, selected_usernames. Public preview endpoint.
  • list_all_git_hub_copilot_coding_agent_permissionsGet the Copilot cloud agent permissions for a GitHub organization — whether the agent is enabled for all, selected, or no repositories. Returns: enabled_repositories, selected_repositories_url. Required: org. This endpoint is in public preview and subject to change.
  • git_hub_copilot_coding_agent_permissions_bulk_updateSet the Copilot cloud agent policy for a GitHub organization: whether the agent is enabled for all repositories, selected repositories, or none. Returns an empty 204 response on success. Requires org and enabled_repositories. This endpoint is in public preview and subject to change.
  • git_hub_copilot_coding_agent_repositories_bulk_updateReplace the selected repositories enabled for Copilot cloud agent in a GitHub organization with the given list. Returns an empty 204 response on success. Required: org, selected_repository_ids. The coding agent repository policy must be set to selected; the previous selection is replaced wholesale.
  • delete_a_git_hub_copilot_coding_agent_repository_by_idDisable a repository for Copilot cloud agent in a GitHub organization by removing it from the selected list. Returns an empty 204 response on success. Required: id (repository_id) and org.
  • list_all_git_hub_copilot_coding_agent_repositoriesList repositories enabled for Copilot cloud agent in a GitHub organization when the coding agent repository policy is set to selected. Returns each repository with id, node_id, name, full_name, visibility, and created_at. Required: org.
  • update_a_git_hub_copilot_coding_agent_repository_by_idEnable a repository for Copilot cloud agent in a GitHub organization by adding it to the selected list. Returns an empty 204 response on success. Required: id (repository_id) and org. Only callable when the coding agent repository policy is set to selected.
  • list_all_git_hub_copilot_enterprise_repository_reports_dailyRetrieve download links for a GitHub Copilot enterprise repository report for a specific day, covering per-repository pull request metrics with CCA and CCR breakdowns. Returns: download_links, report_start_day, report_end_day. Required: enterprise, day. Signed URLs expire after a limited time.
  • list_all_git_hub_copilot_enterprise_usage_reports_dailyGet the GitHub Copilot enterprise usage metrics report for a specific day. Returns: download_links, report_day. Required: enterprise, day (YYYY-MM-DD).
  • list_all_git_hub_copilot_enterprise_usage_reports_latestGet the latest Copilot enterprise usage metrics report for a 28-day period in GitHub. Returns: download_links, report_start_day, report_end_day. Required: enterprise.
  • list_all_git_hub_copilot_enterprise_user_reports_dailyRetrieve download links for the GitHub Copilot enterprise users report for a specific day. Returns: download_links, report_day. Reports are generated daily and cover a complete day of processed usage data. Required: enterprise, day (YYYY-MM-DD).
  • list_all_git_hub_copilot_enterprise_user_reports_latestGet the latest 28-day Copilot users usage metrics report for an enterprise. Returns download links to NDJSON report files plus the report period. Returns: download_links, report_start_day, report_end_day. Required: enterprise.
  • list_all_git_hub_copilot_enterprise_user_team_reports_dailyGet download links for the GitHub Copilot enterprise user-teams report for a specific day, with one entry per user-team pair. Returns: download_links, report_day. Required: enterprise, day. Download URLs are signed and expire after a limited time.
  • list_all_git_hub_copilot_org_repository_reports_dailyGet download links for the GitHub Copilot organization repository report for a specific day. Returns: download_links, report_day. Required: org, day (YYYY-MM-DD). Returns 204 when no report data exists for the day.
  • list_all_git_hub_copilot_org_usage_reports_dailyGet download links for the GitHub Copilot organization usage metrics report for a specific day, with aggregated Copilot feature usage and engagement data in downloadable NDJSON files. Returns: download_links, report_start_day, report_end_day. Required: org, day (YYYY-MM-DD).
  • list_all_git_hub_copilot_org_usage_reports_latestGet the latest 28-day Copilot usage report for a GitHub organization. Returns: download_links, report_start_day, report_end_day. Required: org.
  • list_all_git_hub_copilot_org_user_reports_dailyGet download links for the GitHub Copilot organization users usage metrics report for a specific day. Required: org, day. Signed URLs have limited expiration; 204 when no data exists for the day.
  • list_all_git_hub_copilot_org_user_reports_latestGet download links for the latest 28-day GitHub Copilot user usage metrics report for an organization, covering user-level engagement and feature adoption over the trailing 28 days. Returns: download_links, report_start_day, report_end_day. Required: org. Download links are signed and expire after a limited time.
  • list_all_git_hub_copilot_org_user_team_reports_dailyRetrieve the GitHub Copilot user-teams report for a specific day for an organization. Returns signed download_links to the report files and the report_day they cover. Required: org, day (YYYY-MM-DD). Responds 204 when no data has been processed for that day.
  • list_all_git_hub_copilot_cloud_agent_configurationsGet the Copilot cloud agent configuration for a GitHub repository, including MCP server, review tool, workflow approval, and firewall settings. Returns: mcp_configuration, enabled_tools, require_actions_workflow_approval, is_firewall_enabled, custom_allowlist, and 3 more. Required: owner, repo. Public preview; subject to change.
  • list_all_git_hub_copilot_organizationsList the GitHub organizations the authenticated user is a member of. Use the returned login as the org value for every Copilot organization tool (billing, seats, content exclusions, coding agent, usage reports). Returns: login, id, node_id, url, description. Only organizations the token can see are returned (classic PATs need read:org).

AMCP serverno code

For any MCP client

One URL per connected GitHub Copilot account. Paste it into Claude, ChatGPT, Cursor, Windsurf, VS Code, Cline, Zed or a custom agent.

Server URLhttps://api.truto.one/mcp/<token>

BTools APIfor developers

For the agent you build

One call returns every GitHub Copilot tool for an account, with its description and JSON schema, ready for any LLM framework.

GEThttps://api.truto.one/integrated-account/<id>/tools

Tools come as JSON schema, so they plug into any agent framework.

  • Always up to date

    Tools are generated from curated documentation, not hand-coded. As the integration changes, the tools stay current.

  • You set the limits

    Scope each MCP server to read-only, write-only, specific methods or tagged tool groups. Expose only what the agent needs.

  • One customer each

    Each MCP server is scoped to one connected account with its own credentials. Nothing leaks across tenants.

  • Tools you can edit

    Tool descriptions and schemas are editable in your Truto account. A change updates at once, with no deploy.

  • Sign-in handled

    Tool calls run through Truto’s proxy layer, with OAuth refresh, rate-limit handling and normalized errors.

  • Access can expire

    Create time-limited servers for contractors or automated workflows. Optionally require a Truto API token as well.

How MCP servers work

03Unified API

Call GitHub Copilot the same way as your other apps. One mapping to go.

A unified API gives every app in a category the same call and the same data shape. GitHub Copilot is not in one yet. Build your own model, or ask us.

GitHub Copiloton Truto
  1. Sign-in and tokensTruto handles themReady
  2. Proxy APIWorks today, on FreeReady
  3. Unified APIOne mapping to goTo do

Then: one call for every app

  • Path 1 Self-serve

    Build your own model

    • Mapping editor, with version history
    • Live for every connected account
    • No deploy

    Start free

  • Path 2 We do it

    Ask Truto

    • Tell us the GitHub Copilot data you need
    • We add the mapping

    Talk to us

  • Price Add-on

    $499 a month, in Pro

    • 30-day trial on Free
    • Every unified API and your own unified models: Pro add-on

    See pricing

04Sync and webhooks

Sync GitHub Copilot data on a schedule. Sent to your webhook.

A sync job reads GitHub Copilot records on a schedule and sends each page to your webhook or your datastore. Signed webhooks tell you when an account connects or needs to sign in again.

On every plan, including Free.

05Custom actions

Add any GitHub Copilot endpoint. With the Truto CLI.

Need a GitHub Copilot endpoint or method that is not here yet? Add it with the Truto CLI and your coding agent, or call any GitHub Copilot path through the Custom API.

On every plan, including Free. Truto CLI

For your own AI tools

Use GitHub Copilot in ChatGPT, Claude or Cursor with Elaichi.

Truto puts GitHub Copilot in the product you build. To use GitHub Copilot yourself, in the AI your team already has, we recommend Elaichi.

For your product

Ship GitHub Copilot tools in your product

Give the AI in your product access to each customer’s own GitHub Copilot account, with one MCP server per connected account.

Elaichi

For your own team

Use GitHub Copilot in your own AI

Connect your company’s GitHub Copilot once, then ask in the AI you already use, with exactly your own access.

Works in

GitHub Copilot on Elaichi

From the team behind Truto · 14-day free trial

Use cases

Why integrate with GitHub Copilot.

  1. Prove Copilot ROI to engineering leaders

    Engineering analytics platforms can pull daily usage and user reports to correlate Copilot adoption with PR cycle time and deployment velocity, giving VPs of Engineering hard numbers on their AI spend.

  2. Automate Copilot seat lifecycle management

    IT provisioning and SaaS spend management tools can create, list, and revoke Copilot seats based on employee status or activity, eliminating unused licenses and tightening offboarding workflows.

  3. Enforce IP protection and content exclusions

    DevSecOps platforms can programmatically push content exclusion rules and remove sensitive repositories from the coding agent, ensuring Copilot never ingests regulated or proprietary code.

  4. Govern Copilot coding agent policies at scale

    Security posture and governance tools can bulk-manage coding agent permissions, repositories, and enterprise policies, letting admins enforce consistent AI rules across hundreds of orgs and repos.

  5. Surface Copilot telemetry inside your product

    Developer experience and platform engineering SaaS can embed native Copilot dashboards showing acceptance rates, active users, and language breakdowns, so customers don't bounce out to GitHub admin screens.

What you can build

Ship these with Truto and GitHub Copilot.

  • Copilot adoption dashboard

    Ingest daily enterprise and org usage reports to visualize DAU/WAU, acceptance rates, and per-language metrics inside your product.

  • Just-in-time seat deprovisioning

    Monitor seat activity via single-seat lookups and bulk-delete inactive users to automatically reclaim unused Copilot Business or Enterprise licenses.

  • Repository-level IP guardrails

    Let customers define sensitive paths in your UI and push them to GitHub via bulk content exclusion updates, with full audit history.

  • Coding agent policy manager

    Build a control panel for enterprise coding agent policies and permissions, including bulk create, update, and delete across repositories.

  • Team-level Copilot analytics

    Combine daily user-team reports with your HRIS data to show Copilot impact broken down by squad, cost center, or business unit.

  • MCP and cloud agent configuration viewer

    List cloud agent configurations and coding agent repositories so admins can audit which MCP servers, tools, and repos are enabled for Copilot across the enterprise.

Security

Your customers’ GitHub Copilot data stays theirs. Truto passes it through.

  • Records pass through

    Customer records are not kept. Truto fetches them when your product asks and passes them on.

  • Truto managed OAuth apps or yours

    Where an app signs in with OAuth, use Truto’s OAuth apps or your own, on every plan. Each customer’s login is kept encrypted (AES-256) while connected.

  • SOC 2 · TYPE IIAUDITEDISO/IEC 27001CERTIFIEDGDPRHIPAACASA · TIER 2TAC SECURITY

    Audited and certified

    SOC 2 Type II, ISO 27001, GDPR and HIPAA. CASA Tier 2, verified by TAC Security. Trust Centre

How it works

From zero to integrated. Start free, no card.

  1. Link your customer’s GitHub Copilot account

    Use Truto’s frontend SDK to connect your customer’s GitHub Copilot account. We handle all OAuth and API key flows — you don’t need to create the OAuth app.

  2. We handle authentication

    Don’t spend time refreshing access tokens or figuring out secure storage. We handle it and inject credentials into every API request.

  3. Call our API, we call GitHub Copilot

    Truto’s Proxy API is a 1-to-1 mapping of the GitHub Copilot API. You call us, we call GitHub Copilot, and pass the response back in the same cycle.

  4. Unified response format

    Every response follows a single format across all integrations. We translate GitHub Copilot’s pagination into unified cursor-based pagination. Data is always in the result attribute.

FAQs

Common questions about GitHub Copilot on Truto.

How do end users authenticate their GitHub Copilot account?

Truto handles the GitHub OAuth and token exchange flow on your behalf. Your users connect through a hosted or embedded flow, and Truto manages token storage, refresh, and scoping to Copilot admin endpoints.

What Copilot data can I read through this integration?

You can access seats, billing, content exclusions, coding agent permissions and repositories, enterprise coding agent policies, cloud agent configurations, organizations, and the full set of enterprise and org usage, user, user-team, and repository reports (daily and latest).

How are the usage reports delivered?

GitHub exposes Copilot usage telemetry as NDJSON files behind signed, time-limited download links. Truto surfaces these via the list endpoints so you can fetch and parse the daily enterprise or org-level reports in your pipeline.

Can I manage seats and teams in bulk?

Yes. Truto exposes create and bulk delete operations for both Copilot seat users and seat teams, so you can provision or revoke access for large groups in a single call.

Can I programmatically control what code Copilot can see?

Yes. The content exclusions bulk update endpoint lets you push a JSON map of repositories and file paths that Copilot must ignore, and coding agent repositories can be added, updated, or deleted individually.

Does this support both Copilot Business and Copilot Enterprise?

Yes. The available tools cover org-level resources (seats, billing, org usage and user reports) as well as enterprise-level resources (enterprise usage, user, user-team, repository reports, and enterprise coding agent policies).

How does Truto handle GitHub API rate limits and pagination?

Truto normalizes pagination across list endpoints and manages retries and backoff against GitHub's rate limits, so you don't have to implement per-endpoint quirks in your own code.

GitHub Copilot

Get GitHub Copilot integrated into your app

Sign up free, connect a test GitHub Copilot account and make your first call today. No card and no sales call.