curl --request POST \
--url https://api.chainstack.com/v1/ipfs/pins/pinfolder \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'bucket_id=<string>' \
--form 'folder_id=<string>'[
{
"id": "<string>",
"cid": "<string>",
"type": "<string>",
"title": "<string>",
"status": "<string>",
"size": 123,
"item_count": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"bucket_id": "<string>",
"folder_id": "<string>",
"public_link": "<string>",
"owner": {
"id": "<string>",
"name": "<string>"
},
"creator": {
"id": "<string>",
"name": "<string>"
}
}
]Add folder for upload.
curl --request POST \
--url https://api.chainstack.com/v1/ipfs/pins/pinfolder \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'bucket_id=<string>' \
--form 'folder_id=<string>'[
{
"id": "<string>",
"cid": "<string>",
"type": "<string>",
"title": "<string>",
"status": "<string>",
"size": 123,
"item_count": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"bucket_id": "<string>",
"folder_id": "<string>",
"public_link": "<string>",
"owner": {
"id": "<string>",
"name": "<string>"
},
"creator": {
"id": "<string>",
"name": "<string>"
}
}
]Chainstack API uses API keys to authenticate requests. You can view and manage your API keys in the platform UI.
Your API keys carry many privileges, so be sure to keep them secure!
Provide your API key as the Authorization header. The value of the header consists of Bearer prefix and secret key generated through the platform UI.
curl -X GET 'https://api.chainstack.com/v1/organization/' \
--header 'Authorization: Bearer FX7CWlLg.FMpAO8cgCX2N7s41EncRru2nb5CmTZUt'All API requests must be made over HTTPS.
success
Was this page helpful?