# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://navixy.com/docs/navixy-api/panel-api/resources/subpaas/session.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
