# Get patient sharing settings

Canonical page: https://docs.ovok.com/api/patient-sharing/get-patient-sharing-settings

`GET /v1/patient-sharing/settings`

Returns the caller's project settings for data sharing: whether patients may share their data with each other, and whether the patient and practitioner invites (`/v1/invites`) are on.

**Auth:** bearer token of a project admin.
**Scope:** the caller's project (from the token).

## Behaviour

- `enabled`: patient-to-patient sharing is on. Off unless an admin turned it on.
- `accessPolicyId`: the ID of the read-only template AccessPolicy every patient-to-patient share points at, or `null` while none has been created.
- `practitionerSharingEnabled`: the `/v1/invites` routes are on. Off unless an admin turned it on.
- `practitionerAlertDigest`: whether the clinician alert digest is on and how many hours apart it goes out. Off, every 6 hours, unless an admin set it.

## Example

```bash
curl -X GET 'https://api.sandbox.ovok.com/v1/patient-sharing/settings' \
  -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3NjcyNjg4MDAsImV4cCI6MTc2NzI3MjQwMH0.Ql3B_ztDvctlyZ2z0vp4sl3ExXRQGkzmxdmTAqxNzZk'
```
