<aside> ⚠️ WARNING: This API and the map data format are in beta, and are still changing. We will try to send out a heads up via the forum before making any breaking changes.
</aside>
Generate an API key for yourself at https://gather.town/apiKeys — you’ll need it for all of the following.
Also, you must have Admin or Builder permissions on the space you’re trying to modify.
<aside>
⚠️ NOTE: forward slashes in spaceId
need to be replaced by backslashes (e.g. dkj63wrer8/spaceName
becomes dkj63wrer8\\spaceName
)
(also see: ⚠️ \\
and URL encodings)
</aside>
For creating new spaces, which always starts by copying a template space
Body
name
: Name of space you want to createsourceSpace
: spaceId
of the space to copy maps out ofreason
(optional): determines which usecase-specific features are enabled, e.g. "Coworkers / remote team"
for remote work features.Headers
apiKey
: Your API keyaxios.post(
"<https://api.gather.town/api/v2/spaces>",
{
sourceSpace: SPACE_ID,
name: "my new space",
},
{
headers: {
apiKey: API_KEY,
},
}
)