POST
/
users
/
generateApiKey
curl --request POST \
  --url https://api.pinata.cloud/users/generateApiKey \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "keyName": "<string>",
  "permissions": {
    "admin": true,
    "endpoints": {
      "data": {
        "pinList": true,
        "userPinnedDataTotal": true
      },
      "pinning": {
        "hashMetadata": true,
        "hashPinPolicy": true,
        "pinByHash": true,
        "pinFileToIPFS": true,
        "pinJSONToIPFS": true,
        "pinJobs": true,
        "unpin": true,
        "userPinPolicy": true
      }
    }
  },
  "maxUses": 123
}'
"<any>"

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
keyName
string
required
permissions
object
required
maxUses
integer

Response

200 - application/json

The response is of type any.