---
title: "Get workspace external agent credentials"
method: GET
path: "/api/v2/workspaces/{workspace}/external-agent/{agent}/credentials"
tags: ["Enterprise"]
---

# Get workspace external agent credentials

`GET /api/v2/workspaces/{workspace}/external-agent/{agent}/credentials`

## Path parameters

- `workspace` string, uuid, required
- `agent` string, required

## Response `200`

OK

- CodersdkExternalAgentCredentials
  - `agent_token` string
  - `command` string

---

[API](https://skmtc.dev/coder/apis/coder-api.md) · [All operations](https://skmtc.dev/coder/apis/coder-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/coder/coder-api/revisions/369ae60ab00e/schema)
