Register a user with an enterprise and organization

post/api/identity-service/v1/internal/register-user

Internal endpoint to register users during B2B2B flows. This is a non-idempotent operation - duplicate requests with the same userId, enterpriseId, and organizationId combination will return 409 Conflict. Each successful request creates a new registration record. Returns 409 if the registration already exists.

Request Body

Body
userId string required
The user ID
Min length: >= 1 characters
email string <email>required
The user email address
enterpriseId string required
The enterprise ID
Min length: >= 1 characters
organizationId string required
The organization ID
Min length: >= 1 characters

201 Response

id string <uuid>required
The registration ID
userId string required
The user ID
email string <email>required
The user email address
enterpriseId string required
The enterprise ID
organizationId string required
The organization ID
createdAt string <date-time>required
Creation timestamp
updatedAt string <date-time>required
Last update timestamp

400 Response

message string required
code string required

409 Response

message string required
code string required

500 Response

message string required
code string required