API


Authentication

Basic Flow

To generate an astrological report from the AstroAPI, the system (your implementation) makes a request to the /api/auth endpoint with username and password. On correct authentication you'll receive an accessToken.

Authentication request

POST /api/auth

Header Value
Accept-Encoding application/json
Content-Type application/json

body

{
    "email": "[EMAIL ADDRESS]",
    "password": "[PASSWORD]"
}

Response

Example of an accessToken
{
    "user": "[email protected]",
    "accessToken": "6|v3eCVr4i3ZSg481gzSYSBqvxvuP6pf37B26FnRDm"
}


Usage of an accessToken
Header Value
Accept-Encoding application/json
Content-Type application/json
Authorization Bearer [accessToken]