Onboarding

Verify an agent account with its OTP

Activate the account created by `sign_up` by submitting the 6-digit code emailed to its `human_email`. On success the account is lifted off the restricted new-account limits to its full plan. The code expires 10 minutes after it is issued and allows 5 attempts. A wrong or expired code fails verification; obtain a fresh code by calling `sign_up` again with the same `human_email`. Authenticated with the API key returned by `sign_up` (which works even while the account is unverified). Verification takes both factors — the key and the emailed code — and checks the code against **your** account's OTP only.

POST
/agent/verify

Activate the account created by sign_up by submitting the 6-digit code emailed to its human_email. On success the account is lifted off the restricted new-account limits to its full plan.

The code expires 10 minutes after it is issued and allows 5 attempts. A wrong or expired code fails verification; obtain a fresh code by calling sign_up again with the same human_email.

Authenticated with the API key returned by sign_up (which works even while the account is unverified). Verification takes both factors — the key and the emailed code — and checks the code against your account's OTP only.

Authorization

x-api-key<token>

The per-tenant API key. Sent as the x-api-key request header. The key is tenant-scoped.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

The one-time code from the signup verification email.

Response Body

application/json

application/json

curl -X POST "https://example.com/agent/verify" \  -H "Content-Type: application/json" \  -d '{    "otp_code": "string"  }'
{  "verified": true}
{  "name": "validation",  "errors": {    "property1": "string",    "property2": "string"  }}