Users

Get user Git SSH key

Changed on
get/api/v2/users/{user}/gitsshkey

Request

  • Base URL
    / (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/v2/users/{user}/gitsshkey
  • Auth
    API key in header Coder-Session-Token

Path parameters

userstring required

User ID, name, or me

Response

OK

created_atstring date-time
public_keystring

PublicKey is the SSH public key in OpenSSH format. Example: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID3OmYJvT7q1cF1azbybYy0OZ9yrXfA+M6Lr4vzX5zlp\n" Note: The key includes a trailing newline (\n).

updated_atstring date-time
user_idstring uuid

Changes