Fetch User by Foreign ID
User Endpoints
Fetch User by Foreign ID
Look up a user by your own system’s external user ID
GET
Fetch User by Foreign ID
Finds a user within the project by theirDocumentation Index
Fetch the complete documentation index at: https://docs.replyke.com/llms.txt
Use this file to discover all available pages before exploring further.
foreignId — the external identifier you provided when creating or syncing the user. Optionally creates the user if not found (requires service or master token).
Query Parameters
The external identifier from your system.
Comma-separated list of associations to include. Pass
"files" to include
the processed avatarFile and bannerFile objects.Set to
"true" to create the user if they do not exist. Requires a service
or master token. Returns 201 on creation, 200 on an existing user.Display name to set when creating the user (
createIfNotFound only).Username to assign when creating the user (
createIfNotFound only).Avatar URL to set when creating the user (
createIfNotFound only).Bio text to set when creating the user (
createIfNotFound only).JSON-encoded public metadata to set when creating the user
(
createIfNotFound only).JSON-encoded private metadata to set when creating the user
(
createIfNotFound only).Response
Returns HTTP200 (found) or 201 (created) with the user object:
Unique user ID (UUID).
The foreign ID you provided.
Project this user belongs to.
Display name.
Unique username within the project.
Avatar image URL.
Short bio text.
Public custom key-value data.
Reputation score.
Processed avatar image with variants. Only present when
include=files is
requested.Processed banner image with variants. Only present when
include=files is
requested.ISO timestamp of account creation.
createIfNotFound=true is only permitted with a service or master
token. Client tokens receive a 404 if the user does not exist.Error Responses
User Not Found — 404
User Not Found — 404
Invalid Query — 400
Invalid Query — 400

