---
title: "Get a member policy assignment"
method: GET
path: "/guardrails/policies/assignments/members/{member_id}"
tags: ["Guardrail Policies"]
---

# Get a member policy assignment

`GET /guardrails/policies/assignments/members/{member_id}`

## Request

- Base URL: `https://openrouter.ai/api/v1`
- URL: `https://openrouter.ai/api/v1/guardrails/policies/assignments/members/{member_id}`
- Auth: HTTP bearer

Get the policies of one type that apply to a member in a workspace. Requires a management key with write access. [Management key](/docs/guides/overview/auth/management-api-keys) required.

## Path parameters

- `member_id` string, required: Organization member user ID

## Query parameters

- `workspace_id` string, uuid: Workspace the policy belongs to. Required for an organization management key; a workspace-scoped key defaults to its own workspace and gets 403 for any other.
- `policy_type` 'budget' | 'model_availability' | 'moderation' | 'rate_limit', required: Policy type the assignment is read or changed for

## Response `200`

Assignment state

- GuardrailPolicyAssignmentResponse
  - `data` GuardrailPolicyAssignmentState, required
    - `opted_out` boolean, required: Whether the subject is opted out of the workspace default
    - `policy_ids` string[], required: Policies of this type assigned directly to the subject
    - `workspace_default_policy_ids` string[], required: Workspace default policies of this type the subject inherits

## Other responses

- `400`: Bad Request - Invalid request parameters or malformed input
- `401`: Unauthorized - Authentication required or invalid credentials
- `403`: Forbidden - Authentication successful but insufficient permissions
- `404`: Not Found - Resource does not exist
- `500`: Internal Server Error - Unexpected server error

## Changes

- **2026-11-11** `5aee117d1dca`: 1 info
  - the `query` request parameter `workspace_id` became optional
- **2026-11-06** `02121928ccaf`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openrouterteam/apis/openrouter-api/changes/guardrails/policies/assignments/members/:member_id/get.md)

---

[API](https://skmtc.dev/openrouterteam/apis/openrouter-api.md) - [All operations](https://skmtc.dev/openrouterteam/apis/openrouter-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openrouterteam/apis/openrouter-api/revisions/f797e38f23b4?raw)
