---
title: "Get workspace agent Git SSH key"
method: GET
path: "/api/v2/workspaceagents/me/gitsshkey"
tags: ["Agents"]
---

# Get workspace agent Git SSH key

`GET /api/v2/workspaceagents/me/gitsshkey`

## Response `200`

OK

- AgentsdkGitSSHKey
  - `private_key` string
  - `public_key` string

---

[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/50a77af44008/schema)
