auth

Register

Creates an account/person via the same per-provider verification login uses (see login's description for the provider field rules), but returns the created account (handler.RegisterResponse) rather than issuing tokens; the caller must still call login (or, for privy_custom_auth tenants, complete the Privy flow) to sign in. 200 if the account already existed for this credential (idempotent), 201 if newly created, 409 email_taken if the email is already registered in this tenant under a different provider. An expired workspace code gets 404 tenant_code_expired.

post/auth/register

Request

  • Base URL: https://api.instruxi.dev/api/v1/enforcer
  • URL: https://api.instruxi.dev/api/v1/enforcer/auth/register
  • Auth: none declared

Request body

emailstring
messagestring

SIWE EIP-4361 message

otpstring
phonestring
provider'privy' | 'email_otp' | 'google' | 'siwe' | 'phone_otp' | 'passkey' | 'oidc' | 'saml'
signaturestring

SIWE signature

tenant_codestring
tokenstring

Response

OK

successboolean

Example response

{
  "success": true
}

Changes

No recorded changes to this operation across all 1 revision of this API.