AdminList users whose emails collide after normalization

List users whose emails collide after normalization

Read-only report of sets of users rows that collapse to the same normalized email (trim + lowercase) but are stored as distinct rows — legacy duplicates the email-normalization migration could not auto-fold. Requires dual auth: X-Admin-API-Key + JWT.

curl -X GET "https://api.spkey.co/admin/users/email-collisions" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (JWT)" \
  -H "X-API-Key: YOUR_API_KEY"
{
  "total": 3.14,
  "groups": [
    {
      "normalizedEmail": "user@example.com",
      "users": [
        {
          "uuid": "example_string",
          "email": "user@example.com",
          "created_at": "example_string"
        }
      ]
    }
  ]
}
GET
/admin/users/email-collisions
GET
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token (JWT)
Bearer Tokenstring
Required

JWT token from SmartphoneKey authentication. Identifies the B2C user or B2B service.

JWT token from SmartphoneKey authentication. Identifies the B2C user or B2B service.
API Key (header: X-API-Key)
X-API-Keystring
Required

API key for B2B organization access. Provided during organization onboarding.

API key for B2B organization access. Provided during organization onboarding.
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (JWT). JWT token from SmartphoneKey authentication. Identifies the B2C user or B2B service.

header
X-API-Keystring
Required

API Key for authentication. API key for B2B organization access. Provided during organization onboarding.

Responses

totalnumber
Required

Number of colliding email groups

groupsarray
Required