Skip to main content
GET
Fetch User By Foreign Id
Fetches a user by their foreignId. If no user exists, creates a new one. Also updates existing users if provided data differs.

Query Parameters

string
required
A unique external user identifier
string
User’s display name
string
User’s handle/username
string
URL to the user’s avatar image
string
User bio or description
string
JSON string of additional user metadata
string
JSON string of secure metadata (not returned in response)

Response

object
The user object
boolean
Whether the user was created during this request
boolean
Whether the user was updated during this request

Error Responses


Notes

  • This endpoint is useful when managing users from external systems.
  • secureMetadata is accepted and used for updates, but never returned.
  • The response includes created and updated flags to indicate what occurred.