[Yandex Cloud documentation](../../../index.md) > [Yandex DataSphere](../../index.md) > [Step-by-step guides](../index.md) > DataSphere Inference > Sending a request to a node

# Sending a request to a node

The provided request examples work correctly only with [Docker image nodes](../../concepts/deploy/index.md#docker-node). To request [a model node](../../concepts/deploy/index.md#models-node), install [Triton Client](https://github.com/triton-inference-server/client).

Requests to the node can be submitted by users and [service accounts](../../../iam/concepts/users/service-accounts.md) with the minimum project role of `datasphere.community-projects.developer`. The service account must reside in the same folder as the node.

{% list tabs %}

- Yandex DataSphere interface

  Send a test request to a [node](../../concepts/deploy/index.md#node) from the DataSphere interface:
  1. Select the project in your community or on the DataSphere [home page](https://datasphere.yandex.cloud) in the **Recent projects** tab.
  1. Under **Project resources**, select **Node**.
  1. Select the node to send the request to.
  1. Go to the **Request** tab.
  1. Under **Create test request**, in the **Input** field, enter the request input variables in `{"a":2,"b":3}` format and click **Execute**.
  1. View the request processing results under **Response**.
  
  {% note info %}
  
  The **cURL** section contains examples of requests to a node for `cURL` and `gRPCurl`.
  
  The **Server response** section provides sample code and node response descriptions.
  
  {% endnote %}

- gRPC API

  ```bash
  grpcurl \
     --header "x-node-id: <node_ID>" \
     --header "Authorization: Bearer <IAM_token>" \
     --header "x-folder-id: <folder_ID>" \
     --data '<input_variables>' \
     node-api.datasphere.yandexcloud.net:443
  ```
  
  Where:
  
  * `<node_ID`: Node ID.
  * `<IAM_token>`: [IAM token](../../../iam/concepts/authorization/iam-token.md) used for authentication.
  * `<folder_ID>`: ID of the folder where the project and node were created.
  * `<input_variables>`: Object in `{"a":2,"b":3}` format where keys match input variables.
  
  The successful response will return an object:
  
  ```json
  {
     "output": {
        <output_variables>
     }
  }
  ```

  Where `<output_variables>` is the object where keys match output variables.

- REST API

  You can use [cURL](https://curl.se) to send REST requests.
  
  ```bash
  curl \
     --header "x-node-id: <node_ID>" \
     --header "Authorization: Bearer <IAM_token>" \
     --header "x-folder-id: <folder_ID>" \
     --request <method> \
     --data '<input_variables>' \
     https://node-api.datasphere.yandexcloud.net/
  ```
  
  Where:
  
  * `<node_ID>`: Node ID.
  * `<IAM_token>`: IAM token used for authentication.
  * `<folder_ID>`: ID of the folder where the project and node were created.
  * `<request_type>`: Type of HTTP request.
  * `<input_variables>`: Object in `{"a":2,"b":3}` format where keys match input variables.
  
  The response returns a JSON object with output variables.

{% endlist %}