1. Securing Your API Key
Step-by-Step Guide:
Log in to Your Account
- Visit the website (e.g., report.divineapi.com).
- Use your registered email and password to sign in.
Navigate to the API Credentials Section
- After logging in, locate the menu or user icon (generally at the top right corner).
- Click on it and select the "API Credentials" option from the dropdown menu.
Access Your API Key and Token
- On the API Credentials page, you will see two sections:
- Live API Credentials: For production use.
- Test API Credentials: For testing your integration.
- Both sections include the API Key and Bearer Token.
Copy the Credentials
- Use the provided "Copy" button next to the API key and token to copy them securely.
Secure Your API Key and Token
- Never share your API credentials publicly.
- Store them securely in environment variables or encrypted files to prevent unauthorized access.
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 "Natal Couple Report" API request.
- Ensure the method is set to POST.
- Use this request URL: https://pdf.divineapi.com/astrology/v1/couple
Set the parameters:-
- Navigate to “Authorization”, select “Bearer Token” in the Auth type, and then add the token from API Credentials Page.
- Navigate to 'Body', select 'form_data', and then add:
- api_key: “<Your_API_Key>” - Your unique API subscription identifier.
- p1_full_name: “Rahul Kumar” - Enter name.
- p1_day: “24” - Enter the date of birth.
- p1_month: “05” - Enter the month of birth.
- p1_year: "1998" - The year of interest.
- p1_hour: “14” - Enter the hour.
- p1_min: “40” - Enter the minute.
- p1_sec: “43” - Enter the second.
- p1_gender: “male” - Enter the gender.
- p1_place: "New Delhi" - The name of the city.
- p1_lat: "28.7041" - Latitude for location-specific details. Latitude & Longitude Testing Tool
- p1_lon: "77.1025" - Longitude for accurate location insights.
- p1_tzone: "5.5" - Timezone offset from UTC. Timezone List
- p2_full_name: “Simran Kumari” - Enter name.
- p2_day: “10” - Enter the date of birth.
- p2_month: “12” - Enter the month of birth.
- p2_year: "1999" - The year of interest.
- p2_hour: “14” - Enter the hour.
- p2_min: “15” - Enter the minute.
- p2_sec: “05” - Enter the second.
- p2_gender: “female” - Enter the gender.
- p2_place: "New Delhi" - The name of the city.
- p2_lat: "28.7041" - Latitude for location-specific details. Latitude & Longitude Testing Tool
- p2_lon: "77.1025" - Longitude for accurate location insights.
- p2_tzone: "5.5" - Timezone offset from UTC. Timezone List
- lan: “en” - Enter the language.
- company_name:“Divine API” - Enter the company name.
- company_url:“https://divineapi.com/” - Enter the company url.
- company_email:“admin@divineapi.com” - Enter the company email.
- company_mobile:“+91 1212 1212 12” - Enter company mobile number.
- company_bio:“Your Company Bio” - Enter your company bio.
- logo_url:“logo_url” - Enter the company logo url.
- footer_text:“Your Company Bio” - Enter your company bio.
- report_code:“ALIGNED-ENERGIES-REPORT” - Enter your report code Get report code
- Please ensure that the bearer token is exactly the same as in your profile, with no changes in spacing or formatting.
- "Refer to the API documentation for detailed instructions: Natal Couple Report API."