---
title: "Authenticate agent on Azure instance"
method: POST
path: "/api/v2/workspaceagents/azure-instance-identity"
tags: ["Agents"]
---

# Authenticate agent on Azure instance

`POST /api/v2/workspaceagents/azure-instance-identity`

## Request body

- AgentsdkAzureInstanceIdentityToken
  - `agent_name` string — AgentName optionally selects a specific agent when multiple agents share the same instance identity. An empty string is treated as unspecified.
  - `encoding` string, required
  - `signature` string, required

## Response `200`

OK

- AgentsdkAuthenticateResponse
  - `session_token` 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)
