Members
Give organization members view or use on a session, list them and revoke them.
List members
Owner and members.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
session_id | string | Required | The session's ID. |
cursor | string | Optional | |
limit | integer | Optional |
Response
datadata[].created_atdata[].granted_bydata[].iddata[].memberdata[].revoked_atdata[].role- One of
view,use data[].session_idhas_morenext_cursor
curl "$CIRESK_API/v1/dev/sessions/devs_0166ba8e973a3df1b173b30df1cb8f2f/members" \
-H "Authorization: Bearer $CIRESK_KEY"Share a session
Grant an organisation member view or use on this session.
Owner only, and a person (an agent cannot share). Every renewal and every events request re-checks that the session's view is within the member's current view and revokes the grant when it is not. Refused above the organisation's sharing ceiling (403 sharing_ceiling), to someone outside the organisation (404 not_a_member), and to a member whose path view is narrower than the session's (409 member_view_narrower). A session whose agents reach the mcp gateway for its owner takes no use member (409 delegated_session), since that member's agent would act with the owner's rights in other products. The member then attaches their own device with dev.sessions.attach.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
session_id | string | Required | The session's ID. |
Request body
member- a principal subject or an e-mail address core/identity resolves inside the organisation
role- One of
view,use
Response
created_atgranted_byidmemberrevoked_atrole- One of
view,use session_id
curl -X POST "$CIRESK_API/v1/dev/sessions/devs_0166ba8e973a3df1b173b30df1cb8f2f/members" \
-H "Authorization: Bearer $CIRESK_KEY" \
-H "Content-Type: application/json" \
-d '{
"member": "user:[email protected]",
"role": "view"
}'Revoke a member
Revoke a member and every device grant under it; the relay closes their connections at once.
Owner, or a principal with dev:sessions.kill (audited).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
session_id | string | Required | The session's ID. |
member_id | string | Required | The member's ID. |
Response
revoked
Errors
- 404an error
curl -X DELETE "$CIRESK_API/v1/dev/sessions/devs_0166ba8e973a3df1b173b30df1cb8f2f/members/devm_0147852a59780ff58c41c82e4f8de108" \
-H "Authorization: Bearer $CIRESK_KEY"