Create Subscription
Create Subscription
POST
https://api.synapsefi.com/v3.1/subscriptions
This endpoint allows you to create a subscription to stay updated on the status of users, nodes, transactions & subnets.
Headers
Name
Type
Description
Content-Type
string
This value should be application/json
X-SP-GATEWAY
string
Your Client ID & Secret, separated by a pipe
Request Body
Name
Type
Description
scope
array
Scope of subscription.
url
string
URL destination for webhooks
{
"_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"
}
Go to Subscription Object Details to see all the required and optional body parameters allowed when creating a subscription.
Example Request
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"
}
Last updated
Was this helpful?