---
title: "set Agent Connection Visibility"
method: PATCH
path: "/agent-connections/{address}/visibility"
tags: ["Agent Connections"]
---

# set Agent Connection Visibility

`PATCH /agent-connections/{address}/visibility`

## Request

- Base URL: `https://api.primitive.dev/v1`
- URL: `https://api.primitive.dev/v1/agent-connections/{address}/visibility`
- Auth: HTTP bearer

Hide, unhide, pin or unpin an agent. hidden:true hides it until someone unhides it and clears any pin. hidden:false shows it again and restarts its idle clock, so the idle sweep does not hide it again until it has been idle for the full threshold from now. keep_visible:true pins it visible: it is shown and never hidden for idleness. keep_visible:false removes the pin. hidden:true together with keep_visible:true is rejected. Never changes the connection status, its credential or mail delivery. A current personal owner may change their own agents; organization owners and admins may change any.

## Path parameters

- `address` string, email, required

## Request body

- object
  - `hidden` boolean
  - `keep_visible` boolean

## Response `200`

Success

- object
  - `success` unknown, required
  - `data` object, required
    - `connection` AgentConnection, required
      - `id` string
      - `shopping_function_id` string, nullable
      - `address` string, email, required
      - `name` string, required
      - `owner_address` string, email, required
      - `owner_member_address` string, email, nullable, required
      - `status` 'pending' | 'claimed' | 'connected' | 'revoked', required
      - `created_at` string, date-time, required
      - `updated_at` string, date-time, required
      - `claimed_at` string, date-time, nullable, required
      - `verified_at` string, date-time, nullable, required
      - `last_seen_at` string, date-time, nullable, required
      - `revoked_at` string, date-time, nullable
      - `presence` object, nullable
        - `last_checked_at` string, date-time, required
        - `expires_at` string, date-time, required
        - `valid_for_ms` integer, required
      - `ownership_kind` 'personal' | 'shared' | 'legacy_unknown', required
      - `owner_user_id` string, nullable, required
      - `owner_active` boolean, nullable, required
      - `hidden` boolean
      - `hidden_reason` 'idle' | 'manual', nullable
      - `hidden_at` string, date-time, nullable
      - `keep_visible` boolean
      - `last_activity_at` string, date-time, nullable

## Other responses

- `400`: Invalid request parameters
- `401`: Invalid or missing API key
- `403`: Authenticated caller lacks permission for the operation
- `404`: Resource not found
- `409`: The request conflicts with the current state of the resource
- `429`: Rate limit exceeded. The `ratelimit-*` headers describe the limiter that rejected this request, with its own limit and window, not the API budget that successful responses report. A limiter that reports only a wait sends `Retry-After` alone.

## Changes

> 32 revisions in range; 1 not diffed.

- **2026-11-03** `bce409c97acb`: 186 warning
  - added the new `access_mode_unavailable` enum value to the `error/code` response property for the response status `400`
  - added the new `access_mode_unavailable` enum value to the `error/code` response property for the response status `401`
  - added the new `access_mode_unavailable` enum value to the `error/code` response property for the response status `403`
  - added the new `access_mode_unavailable` enum value to the `error/code` response property for the response status `404`
  - …182 more
  - …this revision’s changelog is incomplete
- **2026-10-21** `0360ea8d4f3d`: 78 warning
  - added the new `agent_changed` enum value to the `error/code` response property for the response status `400`
  - added the new `agent_changed` enum value to the `error/code` response property for the response status `401`
  - added the new `agent_changed` enum value to the `error/code` response property for the response status `403`
  - added the new `agent_changed` enum value to the `error/code` response property for the response status `404`
  - …74 more
- …earlier changes not shown

[Operation history](https://skmtc.dev/primitive/apis/primitive-api/changes/agent-connections/:address/visibility/patch.md)

---

[API](https://skmtc.dev/primitive/apis/primitive-api.md) - [All operations](https://skmtc.dev/primitive/apis/primitive-api/llms.txt) - [OpenAPI document](https://skmtc.dev/primitive/apis/primitive-api/revisions/bce409c97acb?raw)
