API
Delete Perk

Perk Deletion API

This API allows managed NFT collections to stop displaying Perks, for instance if they are created by mistake.
Users submit a perkId to the endpoint along with their API key.

Request

URL

https://threshr.co/api-gateway/deleteperk (opens in a new tab)

Parameters

One parameter is submitted:
string perkId

Headers

One header is required to supply your API key:
Authorization: Bearer

Sample Request with Curl

Here is a sample request to delete a perk with id W0wQRnJ9Da7Vdsf7AuGo:
curl https://threshr.co/api-gateway/deleteperk?perkId=W0wQRnJ9Da7Vdsf7AuGo -H "Authorization: Bearer <API KEY>"

Response

There is no response at this time, however retrieving data will result in the Perk being absent in the collection's Perks field.

Errors

Too Many Requests

Surpassing the rate limit for the API will return status code 429 Too Many Requests.
The body of the response will be JSON:

    {"error":"Too Many Requests"}

Unauthorized Access

Attempting to delete a Perk with a bad API key will result in an HTTP 401 Status Unauthorized.
The body of the response will be JSON:

    {"error":"Perk Delete Unauthorized"}