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 Identity and Access Management
  • Secure use of Yandex Cloud
  • Access management
  • Pricing policy
  • Role reference
  • Terraform reference
    • Authentication with the API
      • Overview
        • Overview
        • Create
        • CreateForServiceAccount
        • Revoke
  • Monitoring metrics
  • Audit Trails events
  • Release notes

In this article:

  • gRPC request
  • CreateIamTokenRequest
  • CreateIamTokenResponse
  1. API reference
  2. gRPC
  3. IamToken
  4. Create

Identity and Access Management API, gRPC: IamTokenService.Create

Written by
Yandex Cloud
Updated at November 26, 2024
  • gRPC request
  • CreateIamTokenRequest
  • CreateIamTokenResponse

Create an IAM token for the specified identity.

gRPC requestgRPC request

rpc Create (CreateIamTokenRequest) returns (CreateIamTokenResponse)

CreateIamTokenRequestCreateIamTokenRequest

{
  // Includes only one of the fields `yandex_passport_oauth_token`, `jwt`
  "yandex_passport_oauth_token": "string",
  "jwt": "string"
  // end of the list of possible fields
}

Field

Description

yandex_passport_oauth_token

string

OAuth token for a Yandex account.
For more information, see OAuth token.

Includes only one of the fields yandex_passport_oauth_token, jwt.

jwt

string

JSON Web Token (JWT) for a service account.
For more information, see Get IAM token for a service account.

Includes only one of the fields yandex_passport_oauth_token, jwt.

CreateIamTokenResponseCreateIamTokenResponse

{
  "iam_token": "string",
  "expires_at": "google.protobuf.Timestamp"
}

Field

Description

iam_token

string

IAM token for the specified identity.

You should pass the token in the Authorization header for any further API requests.
For example, Authorization: Bearer iam_token``.

expires_at

google.protobuf.Timestamp

IAM token expiration time.

Was the article helpful?

Previous
Overview
Next
CreateForServiceAccount
Yandex project
© 2025 Yandex.Cloud LLC