[Yandex Cloud documentation](../../../index.md) > [Yandex Cloud Notification Service](../../index.md) > [Step-by-step guides](../index.md) > Mobile push notifications > Creating an endpoint

# Creating an endpoint

Each channel has its own base of [endpoints](../../concepts/index.md#mobile-endpoints) to send notifications directly to the app on user devices.

To create an endpoint:

{% list tabs group=instructions %}

- Management console {#console}

  1. In the [management console](https://console.yandex.cloud), go to the folder containing your endpoint.
  1. Navigate to **Cloud Notification Service**.
  1. Select a push notification channel.
  1. Navigate to the ![image](../../../_assets/console-icons/layers-3-diagonal.svg) **Endpoints** tab.
  1. Click **Create endpoint**.
  1. Enter **Device token**, a unique token on the user device, the one created by the notification service for the app.
  1. Optionally, enter **User data**, a [UTF-8](https://en.wikipedia.org/wiki/UTF-8) encoded text up to 2,048 characters long.
  1. Click **Create**.

- AWS CLI {#aws-cli}

  1. If you do not have the AWS CLI yet, [install and configure it](../../../storage/tools/aws-cli.md).
  1. Run this command:

      ```bash
      aws sns create-platform-endpoint \
        --platform-application-arn <notification_channel_ARN> \
        --token <push_token>
      ```
      
      Where:
      
      * `--platform-application-arn`: Notification channel ID (ARN).
      * `--token`: Unique push token for the application on the user’s device.
      
      As a result, you will get a mobile endpoint ID (ARN). Save it for future use.
      
      For more on the `aws sns create-platform-endpoint` command, see [this AWS guide](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sns/create-platform-endpoint.html).

- AWS SDK for Python {#python}

  1. If you do not have the AWS SDK for Python (boto3) yet, [install and configure it](../../tools/sdk-python.md#aws-sdk).
  1. To create an endpoint, use the following code:

      ```python
      response = client.create_platform_endpoint(
          PlatformApplicationArn="<notification_channel_ARN>",
          Token="<push_token>",
      )
      print ("Endpoint ARN:", response["EndpointArn"])
      ```
      
      Where:
      
      * `PlatformApplicationArn`: Notification channel ID (ARN).
      * `Token`: Unique push token for the app on the user’s device.
      
      As a result, you will get a mobile endpoint ID (ARN).

- AWS SDK for PHP {#php}

  1. If you do not have the AWS SDK for PHP yet, [install and configure it](../../tools/sdk-php.md#aws-sdk).
  1. To create an endpoint, use the following code:

      ```php
      $response = $client->createPlatformEndpoint(
          [
              'PlatformApplicationArn' => '<notification_channel_ARN>',
              'Token' => '<push_token>',
          ]
      );
      
      print($response->get('EndpointArn'));
      ```
      
      Where:
      
      * `PlatformApplicationArn`: Notification channel ID (ARN).
      * `Token`: Unique push token for the app on the user’s device.
      
      As a result, you will get a mobile endpoint ID (ARN).


- API {#api}

  Use the [create](../../api-ref/create-platform-endpoint.md) HTTP API method for the Endpoint resource in Yandex Cloud Notification Service.

{% endlist %}

Creating an endpoint may take some time.