Internal

Batch lookup users by email or id (internal)

Returns matching users for the supplied emails OR user_ids (mutually exclusive). Capped at 100 entries per call.

post/v1/users/lookup

Request

  • Base URL
    https://identity-api.paymongo.com
  • URL
    https://identity-api.paymongo.com/v1/users/lookup
  • Auth
    API key in header X-Internal-Api-Key

Request body

emailsstring[]
user_idsstring[]

Example request

{
  "emails": [
    "alice@example.com"
  ],
  "user_ids": [
    "42"
  ]
}

Response

OK

has_moreboolean

Example response

{
  "data": {
    "users": [
      {
        "email": "alice@example.com",
        "organization_id": "org_123",
        "user_id": "42"
      }
    ]
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.