curl --request POST \
--url https://api.example.com/offering \
--header 'Content-Type: application/json' \
--data '
{
"subdomain": "acme",
"tokenId": "0x1234567890987654321",
"title": "Decentri Fund",
"pricePerToken": 100,
"offeringPeriod": {
"startDate": "2025-09-01T00:00:00Z",
"endDate": "2025-09-30T23:59:59Z"
},
"fundingLimits": {
"minPayableAmount": 1000,
"maxPayableAmount": 10000,
"hardCap": 100000,
"softCap": 100000
},
"imageUrl": "https://example.com/image.png",
"subtitle": "Decentralized fund for the future",
"description": "This fund is built on decentralization principles, offering greater transparency and autonomy to participants.",
"type": "Equity"
}
'import requests
url = "https://api.example.com/offering"
payload = {
"subdomain": "acme",
"tokenId": "0x1234567890987654321",
"title": "Decentri Fund",
"pricePerToken": 100,
"offeringPeriod": {
"startDate": "2025-09-01T00:00:00Z",
"endDate": "2025-09-30T23:59:59Z"
},
"fundingLimits": {
"minPayableAmount": 1000,
"maxPayableAmount": 10000,
"hardCap": 100000,
"softCap": 100000
},
"imageUrl": "https://example.com/image.png",
"subtitle": "Decentralized fund for the future",
"description": "This fund is built on decentralization principles, offering greater transparency and autonomy to participants.",
"type": "Equity"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
subdomain: 'acme',
tokenId: '0x1234567890987654321',
title: 'Decentri Fund',
pricePerToken: 100,
offeringPeriod: {startDate: '2025-09-01T00:00:00Z', endDate: '2025-09-30T23:59:59Z'},
fundingLimits: {
minPayableAmount: 1000,
maxPayableAmount: 10000,
hardCap: 100000,
softCap: 100000
},
imageUrl: 'https://example.com/image.png',
subtitle: 'Decentralized fund for the future',
description: 'This fund is built on decentralization principles, offering greater transparency and autonomy to participants.',
type: 'Equity'
})
};
fetch('https://api.example.com/offering', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/offering",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'subdomain' => 'acme',
'tokenId' => '0x1234567890987654321',
'title' => 'Decentri Fund',
'pricePerToken' => 100,
'offeringPeriod' => [
'startDate' => '2025-09-01T00:00:00Z',
'endDate' => '2025-09-30T23:59:59Z'
],
'fundingLimits' => [
'minPayableAmount' => 1000,
'maxPayableAmount' => 10000,
'hardCap' => 100000,
'softCap' => 100000
],
'imageUrl' => 'https://example.com/image.png',
'subtitle' => 'Decentralized fund for the future',
'description' => 'This fund is built on decentralization principles, offering greater transparency and autonomy to participants.',
'type' => 'Equity'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/offering"
payload := strings.NewReader("{\n \"subdomain\": \"acme\",\n \"tokenId\": \"0x1234567890987654321\",\n \"title\": \"Decentri Fund\",\n \"pricePerToken\": 100,\n \"offeringPeriod\": {\n \"startDate\": \"2025-09-01T00:00:00Z\",\n \"endDate\": \"2025-09-30T23:59:59Z\"\n },\n \"fundingLimits\": {\n \"minPayableAmount\": 1000,\n \"maxPayableAmount\": 10000,\n \"hardCap\": 100000,\n \"softCap\": 100000\n },\n \"imageUrl\": \"https://example.com/image.png\",\n \"subtitle\": \"Decentralized fund for the future\",\n \"description\": \"This fund is built on decentralization principles, offering greater transparency and autonomy to participants.\",\n \"type\": \"Equity\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/offering")
.header("Content-Type", "application/json")
.body("{\n \"subdomain\": \"acme\",\n \"tokenId\": \"0x1234567890987654321\",\n \"title\": \"Decentri Fund\",\n \"pricePerToken\": 100,\n \"offeringPeriod\": {\n \"startDate\": \"2025-09-01T00:00:00Z\",\n \"endDate\": \"2025-09-30T23:59:59Z\"\n },\n \"fundingLimits\": {\n \"minPayableAmount\": 1000,\n \"maxPayableAmount\": 10000,\n \"hardCap\": 100000,\n \"softCap\": 100000\n },\n \"imageUrl\": \"https://example.com/image.png\",\n \"subtitle\": \"Decentralized fund for the future\",\n \"description\": \"This fund is built on decentralization principles, offering greater transparency and autonomy to participants.\",\n \"type\": \"Equity\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/offering")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"subdomain\": \"acme\",\n \"tokenId\": \"0x1234567890987654321\",\n \"title\": \"Decentri Fund\",\n \"pricePerToken\": 100,\n \"offeringPeriod\": {\n \"startDate\": \"2025-09-01T00:00:00Z\",\n \"endDate\": \"2025-09-30T23:59:59Z\"\n },\n \"fundingLimits\": {\n \"minPayableAmount\": 1000,\n \"maxPayableAmount\": 10000,\n \"hardCap\": 100000,\n \"softCap\": 100000\n },\n \"imageUrl\": \"https://example.com/image.png\",\n \"subtitle\": \"Decentralized fund for the future\",\n \"description\": \"This fund is built on decentralization principles, offering greater transparency and autonomy to participants.\",\n \"type\": \"Equity\"\n}"
response = http.request(request)
puts response.read_body{
"offeringId": "cmVhY3Rpb24vMTIzNA75",
"title": "Decentri Fund",
"token": {
"name": "ACME Token",
"symbol": "ACME",
"address": "0xc0ffee254729296a45a3885639AC7E10F9d54979",
"decimals": 18,
"isPaused": false,
"totalSupply": 123,
"createdAt": "2023-11-07T05:31:56Z"
},
"pricePerToken": 100,
"offeringPeriod": {
"startDate": "2021-09-01T00:00:00Z",
"endDate": "2021-09-30T23:59:59Z"
},
"fundingLimits": {
"raised": 1000,
"minPayableAmount": 1000,
"maxPayableAmount": 10000,
"hardCap": 100000,
"softCap": 100000
},
"participants": 123,
"organizationId": "<string>",
"subtitle": "Decentralized fund for the future",
"description": "This fund is built on decentralization principles, offering greater transparency and autonomy to participants.",
"imageUrl": "https://example.com/image.png",
"type": "Equity"
}Create an offering
Get offering by offeringId
curl --request POST \
--url https://api.example.com/offering \
--header 'Content-Type: application/json' \
--data '
{
"subdomain": "acme",
"tokenId": "0x1234567890987654321",
"title": "Decentri Fund",
"pricePerToken": 100,
"offeringPeriod": {
"startDate": "2025-09-01T00:00:00Z",
"endDate": "2025-09-30T23:59:59Z"
},
"fundingLimits": {
"minPayableAmount": 1000,
"maxPayableAmount": 10000,
"hardCap": 100000,
"softCap": 100000
},
"imageUrl": "https://example.com/image.png",
"subtitle": "Decentralized fund for the future",
"description": "This fund is built on decentralization principles, offering greater transparency and autonomy to participants.",
"type": "Equity"
}
'import requests
url = "https://api.example.com/offering"
payload = {
"subdomain": "acme",
"tokenId": "0x1234567890987654321",
"title": "Decentri Fund",
"pricePerToken": 100,
"offeringPeriod": {
"startDate": "2025-09-01T00:00:00Z",
"endDate": "2025-09-30T23:59:59Z"
},
"fundingLimits": {
"minPayableAmount": 1000,
"maxPayableAmount": 10000,
"hardCap": 100000,
"softCap": 100000
},
"imageUrl": "https://example.com/image.png",
"subtitle": "Decentralized fund for the future",
"description": "This fund is built on decentralization principles, offering greater transparency and autonomy to participants.",
"type": "Equity"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
subdomain: 'acme',
tokenId: '0x1234567890987654321',
title: 'Decentri Fund',
pricePerToken: 100,
offeringPeriod: {startDate: '2025-09-01T00:00:00Z', endDate: '2025-09-30T23:59:59Z'},
fundingLimits: {
minPayableAmount: 1000,
maxPayableAmount: 10000,
hardCap: 100000,
softCap: 100000
},
imageUrl: 'https://example.com/image.png',
subtitle: 'Decentralized fund for the future',
description: 'This fund is built on decentralization principles, offering greater transparency and autonomy to participants.',
type: 'Equity'
})
};
fetch('https://api.example.com/offering', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/offering",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'subdomain' => 'acme',
'tokenId' => '0x1234567890987654321',
'title' => 'Decentri Fund',
'pricePerToken' => 100,
'offeringPeriod' => [
'startDate' => '2025-09-01T00:00:00Z',
'endDate' => '2025-09-30T23:59:59Z'
],
'fundingLimits' => [
'minPayableAmount' => 1000,
'maxPayableAmount' => 10000,
'hardCap' => 100000,
'softCap' => 100000
],
'imageUrl' => 'https://example.com/image.png',
'subtitle' => 'Decentralized fund for the future',
'description' => 'This fund is built on decentralization principles, offering greater transparency and autonomy to participants.',
'type' => 'Equity'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/offering"
payload := strings.NewReader("{\n \"subdomain\": \"acme\",\n \"tokenId\": \"0x1234567890987654321\",\n \"title\": \"Decentri Fund\",\n \"pricePerToken\": 100,\n \"offeringPeriod\": {\n \"startDate\": \"2025-09-01T00:00:00Z\",\n \"endDate\": \"2025-09-30T23:59:59Z\"\n },\n \"fundingLimits\": {\n \"minPayableAmount\": 1000,\n \"maxPayableAmount\": 10000,\n \"hardCap\": 100000,\n \"softCap\": 100000\n },\n \"imageUrl\": \"https://example.com/image.png\",\n \"subtitle\": \"Decentralized fund for the future\",\n \"description\": \"This fund is built on decentralization principles, offering greater transparency and autonomy to participants.\",\n \"type\": \"Equity\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/offering")
.header("Content-Type", "application/json")
.body("{\n \"subdomain\": \"acme\",\n \"tokenId\": \"0x1234567890987654321\",\n \"title\": \"Decentri Fund\",\n \"pricePerToken\": 100,\n \"offeringPeriod\": {\n \"startDate\": \"2025-09-01T00:00:00Z\",\n \"endDate\": \"2025-09-30T23:59:59Z\"\n },\n \"fundingLimits\": {\n \"minPayableAmount\": 1000,\n \"maxPayableAmount\": 10000,\n \"hardCap\": 100000,\n \"softCap\": 100000\n },\n \"imageUrl\": \"https://example.com/image.png\",\n \"subtitle\": \"Decentralized fund for the future\",\n \"description\": \"This fund is built on decentralization principles, offering greater transparency and autonomy to participants.\",\n \"type\": \"Equity\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/offering")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"subdomain\": \"acme\",\n \"tokenId\": \"0x1234567890987654321\",\n \"title\": \"Decentri Fund\",\n \"pricePerToken\": 100,\n \"offeringPeriod\": {\n \"startDate\": \"2025-09-01T00:00:00Z\",\n \"endDate\": \"2025-09-30T23:59:59Z\"\n },\n \"fundingLimits\": {\n \"minPayableAmount\": 1000,\n \"maxPayableAmount\": 10000,\n \"hardCap\": 100000,\n \"softCap\": 100000\n },\n \"imageUrl\": \"https://example.com/image.png\",\n \"subtitle\": \"Decentralized fund for the future\",\n \"description\": \"This fund is built on decentralization principles, offering greater transparency and autonomy to participants.\",\n \"type\": \"Equity\"\n}"
response = http.request(request)
puts response.read_body{
"offeringId": "cmVhY3Rpb24vMTIzNA75",
"title": "Decentri Fund",
"token": {
"name": "ACME Token",
"symbol": "ACME",
"address": "0xc0ffee254729296a45a3885639AC7E10F9d54979",
"decimals": 18,
"isPaused": false,
"totalSupply": 123,
"createdAt": "2023-11-07T05:31:56Z"
},
"pricePerToken": 100,
"offeringPeriod": {
"startDate": "2021-09-01T00:00:00Z",
"endDate": "2021-09-30T23:59:59Z"
},
"fundingLimits": {
"raised": 1000,
"minPayableAmount": 1000,
"maxPayableAmount": 10000,
"hardCap": 100000,
"softCap": 100000
},
"participants": 123,
"organizationId": "<string>",
"subtitle": "Decentralized fund for the future",
"description": "This fund is built on decentralization principles, offering greater transparency and autonomy to participants.",
"imageUrl": "https://example.com/image.png",
"type": "Equity"
}Body
The subdomain that will be added as a prefix to the domain 'decentri.org'.
"acme"
The token ID
"0x1234567890987654321"
The title of the offering
"Decentri Fund"
The price per token
100
The period during which the offering is available
Show child attributes
Show child attributes
The limits on contributions or participation in the offering
Show child attributes
Show child attributes
The URL of the image
"https://example.com/image.png"
A brief subtitle or tagline for the offering
"Decentralized fund for the future"
The description of the offering
"This fund is built on decentralization principles, offering greater transparency and autonomy to participants."
The type of the offering
"Equity"
Response
The offering has been successfully retrieved
The unique identifier for the offering
"cmVhY3Rpb24vMTIzNA75"
The title or name of the offering
"Decentri Fund"
The token of the offering
Show child attributes
Show child attributes
The price per token
100
The period during which the offering is available
Show child attributes
Show child attributes
The limits on contributions or participation in the offering
Show child attributes
Show child attributes
The current number of participants in the offering
The ID of the organization that owns the offering
A brief subtitle or tagline for the offering
"Decentralized fund for the future"
A detailed description of the offering
"This fund is built on decentralization principles, offering greater transparency and autonomy to participants."
The URL of the image
"https://example.com/image.png"
The type of the offering
"Equity"