Generate Refresh Token
In most cases a refresh token is already present when you View a User. In instances where a refresh token is not avaliable, it can be generated by using a Basic Auth by supplying the user's username and password. These combinations exist in the logins object of the user. Go to User Object Details to learn more.
post
https://api.synapsefi.com
/v3.1/oauth/:user_id/login
Login

Example Request

HTTP
cURL
Python
JS
PHP
GO
1
POST /v3.1/oauth/5fd7acfd8677040053ad486d/login 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: |e83cf6ddcf778e37bfe3d48fc78a6502062fc22
6
Content-Type: application/json
7
8
{
9
"email": "[email protected]",
10
"password":"test1234"
11
}
Copied!
1
curl --location --request POST 'https://uat-api.synapsefi.com/v3.1/oauth/5fd7acfd8677040053ad486d/login' \
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: |e83cf6ddcf778e37bfe3d48fc78a6502062fc22' \
5
--header 'Content-Type: application/json' \
6
--data-raw '{
7
"email": "[email protected]",
8
"password":"test1234"
9
}'
Copied!
1
Copied!
1
Copied!
1
Copied!
1
Copied!
Last modified 10mo ago
Export as PDF
Copy link