POST
/
v1
/
tenants
/
add-user-bulk
curl https://api.geldstuck.com/v1/tenants/add-user-bulk \
  -H "x-api-key: $GELDSTUCK_PUBLIC_KEY" \
  -H "x-api-secret: $GELDSTUCK_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '[
    { "name": "Alice", "email": "alice@example.com" },
    { "name": "Bob",   "email": "bob@example.com"   }
  ]'
{
  "created": 1842,
  "skipped": 158,
  "failed": [
    { "index": 203, "email": "invalid", "error": "email_invalid" }
  ]
}
Batch create. Duplicate emails are silently skipped - the response tells you which rows were created, skipped, and failed.

Body

A JSON array of user objects (each with the same fields as Add a user).

Returns

created
integer
Count of newly created users.
skipped
integer
Duplicates (already existed for this tenant).
failed
array
Each entry: { index, email, error }.
curl https://api.geldstuck.com/v1/tenants/add-user-bulk \
  -H "x-api-key: $GELDSTUCK_PUBLIC_KEY" \
  -H "x-api-secret: $GELDSTUCK_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '[
    { "name": "Alice", "email": "alice@example.com" },
    { "name": "Bob",   "email": "bob@example.com"   }
  ]'
{
  "created": 1842,
  "skipped": 158,
  "failed": [
    { "index": 203, "email": "invalid", "error": "email_invalid" }
  ]
}