---
title: "Get the agent assignment of a project"
method: GET
path: "/agents/projects-assignments/{projectId}"
tags: ["Agents Settings"]
---

# Get the agent assignment of a project

`GET /agents/projects-assignments/{projectId}`

Returns the assigned agent

## Path parameters

- `projectId` string, required

## Response `200`

- AgentSettingsApiFindProjectAgentByIdResponse
  - `agentKey` string, required
  - `isSaas` boolean, required
  - `version` string, nullable, required — Normalized agent version, or `null` when the version cannot be determined. `null` is returned in two cases: the assigned agent has no `AgentState` record, or the record reports neither `releaseVersion` nor `agentVersion`.

---

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