Find User by Email
GET /api/users/find-by-email
Section titled “GET /api/users/find-by-email”Returns the internal user ID for the given email address.
Headers
Section titled “Headers”| Header | Required | Value |
|---|---|---|
api-key | yes | Import API key |
Query parameters
Section titled “Query parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
email | string | yes | Exact email address |
Example request
Section titled “Example request”GET /api/users/find-by-email?email=john.doe@example.comapi-key: <key>Response
Section titled “Response”HTTP 200 OK
{ "success": true, "user_id": 42}HTTP error codes
Section titled “HTTP error codes”| Status | Description |
|---|---|
401 | Missing api-key header |
403 | Invalid api-key value |
404 | No user with that email |
422 | Invalid email format |