DELETE https://api.cryptohopper.com/v1/api/webhooks

Turns off your app's webhook with the given URL, so it stops receiving deliveries. Creating a webhook with the same URL turns it on again.

Needs a valid access token; no scope is checked.

Example request

curl -X DELETE "https://api.cryptohopper.com/v1/api/webhooks" \
  -H "access-token: YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"webhook_url":"https://example.com/cryptohopper/webhook"}'

Parameters

Headers

NameTypeRequiredDescription
access-token string Required The OAuth access token of the user.
lang string Optional Not used by this endpoint.

Request body

JSON, model WebhookDelete

FieldTypeRequiredDescription
webhook_urlstringRequired

Response

Example response (illustrative values)

{
    "data": {
        "message": "Webhook has been deleted.",
        "id": "1234",
        "webhook_url": "https://example.com/cryptohopper/webhook"
    }
}

Status codes: 200. Errors return JSON with status, error and message. See How the API works for response codes and rate limits.