POSTalphaChart Calculation
Transit Chart Calculation
Return geocentric tropical transit positions and aspects from the owned sidecar for timing, daily horoscope, and ephemeris workflows.
Credits
2 credits per chart
Minimum Plan
Core Compute+
Billing Lane
No AI core
SDK Helper
transitChart / transit_chart
Inputs
- +transit datetime
- +transit location
- +max aspects
Outputs
- +transit chart
- +ranked aspects
- +calculation basis
- +sidecar metadata
Tool Functions
Capabilities behind this endpoint
chart.transits.calculateComputes the current or requested transit chart.
transit.positions.listReturns planet positions when provided by the sidecar.
transit.aspects.rankReturns sidecar aspect data up to the requested cap.
mundane.signal.seedSupplies verified ephemeris context for world signal forecasts.
daily.horoscope.seedSupplies owned transit substrate for daily horoscope products.
Current Transits request
{
"transit_datetime": "2026-06-17T12:00:00.000Z",
"transit_location": "Greenwich, GB",
"max_aspects": 30
}Current Transits response
{
"request_id": "req_...",
"data": {
"transit_datetime": "2026-06-17T12:00:00.000Z",
"transit_location": "Greenwich, GB",
"calculation_basis": {
"frame": "geocentric",
"zodiac": "tropical",
"system": "Kerykeion sidecar"
},
"chart": { "planets": [], "aspects": [] },
"aspects": []
},
"usage": { "lane": "core", "credits": 2, "billableUnits": 1 }
}curl
curl https://theleokingai.com/api/v1/charts/transits \
-X POST \
-H "Accept: application/json" \
-H "x-api-key: $LEOKING_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: transit-chart-subject-123-v1" \
-d '{
"transit_datetime": "2026-06-17T12:00:00.000Z",
"transit_location": "Greenwich, GB",
"max_aspects": 30
}'Node SDK
import { TheLeoKingApi } from "@theleoking/ai-api";
const api = new TheLeoKingApi({
apiKey: process.env.LEOKING_API_KEY,
baseUrl: "https://theleokingai.com/api"
});
const result = await api.transitChart(
{
"transit_datetime": "2026-06-17T12:00:00.000Z",
"transit_location": "Greenwich, GB",
"max_aspects": 30
},
"transit-chart-subject-123-v1"
);
console.log(result.request_id);
console.log(result.usage.credits);Python SDK
import os
from theleoking_ai_api import TheLeoKingApi
api = TheLeoKingApi(
api_key=os.environ["LEOKING_API_KEY"],
base_url="https://theleokingai.com/api",
)
result = api.transit_chart(
{
"transit_datetime": "2026-06-17T12:00:00.000Z",
"transit_location": "Greenwich, GB",
"max_aspects": 30,
},
idempotency_key="transit-chart-subject-123-v1",
)
print(result["request_id"])
print(result["usage"]["credits"])Error Behavior
| HTTP | Code | Partner Action |
|---|---|---|
| 400 | INVALID_REQUEST | Fix the payload shape, enum value, required field, or request body before retrying. |
| 401 | AUTH_REQUIRED | Send x-api-key from a trusted server environment. Do not expose keys in browser code. |
| 401 | AUTH_INVALID | Check the key prefix, rotate compromised keys, and verify the target environment. |
| 402 | CREDITS_EXHAUSTED | Upgrade the plan, add credits, or switch to a lower-cost Core Compute route. |
| 403 | AUTH_FORBIDDEN | Use a key scoped for this endpoint or upgrade to the required plan. |
| 404 | NOT_FOUND | Verify the job id, environment, API key, and whether the job belongs to the same workspace. |
| 409 | IDEMPOTENCY_CONFLICT | Reuse idempotency keys only for the same logical operation and identical request payload. |
| 429 | RATE_LIMITED | Back off, retry later, reduce concurrency, or request enterprise limits. |
Related Endpoints