POST
/
pinata
/
keys
curl --request POST \
  --url https://api.pinata.cloud/v3/pinata/keys \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "keyname": "A test",
  "permissions": {
    "admin": true
  },
  "maxUses": 2
}'
{
  "JWT": "JWT",
  "pinata_api_key": "key",
  "pinata_api_secret": "secret"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
keyName
string
required

Name of the API key

permissions
object
required
maxUses
integer

Maximum number of uses for the API key

Response

200 - application/json
OK

The response is of type object.