Login API
Generate authorization token for local user
Generates an authorization token using which you can access fabric APIs. Ensure that you provide valid credentials to get an authorization token.
POST
Headers
The x-site-context is a JSON object that must contain date, and channel attributes. eg - {"date":"2020-12-12T08:00:00.000Z","channel":12}
Body
application/json
Merchant's 10 character copilot account ID
Password using which you log into fabric copilot UI
Username or email address of the user who will log in
Response
200 - application/json
fabric internal ID
Access Token. This is the token to consume the copilot APIs.
Copilot account information
List of available permissions for the user
Refresh token
List of available roles for the user