foreignId
. If no user exists, creates a new one. Also updates existing users if provided data differs.
Query Parameters
A unique external user identifier
User’s display name
User’s handle/username
URL to the user’s avatar image
User bio or description
JSON string of additional user metadata
JSON string of secure metadata (not returned in response)
Response
The user object
Whether the user was created during this request
Whether the user was updated during this request
Error Responses
Missing or Invalid Foreign ID - 400 Bad Request
Missing or Invalid Foreign ID - 400 Bad Request
Server Error - 500 Internal Server Error
Server Error - 500 Internal Server Error
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
andupdated
flags to indicate what occurred.