---
title: "Wait for a one-time code by SMS or email"
method: POST
path: "/wait-for-code"
---

# Wait for a one-time code by SMS or email

`POST /wait-for-code`

## Request

- Base URL: `https://agentline.nz/api/v1`
- URL: `https://agentline.nz/api/v1/wait-for-code`
- Auth: HTTP bearer

## Request body

- object
  - `channel` 'sms' | 'email' | 'any'
  - `timeout_seconds` integer
  - `from_contains` string
  - `since_seconds` integer

## Response `200`

{found:boolean, code?, channel?, from?, receivedAt?}

---

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