Lookup user's home server
POST
/api/federation/users/lookup
const url = 'http://localhost:3001/api/federation/users/lookup';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"address":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3001/api/federation/users/lookup \ --header 'Content-Type: application/json' \ --data '{ "address": "example" }'Finds the home server for a federated user address
Request Bodyrequired
Section titled “Request Bodyrequired”User address to lookup
Media typeapplication/json
object
address
string
Examplegenerated
{ "address": "example"}Responses
Section titled “Responses”OK
Media typeapplication/json
object
key
additional properties
any
Examplegenerated
{}Bad Request
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}Not Found
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}