# Check plugin subscription access

`GET /api/plugins/{pluginId}/subscription/access`

Validates if the current user has an active subscription to access the plugin

Authentication: no security requirement declared for this operation.

Parameters:

- `pluginId` (path, string, uuid, required) - Plugin ID
  Type: string, uuid

Responses:

- 200: Access check result

Content type: application/json

Type: object

Schema: [PluginSubscriptionAccessResponseDTO](https://sourcey-gauzy.pages.dev/api-reference/models/pluginsubscriptionaccessresponsedto/index.md)

- `hasAccess` (required)
  Type: boolean
  
  Whether the user has access to the plugin

- `accessLevel` (optional)
  Type: string
  
  Access level/scope

- `canAssign` (required)
  Type: boolean
  
  Whether the user can assign this plugin to others

- `requiresSubscription` (required)
  Type: boolean
  
  Whether the plugin requires a subscription

- `canActivate` (required)
  Type: boolean
  
  Whether the user can activate the plugin

- `subscription` (optional)
  Type: object
  
  Subscription details if available

## Examples

### cURL

```bash
curl -X GET 'http://localhost:3000/api/plugins/550e8400-e29b-41d4-a716-446655440000/subscription/access'
```

### JavaScript

```javascript
const response = await fetch('http://localhost:3000/api/plugins/550e8400-e29b-41d4-a716-446655440000/subscription/access', {
  method: 'GET',
});

const data = await response.text();
```

### Python

```python
import requests

response = requests.get('http://localhost:3000/api/plugins/550e8400-e29b-41d4-a716-446655440000/subscription/access')
print(response.text)
```
