Skip to content

well-known

this will be changed/updated, and needs docs for the newer version

Instance owners may host a /.well-known/spacebar file on a domain containing the instance's API endpoint for Spacebar instance discovery.

Users can enter a domain, e.g. melodychat.org as shorthand, and their client will query https://melodychat.org/.well-known/spacebar for the instance API URL, and from there the Gateway and CDN endpoints.

For example:

{
    "api": "https://api.harmony.melodychat.org/"
}
location /.well-known/spacebar {
    add_header Access-Control-Allow-Origin *;
    return 200 '{"api": "https://api.harmony.melodychat.org/api/v9"}';
}