---
title: "Removed: Get workspace agent git auth"
method: GET
path: "/api/v2/workspaceagents/me/gitauth"
tags: ["Agents"]
---

# Removed: Get workspace agent git auth

`GET /api/v2/workspaceagents/me/gitauth`

## Query parameters

- `match` string, required
- `id` string, required
- `listen` boolean

## Response `200`

OK

- AgentsdkExternalAuthResponse
  - `access_token` string
  - `expires_at` string — ExpiresAt is the time the token expires, normalized to UTC (for example, "2024-06-01T15:04:05Z"). Zero value means no expiry.
  - `password` string
  - `token_extra` object
  - `type` string
  - `url` string
  - `username` string — Deprecated: Only supported on `/workspaceagents/me/gitauth` for backwards compatibility.

---

[API](https://skmtc.net/coder/apis/coder-api.md) · [All operations](https://skmtc.net/coder/apis/coder-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/coder/coder-api/revisions/56b6e9f08540/schema)
