# How to successfully create a contract using python request lib?

**URL:** <https://forum.canton.network/t/how-to-successfully-create-a-contract-using-python-request-lib/891>\
**Category:** App Development\
**Tags:** daml, json-api\
**Created:** [July 22, 2020, 3:18am UTC](https://forum.canton.network/t/how-to-successfully-create-a-contract-using-python-request-lib/891 "2020-07-22T03:18:10Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![KsarCapital](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/ksarcapital/32/644_2.png) [@KsarCapital](https://forum.canton.network/u/KsarCapital)\
**Post date:** [July 23, 2020, 12:08am UTC](https://forum.canton.network/t/how-to-successfully-create-a-contract-using-python-request-lib/891/7 "2020-07-23T00:08:22Z")

</div>

Here is my request:

return requests.post(

```
f"{endpoint}/v1/create",

headers = tokenHeader,

json = {

  "templateId" : {

    "moduleName": "Main",

    "entityName": contractName

  },

  "meta" : {

    "ledgerEffectiveTime": epoch # Wall time unsupported on DABL

  },

  "argument": {

    "event": damlDict,

    "owner": singatoryParty,

    "obs": singatoryParty

  }

},

verify=False

```

)

---

_[View the full topic](https://forum.canton.network/t/how-to-successfully-create-a-contract-using-python-request-lib/891)._
