List agent labels. Requires project.agents.read.
Arguments
inputProjectAgentLabelsInput!requiredinput.projectReferenceStringinput.agentIdID!requiredinput.sourceTargetKindStringSource target: project, main_branch, or preview_branch. Null and omission select project.
input.targetBranchIdID
Responses
query AgentLabels($input: ProjectAgentLabelsInput!) { agentLabels(input: $input) { labels { id resourceKind projectId sourceTargetKind sourceAgentId namespace key value color createdAt updatedAt } }}{ "data": { "agentLabels": { "labels": [ { "id": "string", "resourceKind": "string", "projectId": "string", "sourceTargetKind": "string", "sourceAgentId": "string", "namespace": "string", "key": "string", "value": "string", "color": "string", "createdAt": "2026-01-01T00:00:00Z", "updatedAt": "2026-01-01T00:00:00Z" } ] } }}The AgentLabelList! in data.agentLabels.