# Using Central API to access Collect QR code

**URL:** <https://forum.getodk.org/t/using-central-api-to-access-collect-qr-code/27071>\
**Category:** Development\
**Tags:** odk-central\
**Created:** [June 4, 2020, 6:31pm UTC](https://forum.getodk.org/t/using-central-api-to-access-collect-qr-code/27071 "2020-06-04T18:31:02Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Matthew\_White](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/matthew_white/32/1654_2.png) [@Matthew\_White](https://forum.getodk.org/u/Matthew_White)\
**Post date:** [June 5, 2020, 10:53pm UTC](https://forum.getodk.org/t/using-central-api-to-access-collect-qr-code/27071/7 "2020-06-05T22:53:01Z")

</div>

Interesting, that additional context is useful!

> [@lgorman](#):
>
> My one worry is that I would not want app users to have access to one another's submitted forms. Would this be possible with what you describe?

Yes, this is definitely possible by managing form access. The documentation for that is [here](https://docs.getodk.org/central-projects/#managing-form-access), and you can also manage form access using the API.

> [@lgorman](#):
>
> What is the advantage of having them all within the same project?

Perhaps not much, so if your current workflow is working, there might not be strong reason to change it. However, having a single project might make it easier to access the submission data using the API: getting the list of forms would be a single API request, rather than a request to list the projects, then a request for each project to list the project's forms.

> [@lgorman](#):
>
> When I construct the server URL, do I also need the new users to specify a password?

Users won't need to specify a username or password in ODK Collect: the server URL for the app user is sufficient to authenticate.

> [@lgorman](#):
>
> All I need is to generate a QR code with the correct server URL. Am I right in guessing that I can do it using [this dictionary structure](https://github.com/getodk/collect/issues/781#issuecomment-295105150)?

You actually don't need to specify all those keys, as most keys have sensible defaults. (Also, I'm not sure that's the most up-to-date list of keys. You might be interested in the discussion [here](https://forum.getodk.org/t/proposal-publish-a-settings-key-value-standard/25142).) You only need to specify the `server_url` key. (You should specify both `general` and `admin`, but `admin` can be empty.) For example:

```plaintext
{
  "general": {
    "server_url": "…/v1/key/[token]/projects/[projectId]"
  },
  "admin": {}
} 

```

The topic you linked to seems like a good place to start given that you're working in Python! It's in JavaScript, but you can also check out how we create the QR code in ODK Central [here](https://github.com/getodk/central-frontend/blob/master/src/util/collect-qr.js).

---

_[View the full topic](https://forum.getodk.org/t/using-central-api-to-access-collect-qr-code/27071)._
