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 Functions
  • Comparison with other Yandex Cloud services
    • All guides
    • Using functions to get an IAM token for a service account
    • Connecting to managed databases from functions
      • Invoking a function
      • Invoking a function asynchronously
      • Authenticating when invoking a private function via HTTPS
    • Viewing operations with service resources
  • Tools
  • Pricing policy
  • Access management
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  • FAQ
  1. Step-by-step guides
  2. Invoking a function
  3. Authenticating when invoking a private function via HTTPS

Authenticating when invoking a private function via HTTPS

Written by
Yandex Cloud
Updated at April 24, 2025

To invoke a private function via HTTPS, you need to get authenticated. To do this, get:

  • IAM token:

    • Guide for a Yandex account.
    • Guide for a service account.
    • Guide for a federated account.

    Provide the IAM token in the Authorization header in the following format:

    Authorization: Bearer <IAM_token>
    

    IAM tokens are valid for up to 12 hours.

  • API key for a service account.

    Provide the API key in the Authorization header in the following format:

    Authorization: Api-Key <API_key>
    

    Use API keys if requesting an IAM token automatically is not an option.

Was the article helpful?

Previous
Invoking a function asynchronously
Next
Updating a name
Yandex project
© 2025 Yandex.Cloud LLC