Membership requests
Requests to add someone to a group whose manual_members is approval. Someone other than whoever asked, and other than the person joining, approves or denies each one; approving adds them, until the request's valid_to. A group's approver_group_id limits approving to its members. Requests nobody decides expire after 7 days. Every step is an event.
The membership request model
A request to add someone to a group whose manual_members is
approval. Someone other than whoever asked, and other than the person
joining, approves or denies it; approving adds them.
Properties
- Name
id- Type
- string
- Description
Request ID.
- Name
group_id- Type
- string
- Description
The group.
- Name
person_id- Type
- string
- Description
The person to add.
- Name
valid_to- Type
- timestamp
- Description
When the membership would end. Can be
null.
- Name
reason- Type
- string
- Description
Why they need it.
- Name
status- Type
- string
- Description
Where it stands. One of
pending,approved,denied,expired.
- Name
requested_by- Type
- object
- Description
Who asked.
- Name
requested_by.type- Type
- string
- Description
A person (signed in to the console), an API client or an agent. One of
person,api_client,reader,connector,agent,system.
- Name
requested_by.id- Type
- string
- Description
Their ID.
- Name
decided_by- Type
- object
- Description
Who approved or denied it. Can be
null.
- Name
decided_by.type- Type
- string
- Description
A person (signed in to the console), an API client or an agent. One of
person,api_client,reader,connector,agent,system.
- Name
decided_by.id- Type
- string
- Description
Their ID.
- Name
decision_note- Type
- string
- Description
What they said. Can be
null.
- Name
decided_at- Type
- timestamp
- Description
When it was decided. Can be
null.
- Name
expires_at- Type
- timestamp
- Description
It expires, undecided, at this time.
- Name
created_at- Type
- timestamp
- Description
When it was made.
List membership requests
Needs the membership-requests:read scope.
Query parameters
- Name
page_size- Type
- integer
- Description
Results per page, 1 to 200.
0or absent means 50; more than 200 means 200 (AIP-158).
- Name
page_token- Type
- string
- Description
next_page_tokenfrom the previous page.
- Name
updated_since- Type
- timestamp
- Description
Only resources changed at or after this time.
- Name
group_id- Type
- string
- Description
Only requests to join this group.
- Name
person_id- Type
- string
- Description
Only requests for this person.
- Name
status- Type
- string
- Description
Only requests that stand here. One of
pending,approved,denied,expired.
Request
curl https://acme.ext.passway.com/v1/membership-requests \
-H "Authorization: Bearer $PASSWAY_TOKEN"
Response
{
"data": [
{
"id": "mreq_01jd8k3m2v9x4q7r5t6w8y0z1a",
"group_id": "grp_01jd8k3m2v9x4q7r5t6w8y0z1a",
"person_id": "per_01jd8k3m2v9x4q7r5t6w8y0z1a",
"valid_to": "2026-11-30T14:02:11Z",
"reason": "…",
"status": "pending",
"requested_by": {
"type": "person",
"id": "…"
},
"decided_by": null,
"decision_note": null,
"decided_at": "2026-11-30T14:02:11Z",
"expires_at": "2026-11-30T14:02:11Z",
"created_at": "2026-11-30T14:02:11Z"
}
],
"next_page_token": null
}
Create a membership request
The group must take members by approval (409 otherwise), and valid_to must be within its max_manual_days.
Needs the membership-requests:write scope.
Headers
- Name
Idempotency-Key- Type
- string
- Description
A unique key, such as a UUID. Repeating a successful request with the same key within 24 hours returns the original response; reusing it for a different request returns
422; repeating it while the first is still running returns409withRetry-After.
Required attributes
- Name
group_id- Type
- string
- Description
The group, whose
manual_membersisapproval.
- Name
person_id- Type
- string
- Description
The person to add.
- Name
reason- Type
- string
- Description
Why they need it, for whoever decides and for the record.
Optional attributes
- Name
valid_to- Type
- timestamp
- Description
When the membership would end. Needed when the group has
max_manual_days, and within it.
Request
curl -X POST https://acme.ext.passway.com/v1/membership-requests \
-H "Authorization: Bearer $PASSWAY_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"group_id": "grp_01jd8k3m2v9x4q7r5t6w8y0z1a",
"person_id": "per_01jd8k3m2v9x4q7r5t6w8y0z1a",
"valid_to": "2026-11-30T14:02:11Z",
"reason": "On call for the data center move, Dec 8-12"
}'
Response
{
"id": "mreq_01jd8k3m2v9x4q7r5t6w8y0z1a",
"group_id": "grp_01jd8k3m2v9x4q7r5t6w8y0z1a",
"person_id": "per_01jd8k3m2v9x4q7r5t6w8y0z1a",
"valid_to": "2026-11-30T14:02:11Z",
"reason": "…",
"status": "pending",
"requested_by": {
"type": "person",
"id": "…"
},
"decided_by": null,
"decision_note": null,
"decided_at": "2026-11-30T14:02:11Z",
"expires_at": "2026-11-30T14:02:11Z",
"created_at": "2026-11-30T14:02:11Z"
}
Get a membership request
Needs the membership-requests:read scope.
Path parameters
- Name
membership_request_id- Type
- string
- Description
Membership request ID:
mreq_followed by 1 to 64 lowercase letters and digits.
Request
curl https://acme.ext.passway.com/v1/membership-requests/mreq_01jd8k3m2v9x4q7r5t6w8y0z1a \
-H "Authorization: Bearer $PASSWAY_TOKEN"
Response
{
"id": "mreq_01jd8k3m2v9x4q7r5t6w8y0z1a",
"group_id": "grp_01jd8k3m2v9x4q7r5t6w8y0z1a",
"person_id": "per_01jd8k3m2v9x4q7r5t6w8y0z1a",
"valid_to": "2026-11-30T14:02:11Z",
"reason": "…",
"status": "pending",
"requested_by": {
"type": "person",
"id": "…"
},
"decided_by": null,
"decision_note": null,
"decided_at": "2026-11-30T14:02:11Z",
"expires_at": "2026-11-30T14:02:11Z",
"created_at": "2026-11-30T14:02:11Z"
}
Approve a request to join a group
Adds the person, until the request's valid_to. Whoever asked, and the person joining, can't approve it (403); with the group's approver_group_id, only its members can. A group that has a role needs the role's scopes (403). A request already decided, or expired, returns 409.
Needs the membership-requests:write scope.
Path parameters
- Name
membership_request_id- Type
- string
- Description
Membership request ID:
mreq_followed by 1 to 64 lowercase letters and digits.
Optional attributes
- Name
note- Type
- string
- Description
A note for the record.
Request
curl -X POST https://acme.ext.passway.com/v1/membership-requests/mreq_01jd8k3m2v9x4q7r5t6w8y0z1a:approve \
-H "Authorization: Bearer $PASSWAY_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
Response
{
"id": "mreq_01jd8k3m2v9x4q7r5t6w8y0z1a",
"group_id": "grp_01jd8k3m2v9x4q7r5t6w8y0z1a",
"person_id": "per_01jd8k3m2v9x4q7r5t6w8y0z1a",
"valid_to": "2026-11-30T14:02:11Z",
"reason": "…",
"status": "pending",
"requested_by": {
"type": "person",
"id": "…"
},
"decided_by": null,
"decision_note": null,
"decided_at": "2026-11-30T14:02:11Z",
"expires_at": "2026-11-30T14:02:11Z",
"created_at": "2026-11-30T14:02:11Z"
}
Deny a request to join a group
Whoever asked may deny their own request, to withdraw it. A request already decided, or expired, returns 409.
Needs the membership-requests:write scope.
Path parameters
- Name
membership_request_id- Type
- string
- Description
Membership request ID:
mreq_followed by 1 to 64 lowercase letters and digits.
Optional attributes
- Name
note- Type
- string
- Description
A note for the record.
Request
curl -X POST https://acme.ext.passway.com/v1/membership-requests/mreq_01jd8k3m2v9x4q7r5t6w8y0z1a:deny \
-H "Authorization: Bearer $PASSWAY_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
Response
{
"id": "mreq_01jd8k3m2v9x4q7r5t6w8y0z1a",
"group_id": "grp_01jd8k3m2v9x4q7r5t6w8y0z1a",
"person_id": "per_01jd8k3m2v9x4q7r5t6w8y0z1a",
"valid_to": "2026-11-30T14:02:11Z",
"reason": "…",
"status": "pending",
"requested_by": {
"type": "person",
"id": "…"
},
"decided_by": null,
"decision_note": null,
"decided_at": "2026-11-30T14:02:11Z",
"expires_at": "2026-11-30T14:02:11Z",
"created_at": "2026-11-30T14:02:11Z"
}