Fetch User Spaces
curl --request GET \
--url https://api.replyke.com/api/v6/:projectId/api/v7/spaces/user-spacesimport requests
url = "https://api.replyke.com/api/v6/:projectId/api/v7/spaces/user-spaces"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.replyke.com/api/v6/:projectId/api/v7/spaces/user-spaces', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.replyke.com/api/v6/:projectId/api/v7/spaces/user-spaces",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.replyke.com/api/v6/:projectId/api/v7/spaces/user-spaces"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.replyke.com/api/v6/:projectId/api/v7/spaces/user-spaces")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.replyke.com/api/v6/:projectId/api/v7/spaces/user-spaces")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"membershipId": "<string>",
"role": "<string>",
"status": "<string>",
"joinedAt": "<string>"
}
],
"pagination": {}
}Space Endpoints
Fetch User Spaces
Get spaces the authenticated user is a member of
GET
/
:projectId
/
api
/
v7
/
spaces
/
user-spaces
Fetch User Spaces
curl --request GET \
--url https://api.replyke.com/api/v6/:projectId/api/v7/spaces/user-spacesimport requests
url = "https://api.replyke.com/api/v6/:projectId/api/v7/spaces/user-spaces"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.replyke.com/api/v6/:projectId/api/v7/spaces/user-spaces', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.replyke.com/api/v6/:projectId/api/v7/spaces/user-spaces",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.replyke.com/api/v6/:projectId/api/v7/spaces/user-spaces"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.replyke.com/api/v6/:projectId/api/v7/spaces/user-spaces")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.replyke.com/api/v6/:projectId/api/v7/spaces/user-spaces")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"membershipId": "<string>",
"role": "<string>",
"status": "<string>",
"joinedAt": "<string>"
}
],
"pagination": {}
}Returns a paginated list of spaces where the authenticated user has an active membership, along with their membership details for each space.
See also: useFetchUserSpaces
Query Parameters
number
Page number. Defaults to
1.number
Results per page. Max
100.string
Filter by role. Single value (
"admin", "moderator", "member") or comma-separated list (e.g. "admin,moderator").string
Optional comma-separated includes. Pass
"files" to include avatar and banner file objects on each space.string
Pass
"true" to return all memberships without pagination. When used, the response omits the pagination field.Response
UserSpaceItem[]
object
Standard pagination metadata.

