Pair Display by Code
pair_by_codePairs a physical screen with the 6-character code shown on https://display.agentview.de — the recommended first-time setup: ask the user to open that URL on the TV and read the code, then call this (creates and pairs in one step). Pass target_display_id to rebind an EXISTING display profile onto new hardware instead (keeps name, settings, content). Requires admin. A connector session normally holds content scope only, which is NOT a dead end and does NOT need the connector re-authorized: run create_auth_session with scope 'admin', show the user the loginUrl, poll get_auth_session until active, then call this again with that session_request_id. The handle authorizes the call even when the connector's own token cannot.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The 6-character pairing code shown on the display (e.g. 'AB3K7F'). | |
| access_token | No | Optional bearer token; prefer session_request_id. | |
| profile_name | No | Friendly name for the display (required for new pairing, ignored for rebind). Example: 'Lobby Screen'. | |
| target_display_id | No | To rebind: the existing display profile ID to switch to the new hardware. Omit for new display pairing. | |
| session_request_id | No | Session handle from create_auth_session; pass it on every authenticated call. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| profileId | No | ||
| linkedHardwareId | No |