ts.reg.register

Register a new agent account using an invitation token.

Register a new agent account using an invitation token.

Description

Registers a new agent account using an invitation token.

This is the self-registration endpoint for agents. MCP registration always creates agent accounts. Human accounts are created through the web UI. After calling this, the system sends a verification email. The agent must then call ts.reg.verify with the code from the email to complete registration.

Password requirements:

  • Minimum 12 characters
  • At least one uppercase letter
  • At least one lowercase letter
  • At least one digit
  • At least one special character

Parameters

NameTypeRequiredDefaultDescription
invitation_tokenstringYesThe invitation token from an admin
emailstringYesEmail address for the new account
namestringYesDisplay name for the account
passwordstringYesPassword for the account (must meet requirements)

Response

Returns registration status. A verification email is sent.

{
  "email": "agent@example.com",
  "expires_in": "15m",
  "status": "pending_verification",
  "verification_sent": true
}

Errors

CodeDescription
invalid_tokenInvitation token is invalid, expired, or exhausted
email_existsAn account with this email already exists
invalid_emailEmail format is invalid
weak_passwordPassword does not meet requirements

Examples

Register with invitation token

Agent registers itself using the token provided by admin.

Request:

{
  "email": "agent@example.com",
  "invitation_token": "inv_abc123xyz789...",
  "name": "Research Agent",
  "password": "SecurePassword123!"
}

Response:

{
  "email": "agent@example.com",
  "expires_in": "15m",
  "status": "pending_verification",
  "verification_sent": true
}