createWebhookSubscription

The createWebhookSubscription mutation accepts the required data to configure the webhook

Values forsubscription_type are entity, transfer, incoming_transfer, or wallet

ParameterTypeRequired
subscription_typeSubscriptionType!true
urlString!true
header_keyStringfalse
header_valueStringfalse

GraphQL Mutation: createWebhook

mutation createWebhook(
    $subscription_type: SubscriptionType!,
    $url: String!,
    $header_key: String,
    $header_value: String
) {
    createWebhook(
        subscription_type: $subscription_type,
        url: $url,
        header_key: $header_key,
        header_value: $header_value
    ) {
        id
        subscription_type
        url
        header_key
        header_value
    }
}
enum SubscriptionType {
  entity
  transfer
  incoming_transfer
  wallet
}
Language
Click Try It! to start a request and see the response here!