Yandex Cloud
Documentation
PresentationContact UsTry it for free
© 2026 Direct Cursus Technology L.L.C.
Yandex Cloud Functions
  • Comparing with other Yandex Cloud services
    • All guides
    • Getting a service account IAM token using a function
    • Connecting to managed databases from a function
      • 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
  • Public materials
  • 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 November 17, 2026
View in Markdown

To invoke a private function via HTTPS, you need to get authenticated. These are the types of credentials you can use:

  • IAM token:

    • Guide for a Yandex account.
    • Guide for a service account.
    • Guide for a federated account.
    • Guide for a local 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.

  • Service account API key.

    For authentication with an API key, specify yc.serverless.functions.invoke as the key scope. 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.

Scope is an API key parameter that restricts the key's use to specific operations in addition to the service account's access permissions. For details, see API keys with scope and validity limits.

Was the article helpful?

Previous
Invoking a function asynchronously
Next
Updating a name
© 2026 Direct Cursus Technology L.L.C.