using RestSharp;
var options = new RestClientOptions("https://api.sandbox.{id}.gr4vy.app/webhook-subscriptions/{subscription_id}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"active": true,
"url": "<string>",
"rotating": true,
"type": "webhook-subscription",
"merchant_account_id": "default",
"authentication": {
"kind": "basic",
"password": "********",
"username": "gr4vy"
},
"secret": "234567890abcdef1234567890abcdef",
"creator": {
"email_address": "jhon.doe@gr4vy.com",
"id": "07e70d14-a0c0-4ff5-bd4a-509959af0e4d",
"name": "Jhon Doe"
}
}Retrieve detailed information about a specific webhook subscription. This endpoint returns the full configuration of a subscription including its URL, authentication details, active status, and signing secret information. Use this to verify your webhook subscription settings or retrieve details needed for webhook verification.
using RestSharp;
var options = new RestClientOptions("https://api.sandbox.{id}.gr4vy.app/webhook-subscriptions/{subscription_id}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"active": true,
"url": "<string>",
"rotating": true,
"type": "webhook-subscription",
"merchant_account_id": "default",
"authentication": {
"kind": "basic",
"password": "********",
"username": "gr4vy"
},
"secret": "234567890abcdef1234567890abcdef",
"creator": {
"email_address": "jhon.doe@gr4vy.com",
"id": "07e70d14-a0c0-4ff5-bd4a-509959af0e4d",
"name": "Jhon Doe"
}
}webhook-subscriptions.read scope.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the merchant account to use for this request.
"default"
The ID of the webhook subscription
"ef9496d8-53a5-4aad-8ca2-00eb68334389"
Successful Response
The ID of the webhook subscription
"ef9496d8-53a5-4aad-8ca2-00eb68334389"
Flag to determine whether this subscription should be sent webhook payloads.
true
false
URL to send webhook payloads.
"https://www.gr4vy.com/webhooks"
Flag to determine whether the subscription has a secret rotation in progress or not.
false
true
Type of resource for webhook subscriptions.
"webhook-subscription""webhook-subscription"
The merchant account to which this subscription is associated. When null this represents an instance level webhook.
"default"
Optional authentication configuration for webhook requests.
Show child attributes
{
"kind": "basic",
"password": "********",
"username": "gr4vy"
}The active secret value.
"234567890abcdef1234567890abcdef"
The user that created this resource
Show child attributes
{
"email_address": "jhon.doe@gr4vy.com",
"id": "07e70d14-a0c0-4ff5-bd4a-509959af0e4d",
"name": "Jhon Doe"
}