curl -X GET "https://api.usegately.com/api/v1/members/mem_abc123" \
-H "Authorization: Bearer YOUR_API_KEY"
const response = await fetch('https://api.usegately.com/api/v1/members/mem_abc123', {
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
})
const data = await response.json()
{
"success": true,
"data": {
"id": "mem_abc123",
"email": "john@example.com",
"full_name": "John Doe",
"avatar_url": "https://example.com/avatar.jpg",
"status": "active",
"plan_id": "plan_pro",
"plan": {
"id": "plan_pro",
"name": "Pro Plan",
"price": 29
},
"metadata": {
"company": "Acme Inc",
"role": "developer"
},
"last_login_at": "2024-01-20T14:30:00Z",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-20T14:30:00Z"
}
}
{
"success": false,
"error": "Member not found",
"code": "NOT_FOUND"
}
Members
Get Member
Retrieve a single member by ID
GET
/
api
/
v1
/
members
/
{id}
curl -X GET "https://api.usegately.com/api/v1/members/mem_abc123" \
-H "Authorization: Bearer YOUR_API_KEY"
const response = await fetch('https://api.usegately.com/api/v1/members/mem_abc123', {
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
})
const data = await response.json()
{
"success": true,
"data": {
"id": "mem_abc123",
"email": "john@example.com",
"full_name": "John Doe",
"avatar_url": "https://example.com/avatar.jpg",
"status": "active",
"plan_id": "plan_pro",
"plan": {
"id": "plan_pro",
"name": "Pro Plan",
"price": 29
},
"metadata": {
"company": "Acme Inc",
"role": "developer"
},
"last_login_at": "2024-01-20T14:30:00Z",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-20T14:30:00Z"
}
}
{
"success": false,
"error": "Member not found",
"code": "NOT_FOUND"
}
Path Parameters
string
required
The member’s unique identifier
Response
boolean
Whether the request was successful
object
The member object
Show Member properties
Show Member properties
string
Unique member identifier
string
Member’s email address
string
Member’s full name
string
URL to member’s avatar
string
Member status:
active, inactive, pendingstring
Associated plan ID
object
Plan details (if expanded)
object
Custom metadata
string
ISO 8601 timestamp of last login
string
ISO 8601 timestamp of creation
string
ISO 8601 timestamp of last update
curl -X GET "https://api.usegately.com/api/v1/members/mem_abc123" \
-H "Authorization: Bearer YOUR_API_KEY"
const response = await fetch('https://api.usegately.com/api/v1/members/mem_abc123', {
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
})
const data = await response.json()
{
"success": true,
"data": {
"id": "mem_abc123",
"email": "john@example.com",
"full_name": "John Doe",
"avatar_url": "https://example.com/avatar.jpg",
"status": "active",
"plan_id": "plan_pro",
"plan": {
"id": "plan_pro",
"name": "Pro Plan",
"price": 29
},
"metadata": {
"company": "Acme Inc",
"role": "developer"
},
"last_login_at": "2024-01-20T14:30:00Z",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-20T14:30:00Z"
}
}
{
"success": false,
"error": "Member not found",
"code": "NOT_FOUND"
}
Was this page helpful?
⌘I