Skip to content

Chart as Sound​

POST
/api/widget-api/sound/{widgetId}

Render a birth chart as audio for an embedded player.

Answers with a signed audio URL and the time axis of the piece, not with bytes — the widget
puts the URL in an <audio src> and the browser fetches it without any header. That keeps
the embed to one counted request and keeps the mapping, which is the part worth protecting,
out of the page entirely.

Authorizations​

ApiKeyAuth

API key for authentication. Get your API key from the dashboard.

Type
API Key (header: X-Api-Key)

Parameters​

Path Parameters

widgetId*
Type
string
Required

Request Body​

application/json
JSON
{
  
"birthData": {
  
  
"dateTime": "string",
  
  
"latitude": 0,
  
  
"longitude": 0,
  
  
"timezone": "string",
  
  
"placeName": "string"
  
},
  
"duration": 45
}

Responses​

Signed audio URL and marker timeline

Playground​

Authorization
Variables
Key
Value
Body

Samples​

Powered by VitePress OpenAPI

AstroAPI Documentation