Skip to main content
POST
/
internal
/
user-emails
Get emails for multiple user IDs
curl --request POST \
  --url https://auth.platform.arb.inc/internal/user-emails \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "users": [
    "8b7f5a1e-3c2d-4e9a-9b33-2a1f7f8a9c10",
    "13af1f0e-4d6a-4207-8a2f-2f1e3b4c5d6e",
    "a1b2c3d4-5678-90ab-cdef-1234567890ab"
  ]
}
'
{
  "users": {
    "8b7f5a1e-3c2d-4e9a-9b33-2a1f7f8a9c10": "[email protected]",
    "13af1f0e-4d6a-4207-8a2f-2f1e3b4c5d6e": "[email protected]",
    "a1b2c3d4-5678-90ab-cdef-1234567890ab": null
  }
}

Authorizations

Authorization
string
header
required

access token

Body

application/json
users
string<uuid>[]
required

Array of user IDs to look up.

Example:
[
"8b7f5a1e-3c2d-4e9a-9b33-2a1f7f8a9c10",
"13af1f0e-4d6a-4207-8a2f-2f1e3b4c5d6e",
"a1b2c3d4-5678-90ab-cdef-1234567890ab"
]

Response

200 - application/json

Emails successfully retrieved.

users
object

Map of user IDs to email addresses. Email will be null if user doesn't exist.

Example:
{
"8b7f5a1e-3c2d-4e9a-9b33-2a1f7f8a9c10": "[email protected]",
"13af1f0e-4d6a-4207-8a2f-2f1e3b4c5d6e": "[email protected]",
"a1b2c3d4-5678-90ab-cdef-1234567890ab": null
}