Members
Manage organization members and invitations.
Members
Manage who has access to your organization and individual workspaces. Invite new members by email, manage roles, and control workspace-level access.
Organization Members
/api/v1/membersList all members of your organization.
Response
{
"members": [
{
"id": "m1a2b3c4-d5e6-7890-abcd-ef1234567890",
"organizationId": "550e8400-e29b-41d4-a716-446655440000",
"userId": "user123",
"role": "owner",
"userName": "Jane Smith",
"userEmail": "[email protected]",
"userImage": null,
"createdAt": "2025-01-15T10:30:00.000Z"
}
],
"total": 1
}Example
curl https://api.weavz.io/api/v1/members \
-H "Authorization: Bearer wvz_your_api_key"Invitations
/api/v1/members/inviteInvite a new member to your organization by email. The invited user will receive an email with a link to accept the invitation. Invitations expire after 7 days.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
email | string | Yes | Email address to invite |
role | string | No | admin or member (default: member) |
Response
{
"invitation": {
"id": "inv-abc123",
"email": "[email protected]",
"organizationId": "550e8400-e29b-41d4-a716-446655440000",
"role": "member",
"status": "pending",
"expiresAt": "2025-01-23T14:00:00.000Z",
"createdAt": "2025-01-16T14:00:00.000Z"
}
}Example
curl -X POST https://api.weavz.io/api/v1/members/invite \
-H "Authorization: Bearer wvz_your_api_key" \
-H "Content-Type: application/json" \
-d '{"email": "[email protected]", "role": "admin"}'Errors
| Status | Code | Description |
|---|---|---|
400 | VALIDATION_ERROR | Invalid email address |
403 | QUOTA_EXCEEDED | Member limit reached for your plan |
409 | DUPLICATE | User is already a member or has a pending invitation |
/api/v1/members/invitationsList all pending invitations for your organization.
Response
{
"invitations": [
{
"id": "inv-abc123",
"email": "[email protected]",
"organizationId": "550e8400-e29b-41d4-a716-446655440000",
"role": "member",
"status": "pending",
"expiresAt": "2025-01-23T14:00:00.000Z",
"createdAt": "2025-01-16T14:00:00.000Z"
}
]
}Example
curl https://api.weavz.io/api/v1/members/invitations \
-H "Authorization: Bearer wvz_your_api_key"/api/v1/members/invitations/:invitationIdRevoke a pending invitation.
Path Parameters
| Field | Type | Description |
|---|---|---|
invitationId | string | Invitation ID |
Response
{
"deleted": true,
"id": "inv-abc123"
}Example
curl -X DELETE https://api.weavz.io/api/v1/members/invitations/inv-abc123 \
-H "Authorization: Bearer wvz_your_api_key"Errors
| Status | Code | Description |
|---|---|---|
404 | NOT_FOUND | Invitation not found |
/api/v1/members/invitations/:invitationId/acceptAccept an invitation to join an organization. The authenticated user must match the invited email address.
Path Parameters
| Field | Type | Description |
|---|---|---|
invitationId | string | Invitation ID |
Response
{
"member": {
"id": "m1a2b3c4-d5e6-7890-abcd-ef1234567890",
"organizationId": "550e8400-e29b-41d4-a716-446655440000",
"userId": "user456",
"role": "member",
"createdAt": "2025-01-16T14:00:00.000Z"
}
}Example
curl -X POST https://api.weavz.io/api/v1/members/invitations/inv-abc123/accept \
-H "Authorization: Bearer wvz_your_api_key"Errors
| Status | Code | Description |
|---|---|---|
403 | FORBIDDEN | Authenticated user's email does not match invitation |
404 | NOT_FOUND | Invitation not found or already accepted |
400 | EXPIRED | Invitation has expired |
409 | DUPLICATE | Already a member of this organization |
Manage Members
/api/v1/members/:idUpdate a member's role.
Path Parameters
| Field | Type | Description |
|---|---|---|
id | string | Member ID |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
role | string | Yes | owner, admin, or member |
Response
{
"member": {
"id": "m1a2b3c4-d5e6-7890-abcd-ef1234567890",
"organizationId": "550e8400-e29b-41d4-a716-446655440000",
"userId": "user456",
"role": "admin",
"createdAt": "2025-01-16T14:00:00.000Z"
}
}Example
curl -X PATCH https://api.weavz.io/api/v1/members/m1a2b3c4-d5e6-7890-abcd-ef1234567890 \
-H "Authorization: Bearer wvz_your_api_key" \
-H "Content-Type: application/json" \
-d '{"role": "admin"}'Errors
| Status | Code | Description |
|---|---|---|
400 | VALIDATION_ERROR | Invalid role (must be owner, admin, or member) |
404 | NOT_FOUND | Member not found |
/api/v1/members/:idRemove a member from your organization.
Path Parameters
| Field | Type | Description |
|---|---|---|
id | string | Member ID |
Response
{
"deleted": true,
"id": "m1a2b3c4-d5e6-7890-abcd-ef1234567890"
}Example
curl -X DELETE https://api.weavz.io/api/v1/members/m1a2b3c4-d5e6-7890-abcd-ef1234567890 \
-H "Authorization: Bearer wvz_your_api_key"Errors
| Status | Code | Description |
|---|---|---|
404 | NOT_FOUND | Member not found |
Workspace Members
/api/v1/workspace-membersAdd an organization member to a workspace.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
workspaceId | string (uuid) | Yes | Workspace ID |
memberId | string | Yes | Organization member ID |
role | string | No | admin or member (default: member) |
Response (201)
{
"projectMember": {
"id": "pm1a2b3c-d5e6-7890-abcd-ef1234567890",
"workspaceId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"memberId": "m1a2b3c4-d5e6-7890-abcd-ef1234567890",
"role": "member",
"createdAt": "2025-01-16T14:00:00.000Z"
}
}Example
curl -X POST https://api.weavz.io/api/v1/workspace-members \
-H "Authorization: Bearer wvz_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"workspaceId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"memberId": "m1a2b3c4-d5e6-7890-abcd-ef1234567890",
"role": "member"
}'Errors
| Status | Code | Description |
|---|---|---|
400 | VALIDATION_ERROR | Missing required fields |
409 | DUPLICATE | Member is already in this workspace |
/api/v1/workspace-members/:idRemove a member from a workspace.
Path Parameters
| Field | Type | Description |
|---|---|---|
id | string (uuid) | Workspace member ID |
Response
{
"deleted": true,
"id": "pm1a2b3c-d5e6-7890-abcd-ef1234567890"
}Example
curl -X DELETE https://api.weavz.io/api/v1/workspace-members/pm1a2b3c-d5e6-7890-abcd-ef1234567890 \
-H "Authorization: Bearer wvz_your_api_key"Errors
| Status | Code | Description |
|---|---|---|
404 | NOT_FOUND | Workspace member not found |