Create OAuth Key
post
https://api.synapsefi.com
/v3.1/oauth/:user_id
OAuth

Example Request

HTTP
cURL
Python
JS
PHP
GO
1
POST /v3.1/oauth/5faa6da8f8db933dac59bdc5 HTTP/1.1
2
Host: uat-api.synapsefi.com
3
X-SP-GATEWAY: client_id_2bb1e412edd311e6bd04e285d6015267|client_secret_6zZVr8biuqGkyo9IxMO5jY2QlSp0nmD4EBAgKcJW
4
X-SP-USER-IP: 255.127.79.76
5
X-SP-USER: |e83cf6ddcf778e37bfe3d48fc78a6502062fc
6
Content-Type: application/json
7
8
{
9
"refresh_token":"refresh_ydA5vGjnbHh2SipakwIMJe0TUVmKg7Dt8rBC6N1R",
10
"scope":[
11
"USER|PATCH",
12
"USER|GET",
13
"NODES|POST",
14
"NODES|GET",
15
"NODE|GET",
16
"NODE|PATCH",
17
"NODE|DELETE",
18
"TRANS|POST",
19
"TRANS|GET",
20
"TRAN|GET",
21
"TRAN|PATCH",
22
"TRAN|DELETE",
23
"SUBNETS|POST",
24
"SUBNETS|GET",
25
"SUBNET|GET",
26
"SUBNET|PATCH",
27
"STATEMENTS|GET",
28
"STATEMENT|GET",
29
"STATEMENTS|POST",
30
"CONVERSATIONS|POST",
31
"CONVERSATIONS|GET",
32
"CONVERSATION|GET",
33
"CONVERSATION|PATCH",
34
"MESSAGES|POST",
35
"MESSAGES|GET"
36
]
37
}
Copied!
1
curl --location --request POST 'https://uat-api.synapsefi.com/v3.1/oauth/5faa6da8f8db933dac59bdc5' \
2
--header 'X-SP-GATEWAY: client_id_2bb1e412edd311e6bd04e285d6015267|client_secret_6zZVr8biuqGkyo9IxMO5jY2QlSp0nmD4EBAgKcJW' \
3
--header 'X-SP-USER-IP: 255.127.79.76' \
4
--header 'X-SP-USER: |e83cf6ddcf778e37bfe3d48fc78a6502062fc' \
5
--header 'Content-Type: application/json' \
6
--data-raw '{
7
"refresh_token":"refresh_ydA5vGjnbHh2SipakwIMJe0TUVmKg7Dt8rBC6N1R",
8
"scope":[
9
"USER|PATCH",
10
"USER|GET",
11
"NODES|POST",
12
"NODES|GET",
13
"NODE|GET",
14
"NODE|PATCH",
15
"NODE|DELETE",
16
"TRANS|POST",
17
"TRANS|GET",
18
"TRAN|GET",
19
"TRAN|PATCH",
20
"TRAN|DELETE",
21
"SUBNETS|POST",
22
"SUBNETS|GET",
23
"SUBNET|GET",
24
"SUBNET|PATCH",
25
"STATEMENTS|GET",
26
"STATEMENT|GET",
27
"STATEMENTS|POST",
28
"CONVERSATIONS|POST",
29
"CONVERSATIONS|GET",
30
"CONVERSATION|GET",
31
"CONVERSATION|PATCH",
32
"MESSAGES|POST",
33
"MESSAGES|GET"
34
]
35
}'
Copied!
1
Copied!
1
Copied!
1
Copied!
1
Copied!
Last modified 7mo ago
Export as PDF
Copy link