Fetch a member's peer-visible profile attributes
curl --request GET \
--url https://api.member.dev/api/v1/hubs/{hub_id}/members/{contact_id}/profile-attributes \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.member.dev/api/v1/hubs/{hub_id}/members/{contact_id}/profile-attributes"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.member.dev/api/v1/hubs/{hub_id}/members/{contact_id}/profile-attributes', 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.member.dev/api/v1/hubs/{hub_id}/members/{contact_id}/profile-attributes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.member.dev/api/v1/hubs/{hub_id}/members/{contact_id}/profile-attributes"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.member.dev/api/v1/hubs/{hub_id}/members/{contact_id}/profile-attributes")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.member.dev/api/v1/hubs/{hub_id}/members/{contact_id}/profile-attributes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"attributes": {
"created_at": "2023-11-07T05:31:56Z",
"definition_id": "<string>",
"hub_id": "<string>",
"is_in_onboarding": true,
"is_in_profile": true,
"is_read_only": true,
"is_required": true,
"is_searchable": true,
"position": 123,
"updated_at": "2023-11-07T05:31:56Z"
},
"id": "<string>",
"type": "contact_attribute_hub_configs"
}
],
"included": [
{
"attributes": {
"created_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"is_contact_editable": true,
"name": "<string>",
"position": 123,
"slug": "<string>",
"team_id": "<string>",
"type": "text",
"updated_at": "2023-11-07T05:31:56Z"
},
"id": "<string>",
"links": {
"self": "<string>"
},
"type": "contact_attribute_definitions"
}
],
"meta": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}community-directory
Fetch a member's peer-visible profile attributes
Return the target member’s profile-visible attributes as a JSON:API compound document (same shape as the /me/profile-attributes editor read).
Visibility mirrors GET //members/ exactly:
- 401 without a contact JWT; 403 for a banned viewer.
- 404 for unknown hub, a target who has left / has no membership row, hidden profile (non-elevated, non-owner viewer), or missing team_contact — plausible deniability.
- The profile owner always bypasses hide_profile for their own profile; a hard-banned self is blocked earlier by the viewer-ban gate (403) and never reaches this bypass.
- Elevated viewers (owner/admin/moderator) bypass hide_profile for another member’s profile, including active/banned/soft-banned targets.
Only hub configs with is_in_profile=True are returned; soft-deleted definitions are excluded along with their configs (no dangling refs).
GET
/
api
/
v1
/
hubs
/
{hub_id}
/
members
/
{contact_id}
/
profile-attributes
Fetch a member's peer-visible profile attributes
curl --request GET \
--url https://api.member.dev/api/v1/hubs/{hub_id}/members/{contact_id}/profile-attributes \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.member.dev/api/v1/hubs/{hub_id}/members/{contact_id}/profile-attributes"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.member.dev/api/v1/hubs/{hub_id}/members/{contact_id}/profile-attributes', 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.member.dev/api/v1/hubs/{hub_id}/members/{contact_id}/profile-attributes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.member.dev/api/v1/hubs/{hub_id}/members/{contact_id}/profile-attributes"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.member.dev/api/v1/hubs/{hub_id}/members/{contact_id}/profile-attributes")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.member.dev/api/v1/hubs/{hub_id}/members/{contact_id}/profile-attributes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"attributes": {
"created_at": "2023-11-07T05:31:56Z",
"definition_id": "<string>",
"hub_id": "<string>",
"is_in_onboarding": true,
"is_in_profile": true,
"is_read_only": true,
"is_required": true,
"is_searchable": true,
"position": 123,
"updated_at": "2023-11-07T05:31:56Z"
},
"id": "<string>",
"type": "contact_attribute_hub_configs"
}
],
"included": [
{
"attributes": {
"created_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"is_contact_editable": true,
"name": "<string>",
"position": 123,
"slug": "<string>",
"team_id": "<string>",
"type": "text",
"updated_at": "2023-11-07T05:31:56Z"
},
"id": "<string>",
"links": {
"self": "<string>"
},
"type": "contact_attribute_definitions"
}
],
"meta": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.