Headers
Bearer token for authentication
Query Parameters
Filter memberships by person ID
Page number
Required range:
x >= 1
Number of items per page
Required range:
1 <= x <= 100
curl --request GET \
--url https://api.wellapp.ai/v1/memberships \
--header 'Authorization: <authorization>'
{
"data": [
{
"type": "memberships",
"id": "550e8400-e29b-41d4-a716-446655440007",
"attributes": {
"role": "member",
"created_at": "2024-01-20T10:30:00Z",
"updated_at": "2024-01-20T10:30:00Z"
},
"relationships": {
"workspace": {
"data": {
"type": "workspace",
"id": "550e8400-e29b-41d4-a716-446655440003"
}
},
"person": {
"data": {
"type": "people",
"id": "550e8400-e29b-41d4-a716-446655440000"
}
}
}
}
],
"included": [
{
"type": "workspace",
"id": "550e8400-e29b-41d4-a716-446655440003",
"attributes": {
"name": "Marketing Team Workspace",
"description": "Collaborative workspace for the marketing team to manage campaigns and content",
"avatar_color": "#FF5733",
"external_workspace_id": "mkt-workspace-001",
"auto_extract_enabled": false,
"created_at": "2024-01-05T08:00:00Z",
"updated_at": "2024-01-18T12:15:00Z"
}
},
{
"type": "people",
"id": "550e8400-e29b-41d4-a716-446655440000",
"attributes": {
"first_name": "Sarah",
"last_name": "Johnson",
"full_name": "Sarah Johnson",
"created_at": "2024-01-10T09:00:00Z",
"updated_at": "2024-01-10T09:00:00Z"
}
}
],
"meta": {
"total": 1,
"page": 1,
"limit": 20,
"total_pages": 1
}
}
Retrieve memberships with optional filtering by person
curl --request GET \
--url https://api.wellapp.ai/v1/memberships \
--header 'Authorization: <authorization>'
{
"data": [
{
"type": "memberships",
"id": "550e8400-e29b-41d4-a716-446655440007",
"attributes": {
"role": "member",
"created_at": "2024-01-20T10:30:00Z",
"updated_at": "2024-01-20T10:30:00Z"
},
"relationships": {
"workspace": {
"data": {
"type": "workspace",
"id": "550e8400-e29b-41d4-a716-446655440003"
}
},
"person": {
"data": {
"type": "people",
"id": "550e8400-e29b-41d4-a716-446655440000"
}
}
}
}
],
"included": [
{
"type": "workspace",
"id": "550e8400-e29b-41d4-a716-446655440003",
"attributes": {
"name": "Marketing Team Workspace",
"description": "Collaborative workspace for the marketing team to manage campaigns and content",
"avatar_color": "#FF5733",
"external_workspace_id": "mkt-workspace-001",
"auto_extract_enabled": false,
"created_at": "2024-01-05T08:00:00Z",
"updated_at": "2024-01-18T12:15:00Z"
}
},
{
"type": "people",
"id": "550e8400-e29b-41d4-a716-446655440000",
"attributes": {
"first_name": "Sarah",
"last_name": "Johnson",
"full_name": "Sarah Johnson",
"created_at": "2024-01-10T09:00:00Z",
"updated_at": "2024-01-10T09:00:00Z"
}
}
],
"meta": {
"total": 1,
"page": 1,
"limit": 20,
"total_pages": 1
}
}
Bearer token for authentication
Filter memberships by person ID
Page number
x >= 1
Number of items per page
1 <= x <= 100