Project Members
The people with a role on a project. A membership has no ID of its own. It is
identified by the project and the user, so adding someone and changing their
role are the same request: a POST to the project's members with their
userId. Give someone only personal AI Gateway keys with the ai-user role.
List project members
Lists the people with a role assigned on the project, oldest first. Access that comes from someone's account role is not listed here.
path Parameters
projectIdThe project ID (prj_…). Its members, environments and deployments are addressed under it.
query Parameters
limitThe maximum number of items to return.
offsetThe number of items to skip before the first item returned.
List project members › Responses
A page of project members.
The project members on this page.
limitThe page size that was applied.
offsetThe number of items skipped before this page.
totalThe number of items in the whole collection.
hasMoreWhether there are more items after this page.
nextThe relative URL of the next page, or null on the last page.
Add or update a project member
Gives an account member a role on the project. If they already have a role on
the project, it is changed instead, so sending the same request again changes
nothing. Returns 201 when the person was added and 200 when their role
was updated. Only project admins and account admins can add people.
userId has to be an account member, invited or active; any other userId
is a 400. Add someone who is not in the account yet with
POST /v4/accounts/{accountId}/members first, and use the userId it
returns right away. An invited member's role takes effect when they become
active.
ai-user gives access to the AI Gateway's user app only: the person gets
personal API keys and sees their own usage, and nothing else in the project.
It exists only on ai-gateway projects, and is a 400 on others. Without
role-based access control (an enterprise add-on), every account member is an
admin, so role must be admin; any other role is a 400.
path Parameters
projectIdThe project ID (prj_…). Its members, environments and deployments are addressed under it.
Add or update a project member › Request Body
userIdA person, identified by their Zuplo user ID (user_…). Zuplo assigns it when
the person is first added to an account, before they ever sign in, and it
never changes. Every userId and ownerId in v4 is one.
roleA role on a project. admin manages the project, its environments and its
members. developer changes and deploys the preview and development
environments, and reads production. member reads the project. ai-user,
on ai-gateway projects only, uses the AI Gateway's user app with personal
API keys and sees nothing else. New values may be added.
Add or update a project member › Responses
The member's role was updated.
projectIdThe project.
userIdA person, identified by their Zuplo user ID (user_…). Zuplo assigns it when
the person is first added to an account, before they ever sign in, and it
never changes. Every userId and ownerId in v4 is one.
emailThe person's email address.
nameThe person's display name, if they set one.
roleA role on a project. admin manages the project, its environments and its
members. developer changes and deploys the preview and development
environments, and reads production. member reads the project. ai-user,
on ai-gateway projects only, uses the AI Gateway's user app with personal
API keys and sees nothing else. New values may be added.
Get a project member
Returns one person's role on the project.
path Parameters
projectIdThe project ID (prj_…). Its members, environments and deployments are addressed under it.
userIdThe user ID of an account member (user_…).
A person, identified by their Zuplo user ID (user_…). Zuplo assigns it when
the person is first added to an account, before they ever sign in, and it
never changes. Every userId and ownerId in v4 is one.
Get a project member › Responses
The project member.
projectIdThe project.
userIdA person, identified by their Zuplo user ID (user_…). Zuplo assigns it when
the person is first added to an account, before they ever sign in, and it
never changes. Every userId and ownerId in v4 is one.
emailThe person's email address.
nameThe person's display name, if they set one.
roleA role on a project. admin manages the project, its environments and its
members. developer changes and deploys the preview and development
environments, and reads production. member reads the project. ai-user,
on ai-gateway projects only, uses the AI Gateway's user app with personal
API keys and sees nothing else. New values may be added.
Remove a project member
Removes the person's role on the project. Their account role is unaffected. A
repeated delete returns 404, which clients should treat as success.
path Parameters
projectIdThe project ID (prj_…). Its members, environments and deployments are addressed under it.
userIdThe user ID of an account member (user_…).
A person, identified by their Zuplo user ID (user_…). Zuplo assigns it when
the person is first added to an account, before they ever sign in, and it
never changes. Every userId and ownerId in v4 is one.
Remove a project member › Responses
The member was removed.