1. Securing Your API Key
To start, you need an API key. Head over to https://divineapi.com/ and register to initiate your 7-day trial.
- Select the APIs you are interested in; you can change these selections at any time. You can add or remove APIs in the future.
- Click on checkout, fill out the sign-up form, and enter your payment details on the next page.
Your trial will begin immediately. You won't be charged during the trial period, and you can cancel anytime without incurring any charges.
- After logging in, your API key will be visible on your dashboard on the API Key page ( https://divineapi.com/api-keys)
2. Importing the Postman Collection
Import our Postman collection to facilitate your API testing:
- After logging into your Postman account:
- Open This link: https://documenter.getpostman.com/view/27195761/2sA3Qs8rfV
- Click “Run in Postman” and then select “Run in Web”.
- Select your workspace and then select ‘import’.
3. Configuring Your API Request
Once the collection is imported:
- Locate the "Heartbreak Reading Tarot" API request.
- Ensure the method is set to POST.
- Use this request URL: https://astroapi-5.divineapi.com/api/v2/heartbreak-reading
4. Setting Request Parameters
This API call necessitates only your API key. To find your API key.
- Go to your DivineAPI dashboard > API Key page.
- Click on “Copy” next to the API key
Notice the difference between the key, and the Access Token.
Go back to Postman to set the parameters.
- Navigate to “Authorization”, select “Bearer Token” in the Auth type, and then add the token from your Divine API profile.
- Navigate to 'Body', select 'form_data', and then add:
- Key : api_key | Value: <Your_API_Key>
- lan : “en” - Enter the language.
- Please ensure that the bearer token is exactly the same as in your profile, with no changes in spacing or formatting.
5. Making the Request
Hit the 'Send' button to submit your request.
6. Deciphering the Response
The API's response will be structured as follows:
{
{
"success": 1,
"data": {
"prediction": {
"card1": "THE LOVERS",
"card2": "THE EMPEROR",
"card1_image": "https://astroapi-5.divineapi.com/public/uploads/tarot-breakup/7.png",
"card2_image": "https://astroapi-5.divineapi.com/public/uploads/tarot-breakup/5.png",
"cause": "You may have once experienced a wild love story that started with all the excitement and passion you could ever imagine. But as you got to know one another, you both realized that there were certain aspects of your relationship that were not what you had hoped for. Perhaps you both felt a sense of disappointment or disillusionment, as you began to see each other's flaws and imperfections.\r\n\r\nIt's possible that the romance was fueled by a sense of romantic delusion, rather than a genuine connection between the two of you. Maybe one of you lost interest quickly, or you both found yourselves struggling to maintain the same level of enthusiasm that you had at the beginning. It's not uncommon for people to fall in love with the idea of someone, rather than the reality of who they are.\r\n\r\nIn hindsight, you may have come to the realization that both of you were blind to the reality of your relationship, until it became too overwhelming to ignore. It's understandable that you may have felt disappointed or even heartbroken, but it's important to recognize that these experiences can be valuable opportunities for growth and self-discovery.\r\n\r\nBy taking the time to reflect on what went wrong and what you can learn from the experience, you can move forward with a greater sense of self-awareness and a clearer understanding of what you truly want in a relationship. Remember, it's okay to be honest with yourself and others about your feelings, and to take a step back if things aren't working out as you had hoped.\r\n\r\nThe Lovers reminds you that you are in control of your own destiny, and that by taking charge of your emotions and needs, you can create a more fulfilling and satisfying life for yourself. Don't be afraid to be true to yourself, and to pursue the things that make you truly happy. With time, patience, and a willingness to learn and grow, you can create a life that is filled with love, joy, and abundance.",
"advise": "It sounds like your past relationship was marked by an imbalance in power. Perhaps you even felt like you were with a parent rather than a partner. This can be a difficult and frustrating dynamic to navigate, but don't worry – there are ways to move forward and find healthier relationships.\r\n\r\nThe wise and strong Emperor advises you to be your own guardian and take control of your life. This means taking responsibility for your own well-being, setting boundaries, and making decisions that are in your best interest. When you take ownership of your life, you'll attract people who respect your boundaries and support your independence.\r\n\r\nOn the other hand, if you continue to rely on others to make decisions for you, you'll likely attract people who want to take control of your life. This can lead to more dysfunctional relationships and a sense of feeling trapped or powerless.\r\n\r\nSo how can you improve your self-reliance? Start by identifying areas where you may be overly dependent on others. This could include financial support, emotional validation, or decision-making. Once you've identified these areas, take small steps towards becoming more self-sufficient. This could mean creating a budget and managing your own finances, seeking out therapy or support groups to work through emotional issues, or practicing making decisions on your own, even if they are small.\r\n\r\nRemember, improving your self-reliance takes time and practice, but it's a crucial step towards building healthy, fulfilling relationships. The Emperor reminds you that you have the power within you to create the life you want – all you need to do is take the first step."
}
}
}
- This API response provides a "Heartbreak Reading" with two tarot cards drawn: "The Lovers" and "The Emperor."
- The "cause" section explains a past romantic relationship marked by excitement turning into disappointment and disillusionment.
- The "advise" section suggests taking control of one's life, setting boundaries, and fostering self-reliance to attract healthier relationships.
- Display card images using the provided URLs and emphasize the importance of self-awareness and personal growth in moving forward from heartbreak.
7. Error Resolution
Ensure your API key is correctly entered if you encounter errors, as most issues are due to invalid or missing API keys.
8. Further Assistance
For additional support or inquiries, feel free to contact our customer service team at admin@divineapi.com.