Skip to content

Collect a Moment

This page documents the API endpoint to collect a Moment on the In Process protocol.

Endpoint

POST https://inprocess.world/api/moment/collect

Authentication

Include an API key in the x-api-key header for authorization:

x-api-key: <artist_api_key>
Show more

See Create an Artist API Key for how to create API keys.

Request Body

Send a JSON object with the following fields:

{
  "moment": {
    "collectionAddress": string, // Moment address
    "tokenId": string, // TokenId of moment
    "chainId": number // Chain ID of the collection (optional, default: Base 8453)
  },
  "amount": number, // Amount to be collected
  "comment": string // Comment
}

Example Request

cURL
curl -X POST https://inprocess.world/api/moment/collect \
  -H "Content-Type: application/json" \
  -H "x-api-key: art_sk_3fnm4...f6w4" \
  -d '{
    "moment": {
      "collectionAddress": "0x297F21AAc502571db2c7dBFD271E68Dae7F2cE1E",
      "tokenId": "1"
    },
    "amount": 1,
    "comment": "in•process!!!"
  }'

Example Response

{
  "hash": "0xTransactionHash",
  "chainId": 8453 | 84532
}