---
title: "Preview an agent computer code – Superbot API"
canonical_url: "https://superbot.gg/developers/devices/previewAgentPair"
summary: "The details of a pending code an agent computer showed. First-party only: your own Superbot app (a session or its device token)."
---

> Markdown of https://superbot.gg/developers/devices/previewAgentPair. Site index: /llms.txt.

# Preview an agent computer code

`GET /v1/pair/{user_code}`

The details of a pending code an agent computer showed. First-party only: your own Superbot app (a session or its device token).

- Operation id: `previewAgentPair`
- Group: [Devices](https://superbot.gg/developers/devices.md)
- Auth: Any live caller key (`Authorization: Bearer sbc_…` or `x-api-key: sbc_…`), or a signed-in session.
- Scopes: none

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `user_code` | string | required | The code the agent computer shows (e.g. `ABCD-EFGH`). |

## Response 200

The pending code.

`application/json`: AgentPairPreview.

- `kind` (string, required): One of `agent_computer`.
- `label` (string, required)
- `agent_vendor` (string | null, required)
- `ip` (string | null, required)
- `geo` (string | null, required)
- `tier` (string, required): One of `link`.
- `approve_on` (string, required): One of `this_device`, `phone`.
- `asked_at` (string): When the agent computer asked for this code (ISO-8601 UTC). Absent on an older edge.
- `expires_at` (string): When the code lapses (ISO-8601 UTC). Absent on an older edge.

## Errors

Every refusal carries `error`, `message`, `doc_url` and `request_id`; the gateway routes answer in the dialect you dialed.

| Status | Codes | When |
| --- | --- | --- |
| 401 | [`unauthorized`](https://superbot.gg/developers#errors-unauthorized) | The bearer is missing, malformed or unknown. |
| 403 | [`insufficient_scope`](https://superbot.gg/developers#errors-insufficient_scope) | The key lacks a scope (insufficient_scope), is revoked, or may not call this route. |
| 404 | [`not_found`](https://superbot.gg/developers#errors-not_found) | No such resource on this account. |

## Examples

```sh
curl -sS -X GET "https://superbot.gg/v1/pair/$USER_CODE" \
  -H "Authorization: Bearer $SUPERBOT_API_KEY"
```

```js
const userCode = 'USER_CODE';
const res = await fetch(`https://superbot.gg/v1/pair/${userCode}`, {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.SUPERBOT_API_KEY}`,
  },
});
console.log(res.status, await res.json());
```

```python
import os
import requests

user_code = "USER_CODE"
res = requests.request(
    "GET",
    f"https://superbot.gg/v1/pair/{user_code}",
    headers={
        "Authorization": f"Bearer {os.environ['SUPERBOT_API_KEY']}",
    },
)
print(res.status_code, res.json())
```
