Astro ChatBot API
Introducing the Astro ChatBot API, a simple and reliable way to let users ask any astrology question in plain language and get one grounded, chart-based answer back. You send a question and the person's birth details; DivineAPI fetches and compresses their chart, and streams back an answer written for a reader, not a developer. This API is designed for websites, mobile apps, chatbots, CRM dashboards, or astrology portals that want a conversational astrology experience instead of static reports.
It supports seven endpoints: one to ask a question inside a stored conversation, four to manage and inspect those conversations and your account, and one liveness check.
API Endpoint
GET https://ask.divineapi.com/sessionsGuide: Every conversation under your key, most recent first. Each entry carries the session ID, message count, when it started, when it was last active, and whether birth details are on file.
200: OK Answered Successfully
{
"sessions": [
{
"session_id": "s_5f21",
"messages": 6,
"started": 1788246485.6,
"last_active": 1788249956.9,
"has_birth_details": true
}
]
}Example Code Implementations
Below are example implementations in various programming environments.
cURL
curl "https://ask.divineapi.com/sessions?api_key=dk_live_..."