# Subpaas session key

## API actions

API base path: `panel/subpaas/session`.

### create

Creates a SubPaaS session.

#### Parameters

| name        | description  | type |
| ----------- | ------------ | ---- |
| subpaas\_id | Subpaas' ID. | int  |

#### Examples

{% tabs %}
{% tab title="cURL" %}

```sh
curl -X POST 'https://api.eu.navixy.com/v2/panel/subpaas/session/create' \
    -H 'Content-Type: application/json' \
    -d '{"hash": "fa7bf873fab9333144e171372a321b06", "subpaas_id": 97834}'
```

{% endtab %}

{% tab title="HTTP GET" %}
{% code overflow="wrap" %}

```http
https://api.eu.navixy.com/v2/panel/subpaas/session/create?hash=fa7bf873fab9333144e171372a321b06&subpaas_id=97834
```

{% endcode %}
{% endtab %}
{% endtabs %}

#### Response

```json
{
  "success": true,
  "hash": "600d4a5400000000600d4a5400000000"
}
```

#### Errors

* 13 –
  * The dealer is not PaaS type.
  * The dealer has a status other than `NOT_BLOCKED`.
  * The dealer's tariff does not allow SubPaaS accounts.
  * The found SubPaaS is not in `NOT_BLOCKED` status.
