Create OAuth Key
OAuth Details
Key | Type | Required | Description |
---|---|---|---|
| String | Required during | Token used to generate an OAuth Object. |
| Array of Strings | Required during | Scopes denote which API calls and actions the OAuth key is allowed to do. This field is worth customizing if you will be sending the OAuth key to the client device for certain actions reducing the damage a man-in-the-middle attack can do. |
Fingerprints
As fingerprints are required for OAuth key generation calls, there are options to consider related to the users fingerprint.
Key | Type | Required | Description |
---|---|---|---|
| Boolean | Optional | Will execute the MFA flow, to allow changing of is_protected fingerprint value. |
| Boolean | Optional (Requires | Setting to true prevents a fingerprint from being removed once the fingerprint array capacity limit is reached. |
OAuth
POST
https://api.synapsefi.com/v3.1/oauth/:user_id
This endpoint allows you to generate an OAuth token for a specific user so that you can perform necessary actions on behalf of the user.
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 |
---|---|---|
validation_pin | string | In case of MFA verification, the code delivered to the phone_number. |
phone_number | string | Phone number where the MFA code will be sent in an instance of a new fingerprint registration. |
scope | array | Array of Scopes the OAuth key will allow. Go to Possible Scopes to learn more. |
refresh_token | string | Refresh token associated with the user. |
Example Request
Last updated