This endpoint allows you to create a subscription to stay updated on the status of users, nodes, transactions & subnets.
200 Subscription successfully created. 400 Could not create subscription.
Copy {
"_id": "589b6adec83e17002122196c",
"_links": {
"self": {
"href": "https://uat-api.synapsefi.com/v3.1/subscriptions/589b6adec83e17002122196c"
}
},
"_v": 2,
"client_id": "589acd9ecb3cd400fa75ac06",
"is_active": true,
"scope": [
"USERS|POST",
"USER|PATCH",
"NODES|POST",
"NODE|PATCH",
"TRANS|POST",
"TRAN|PATCH",
"SUBNETS|POST",
"SUBNET|PATCH"
],
"url": "https://requestb.in/zp216zzp"
}
Subscription Limits
Only one subscription URL can be enabled per scope. Previous subscriptions for the same scope will be overwritten. We recommend disabling subscriptions that you do not wish to use any longer to avoid confusion.
Originating IP Address
We send webhooks from the originating IP address: 50.112.48.126
, 44.238.232.80
or 35.85.83.81
.
HTTP Python JavaScript Ruby PHP Go
Copy POST /v3.1/subscriptions HTTP/1.1
Host: uat-api.synapsefi.com
X-SP-GATEWAY: client_id_2bb1e412edd311e6bd04e285d6015267|client_secret_2bb1e714edd311e6bd04e285d6015267
Content-Type: application/json
{
"scope": [
"USERS|POST",
"USER|PATCH",
"NODES|POST",
"NODE|PATCH",
"TRANS|POST",
"TRAN|PATCH",
"SUBNETS|POST",
"SUBNET|PATCH"
],
"url": "https://requestb.in/zp216zzp"
}
Copy webhook_url = "https://requestb.in/zp216zzp"
scope = [
"USERS|POST",
"USER|PATCH",
"NODES|POST",
"NODE|PATCH",
"TRANS|POST",
"TRAN|PATCH"
]
subs = client.create_subscription(webhook_url, scope)
Copy const subscriptionUrl = 'https://requestb.in/zp216zzp';
client.createSubscription(subscriptionUrl);
Copy body = {
"scope": [
"USERS|POST",
"USER|PATCH",
"NODES|POST",
"NODE|PATCH",
"TRANS|POST",
"TRAN|PATCH"
],
"url": "https://requestb.in/zp216zzp"
}
client.create_subscriptions(scope: body)
Copy $body = (object) [
scope" => [
"USERS|POST",
"USER|PATCH",
"NODES|POST",
"NODE|PATCH",
"TRANS|POST",
"TRAN|PATCH"
],
'url' => 'https://requestb.in/zp216zzp'
];
$client->create_subscription( $body );
Copy body := `{
"scope": [
"USERS|POST",
"USER|PATCH",
"NODES|POST",
"NODE|PATCH",
"TRANS|POST",
"TRAN|PATCH"
],
"url": "https://requestb.in/zp216zzp"
}`
data, err := client.CreateSubscription(body)