Portal Access Requests
Review and resolve access requests for a portal.
Portal Access Requests object
Attributes
object
Stringid
Stringstatus
Enummessage
StringNullableresolution_message
StringNullableconsumer_profile
Objecttarget
Objectcreated_at
Dateupdated_at
Datereviewed_at
DateNullable{"object": "consumer.access_request","status": "pending","consumer_profile": {"object": "consumer.profile#preview"},"target": {"type": "provider_template","provider_template": {"object": "provider.template#preview","status": "active","metadata": {}}}}
List portal access requests
Returns a paginated list of access requests for a portal.
URL Parameters
portal_id
StringThe unique identifier for the portal
Query Parameters
limit
NumberOptionalafter
StringOptionalbefore
StringOptionalcursor
StringOptionalorder
EnumOptionalstatus
UnionOptionalconsumer_profile_id
UnionOptionalsearch
StringOptionalGEThttp://api.metorial.com/portals/:portal_id/access-requests
curl -X GET "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/access-requests" \-H "Authorization: Bearer metorial_sk_..."
Get portal access request
Retrieves a access request by ID.
URL Parameters
portal_id
StringThe unique identifier for the portal
access_request_id
StringThe unique identifier for the access_request
GEThttp://api.metorial.com/portals/:portal_id/access-requests/:access_request_id
curl -X GET "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/access-requests/acc_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."
Review portal access request
Approves or rejects a access request.
URL Parameters
portal_id
StringThe unique identifier for the portal
access_request_id
StringThe unique identifier for the access_request
Request Body
status
Enumresolution_message
StringOptionalconsumer_group_id
StringOptionalPATCHhttp://api.metorial.com/portals/:portal_id/access-requests/:access_request_id
curl -X PATCH "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/access-requests/acc_Rm4Mnheq2bfEPhBhP7SY" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"status": "approved","resolution_message": "example_resolution_message","consumer_group_id": "example_consumer_group_id"}'