Перейти до вмісту
AstroWay/api v2.325.0 · docs
усі системи в нормі

Bind Rune

POST
/runes/bind-rune
request.sh
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" ] }'

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.

fields
string

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.longitude
precision
integer
<= 15

Round 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
4
Idempotency-Key
string
>= 1 characters <= 255 characters /^[\x21-\x7E]+$/

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
01HXY2A7ZM0ABCDEF
Media type application/json
object
runes

Two to four Elder Futhark slugs to bind, e.g. [“algiz”, “sowilo”].

Array<string>
>= 2 items <= 4 items
Allowed values: fehu uruz thurisaz ansuz raidho kenaz gebo wunjo hagalaz nauthiz isa jera eihwaz perthro algiz sowilo tiwaz berkano ehwaz mannaz laguz ingwaz dagaz othala
intent

Without runes: a word such as protection, wealth or journey; the runes whose meanings name it are bound (up to three).

string
>= 3 characters <= 60 characters
Example
{
"runes": [
"algiz",
"sowilo"
]
}

Successful calculation

Media type application/json
object
ok
boolean
data
object
intent
nullable
runes
Array<object>
nullable
object
number
number
nullable
slug
string
nullable
name
string
nullable
letter
string
nullable
glyph
string
nullable
aett
string
nullable
meaning
string
nullable
upright
string
nullable
reversed
string
nullable
element
string
nullable
deity
string
nullable
poem
object
slug
string
nullable
oeName
string
nullable
oldEnglish
Array<string>
nullable
gloss
string
nullable
svg
string
nullable
bindRune
object
name
string
nullable
strokes
Array<object>
nullable
object
x1
number
nullable
y1
number
nullable
x2
number
nullable
y2
number
nullable
svg
string
nullable
coordinates
string
nullable
reading
string
nullable
basis
string
nullable
note
string
nullable
source
string
nullable
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

Media type application/json
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

Media type application/json
Example
{
"ok": false,
"error": {
"code": "INVALID_API_KEY",
"message": "Invalid API key"
}
}