Getting Started
Let's discover Thely.io in less than 5 minutes.
Authentication
In order for your customer-facing app to connect to Thely.io you will need a session-specific JWT.
Let's obtain that and place it in the headers with the key x-token
Initialize Session
Initialize a new public session to use customer facing application.
Where merchantId is the id of the merchant account you created.
Can be found in your settings page
curl -X 'GET' \
'https://api.thely.io/api/v1/app/init/{merchantId}' \
-H 'accept: application/json'
Example response:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bml0IjoiaW1wZXJpYWwiLCJjdXJyZW5jeSI6IlVTRCIsIm1lcmNoYW50SWQiOiIxIiwiZXhwaXJ5IjoxNjk5NDg1ODQ0MDc4LCJ0cyI6MTY5OTM5OTQ0NDA3OCwidXNlcklwIjoiOjoxIiwiaWF0IjoxNjk5Mzk5NDQ0fQ.yjAEA1aqehfvgrL4WemrXL0kJHdoCmWxXkuouxmhp6s
And that's it! You can now interact with the customer api