Workspaces
Find the workspaces a credential can use, read and change workspace settings, manage members and invitations, and list the members of a project.
Listing workspaces and members only reads data. Changing roles, removing members, and sending or cancelling invitations need the members:write scope, and changing workspace settings or admin controls needs workspace:write. A personal API token can list its workspaces on any plan. The other endpoints, and any workspace API key, need a Pro or Enterprise workspace because Free workspace keys cannot use the profile, members, or workspace scopes.
Endpoints
Credentials
- A workspace API key is bound to one workspace.
GET /api/v1/workspacesreturns only that workspace, with your role in it. - A personal API token sees every workspace where its owner is an active member, and each entry includes
joinedAt. To call the member endpoints with a personal token, send the same slug in theX-Project-Feed-Workspaceheader as in the URL. - Workspace roles are
viewer,member,admin, andowner. Project members have a project role:viewer,editor, oradmin.
Member objects carry several avatar fields. Use image to show an avatar.
Find a workspace and list its members
- 1.
List your workspaces
Call
GET /api/v1/workspaceswith a personal API token and no workspace header. - 2.
Pick a slug
Use the returned
slugin the URL and inX-Project-Feed-Workspace. - 3.
List members
Call
GET /api/v1/workspaces/:slug/members. Addqto filter by name, email, or username, andlimitfrom 1 to 50.
Each request checks up to 500 roster rows. When hasMore is true, send nextCursor as cursor, even if members is empty, and keep the slug, project, and q the same. See API conventions for pagination.
Workspace settings
Any member of a workspace can read it with GET /api/v1/workspaces/:slug. Reading the admin controls or the security settings, and changing the workspace or the admin controls, is for the workspace owner and admins. Anyone else gets 403, before the request body is read. Signed-in app sessions send X-Project-Feed-Workspace and get the same checks. A null limit in the workspace response means unlimited, and overages shows the plan caps a workspace is over after a downgrade.
The admin controls route leaves out the API key scopes, API key creation, account token, webhook access, and data export policies. They stay in the app, and a change request that includes one returns 400. The security settings are read-only through the API and also change in the app. The IP allowlist entries are shown to the workspace owner only. An admin gets the count and a null ipAllowlist.
Reads of the workspace and the admin controls return an ETag. Send it as If-Match on a change, and the request returns 412 if the settings changed since you read them.
curl --request PATCH \
--url 'https://projectfeed.app/api/v1/workspaces/acme' \
--header 'Authorization: Bearer pf_YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'If-Match: W/"1705314600000.1k3j9x0ab2c"' \
--data '{ "name": "Acme Labs", "features": { "chat": false } }'Members and invitations
Signed-in app sessions send X-Project-Feed-Workspace and can read members, change roles, remove members and manage invitations with the same role checks as API keys. A member or viewer gets 403 before the request body is read.
Only the workspace owner and admins can change a role, remove a member, list invitations, resend an invitation, or cancel one. The owner's role and your own role cannot be changed, and the owner and you cannot be removed. Both return 403. Removing a member ends their API keys and project memberships. Moving a viewer to member or admin counts against the plan's member limit. Send the member's updatedAt as expectedUpdatedAt or If-Match to get 412 when someone else changed the membership first.
An app session that removes an admin, or moves one to member or viewer, also sends a step-up token in X-Project-Feed-Step-Up. Request it with POST /api/v1/me/step-up, action remove_admin or demote_admin and the admin's user ID as the target. Without it the request returns 403 step_up_required. API keys do not need it.
Sending an invitation follows the workspace setting Who can invite. Members can invite unless the setting limits it to admins or the owner, and only admins and owners can invite someone as an admin. Viewers are free and do not count against the member limit. Each person can send 10 invitations an hour, resends included. Past that, the request returns 429 with a Retry-After header.
curl --request POST \
--url 'https://projectfeed.app/api/v1/workspaces/acme/invitations' \
--header 'Authorization: Bearer pf_YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: invite-alex-2026-04' \
--data '{ "email": "alex@example.com", "role": "member" }'The response says whether the email went out. emailState is sent, unconfirmed, or failed. When emailSent is false the response also has an inviteUrl, which you can give to the person yourself. A resend returns 200 when the email was sent, 202 when delivery is unconfirmed, and 502 when it could not be sent. After a 202, wait a few minutes before resending.
Fix a failed request
The workspace list is empty
The personal token's owner has no active workspace membership. A workspace API key returns only its own workspace.
400 workspace_required
A personal token called a member endpoint without the X-Project-Feed-Workspace header.
403 Workspace mismatch
The slug in the URL is not the workspace the credential is using. Send the same slug in the URL and in X-Project-Feed-Workspace.
403 plan_required
The workspace is on the Free plan. Free workspaces cannot use the profile, members, or workspace scopes.
403 plan_required when changing a role or inviting
The plan's member limit is full. Moving a viewer to member or admin, or inviting someone as a member or admin, needs a free seat. Viewers are free. Otherwise free a seat and retry.
403 on settings, admin controls, or security
The caller is not an owner or admin. Only the workspace read is open to any member.
400 when changing workspace settings
The body has no field or an unknown field, or the value is out of range. Turning on clientPortals also fails while external sharing is disabled in admin controls.
400 when changing admin controls
The body has no field, or it includes an API key, account token, webhook, or data export policy, which can only be changed in the app. Expiry values must be whole days from 1 to 365, or null.
412 on a settings change
The If-Match ETag no longer matches. Read the workspace or admin controls again and retry with the new ETag.
403 on a role change, removal, or invitation
You are not an owner or admin, or you tried to change or remove the owner or yourself. For an invitation, the workspace setting Who can invite may limit it to admins or the owner, viewers cannot invite, and only admins and owners can invite an admin.
403 on a project's members
The project is private, and the credential's owner is not a member of it or an owner or admin.
404 Project not found
The project does not exist in this workspace.
404 on a member or invitation
The user is not an active member of this workspace, or the invitation does not exist in it.
409 when sending an invitation
The email already has a pending invitation or belongs to a current member. The message says which.
409 when resending or cancelling
The invitation is no longer pending, or it has expired. Cancel an expired invitation and send a new one.
429 when sending or resending
The person sent 10 invitations in the last hour. Wait for the number of seconds in Retry-After.
202 or 502 when resending
A 202 means delivery is unconfirmed, so wait a few minutes before resending. A 502 means the email could not be sent. The invitation is still pending, so try again later.
A member is missing from a project
The project list includes only members added to that project. Workspace owners and admins are not listed unless they were added.