Bind Rune
curl -X POST https://api.astroway.info/v1/runes/bind-rune \ -H "X-Api-Key: aw_live_..." \ -H "Content-Type: application/json" \ -d '{ "runes": [ "algiz", "sowilo" ] }'const res = await fetch('https://api.astroway.info/v1/runes/bind-rune', { method: 'POST', headers: { 'X-Api-Key': process.env.ASTROWAY_API_KEY, 'Content-Type': 'application/json', }, body: JSON.stringify({ "runes": [ "algiz", "sowilo" ] }),});const { ok, data, error } = await res.json();if (!ok) throw new Error(error.message);console.log(data);import os, requests
r = requests.post( 'https://api.astroway.info/v1/runes/bind-rune', headers={'X-Api-Key': os.environ['ASTROWAY_API_KEY'], 'Content-Type': 'application/json'}, json={ 'runes': [ "algiz", "sowilo" ] },)result = r.json()if not result['ok']: raise RuntimeError(result['error']['message'])print(result['data'])<?phpuse GuzzleHttp\Client;
$client = new Client(['base_uri' => 'https://api.astroway.info/v1/']);$r = $client->post('runes/bind-rune', [ 'headers' => ['X-Api-Key' => getenv('ASTROWAY_API_KEY')], 'json' => [ 'runes' => ['algiz', 'sowilo'], ],]);$result = json_decode($r->getBody(), true);if (!$result['ok']) throw new \RuntimeException($result['error']['message']);print_r($result['data']);Joins two to four runes on one stave (or the runes whose meanings name an intent), returning each rune with its poem stanza and SVG, the combined strokes as coordinates and a ready SVG of the bind rune.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Comma-separated dotted paths, relative to data, to keep in the response. A path is applied to every element of an array, so planets.name means the name of each planet. Paths that match nothing come back in _fields_unmatched; a list where nothing matches at all is a 400, because an empty object would be a confident wrong answer.
Example
planets.name,planets.longitudeRound every non-integer number in the response to this many decimal places. Integers are left alone, because an id is not a measurement. Ecliptic longitudes ship with fourteen decimals by default; 2 is about a tenth of an arcminute.
Example
4Header Parameters
Section titled “Header Parameters ”Unique per logical operation, kept across retries. For 24 hours from the first request, a repeat with the same key, method, path, body and query string returns the stored response with Idempotent-Replayed: true and costs 0 credits. The same key with a different body or query string is a 409 IDEMPOTENCY_KEY_REUSED; a repeat while the first is still running is a 409 IDEMPOTENCY_IN_PROGRESS. Only 2xx responses are kept. See /idempotency/.
Example
01HXY2A7ZM0ABCDEFRequest Body required
Section titled “Request Body required ”object
Two to four Elder Futhark slugs to bind, e.g. [“algiz”, “sowilo”].
Without runes: a word such as protection, wealth or journey; the runes whose meanings name it are bound (up to three).
Example
{ "runes": [ "algiz", "sowilo" ]}Responses
Section titled “ Responses ”Successful calculation
object
object
object
object
object
object
Example
{ "ok": true, "data": { "intent": null, "runes": [ { "number": 15, "slug": "algiz", "name": "Algiz", "letter": "Z", "glyph": "ᛉ", "aett": "Hagal", "meaning": "elk-sedge, protection, sanctuary", "upright": "divine protection, higher self, sanctuary", "reversed": "vulnerability, taboo broken, danger", "element": "air", "deity": "Heimdall (warder)", "poem": { "slug": "algiz", "oeName": "Eolh-secg", "oldEnglish": [ "Eolh-secg eard hæfþ oftust on fenne", "wexeð on wature, wundaþ grimme,", "blode breneð beorna gehwylcne", "ðe him ænigne onfeng gedeþ." ], "gloss": "Elk-sedge mostly lives in the fen and grows in water; it wounds cruelly and draws blood from anyone who tries to grasp it." }, "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 140\" width=\"100\" height=\"140\" role=\"img\" aria-label=\"Algiz\"><title>Algiz</title><g fill=\"none...</svg>" } ], "bindRune": { "name": "Algiz + Sowilo", "strokes": [ { "x1": 0, "y1": 0, "x2": 0, "y2": 1 } ], "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 140\" width=\"100\" height=\"140\" role=\"img\" aria-label=\"Bind rune Algiz + Sowilo\"><title>Bind ru...</svg>", "coordinates": "Stave at x = 0, y from 0 (top) to 1 (bottom); arms reach to x = -0.4 and 0.4." }, "reading": "Joined on one stave, Algiz (divine protection) and Sowilo (success) are read as one sign holding all their meanings at once.", "basis": "convention", "note": "Bind runes (several runes on a shared stave) are found in early inscriptions; building one from chosen meanings as a talisman is modern practice.", "source": "Poetic Edda + Prose Edda + Flowers 1984 + Paxson 2005; Old English Rune Poem (anonymous, public domain), text as in Dickins, Runic and Heroic Poems (1915); glosses are our own paraphrase" }}Validation error
Example
{ "ok": false, "error": { "code": "INVALID_INPUT", "message": "Validation failed: date: Date must be YYYY-MM-DD", "details": [ { "path": "date", "message": "Date must be YYYY-MM-DD" } ] }}Missing or invalid API key
Example
{ "ok": false, "error": { "code": "INVALID_API_KEY", "message": "Invalid API key" }}