# Invites

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

`ovok.invites` creates and accepts invitations: record shares, care, practitioners and
patients. Each flow has `create` and `accept`.

## Accept an invitation [#accept-an-invitation]

`accept` picks the flow from the signed-in profile: a Practitioner accepts a record share, a
Patient accepts a care invitation. It raises `OvokConfigError` when neither is signed in.

```python
from ovok_sdk import Ovok

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

ovok.invites.accept(acceptance)
ovok.invites.practitioners.create(invitation)
```

See [Authentication](/python-sdk/namespaces/auth) to sign the user in first.

## API reference [#api-reference]

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