---
title: "Wait for a verification code or magic link"
method: GET
path: "/v1/inboxes/{id}/verification"
tags: ["Messages"]
---

# Wait for a verification code or magic link

`GET /v1/inboxes/{id}/verification`

## Request

- Base URL: `https://api.agentboxd.com`
- URL: `https://api.agentboxd.com/v1/inboxes/{id}/verification`
- Auth: HTTP bearer

Long-poll for a login code or magic link. `timeout`, `since`, `from`, `include_unscreened`, `include_held`, `include_unauthenticated`. Returns the newest matching message’s code, link, confidence and `auth_failed`, or null. A code or link from mail whose sender failed authentication (DMARC, or SPF without an aligned DKIM pass) is skipped unless `include_unauthenticated=true`. In a screening workspace a code or link from held or unscreened mail is not returned unless asked for.

Permission: `messages:read`.

## Path parameters

- `id` string, uuid, required

## Query parameters

- `timeout` number
- `since` string
- `from` string
- `include_unscreened` 'true' | 'false'
- `include_held` 'true' | 'false'
- `include_unauthenticated` 'true' | 'false'

## Response `200`

OK

- object

## Other responses

- `4XX`: Error
- `5XX`: Error

---

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