Agents
REST endpoints for the workspace agent daemon (`coder_agent`).
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.
Endpoints
Get DERP map updates GET
/api/v2/derp-map
User-scoped tailnet RPC connection GET
/api/v2/tailnet
Authenticate agent on AWS instance POST
/api/v2/workspaceagents/aws-instance-identity
Authenticate agent on Azure instance POST
/api/v2/workspaceagents/azure-instance-identity
Authenticate agent on Google Cloud instance POST
/api/v2/workspaceagents/google-instance-identity
Get workspace agent external auth GET
/api/v2/workspaceagents/me/external-auth
Removed: Get workspace agent git auth GET
/api/v2/workspaceagents/me/gitauth
Get workspace agent Git SSH key GET
/api/v2/workspaceagents/me/gitsshkey
Post workspace agent log source POST
/api/v2/workspaceagents/me/log-source
Patch workspace agent logs PATCH
/api/v2/workspaceagents/me/logs
Get workspace agent reinitialization GET
/api/v2/workspaceagents/me/reinit
Get workspace agent by ID GET
/api/v2/workspaceagents/{workspaceagent}
Get connection info for workspace agent GET
/api/v2/workspaceagents/{workspaceagent}/connection
Get running containers for workspace agent GET
/api/v2/workspaceagents/{workspaceagent}/containers
Delete devcontainer for workspace agent DELETE
/api/v2/workspaceagents/{workspaceagent}/containers/devcontainers/{devcontainer}
Recreate devcontainer for workspace agent POST
/api/v2/workspaceagents/{workspaceagent}/containers/devcontainers/{devcontainer}/recreate
Watch workspace agent for container updates. GET
/api/v2/workspaceagents/{workspaceagent}/containers/watch
Coordinate workspace agent GET
/api/v2/workspaceagents/{workspaceagent}/coordinate
Get listening ports for workspace agent GET
/api/v2/workspaceagents/{workspaceagent}/listening-ports
Get logs by workspace agent GET
/api/v2/workspaceagents/{workspaceagent}/logs
Open PTY to workspace agent GET
/api/v2/workspaceagents/{workspaceagent}/pty
Removed: Get logs by workspace agent GET
/api/v2/workspaceagents/{workspaceagent}/startup-logs
Patch workspace agent app status PATCH Deprecated endpoint
/api/v2/workspaceagents/me/app-status