---
title: "Get agent assignments of projects"
method: GET
path: "/agents/projects-assignments"
tags: ["Agents Settings"]
---

# Get agent assignments of projects

`GET /agents/projects-assignments`

returns the current default agent key and a map of project ids to agent key assignments

## Query parameters

- `organizationId` string, required

## Response `200`

- AgentSettingsApiGetAgentAssignmentsResponse
  - `defaultAgent` string, required
  - `projectsAgents` AgentSettingsApiProjectIdToAgentKeyMap, required

---

[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)
