Skip to main content
POST
/
community
/
{id}
/
collection
Create Collection
curl --request POST \
  --url https://api.op.xyz/v1/community/{id}/collection \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '{
  "chainId": "33111",
  "symbol": "OPC",
  "name": "My Community Collection",
  "description": "A collection of community items",
  "image": "https://img.op.xyz/d4996a15-61f2-49db-907f-8a4969b4d224/my-collection-image.jpg",
  "featuredImage": "https://img.op.xyz/d4996a15-61f2-49db-907f-8a4969b4d224/my-collection-feat-image.jpg",
  "bannerImage": "https://img.op.xyz/d4996a15-61f2-49db-907f-8a4969b4d224/my-collection-banner.jpg",
  "externalLink": "https://example.com"
}'

Authorizations

X-Api-Key
string
header
required

Path Parameters

id
string
required

Community ID

Body

application/json
chainId
enum<string>
required

The blockchain chain ID for the community collection

Available options:
11155111,
33111,
33139,
1868,
8453
Example:

"33111"

symbol
string
required

The symbol for the community collection

Example:

"OPC"

name
string
required

The name of the community collection

Example:

"My Community Collection"

description
string
required

A description of the community collection

Example:

"A collection of community items"

image
string
required

The image URL for the community collection

Example:

"https://img.op.xyz/d4996a15-61f2-49db-907f-8a4969b4d224/my-collection-image.jpg"

The featured image URL for the community collection

Example:

"https://img.op.xyz/d4996a15-61f2-49db-907f-8a4969b4d224/my-collection-feat-image.jpg"

bannerImage
string
required

The banner image URL for the community collection

Example:

"https://img.op.xyz/d4996a15-61f2-49db-907f-8a4969b4d224/my-collection-banner.jpg"

An external link related to the community collection

Example:

"https://example.com"

Response

201

The mintable collection has been successfully created.