# Agents

Workspace agent endpoints. These power the workspace agent daemon defined by the `coder_agent` Terraform resource. This API is NOT the Coder Agents Chats API. For programmatic access to AI Coder Agents, see the Chats API.

- [Get DERP map updates](/docs/v2.39/reference/api/agents/get-derp-map-updates/): `GET /api/v2/derp-map`
- [User-scoped tailnet RPC connection](/docs/v2.39/reference/api/agents/user-scoped-tailnet-rpc-connection/): `GET /api/v2/tailnet`
- [Authenticate agent on AWS instance](/docs/v2.39/reference/api/agents/authenticate-agent-on-aws-instance/): `POST /api/v2/workspaceagents/aws-instance-identity`
- [Authenticate agent on Azure instance](/docs/v2.39/reference/api/agents/authenticate-agent-on-azure-instance/): `POST /api/v2/workspaceagents/azure-instance-identity`
- [Authenticate agent on Google Cloud instance](/docs/v2.39/reference/api/agents/authenticate-agent-on-google-cloud-instance/): `POST /api/v2/workspaceagents/google-instance-identity`
- [Get workspace agent external auth](/docs/v2.39/reference/api/agents/get-workspace-agent-external-auth/): `GET /api/v2/workspaceagents/me/external-auth`
- [Removed: Get workspace agent git auth](/docs/v2.39/reference/api/agents/removed-get-workspace-agent-git-auth/): `GET /api/v2/workspaceagents/me/gitauth`
- [Get workspace agent Git SSH key](/docs/v2.39/reference/api/agents/get-workspace-agent-git-ssh-key/): `GET /api/v2/workspaceagents/me/gitsshkey`
- [Post workspace agent log source](/docs/v2.39/reference/api/agents/post-workspace-agent-log-source/): `POST /api/v2/workspaceagents/me/log-source`
- [Patch workspace agent logs](/docs/v2.39/reference/api/agents/patch-workspace-agent-logs/): `PATCH /api/v2/workspaceagents/me/logs`
- [Get workspace agent reinitialization](/docs/v2.39/reference/api/agents/get-workspace-agent-reinitialization/): `GET /api/v2/workspaceagents/me/reinit`
- [Get workspace agent by ID](/docs/v2.39/reference/api/agents/get-workspace-agent-by-id/): `GET /api/v2/workspaceagents/{workspaceagent}`
- [Get connection info for workspace agent](/docs/v2.39/reference/api/agents/get-connection-info-for-workspace-agent/): `GET /api/v2/workspaceagents/{workspaceagent}/connection`
- [Get running containers for workspace agent](/docs/v2.39/reference/api/agents/get-running-containers-for-workspace-agent/): `GET /api/v2/workspaceagents/{workspaceagent}/containers`
- [Delete devcontainer for workspace agent](/docs/v2.39/reference/api/agents/delete-devcontainer-for-workspace-agent/): `DELETE /api/v2/workspaceagents/{workspaceagent}/containers/devcontainers/{devcontainer}`
- [Recreate devcontainer for workspace agent](/docs/v2.39/reference/api/agents/recreate-devcontainer-for-workspace-agent/): `POST /api/v2/workspaceagents/{workspaceagent}/containers/devcontainers/{devcontainer}/recreate`
- [Watch workspace agent for container updates.](/docs/v2.39/reference/api/agents/watch-workspace-agent-for-container-updates/): `GET /api/v2/workspaceagents/{workspaceagent}/containers/watch`
- [Coordinate workspace agent](/docs/v2.39/reference/api/agents/coordinate-workspace-agent/): `GET /api/v2/workspaceagents/{workspaceagent}/coordinate`
- [Get listening ports for workspace agent](/docs/v2.39/reference/api/agents/get-listening-ports-for-workspace-agent/): `GET /api/v2/workspaceagents/{workspaceagent}/listening-ports`
- [Get logs by workspace agent](/docs/v2.39/reference/api/agents/get-logs-by-workspace-agent/): `GET /api/v2/workspaceagents/{workspaceagent}/logs`
- [Open PTY to workspace agent](/docs/v2.39/reference/api/agents/open-pty-to-workspace-agent/): `GET /api/v2/workspaceagents/{workspaceagent}/pty`
- [Removed: Get logs by workspace agent](/docs/v2.39/reference/api/agents/removed-get-logs-by-workspace-agent/): `GET /api/v2/workspaceagents/{workspaceagent}/startup-logs`
- [Patch workspace agent app status](/docs/v2.39/reference/api/agents/patch-workspace-agent-app-status/): `PATCH /api/v2/workspaceagents/me/app-status`
