List a project's members
curl --request GET \
--url https://app.hookie.ai/admin/api/projects/{project_id}/members \
--cookie hookie_session=const options = {method: 'GET', headers: {cookie: 'hookie_session='}};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/members', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{project_id}/members"
headers = {"cookie": "hookie_session="}
response = requests.get(url, headers=headers)
print(response.text){
"project_id": "<string>",
"access": "workspace",
"members": [
{
"user_id": "<string>",
"email": "<string>",
"name": "<string>",
"role": "project_admin",
"workspace_role": "<string>",
"added_by": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
],
"roles": [
"<string>"
],
"restricted_projects_available": true
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>",
"max_members": 123,
"members": 123,
"max_projects": 123,
"projects": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true,
"feature": "<string>"
}Projects
List a project's members
Anyone who can see the project (#664). Its access mode, its project members and their roles.
GET
/
admin
/
api
/
projects
/
{project_id}
/
members
List a project's members
curl --request GET \
--url https://app.hookie.ai/admin/api/projects/{project_id}/members \
--cookie hookie_session=const options = {method: 'GET', headers: {cookie: 'hookie_session='}};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/members', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{project_id}/members"
headers = {"cookie": "hookie_session="}
response = requests.get(url, headers=headers)
print(response.text){
"project_id": "<string>",
"access": "workspace",
"members": [
{
"user_id": "<string>",
"email": "<string>",
"name": "<string>",
"role": "project_admin",
"workspace_role": "<string>",
"added_by": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
],
"roles": [
"<string>"
],
"restricted_projects_available": true
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>",
"max_members": 123,
"members": 123,
"max_projects": 123,
"projects": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true,
"feature": "<string>"
}Authorizations
sessionbearerAuthapiKey
Response
The project's members.