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
HTTP
cURL
Python
JS
PHP
GO
POST /v3.1/oauth/5fd7acfd8677040053ad486d/login HTTP/1.1
Host: uat-api.synapsefi.com
X-SP-GATEWAY: client_id_2bb1e412edd311e6bd04e285d6015267|client_secret_6zZVr8biuqGkyo9IxMO5jY2QlSp0nmD4EBAgKcJW
X-SP-USER-IP: 255.127.79.76
X-SP-USER: |e83cf6ddcf778e37bfe3d48fc78a6502062fc22
Content-Type: application/json
{
"email": "[email protected]",
"password":"test1234"
}
curl --location --request POST 'https://uat-api.synapsefi.com/v3.1/oauth/5fd7acfd8677040053ad486d/login' \
--header 'X-SP-GATEWAY: client_id_2bb1e412edd311e6bd04e285d6015267|client_secret_6zZVr8biuqGkyo9IxMO5jY2QlSp0nmD4EBAgKcJW' \
--header 'X-SP-USER-IP: 255.127.79.76' \
--header 'X-SP-USER: |e83cf6ddcf778e37bfe3d48fc78a6502062fc22' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "[email protected]",
"password":"test1234"
}'
Last modified 1yr ago