Skip to main content
POST
/
collections
Create Collection
curl --request POST \
  --url https://api.inprocess.world/api/collections \
  --header 'Content-Type: application/json' \
  --data '
{
  "account": "<string>",
  "collection": {
    "name": "<string>",
    "uri": "<string>",
    "splits": [
      {
        "address": "<string>",
        "percentAllocation": 50
      }
    ]
  },
  "chainId": 8453
}
'
import requests

url = "https://api.inprocess.world/api/collections"

payload = {
"account": "<string>",
"collection": {
"name": "<string>",
"uri": "<string>",
"splits": [
{
"address": "<string>",
"percentAllocation": 50
}
]
},
"chainId": 8453
}
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({
account: '<string>',
collection: {
name: '<string>',
uri: '<string>',
splits: [{address: '<string>', percentAllocation: 50}]
},
chainId: 8453
})
};

fetch('https://api.inprocess.world/api/collections', 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.inprocess.world/api/collections",
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([
'account' => '<string>',
'collection' => [
'name' => '<string>',
'uri' => '<string>',
'splits' => [
[
'address' => '<string>',
'percentAllocation' => 50
]
]
],
'chainId' => 8453
]),
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.inprocess.world/api/collections"

payload := strings.NewReader("{\n \"account\": \"<string>\",\n \"collection\": {\n \"name\": \"<string>\",\n \"uri\": \"<string>\",\n \"splits\": [\n {\n \"address\": \"<string>\",\n \"percentAllocation\": 50\n }\n ]\n },\n \"chainId\": 8453\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.inprocess.world/api/collections")
.header("Content-Type", "application/json")
.body("{\n \"account\": \"<string>\",\n \"collection\": {\n \"name\": \"<string>\",\n \"uri\": \"<string>\",\n \"splits\": [\n {\n \"address\": \"<string>\",\n \"percentAllocation\": 50\n }\n ]\n },\n \"chainId\": 8453\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.inprocess.world/api/collections")

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 \"account\": \"<string>\",\n \"collection\": {\n \"name\": \"<string>\",\n \"uri\": \"<string>\",\n \"splits\": [\n {\n \"address\": \"<string>\",\n \"percentAllocation\": 50\n }\n ]\n },\n \"chainId\": 8453\n}"

response = http.request(request)
puts response.read_body
{
  "contractAddress": "<string>",
  "hash": "<string>",
  "chainId": 123
}
{
"status": "error",
"message": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
]
}
{
"status": "error",
"message": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
]
}

Body

application/json
account
string
required

Creator's wallet address

collection
object
required

The collection to create

chainId
integer
default:8453

Chain ID where the collection will be created (default: Base, 8453)

Response

Successful response

contractAddress
string
required

The address of the newly created Collection

hash
string
required

Transaction hash of the creation operation

chainId
integer
required

Chain ID where the transaction was executed