Create User
Requires Authorization: Bearer <service JWT> in deployed environments. Mint the JWT through POST /auth/token with AWS SigV4 credentials. Creates a provider user identity. The WorkOS provider stores the mobile number as metadata and marks the email as verified because this endpoint is used by trusted service migrations.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”object
Email address for the new provider user. The current WorkOS provider marks it verified.
alex@example.comMobile number in E.164 format
+61412345678Optional given name for the new provider user.
AlexOptional family name for the new provider user.
TaylorResponses
Section titled “ Responses ”Created user
object
Provider user identifier.
user_01J7C4Q8QABCD1234XYZVerified email address stored by the configured access provider.
alex@example.comMobile number in E.164 format when present.
+61412345678Given name stored by the configured access provider.
AlexFamily name stored by the configured access provider.
TaylorBAD_REQUEST
object
Karmo 8-digit error code.
Domain-level metadata emitted by the service.
object
object
Human-readable detail for the specific field error.
JSON pointer to the offending value.
/emailUNAUTHORIZED
object
Karmo 8-digit error code.
Domain-level metadata emitted by the service.
object
object
Human-readable detail for the specific field error.
JSON pointer to the offending value.
/emailFORBIDDEN
object
Karmo 8-digit error code.
Domain-level metadata emitted by the service.
object
object
Human-readable detail for the specific field error.
JSON pointer to the offending value.
/emailNOT_FOUND
object
Karmo 8-digit error code.
Domain-level metadata emitted by the service.
object
object
Human-readable detail for the specific field error.
JSON pointer to the offending value.
/emailCONFLICT
object
Karmo 8-digit error code.
Domain-level metadata emitted by the service.
object
object
Human-readable detail for the specific field error.
JSON pointer to the offending value.
/emailUNPROCESSABLE_ENTITY
object
Karmo 8-digit error code.
Domain-level metadata emitted by the service.
object
object
Human-readable detail for the specific field error.
JSON pointer to the offending value.
/emailConfigured access provider rate limited the request.
object
Karmo 8-digit error code.
Domain-level metadata emitted by the service.
object
object
Human-readable detail for the specific field error.
JSON pointer to the offending value.
/emailINTERNAL_SERVER_ERROR
object
Karmo 8-digit error code.
Domain-level metadata emitted by the service.
object
object
Human-readable detail for the specific field error.
JSON pointer to the offending value.
/emailAccess-management provider is not configured for this environment.
object
Karmo 8-digit error code.
Domain-level metadata emitted by the service.
object
object
Human-readable detail for the specific field error.
JSON pointer to the offending value.
/email