cURL
curl --request GET \
--url 'https://postsyncer.com/api/v1/team-members?workspace_id=12' \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://postsyncer.com/api/v1/team-members?workspace_id=12', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://postsyncer.com/api/v1/team-members?workspace_id=12"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://postsyncer.com/api/v1/team-members?workspace_id=12",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"data": [
{
"id": 58,
"workspace_id": 12,
"name": "mara",
"email": "mara@haldencoffee.com",
"avatar_url": "https://ui-avatars.com/api/?name=mara&color=FFFFFF&background=6366F1",
"role": {
"name": "APP_CONTENT_CREATOR",
"label": "Content Creator",
"description": "Can create and edit posts, products, campaigns, labels, snippets, comments, and manage media library. Can view analytics and calendar. Has view access to accounts but cannot manage them. Posts require approval before publishing.",
"has_approval_permission": false,
"has_publishing_permission": false
},
"is_active": false
},
{
"id": 41,
"workspace_id": 12,
"name": "Tom Okafor",
"email": "tom@haldencoffee.com",
"avatar_url": "https://ui-avatars.com/api/?name=Tom+Okafor&color=FFFFFF&background=6366F1",
"role": {
"name": "APP_MANAGER",
"label": "Manager",
"description": "Can manage team members, accounts, contacts, and workspace settings. Has full access to create, edit, delete, and publish posts, products, campaigns, labels, snippets, comments, and media library. Can view analytics and calendar. Cannot access billing or create new workspaces.",
"has_approval_permission": true,
"has_publishing_permission": true
},
"is_active": true
},
{
"id": 7,
"workspace_id": 12,
"name": "Lena Halden",
"email": "lena@haldencoffee.com",
"avatar_url": "https://ui-avatars.com/api/?name=Lena+Halden&color=FFFFFF&background=6366F1",
"role": {
"name": "APP_OWNER",
"label": "Owner",
"description": "Has full control over the workspace including billing, team management, and all workspace settings. Can create, edit, and delete all content, accounts, contacts, products, campaigns, labels, snippets, comments, and manage the media library. Has access to analytics and calendar. Can create additional workspaces.",
"has_approval_permission": true,
"has_publishing_permission": true
},
"is_active": true
}
],
"roles": [
{
"name": "APP_MANAGER",
"label": "Manager",
"description": "Can manage team members, accounts, contacts, and workspace settings. Has full access to create, edit, delete, and publish posts, products, campaigns, labels, snippets, comments, and media library. Can view analytics and calendar. Cannot access billing or create new workspaces.",
"has_approval_permission": true,
"has_publishing_permission": true
},
{
"name": "APP_CONTENT_MANAGER",
"label": "Content Manager",
"description": "Can create, edit, and publish posts, products, campaigns, labels, snippets, comments, and manage media library. Can view analytics and calendar. Has view access to accounts but cannot manage them. Can approve posts from content creators.",
"has_approval_permission": true,
"has_publishing_permission": true
},
{
"name": "APP_CONTENT_CREATOR",
"label": "Content Creator",
"description": "Can create and edit posts, products, campaigns, labels, snippets, comments, and manage media library. Can view analytics and calendar. Has view access to accounts but cannot manage them. Posts require approval before publishing.",
"has_approval_permission": false,
"has_publishing_permission": false
},
{
"name": "APP_CLIENT",
"label": "Client",
"description": "Has view-only access to posts, products, campaigns, labels, snippets, comments, analytics, and calendar. Can approve posts but cannot create, edit, or publish content. Cannot access team management, accounts, contacts, or workspace settings.",
"has_approval_permission": true,
"has_publishing_permission": false
}
]
}Team
List team members
List a workspace’s teammates, the people invited who haven’t accepted yet, and the roles they can have.
GET
/
team-members
cURL
curl --request GET \
--url 'https://postsyncer.com/api/v1/team-members?workspace_id=12' \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://postsyncer.com/api/v1/team-members?workspace_id=12', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://postsyncer.com/api/v1/team-members?workspace_id=12"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://postsyncer.com/api/v1/team-members?workspace_id=12",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"data": [
{
"id": 58,
"workspace_id": 12,
"name": "mara",
"email": "mara@haldencoffee.com",
"avatar_url": "https://ui-avatars.com/api/?name=mara&color=FFFFFF&background=6366F1",
"role": {
"name": "APP_CONTENT_CREATOR",
"label": "Content Creator",
"description": "Can create and edit posts, products, campaigns, labels, snippets, comments, and manage media library. Can view analytics and calendar. Has view access to accounts but cannot manage them. Posts require approval before publishing.",
"has_approval_permission": false,
"has_publishing_permission": false
},
"is_active": false
},
{
"id": 41,
"workspace_id": 12,
"name": "Tom Okafor",
"email": "tom@haldencoffee.com",
"avatar_url": "https://ui-avatars.com/api/?name=Tom+Okafor&color=FFFFFF&background=6366F1",
"role": {
"name": "APP_MANAGER",
"label": "Manager",
"description": "Can manage team members, accounts, contacts, and workspace settings. Has full access to create, edit, delete, and publish posts, products, campaigns, labels, snippets, comments, and media library. Can view analytics and calendar. Cannot access billing or create new workspaces.",
"has_approval_permission": true,
"has_publishing_permission": true
},
"is_active": true
},
{
"id": 7,
"workspace_id": 12,
"name": "Lena Halden",
"email": "lena@haldencoffee.com",
"avatar_url": "https://ui-avatars.com/api/?name=Lena+Halden&color=FFFFFF&background=6366F1",
"role": {
"name": "APP_OWNER",
"label": "Owner",
"description": "Has full control over the workspace including billing, team management, and all workspace settings. Can create, edit, and delete all content, accounts, contacts, products, campaigns, labels, snippets, comments, and manage the media library. Has access to analytics and calendar. Can create additional workspaces.",
"has_approval_permission": true,
"has_publishing_permission": true
},
"is_active": true
}
],
"roles": [
{
"name": "APP_MANAGER",
"label": "Manager",
"description": "Can manage team members, accounts, contacts, and workspace settings. Has full access to create, edit, delete, and publish posts, products, campaigns, labels, snippets, comments, and media library. Can view analytics and calendar. Cannot access billing or create new workspaces.",
"has_approval_permission": true,
"has_publishing_permission": true
},
{
"name": "APP_CONTENT_MANAGER",
"label": "Content Manager",
"description": "Can create, edit, and publish posts, products, campaigns, labels, snippets, comments, and manage media library. Can view analytics and calendar. Has view access to accounts but cannot manage them. Can approve posts from content creators.",
"has_approval_permission": true,
"has_publishing_permission": true
},
{
"name": "APP_CONTENT_CREATOR",
"label": "Content Creator",
"description": "Can create and edit posts, products, campaigns, labels, snippets, comments, and manage media library. Can view analytics and calendar. Has view access to accounts but cannot manage them. Posts require approval before publishing.",
"has_approval_permission": false,
"has_publishing_permission": false
},
{
"name": "APP_CLIENT",
"label": "Client",
"description": "Has view-only access to posts, products, campaigns, labels, snippets, comments, analytics, and calendar. Can approve posts but cannot create, edit, or publish content. Cannot access team management, accounts, contacts, or workspace settings.",
"has_approval_permission": true,
"has_publishing_permission": false
}
]
}Needs
team:read, and a role in the workspace that can see the team: owners and managers can. See Permissions.data: each person’s account id, name, email address, photo, role, and is_active, which is false while an invitation isn’t accepted yet. The workspace owner is in the list too. roles lists the roles someone can be invited as or moved to; Owner isn’t one of them. Not paged.
workspace_id is required. It reads the team only: it keeps nothing and emails no one. Every plan can list its team, Free included.
Errors
| Status | error | When | Retry? |
|---|---|---|---|
| 401 | No API key, or not a valid one. | No: fix the key. | |
| 403 | The key lacks team:read, or its user is inactive. | No: grant it in Settings → API. | |
| 403 | Your role in the workspace can’t see the team. | No. | |
| 422 | No workspace_id, or one the key can’t reach. | No: fix the request. | |
| 429 | More than 60 requests a minute. | Yes, after Retry-After seconds. |
Related
- Invite a team member: add someone.
- Update a team member: change a role, or send an invitation again.
Authorizations
Query Parameters
Was this page helpful?