Get the merged AssetTree
API Endpoint: https://eoqlryxobmjf9kw.m.pipedream.net
Cost: 0 NUM (free to use)
Method: POST
Description:
This endpoint accepts a JSON array of commit objects, each consisting of an assetTreeCid and timestampCreated.
Authentication:
This API requires a valid token for Authorization. The token should be passed in the headers of the request using the following format: "Authorization: token YOUR_CAPTURE_TOKEN"
Header:
Authorization: token $YOUR_CAPTURE_TOKEN (required)
Content-Type: application/json
Request Body (required):
The request body should be a JSON array of commit objects. Each commit object must have the following properties:
assetTreeCid (string): The unique identifier of the associated AssetTree.
timestampCreated (number): The Unix timestamp indicates when the commit was created.
Example
curl -X POST "https://eoqlryxobmjf9kw.m.pipedream.net" \
-H "Content-Type: application/json" \
-H "Authorization: token YOUR_CAPTURE_TOKEN" \
-d '[{"assetTreeCid":"bafkreiem3uo35xnip52bfg2bx6ghoevibg7t3yupfubxs5amkfnisgeveu", "timestampCreated":1683286764},{"assetTreeCid":"bafkreicoqqvglibw2dxyyopk7xfetiowcs7dy745cjtmbj3bvl7nmmy7di","timestampCreated":1683286945}]'
Response:
Concated AssetTree
200: Cid/Nid retrieved successfully
400: Bad request
401: Unauthorized
403: Forbidden
500: Internal Server ErrorLast updated