Get list of spaces

Hi,

Is there a way to list spaces that I have access to using either and HTTP call or the websockets API?

Thanks!

There isn’t an official API endpoint for this yet sorry!

You are doing a lot already! Thanks!

1 Like

@npfoss allow me to correct you Sir. :slight_smile:

@francescortiz this is how I use to list all my spaces via API

GET HTTP API
https://api.gather.town/api/v2/users/me/spaces?role=Builder
HEADER:
apiKey

Does the job

EDIT:

Corrected HTTP Api Endpoint

Hi @KiliZ,

The spaces returned by this API call look like space templates to create, not the list of spaces that you have access to. You can clearly recognize them because the spaces that you have access to have a structure like this:

XXXXXXXXXXXXXX\space-name

Do you know about it?

Thanks!

Hi @francescortiz,

sorry my bad, I did a copypasta mistake. You are totally right.

This is the API Endpoint you were looking for. Enjoy!:
https://api.gather.town/api/v2/users/me/spaces?role=Builder

If you need further assistance or insights, Im happy to coach you on this, Ive builded scenarios with this and other API Endpoints using Zapier (and make.com). Happy to share my experience with you.
Meet Kilian - Gather.Town Coaching and Consulting. Meet the Gather.Town Expert | TidyCal

I can show you some other endpoints that also allow you to get some more advanced infos about individual spaces. (such as playercount an other admin details)

EDIT: Added the API Endpoint

Hey, the API endpoint is missing :slight_smile:

here we go @francescortiz

https://api.gather.town/api/v2/users/me/spaces?role=Builder

Awesome, thanks! I cannot try now, but I will try ASAP!

Godspeed with it, shoot me a dm or schedule a session with me here if you like to learn all expert knowledge about gathers api:
Meet Kilian - Consulting | TidyCal

It the call works perfectly! Thank you! I will keep your sessions in mind!

1 Like