API Keys
Create API Key
API Keys
Create API Key
org:write
POST
/
api_keys
curl --request POST \
--url https://api.pinata.cloud/v3/api_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
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Name of the API key
Provides full access to permissions
Provide an array of scopes in the form org:<RESOURCE>:<PERMISSION>
. Resources include files
, groups
, gateways
, and analytics
. Permissions are either read
or write
(write
includes read
permissions)
Legacy endpoints
These properties are to be used with legacy endpoints, any V3 endpoints should use resources
instead
Response
200 - application/json
OK
The response is of type object
.
curl --request POST \
--url https://api.pinata.cloud/v3/api_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"
}