# Consent

Canonical page: https://docs.ovok.com/python-sdk/namespaces/consent

`ovok.consent` reads and records the signed-in user's legal consent (terms and conditions)
and medical consent, and requests signatures on FHIR Consent resources.

## Record the user's consent [#record-the-users-consent]

```python
from ovok_sdk import Ovok

ovok = Ovok("https://api.sandbox.ovok.com", "your-tenant")

print(ovok.consent.legal.retrieve())
ovok.consent.legal.set(True)
ovok.consent.medical.set(True)

ovok.consent.request_signature("consent-id")
```

## API reference [#api-reference]

See [`ovok_sdk.resources.consent`](/python-sdk/reference/resources/consent)
for every method, parameter and error.
