Skip to main content

Get JWT token from authentication

POST 

/login/code/:code

The request to get a JWT token. Most of the requests should include an Authentication Bearer token in the header

Request​

Path Parameters

    code stringrequired

    The code can be received from the body of a Authentication request to the authentication server

    Example: 056dba62-0168-4d67-8131-a685f2d365ed

Header Parameters

    X-Domain stringrequired

    Every request should has X-Domain Header, in the UUIDv4 format. The X-Domain can be get from the Tenant Integrations page

    X-API-KEY stringrequired

    An X-API-KEY key is a token that a client provides with a X-API-SECRET when making API calls, used instead of the JWT

    X-API-SECRET stringrequired

    An X-API-SECRET key is a token that a client provides with a X-API-KEY when making API calls, used instead of the JWT

Body

Request body should contains data

    data

    object

    Request body should contain a current tenant id

    id string

    The current tenant id

    type string

Responses​

The user successfully authorized to the Trisk

Schema

    type string

    attributes

    object

    token string

    Authentication Bearer token that should be used as a header in most requests

Loading...