POST /users/{userId}/link
Creates a short-lived (24 hours), single-use device linking session. Use the returned linkUrl
to present Link UI to your user via mobile in-app browsers or web redirects, or use the linkToken
to present Link UI via the Link SDKs.
Servers
- https://enode-api.production.enode.io
Path parameters
Name | Type | Required | Description |
---|---|---|---|
userId |
String | Yes |
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
scopes[] |
Array | Yes |
The scope(s) you wish to request access to when linking an asset (learn more). The scopes will be presented for user consent in Link UI in the review data access step. The |
vendor |
Object | No |
By specifying a vendor, the brand selection step in Link UI will be skipped. Instead, your user will go directly to the service selection view (if applicable for the specified vendor), or to the review data access step. |
vendorType |
Object | No | |
redirectUri |
String | Yes |
The URI your user will be redirected to after clicking "Complete" at the linking flow (from the last step in the Link UI flow). Only used in Link UI sessions that were not opened via the Link SDKs. |
colorScheme |
String | No |
Sets the color scheme (light or dark) of Link UI. If your UI is only available in one of the color schemes, and does not follow the operating system color scheme, we recommend setting either Possible values:
Default value: "system" |
language |
String | Yes |
Sets the language for Link UI. We recommend matching this to the language of your application. If your language is not yet supported, you can specify Possible values:
|
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.