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

# Sending a request to an alias

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

All users logged into Yandex Cloud can send requests to a public alias. To send a request to a private alias, the following roles are required:

* For users, the minimum role in the project is `datasphere.community-projects.developer`.
* Service accounts need the `datasphere.community-projects.developer` role in the project; or else the service account must reside in the folder specified when creating the alias.

{% list tabs %}

- Yandex DataSphere interface

  The type of a request to an [alias](../../concepts/deploy/index.md#alias) depends on your [node](../../concepts/deploy/index.md#node). You can send a test request in the interface if you expect the response to contain simple data, such as numbers or string variables.
  
  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 **Alias**.
  1. Select the alias to send the request to.
  1. Go to the **Request** tab.
  1. Under **Create test request**:
     * In the **Method** field, select the request type.
     * 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 an alias for `cURL` and `gRPCurl`.
  
  {% endnote %}

- gRPC API

  You can use [gRPCurl](https://github.com/fullstorydev/grpcurl) to make gRPC calls.
  
  ```bash
  grpcurl \
     --header "x-node-alias: datasphere.user.<alias_name>" \
     --header "Authorization: Bearer <IAM_token>" \
     --header "x-folder-id: <folder_ID>" \
     --data '<input_variables>' \
     node-api.datasphere.yandexcloud.net:443
  ```
  
  Where:
  
  * `<alias_name>`: Alias name.
  * `<IAM_token>`: [IAM token](../../../iam/concepts/authorization/iam-token.md) used for authentication.
  * `<folder_ID>`: ID of the folder where the project and the alias 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>
     }
  }
  ```

- REST API

  You can use [cURL](https://curl.se) to send REST requests.
  
  ```bash
  curl \
     --header "x-node-alias: datasphere.user.<alias_name>" \
     --header "Authorization: Bearer <IAM_token>" \
     --header "x-folder-id: <folder_ID>" \
     --request <request_type> \
     --data '<input_variables>' \
     https://node-api.datasphere.yandexcloud.net/
  ```
  
  Where:
  
  * `<alias_name>`: Alias name.
  * `<IAM_token>`: IAM token used for authentication.
  * `<folder_ID>`: ID of the folder where the project and the alias 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 %}