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

# Get workspace agent external auth

`GET /api/v2/workspaceagents/me/external-auth`

## 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/versions/56b6e9f08540/schema)
