Skip to main content
Unary · Service Accounts Creates a long-lived token for a service account. Use this method to:
  • Create tokens for external automations
  • Set up automation credentials
  • Generate API access tokens
The token is returned only once and cannot be retrieved later. Token validity is capped to the service account’s expiry. Requires impersonation: First obtain a short-lived access token via CreateServiceAccountAccessToken, then use it to call this method. The service account ID is derived from the caller’s identity.

Examples

  • Create token with 90-day validity:

Endpoint

Send a Bearer token as described in Authentication. If your organization uses a custom management-plane domain, replace https://app.ona.com with that domain.

Request example

Request

gitpod.v1.CreateServiceAccountTokenRequest

Response

gitpod.v1.CreateServiceAccountTokenResponse
ServiceAccountToken represents metadata about a service account token. The actual token value is only returned once during creation.gitpod.v1.ServiceAccountToken
gitpod.v1.Subject