All REST requests shown in this document require authorization.
Authorization is established through the use of tisjwt tokens. For details about getting tisjwt tokens please see TiS Cloud - API Settings.
You can either provide this token as a query parameter or include it in the HTTP request header.
Providing a tisjwt token in request header
The tisjwt token can be provided as part of the request header as...
key | value | value sample |
---|---|---|
Authorization | TISJWT <tsjwt> | TISJWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJjb20ub2JThisIsaFakeJWTltZS1pbi1zdGF0dXMiLCJzdWIiOiI1NTcwNTg6MGQ5 MDM3N2YtMTNlZS00MzEzLTlmNjYtMDA1NTVhYTI4MGUzIiwiY2xpZW50S2V5IjoiMThlNWViY2MtM2QyZC0zNzg5LWExODAtYzQ5NzgwO WM1ZTdlIiwiaXNzIjoiY29tLm9ic3MucGx1Z2luLnRpbWUtaW4tc3RhdHVzIiwiZXhwIjo0MTAyNDQ0NzQwLCJpYXQiOjE1ODMzMDgzMzB9.Nl inm0tNgM9pSk0Dd4FeNZVzLHAPabgfDEcVxdWuJGE |
This is the recommended way for authorization.
Providing a tisjwt token as a query parameter
The tisjwt token can be provided in the query URL as a query parameter with the same name as shown below.
This use is not recommended to be used with production tisjwt tokens since it will include your tisjwt token in the URL and thus expose it in various access logs and request histories.
Example |
---|
ZS00MzEzLTlmNjYtMDA1NTVhYTI4MGUzIiwiY2xpZW50S2V5IjoiMThlNWViY2MtM2QyZC0zNzg5LWExODAtYzQ5NzgwOWM1ZTdlIiwiaXNzIjoiY29tLm9ic3MucGx1Z2luLnRpbWUtaW4tc3RhdHVzIi wiZXhwIjo0MTAyNDQ0NzQwLCJpYXQiOjE1ODMzMDgzMzB9.Nlinm0tNgM9pSk0Dd4FeNZVzLHAPabgfDEcVxdWuJGE |