Identity
The Identity operations of the Hub REST API (3 operations).
Generated from Synap-core/backend main at 24fabe7, which can be newer than the stable release self-hosters install.
bearerAuthAuthorizationBearer <API key>Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.
discordUserId*string1 <= lengthLink status
application/json- response
linked*booleansynapUserId?stringdisplayName?stringcurl -X GET 'https://pod.example.com/api/hub/discord/identity?discordUserId=string'{ "linked": true, "synapUserId": "string", "displayName": "string"}bearerAuthAuthorizationBearer <API key>Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.
workspaceId?stringuuidLinkable members
application/json- response
members*array<>curl -X GET 'https://pod.example.com/api/hub/discord/identity/members'{ "members": [ { "userId": "string", "name": "string" } ]}bearerAuthAuthorizationBearer <API key>Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.
application/json- body
discordUserId*string1 <= lengthmode*string"existing""new"targetUserId?stringuuiddisplayName?string1 <= length <= 200workspaceId?stringuuidLinked
application/json- response
linked*truetruesynapUserId*stringcreated*booleancurl -X POST 'https://pod.example.com/api/hub/discord/identity/link' \ -H 'Content-Type: application/json' \ -d '{ "discordUserId": "string", "mode": "existing"}'{ "linked": true, "synapUserId": "string", "created": true}