# Human Design

AstroWay API are **12 de endpointe Human Design** — cea mai profundă acoperire HD dintre API-urile comerciale. Endpoint-ul principal `POST /v1/human-design` returnează harta completă. Cost: **50 de credite** (Tier 3).

## 12 de endpointe HD

| Endpoint | Credite | Ce returnează |
|---|---|---|
| `/v1/human-design` | 50 | Hartă HD completă: tip, strategie, autoritate, canale, centre, profil |
| `/v1/human-design/transits` | 50 | Tranzitii HD pentru o dată dată |
| `/v1/human-design/compatibility` | 100 | Compatibilitatea a două hărți HD |
| `/v1/hd/incarnation-cross` | 50 | Crucea de Incarnare |
| `/v1/hd/dream-rave` | 50 | Hartă Dream Rave |
| `/v1/hd/hologenetic` | 50 | Profil Hologenetic |
| `/v1/hd/sensitivity` | 50 | Sensibilitatea temporală (cât de mult afectează schimbarea orei nașterii harta) |
| `/v1/hd/circuitry` | 20 | Analiza circuitelor |
| `/v1/hd/penta` | 100 | Penta (dinamică de grup 3–5 persoane) |
| `/v1/hd/group-overlay` | 100 | Suprapunere de grup |
| `/v1/hd/design-date` | 10 | Data Design (88° Soare până la naștere) |
| `/v1/hd/rave-new-years` | 10 | Datele Rave New Year |

## Exemplu de cerere

Parametrii sunt aceiași ca și pentru `/v1/chart`:

<Tabs syncKey="lang">
  <TabItem label="cURL">
    ```bash frame="terminal"
    curl -X POST https://api.astroway.info/v1/human-design \
      -H "X-Api-Key: aw_live_your_key_here" \
      -H "Content-Type: application/json" \
      -d '{
        "date": "1990-07-14",
        "time": "14:30:00",
        "timezoneOffset": 3,
        "latitude": 50.4501,
        "longitude": 30.5234
      }'
    ```
  </TabItem>
  <TabItem label="Node.js">
    ```ts
    const res = await fetch('https://api.astroway.info/v1/human-design', {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
        'X-Api-Key': process.env.ASTROWAY_API_KEY!,
      },
      body: JSON.stringify({
        date: '1990-07-14',
        time: '14:30:00',
        timezoneOffset: 3,
        latitude: 50.4501,
        longitude: 30.5234,
      }),
    });
    const hd = await res.json();
    console.log(hd.type);       // e.g. "Generator"
    console.log(hd.strategy);   // e.g. "To Respond"
    console.log(hd.authority);  // e.g. "Sacral"
    console.log(hd.profile);    // e.g. "1/3"
    ```
  </TabItem>
  <TabItem label="Python">
    ```python

    r = requests.post(
        'https://api.astroway.info/v1/human-design',
        headers={'X-Api-Key': os.environ['ASTROWAY_API_KEY'], 'Content-Type': 'application/json'},
        json={
            'date': '1990-07-14',
            'time': '14:30:00',
            'timezoneOffset': 3,
            'latitude': 50.4501,
            'longitude': 30.5234,
        },
    )
    hd = r.json()
    print(hd['type'])       # e.g. "Generator"
    print(hd['strategy'])   # e.g. "To Respond"
    print(hd['authority'])  # e.g. "Sacral"
    print(hd['channels'])   # List of defined channels
    ```
  </TabItem>
  <TabItem label="PHP">
    ```php
    <?php
    use GuzzleHttp\Client;

    $client = new Client(['base_uri' => 'https://api.astroway.info/v1/']);
    $r = $client->post('human-design', [
        'headers' => ['X-Api-Key' => getenv('ASTROWAY_API_KEY')],
        'json' => [
            'date' => '1990-07-14',
            'time' => '14:30:00',
            'timezoneOffset' => 3,
            'latitude' => 50.4501,
            'longitude' => 30.5234,
        ],
    ]);

    $hd = json_decode($r->getBody(), true);
    echo $hd['type'];       // e.g. "Generator"
    echo $hd['strategy'];   // e.g. "To Respond"
    echo $hd['authority'];  // e.g. "Sacral"
    echo $hd['profile'];    // e.g. "1/3"
    ```
  </TabItem>
</Tabs>

## Exemplu de răspuns

```json
{
  "input": {
    "date": "1990-07-14",
    "time": "14:30:00",
    "timezoneOffset": 3,
    "latitude": 50.4501,
    "longitude": 30.5234
  },
  "type": "Generator",
  "strategy": "To Respond",
  "notSelfTheme": "Frustration",
  "authority": "Sacral",
  "profile": "1/3",
  "definition": "single",
  "cross": {
    "name": "Right Angle Cross of the Sphinx",
    "quarter": "Civilization",
    "gates": [1, 2, 7, 13]
  },
  "centers": [
    { "name": "Sacral", "defined": true },
    { "name": "Root", "defined": true },
    { "name": "SolarPlexus", "defined": false },
    { "name": "Heart", "defined": false },
    { "name": "Throat", "defined": true },
    { "name": "Ajna", "defined": false },
    { "name": "Head", "defined": false },
    { "name": "Spleen", "defined": true },
    { "name": "G", "defined": true }
  ],
  "channels": [
    { "gate1": 34, "gate2": 20, "name": "Channel of Charisma", "type": "Generated" }
  ],
  "personalityActivations": [
    { "gate": 1, "line": 3, "planet": "Sun", "side": "personality" }
  ],
  "designActivations": [
    { "gate": 2, "line": 5, "planet": "Sun", "side": "design" }
  ],
  "designJd": 2448000.123,
  "personalityJd": 2448087.979
}
```

<Aside type="note">
Răspunsul include toate cele 26 de activări (13 Personality + 13 Design), toate cele 9 centre și toate canalele definite. Scurtat pentru claritate.
</Aside>

## Câmpuri cheie ale răspunsului

| Câmp | Tip | Descriere |
|---|---|---|
| `type` | string | Manifestor, Generator, Generator Xing (MG), Projector, Reflector |
| `strategy` | string | Strategia decizională |
| `authority` | string | Autoritatea interioară |
| `profile` | string | Profil (ex. `"1/3"`, `"4/6"`) |
| `definition` | string | single, split, triple-split, quadruple-split |
| `cross` | object | Crucea de Incarnare (nume, sfert, 4 porți) |
| `centers` | array | Cele 9 centre cu indicatorul defined/open |
| `channels` | array | Canalele definite |
| `personalityActivations` | array | Cele 13 activări Personality (conștient) |
| `designActivations` | array | Cele 13 activări Design (inconștient) |

## Mai departe

- [Hartă natală](/examples/natal/) — cerere de bază
- [Sinastria](/examples/synastry/) — compatibilitatea a două hărți
- [Tranzituri](/examples/transits/) — suprapunere tranzit
- [Referință API](/docs/api/) — toate {siteMeta.endpoints} de endpointe
