Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex Cloud Notification Service
    • Overview
    • Getting started with mobile push notifications
    • Getting started with in-browser push notifications
    • Getting started with SMS
    • All guides
      • Creating a push notification channel
      • Updating a push notification channel
      • Deleting a push notification channel
      • Creating an endpoint
      • Updating an endpoint
      • Deleting an endpoint
      • Sending a push notification
    • Configuring logging
    • Overview
    • Mobile push notifications
    • In-browser push notifications
    • SMS
    • Quotas and limits
    • All tools
    • AWS CLI
    • AWS SDK for C++
    • AWS SDK for Go
    • AWS SDK for Java
    • AWS SDK for JavaScript
    • AWS SDK for Kotlin
    • AWS SDK for .NET
    • AWS SDK for PHP
    • AWS SDK for Python (boto3)
  • Pricing policy
  • Monitoring metrics
  • Logs Cloud Logging
  • Release notes
  1. Step-by-step operations
  2. Mobile push notifications
  3. Creating an endpoint

Creating an endpoint

Written by
Yandex Cloud
Updated at April 17, 2025

Each channel has its own base of endpoints to send notifications directly to the app on user devices.

To create an endpoint:

Management console
AWS CLI
AWS SDK for Python
AWS SDK for PHP
API
  1. In the management console, go to the folder containing your endpoint.
  2. From the list of services, select Cloud Notification Service.
  3. Select a push notification channel.
  4. Navigate to the Endpoints tab.
  5. Click Create endpoint.
  6. Enter Device token, a unique token on the user device, the one created by the notification service for the app.
  7. Optionally, enter User data, a UTF-8 encoded text up to 2,048 characters long.
  8. Click Create.
  1. If you do not have the AWS CLI yet, install and configure it.

  2. Run this command:

    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 information about the aws sns create-platform-endpoint command, see the AWS documentation.

  1. If you do not have the AWS SDK for Python (boto3) yet, install and configure it.

  2. To create an endpoint, use the following code:

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

  1. If you do not have the AWS SDK for PHP yet, install and configure it.

  2. To create an endpoint, use the following code:

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

Use the create HTTP API method for the Endpoint resource in Yandex Cloud Notification Service.

Creating an endpoint may take some time.

Was the article helpful?

Previous
Deleting a push notification channel
Next
Updating an endpoint
Yandex project
© 2025 Yandex.Cloud LLC