Delete Access Keys API
As of now, you cannot edit the Access Keys and hence, if you wish to grant further access to a specific key, use Delete Access Keys API to Delete the older keys.
Root
https://api.jsonbin.io/v3
Route
/a/<ACCESS_KEY_ID>
Request Type
DELETE
Request Headers
Below are the list of Accepted Request Headers if you are trying to Create a JSON record.
Request Header | Value | Required |
---|---|---|
X-Master-Key | <API_KEY> | Yes |
X-Master-Key Required
X-Master-Key is nothing but your Core API Access Key. You will need this Key to access mostly any API end-point on JSONBin. You could find the key on the API Keys page.
Code Samples
curl -v\
-H "X-Master-Key: <YOUR_API_KEY>"
--request DELETE \
https://api.jsonbin.io/v3/a/<ACCESS_KEY_ID>
Request Response
Success Status Code: 200
{
"metadata": {
"id": "<ACCESS_KEY_ID>",
"name": "<ACCESS_KEY_NAME>"
},
"message": "Access Key deleted successfully"
}
Error Status Code: 400, 401, 403, 404
{
"message": "<Error Message>"
}
For more information on the error codes & errors you might possibly encounter, refer to the below section.
Error Reference
You need to pass X-Master-Key in the header to delete the access key.
In-order to delete an Access Key, you need to pass the X-Master-Key header. You can find X-Master-Key on API Keys page
Invalid Access Key Id provided
Make sure you've passed the correct Access Key Id and then try again.