Generate a JWT Token

post/accountmanager.getjsonwebtoken

Generates and returns a non-expiring JSON Web Token for the authenticated user. Allows to restrict the scope of the token by a list of permissions. Used for integration purposes.

Information: The request header must contain real credentials (i.e. not just a session cookie).

Securitybasic or X-PriceFx-jwt
Request
Request Body schema: application/json
object
permissions
Array of strings
Responses
200

OK

Response Schema: application/json
object
node
string non-empty
csrfToken
string non-empty
data
Array of objects
status
number
Request samples
application/json
{
  • "data": {
    • "permissions": [
      • "CUSTOMER_ADD",
      • "CUSTOMER_FETCH"
      ]
    }
}
Response samples
application/json
{
  • "response": {
    • "node": "string",
    • "csrfToken": "string",
    • "data": [
      • { }
      ],
    • "status": 0
    }
}