---
title: "Opex Install Token"
method: POST
path: "/api/print/agent/opex-install-token"
tags: ["print-agent"]
---

# Opex Install Token

`POST /api/print/agent/opex-install-token`

## Request

- Base URL: `https://api.pigeonly.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pigeonly.com/api/print/agent/opex-install-token`
- Auth: none declared

Issue one OPEX PC's print agent token to the OFFICE AGENT, with the three watcher files (`opex_install.py`).

Rule and owner: `opex_install.py`'s docstring (owner 2026-11-10, "do it with no one at the machine"; lead,
ISSUE-ON-INSTALL). Only `pgn-ws-04` is answered; any other print agent gets 403. The token is in this response
only: it is not logged, not in an event, not in a command row. A PC that already has a row is refused (409)
unless the owner's install ask for that PC carries a `reissue_reason` (OPEX-LOCAL-5; read by
`agent_commands.pending_install_reissue`, never taken from this body).

## Headers

- `authorization` string, nullable

## Request body

- OpexInstallTokenBody: The office agent asks for one OPEX PC's install (ruling 2026-11-10, ISSUE-ON-INSTALL). The reason for rotating a PC that already has a print agent row (OPEX-LOCAL-5) is never sent here: it is read from the owner's pending install ask (`agent_commands.pending_install_reissue`), so a rotation always traces to an ask the owner made.
  - `station` 'Transform' | 'OpexScanner' | 'Scanner02', required

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

## Changes

- **2026-11-11** `cff602e091fb`: 1 warning
  - removed the request property `reissue_reason`
- **2026-11-10** `3c70310e735d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/changes/api/print/agent/opex-install-token/post.md)

---

[API](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os.md) - [All operations](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/llms.txt) - [OpenAPI document](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/revisions/14571c4b7007?raw)
