# Get plugin tenant by plugin ID

`GET /api/plugins/{id}/tenant`

Retrieves or creates a plugin tenant relationship for a specific plugin. Returns the plugin tenant ID.

Authentication (security requirement alternatives):

```json
[
  {
    "api_key": []
  },
  {
    "Bearer": []
  }
]
```

- api_key
- Bearer

Parameters:

- `id` (path, string, uuid, required) - UUID of the plugin
  Type: string, uuid

Responses:

- 200: Plugin tenant retrieved or created successfully.

- 400: Invalid input provided.

- 404: Plugin not found.

## Examples

### cURL

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

### JavaScript

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

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

### Python

```python
import requests

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