Pinata Docs
Search
⌃K

Get Info About Submarined File

/content/:id
This endpoint allows you to get information about a single file Submarined. It DOES NOT return the actual file. That is handled by your Dedicated Gateway.

Getting Info About Submarined File

get
https://managed.mypinata.cloud/api/v1
/content/:id
Parameters
Path
id*
The ID of the content that is Submarined (not the CID)
Header
x-api-key*
SUBMARINE KEY
Responses
200: OK
cURL
Node.js
Python
Go
curl --location --request GET 'https://managed.mypinata.cloud/api/v1/content/95c904a0-4d61-4598-a4c8-fb5f0793c7ab' \
--header 'x-api-key: SUBMARINE KEY'
var axios = require('axios');
var config = {
method: 'get',
url: 'https://managed.mypinata.cloud/api/v1/content/95c904a0-4d61-4598-a4c8-fb5f0793c7ab',
headers: {
'x-api-key': 'SUBMARINE KEY'
}
};
const res = await axios(config);
console.log(res.data);
import requests
url = "https://managed.mypinata.cloud/api/v1/content/95c904a0-4d61-4598-a4c8-fb5f0793c7ab"
payload={}
headers = {
'x-api-key': 'SUBMARINE KEY'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://managed.mypinata.cloud/api/v1/content/95c904a0-4d61-4598-a4c8-fb5f0793c7ab"
method := "GET"
client := &http.Client {
}
req, err := http.NewRequest(method, url, nil)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("x-api-key", "SUBMARINE KEY")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}