# \#json-api

**URL:** https://forum.canton.network/tag/json-api/79.md?page=4

[Latest](https://forum.canton.network/latest.md) · [Categories](https://forum.canton.network/categories.md) · [Tags](https://forum.canton.network/tags.md)

**Page:** 5

---

## ["ActAs" claim party must be unique?](https://forum.canton.network/t/actas-claim-party-must-be-unique/1116)

<div class="topic-metadata">

**Author:** [@Matheus](https://forum.canton.network/u/Matheus)\
**Replies:** 1\
**Last updated:** [August 26, 2020, 3:00pm UTC](https://forum.canton.network/t/actas-claim-party-must-be-unique/1116 "2020-08-26T15:00:33Z")

</div>

Hi, Using a JWT token with the actAs claim such as: actAs:\[ “party1”, “party2”, “party3”," party4"\] rendered the following error: Can someone please confirm that this uniqueness requirement is in the actAs claim? Tha…

---

## [What components does the JSON API pass its data to?](https://forum.canton.network/t/what-components-does-the-json-api-pass-its-data-to/1044)

<div class="topic-metadata">

**Author:** [@anthony](https://forum.canton.network/u/anthony)\
**Replies:** 3\
**Last updated:** [August 14, 2020, 6:20pm UTC](https://forum.canton.network/t/what-components-does-the-json-api-pass-its-data-to/1044 "2020-08-14T18:20:35Z")

</div>

So as I understand it the JSON API itself is fairly simple, it doesn’t do any validation, nor authorization. It receives commands and passes them on to other parts of the DAML stack. Is it essentially a translation layer…

---

## [What is the JSON API token for and how do I handle rotating it?](https://forum.canton.network/t/what-is-the-json-api-token-for-and-how-do-i-handle-rotating-it/860)

<div class="topic-metadata">

**Author:** [@novusopt](https://forum.canton.network/u/novusopt)\
**Replies:** 12\
**Last updated:** [July 15, 2020, 1:36pm UTC](https://forum.canton.network/t/what-is-the-json-api-token-for-and-how-do-i-handle-rotating-it/860 "2020-07-15T13:36:50Z")

</div>

---

## [When would you use a Command Id with the JSON API?](https://forum.canton.network/t/when-would-you-use-a-command-id-with-the-json-api/1039)

<div class="topic-metadata">

**Author:** [@anthony](https://forum.canton.network/u/anthony)\
**Replies:** 1\
**Last updated:** [August 13, 2020, 7:56pm UTC](https://forum.canton.network/t/when-would-you-use-a-command-id-with-the-json-api/1039 "2020-08-13T19:56:21Z")

</div>

In the docs we have a section that describes creating a contract and specifying a meta field that contains a commandId. If you specify a commandId where would you use it in the future with the JSON API or does it not get…

---

## [If I am using query storage and update my DAML models do I need to re-run json-api with createSchema=true?](https://forum.canton.network/t/if-i-am-using-query-storage-and-update-my-daml-models-do-i-need-to-re-run-json-api-with-createschema-true/1037)

<div class="topic-metadata">

**Author:** [@anthony](https://forum.canton.network/u/anthony)\
**Replies:** 1\
**Last updated:** [August 13, 2020, 4:25pm UTC](https://forum.canton.network/t/if-i-am-using-query-storage-and-update-my-daml-models-do-i-need-to-re-run-json-api-with-createschema-true/1037 "2020-08-13T16:25:37Z")

</div>

If so, under what conditions do I need to do this, and under which do I not? If so, then I also assume that if I add or remove contracts, or change something about the contract’s constructor I’ll need to do this, but ar…

---

## [How can I control the log level for the JSON API?](https://forum.canton.network/t/how-can-i-control-the-log-level-for-the-json-api/1034)

<div class="topic-metadata">

**Author:** [@georg](https://forum.canton.network/u/georg)\
**Replies:** 2\
**Last updated:** [August 13, 2020, 7:52am UTC](https://forum.canton.network/t/how-can-i-control-the-log-level-for-the-json-api/1034 "2020-08-13T07:52:34Z")

</div>

It does not provide a command line parameter to do so. Is there an alternative way to set it?

---

## [How do I produce tokens for an authorized ledger?](https://forum.canton.network/t/how-do-i-produce-tokens-for-an-authorized-ledger/1028)

<div class="topic-metadata">

**Author:** [@gzuhlwang](https://forum.canton.network/u/gzuhlwang)\
**Replies:** 7\
**Last updated:** [August 13, 2020, 7:28am UTC](https://forum.canton.network/t/how-do-i-produce-tokens-for-an-authorized-ledger/1028 "2020-08-13T07:28:46Z")

</div>

I enabled the authorization between the http json api process with the ledger api, such as daml-on-fabric. dami api is bootstrap with --access-token-file flag. I know it is for the communication with daml-on-fabric. I us…

---

## [Null offset in JSON API streaming endpoints](https://forum.canton.network/t/null-offset-in-json-api-streaming-endpoints/960)

<div class="topic-metadata">

**Author:** [@cocreature](https://forum.canton.network/u/cocreature)\
**Replies:** 8\
**Last updated:** [July 30, 2020, 7:28pm UTC](https://forum.canton.network/t/null-offset-in-json-api-streaming-endpoints/960 "2020-07-30T19:28:50Z")

</div>

The JSON API documentation mentions that it is possible to receive a message of the following form on the streaming endpoint: {"events": \[\], "offset": null} We also occasionally observe this in tests. However, the doc…

---

## [Request endpoint on react app prod. build](https://forum.canton.network/t/request-endpoint-on-react-app-prod-build/932)

<div class="topic-metadata">

**Author:** [@Matheus](https://forum.canton.network/u/Matheus)\
**Replies:** 6\
**Last updated:** [July 29, 2020, 1:58pm UTC](https://forum.canton.network/t/request-endpoint-on-react-app-prod-build/932 "2020-07-29T13:58:53Z")

</div>

Hi, So far, for development we have used the “proxy” argument in the package.json to state the endpoint to make the JSON API calls from our react app to the ledger. We then found out that this only works in dev. mode, s…

---

## [How to successfully create a contract using python request lib?](https://forum.canton.network/t/how-to-successfully-create-a-contract-using-python-request-lib/891)

<div class="topic-metadata">

**Author:** [@KsarCapital](https://forum.canton.network/u/KsarCapital)\
**Replies:** 7\
**Last updated:** [July 23, 2020, 6:43am UTC](https://forum.canton.network/t/how-to-successfully-create-a-contract-using-python-request-lib/891 "2020-07-23T06:43:10Z")

</div>

Hello Damler’s my snadbox is runing against my ledger id my json api is also runing but when ever I run a python script to create a contract, the token was specified by authentication using JWT same ledger id used to …

---

## [CreateSchema is emptying the database](https://forum.canton.network/t/createschema-is-emptying-the-database/827)

<div class="topic-metadata">

**Author:** [@bartcant](https://forum.canton.network/u/bartcant)\
**Replies:** 1\
**Last updated:** [July 10, 2020, 5:07pm UTC](https://forum.canton.network/t/createschema-is-emptying-the-database/827 "2020-07-10T17:07:01Z")

</div>

---

## [List queries over the JSON API](https://forum.canton.network/t/list-queries-over-the-json-api/790)

<div class="topic-metadata">

**Author:** [@Sneha](https://forum.canton.network/u/Sneha)\
**Replies:** 2\
**Last updated:** [July 6, 2020, 5:22am UTC](https://forum.canton.network/t/list-queries-over-the-json-api/790 "2020-07-06T05:22:45Z")

</div>

Hi Team, I am facing below error in the new version of SDK. Could someone help me in why am facing this which use to work fine.? Is there any syntax change? \[ ‘java.lang.RuntimeException: PrimTypeList not supported’ \]

---

## [Why run a separate json-api for each party?](https://forum.canton.network/t/why-run-a-separate-json-api-for-each-party/588)

<div class="topic-metadata">

**Author:** [@Stephen](https://forum.canton.network/u/Stephen)\
**Replies:** 2\
**Last updated:** [June 3, 2020, 6:50am UTC](https://forum.canton.network/t/why-run-a-separate-json-api-for-each-party/588 "2020-06-03T06:50:45Z")

</div>

@bernhard has addressed the CORS question, but I am curious: why run a separate JSON API for each party? JSON API is only a data-converting proxy for the underlying ledger API, and does not use given tokens outside the r…

---

## [Query party IDs for login screen](https://forum.canton.network/t/query-party-ids-for-login-screen/590)

<div class="topic-metadata">

**Author:** [@gaborh](https://forum.canton.network/u/gaborh)\
**Replies:** 1\
**Last updated:** [June 3, 2020, 9:21am UTC](https://forum.canton.network/t/query-party-ids-for-login-screen/590 "2020-06-03T09:21:49Z")

</div>

I use Canton and DAML UI template for a demo application. Party IDs are very long and change from one Canton start to the next. I would like to query the party IDs on the login screen before logging in and present a lis…

---

## [Query and Create Exercise as multiple parties](https://forum.canton.network/t/query-and-create-exercise-as-multiple-parties/409)

<div class="topic-metadata">

**Author:** [@dliakakos](https://forum.canton.network/u/dliakakos)\
**Replies:** 31\
**Last updated:** [June 2, 2020, 3:24pm UTC](https://forum.canton.network/t/query-and-create-exercise-as-multiple-parties/409 "2020-06-02T15:24:42Z")

</div>

Have we ever thought of the possibility of having the http json api allowing to query simultaneously as two or more parties and return the union of the result? Also on the exercise and create path could the json api acc…

---

## [Database roles in the JSON API / Sandbox](https://forum.canton.network/t/database-roles-in-the-json-api-sandbox/539)

<div class="topic-metadata">

**Author:** [@rohanjr](https://forum.canton.network/u/rohanjr)\
**Replies:** 2\
**Last updated:** [May 27, 2020, 5:55pm UTC](https://forum.canton.network/t/database-roles-in-the-json-api-sandbox/539 "2020-05-27T17:55:28Z")

</div>

When using the HTTP JSON API, one can pass a JDBC configuration which is used to connect to a Postgres database for the query store. This config includes a database user and an option to create the schema or not (if it a…

---

## [When do I need to provide a dummy token to interact with the sandbox?](https://forum.canton.network/t/when-do-i-need-to-provide-a-dummy-token-to-interact-with-the-sandbox/504)

<div class="topic-metadata">

**Author:** [@georg](https://forum.canton.network/u/georg)\
**Replies:** 1\
**Last updated:** [May 20, 2020, 7:30am UTC](https://forum.canton.network/t/when-do-i-need-to-provide-a-dummy-token-to-interact-with-the-sandbox/504 "2020-05-20T07:30:22Z")

</div>

I’m a bit confused by the following: if I start the sandbox without any authentication specified, and I run a JSON API service in front, I need to present a “dummy” token (ie. a well-formed one with secret secret) in my …

[Previous page](https://forum.canton.network/tag/json-api/79.md?match_all_tags=true&page=3&tags%5B%5D=json-api)
