Pinata Docs
Search…
List Pinata API Keys
/users/apiKeys
This endpoint is used to programmatically list all active Pinata API keys. This endpoint can only be called by using an "Admin" key.
This endpoint will return a paginated list of 10 API keys at a time. You can use an offset query parameter to page through keys.

Listing API Keys

get
https://api.pinata.cloud
/users/apiKeys
cURL
Node.js
Python
Go
curl --location --request GET 'https://api.pinata.cloud/users/apiKeys' \
--header 'Authorization: Bearer PINATA JWT'
var axios = require('axios');
​
var config = {
method: 'get',
url: 'https://api.pinata.cloud/users/apiKeys',
headers: {
'Authorization': 'Bearer PINATA JWT'
}
};
​
const res = await axios(config);
​
console.log(res.data);
import requests
​
url = "https://api.pinata.cloud/users/apiKeys"
​
payload={}
headers = {
'Authorization': 'Bearer PINATA JWT'
}
​
response = requests.request("GET", url, headers=headers, data=payload)
​
print(response.text)
​
package main
​
import (
"fmt"
"net/http"
"io/ioutil"
)
​
func main() {
​
url := "https://api.pinata.cloud/users/apiKeys"
method := "GET"
​
client := &http.Client {
}
req, err := http.NewRequest(method, url, nil)
​
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Authorization", "Bearer PINATA JWT")
​
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))
}
Copy link