# Get a public resource

Canonical page: https://docs.ovok.com/api/public-resource-access/get-a-public-resource

`GET /public/{token}`

Reads a FHIR resource through its public token, without a bearer token. Use it to share one resource, such as a form or a document, with people who have no Ovok account.

**Auth:** none. The public token in the path is the credential: anyone with it can read the resource.

## Behaviour

- A resource becomes public when it gets a token in `meta.extension`, with the URL `https://api.ovok.com/fhir/StructureDefinition/public-resource-token`. Use `PATCH /public/{resourceType}/{id}` to give a resource a token.
- The token names exactly one resource. The response is that resource as stored, including its `meta.extension`.
- A token stops working when the resource's token is replaced or deleted, or when the resource is deleted.

## Example

```bash
curl 'https://api.sandbox.ovok.com/public/example.jwt.eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3NjcyNjg4MDAsImV4cCI6MTc2NzI3MjQwMH0.Ql3B_ztDvctlyZ2z0vp4sl3ExXRQGkzmxdmTAqxNzZk'
```
