Team Members API
Interfaces to manage team members
Team members are users who have access to campaigns in a team. We support read-only users, team members, and org admins.
V1 API Only
Add Team Member
Add a new user to one or more teams. If the user already exists, they will be added to the specified teams.
curl -X POST 'https://api.supersend.io/v1/team/member' \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"firstName": "John",
"lastName": "Doe",
"email": "john@example.com",
"TeamId": "team-uuid",
"role": "org_admin",
"sendEmail": true,
"team_x_users": [
{
"TeamId": "team-uuid",
"name": "Sales Team"
},
{
"TeamId": "team-uuid-2",
"name": "Marketing Team"
}
]
}'# Response (200 OK)
{
"success": true,
"user": {
"id": "user-uuid",
"firstName": "John",
"lastName": "Doe",
"email": "john@example.com",
"role": "org_admin",
...
},
"inviteToken": "jwt-token-here"
}
Request Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
firstName | string | Yes | User's first name |
lastName | string | Yes | User's last name |
email | string | Yes | User's email address (must be valid email format) |
TeamId | string | Yes | Primary team ID |
role | string | No | User role: org_admin (default), read_only, or team_member |
sendEmail | boolean | No | Send invitation email (default: false) |
team_x_users | array | No | Array of teams to add user to. Each object should have TeamId and optionally name |
Note:
sendEmail is true, an invitation email is sent with login credentialsGet Team Members
Get all members of a team with filtering and pagination.
curl -X GET 700 dark:text-green-400">'https://api.supersend.io/v1/team/members?id=team-uuid&limit=20&offset=0&name=john&filters=[{"field":"role","value":"org_admin"}]&orderBy={"title":"firstName"}&orderDirection=ASC' \
-H "Authorization: Bearer YOUR_API_KEY"# Response (200 OK)
{
"success": true,
"team": [
{
"id": "team-x-user-uuid",
"TeamId": "team-uuid",
"UserId": "user-uuid",
"Team": {...},
"User": {
"id": "user-uuid",
"firstName": "John",
"lastName": "Doe",
"email": "john@example.com",
"role": "org_admin",
...
}
}
],
"limit": 20,
"offset": 0,
"count": 5
}
Query Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Team ID |
name | string | No | Search by user name |
limit | number | No | Results per page (default: 10) |
offset | number | No | Pagination offset (default: 0) |
page | number | No | Page number (zero-indexed, default: 0) |
pageSize | number | No | Page size (default: 10) |
filters | string | No | JSON string array of filter objects: [{"field":"role","value":"org_admin"}] |
orderBy | string | No | JSON object: {"title":"firstName"} |
orderDirection | string | No | Sort direction: ASC or DESC |
Get Team Member
Get a specific team member by user ID.
curl -X GET 'https://api.supersend.io/v1/team/member/user-uuid?TeamId=team-uuid' \
-H "Authorization: Bearer YOUR_API_KEY"# Response (200 OK)
{
"success": true,
"user": {
"id": "user-uuid",
"firstName": "John",
"lastName": "Doe",
"email": "john@example.com",
"role": "org_admin",
...
}
}
Query Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
TeamId | string | Yes | Team ID |
Update Team Member
Update a team member's details, role, or team associations.
curl -X PUT 'https://api.supersend.io/v1/team/member' \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "user-uuid",
"firstName": "Jane",
"lastName": "Smith",
"email": "jane@example.com",
"role": "read_only",
"TeamId": "team-uuid",
"tags": ["sales", "manager"],
"team_x_users": [
{
"TeamId": "team-uuid",
"name": "Sales Team"
},
{
"TeamId": "team-uuid-2",
"name": "Marketing Team"
}
]
}'# Response (200 OK)
{
"success": true
}
Request Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | User ID to update |
TeamId | string | Yes | Primary team ID |
firstName | string | No | User's first name |
lastName | string | No | User's last name |
email | string | No | User's email address |
role | string | No | User role: org_admin, team_member, or read_only |
tags | array | No | Array of tag strings |
team_x_users | array | No | Array of teams user should belong to. User will be removed from teams not in this list |
Note:
org_admin users can update team membersorg_adminteam_x_users will add/remove user from teams accordinglyUser Roles
| Role | Description | Permissions |
|---|---|---|
org_admin | Organization administrator | Full access to all features |
team_member | Team member | Can perform most actions except admin functions |
read_only | Read-only user | Can only view data, cannot make changes |