Organization Members
Organization Members
GET /api/v1/organizations/{id}/members
Get Org Members
getOrgMembers returns all members and pending invites of an organization
Parameters
| Name | In | Type | Required |
|---|---|---|---|
id | path | string | true |
Response
Type: []MemberResponse
Example
curl -X GET \
-H "Authorization: Bearer <token>" \
https://api.seeme.ai/api/v1/organizations/{id}/membersPOST /api/v1/organizations/{id}/members
Create invite To Org
inviteToOrg invites a user to an organization
Parameters
| Name | In | Type | Required |
|---|---|---|---|
id | path | string | true |
Request Body
Type: InviteToOrgRequest
| Field | Type | Description |
|---|---|---|
email | string | |
role_id | string |
Response
Type: OrgInvite
| Field | Type | Description |
|---|---|---|
id | uuid.UUID | |
created_at | time.Time | |
updated_at | time.Time | |
organization_id | string | |
email | string | |
role_id | string | |
role | Role | (optional) |
invited_by | string | |
token | string | |
expires_at | time.Time | |
accepted_at | time.Time |
Example
curl -X POST \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{}' \
https://api.seeme.ai/api/v1/organizations/{id}/membersDELETE /api/v1/organizations/{id}/members/{member_id}
Delete remove Org Member
removeOrgMember removes a member or cancels a pending invite from an organization
Parameters
| Name | In | Type | Required |
|---|---|---|---|
id | path | string | true |
member_id | path | string | true |
Example
curl -X DELETE \
-H "Authorization: Bearer <token>" \
https://api.seeme.ai/api/v1/organizations/{id}/members/{member_id}PUT /api/v1/organizations/{id}/members/{member_id}/role
Update Org Member Role
updateOrgMemberRole updates a member’s role in an organization
Parameters
| Name | In | Type | Required |
|---|---|---|---|
id | path | string | true |
member_id | path | string | true |
Request Body
Type: struct{}
Response
Type: OrgMember
| Field | Type | Description |
|---|---|---|
id | uuid.UUID | |
created_at | time.Time | |
updated_at | time.Time | |
organization_id | string | |
user_id | string | |
role_id | string | References Role table |
invited_by | string | |
invited_at | time.Time | |
accepted_at | time.Time | |
user | User | Computed/joined fields (optional) |
organization | Organization | (optional) |
role | Role | (optional) |
Example
curl -X PUT \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{}' \
https://api.seeme.ai/api/v1/organizations/{id}/members/{member_id}/role