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
https://prod01-apigw.{customer_name}.fabric.zone
/
api-identity
/
auth
/
local
/
login
Headers
x-site-context
object
requiredThe 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
accountId
number
Merchant's 10 character copilot account ID
username
string
Username or email address of the user who will log in
password
string
Password using which you log into fabric copilot UI
Response
200 - application/json
_id
string
fabric internal ID
account
object
Copilot account information
roles
string[]
List of available roles for the user
permissions
string[]
List of available permissions for the user
refreshToken
object
Refresh token
accessToken
object
Access Token. This is the token to consume the copilot APIs.