> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bedrock.quarry-systems.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Scope Roles

> Retrieve all roles defined within a scope

## Path Parameters

<ParamField path="id" type="string" required>
  The scope ID
</ParamField>

## Response

Returns an array of role objects belonging to the scope.

<ResponseField name="roles" type="array">
  <Expandable title="Role object">
    <ResponseField name="id" type="string">
      Unique identifier for the role
    </ResponseField>

    <ResponseField name="name" type="string">
      Display name of the role
    </ResponseField>

    <ResponseField name="description" type="string">
      Description of the role
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET 'https://api.example.com/scopes/scope_123/roles' \
    -H 'Authorization: Bearer YOUR_TOKEN'
  ```

  ```javascript Node.js theme={null}
  const axios = require('axios');

  const { data } = await axios.get('https://api.example.com/scopes/scope_123/roles', {
    headers: { 'Authorization': 'Bearer YOUR_TOKEN' },
  });
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  [
    {
      "id": "role_admin",
      "name": "Admin",
      "description": "Full administrative access"
    },
    {
      "id": "role_member",
      "name": "Member",
      "description": "Standard member access"
    }
  ]
  ```
</ResponseExample>
