🏗 Get to know more about our API environment.
Overview
An API is an Application Programming Interface that allows developers to connect applications with the data. We provide two different environments: the development environment and production environment.
The development environment uses the Mumbai-Polygon testnet Transactions are available here. The community tool for viewing blockchain transactions is here.
https://mumbai.polygonscan.com/
Production blockchain transactions can be viewed here.
Resource Types
Note: in order to use the staging root you will need a separate key and account on that platform here: https://staging.ownerfy.com
The server URI prefix is defined as a server_root
: https://staging.ownerfy.com
For production use server_root
: https://ownerfy.com.
Below is an example of how the environment is used in the available endpoints.
Method | Endpoint | Description |
---|---|---|
GET | {{server_root}}/api/v1/transaction/get/:transactionId {{server_root}}/api/v1/collection/get | Get a transaction detail. Get a list of all contracts created. |
POST | {{server_root}}/api/v1/nft/create {{server_root}}/api/v1/collection/create {{server_root}}/api/v1/nft/transfer | Mint an NFT. Create a smart contract Transfer an NFTs. |
The polygon blockchain will show up in the response body as well: "blockchain": "polygon"
.
[
{
"blockchain": "polygon",
"address": "0xBf7c945fFeD2662A761c8f89C1C95f2Ae31a8a63",
"ownerId": "U8cI0ElNGigfLzqOHfxIFCbYoHH2",
"name": "Testxxxx",
"type": "unlimited_v1",
"id": "57ujWp2HNW2xT1nlbGVU"
},
{
"ownerId": "U8cI0ElNGigfLzqOHfxIFCbYoHH2",
"blockchain": "polygon",
"type": "unlimited_v1",
"address": "0x590Bf5C6ad1f88e7daF4218401E3f687aC50B7bE",
"name": "July Smart Contract",
"id": "Q5jQPtM1R5MZ99jTWNkl"
},
{
"blockchain": "polygon",
"name": "",
"ownerId": "U8cI0ElNGigfLzqOHfxIFCbYoHH2",
"type": "unlimited_v1",
"address": "0xFDA5723A46F6Fe7ef8C7FA80bEbaa554EDE5a561",
"id": "ZFeDLNgKCruhL3UzPRf0"
}
]
Check out the ColdFusion examples here: https://github.com/Ownerfy/ownerfy-api-examples/blob/main/coldfusion/all_examples.cfm