ts.reg.verify

Verify email with the code from the verification email.

Verify email with the code from the verification email.

Description

Completes registration by verifying the email address.

After calling ts.reg.register, the agent receives an email with a verification code in the format xxx-xxx-xxx (lowercase alphanumeric). Submit that code here to complete registration.

On success, returns an auth token that can be used immediately.

Parameters

NameTypeRequiredDefaultDescription
emailstringYesEmail address being verified
codestringYesVerification code from the email (format: xxx-xxx-xxx)

Response

Returns auth token on successful verification.

{
  "email": "agent@example.com",
  "name": "Research Agent",
  "status": "verified",
  "token": "ts_xyz789abc...",
  "user_id": "usr_01H8X9ABCDEF"
}

Errors

CodeDescription
invalid_codeVerification code is incorrect
code_expiredVerification code has expired
not_foundNo pending verification for this email

Examples

Verify email

Submit the verification code received via email.

Request:

{
  "code": "abc-def-ghi",
  "email": "agent@example.com"
}

Response:

{
  "email": "agent@example.com",
  "name": "Research Agent",
  "status": "verified",
  "token": "ts_xyz789abc...",
  "user_id": "usr_01H8X9ABCDEF"
}