Quick Start

Last updated: March 07th, 2021

Security

In our new API all endpoints are protected by JWT authentication. If you would like to use these endpoints in our Swagger UI docs, you need to retrieve a JWT token first. You could do that by using an endpoint with default credentials for your greetanica account.

Environment

Two available environments for your use:

Usage

Step One

Retrieve token:
Request URL:

POST
: /api/v1/users/login_check

Request Body (raw):

{
"username" : "[greetanica.com api username]",
"api_key": "[greetanica.com api api_key]"
}

Example Response
{ "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSzI1NiJ9.eyJpYXQiOjE2MTUxMTgwNjQsImV4cCI6MTY yMDExODA2NCwicm9ZXMiOlsiYToxOntpOjA7czo5OlwiU k9MRV9VU0VSXCI7fSJdLCJ1c2VybmFtZSI6ImRlYW53ZWJkZXZlbG9wZXJAZ21haWwuY29tIn0.qMQTlmYwSik3sbxb1qjSNQ 2Gc1gyJUyVu8abTXLH03ZQN8kJjsvO8kmIBsoa-WxZNdyaohYmu9wNkmCVVodXNhQciM8HUHWl0Bzsbj5t3yyJ12S4TV5oEmyx46dbAQr1I2xc-UK-Kbo 851Qu DqqoPPAl5vLgXhGiZI2Y5GmMpO nwV8ZtoVzYYuQSBA4t6M1LBpr1ICkSrQogzrHo7et9yekd3XEETJ2uunsVRfiM78n8oryhF-nDqWQtlIHjbZBM84PrSi7gZm-CF0nd 2GInT-yLPyGhDjiSiVsRqzztoUByeVJ7htadR9m-auluvB_vg3furPNcCFMj88-1klazFRd4Ep8Ky4Qtlo4H1-lcfoAgacHMvUGrXm7ygA-S18LWzzFEFIuNrVrfCChHq5dzB60LXrIkVUMGDhdgpjrzRbKYB2RlCO4FcsvViT9gg1lseh5xT6KHlVt8vEc8VnT3e3-WHLVqUM4dcCeSsLT9dIVGmHBPwVnkGtwdHYgBF9Uryj_aae27kpldNkNvL9Psid3b2_xUkhNwN7Im34ijDoIbMWnNCs-SwyHq709QaZj8ReVx4pbeLj2Vt6P6VbJvoz4CJK06djW-yvhxO91r28IDd86VgeEF3X1xY4QLfHWVDMBXMfhUAwT1hok_p3FKaHBHOdJhSuWLQr1_BYcxQnk" }

Step Two

Attach acquired token to your Request Header

Authorization: Bearer {token}
Content-Type: application/json

Step Three

submit request to one of our api endpoints