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.
Login
POST
https://api.synapsefi.com/v3.1/oauth/:user_id/login
This endpoint allows you to generate a refresh token for the user linked to your client credentials.
Path Parameters
Name | Type | Description |
---|---|---|
user_id | string | ID of the user you wish to generate an OAuth token for. |
Headers
Name | Type | Description |
---|---|---|
X-SP-USER | string | OAuth key and device fingerprint of the user separated by a pipe. In this API call, only the device fingerprint is required. |
X-SP-USER-IP | string | IP Address of the user device. |
X-SP-GATEWAY | string | Your Client ID and Secret separated by a pipe. |
Request Body
Name | Type | Description |
---|---|---|
string | Email associated with the user login object. | |
password | string | Password associated with the same user login object. |
Example Request
Last updated