---
title: "CreateBaseSnapshotLogsToken"
method: POST
path: "/gitpod.v1.BaseSnapshotService/CreateBaseSnapshotLogsToken"
tags: ["gitpod.v1.BaseSnapshotService"]
---

# CreateBaseSnapshotLogsToken

`POST /gitpod.v1.BaseSnapshotService/CreateBaseSnapshotLogsToken`

Creates a short-lived token for base snapshot build logs.

 Use this method to read logs from the associated build environment or
 provider snapshot. Token creation is recorded in the audit log.

 ### Example

 ```yaml
 baseSnapshotId: "07e03a28-65a5-4d98-b532-8ea67b188048"
 ```

## Request body

- GitpodV1CreateBaseSnapshotLogsTokenRequest
  - `baseSnapshotId` string, uuid, required — base_snapshot_id identifies the build whose logs will be accessed.

## Response `200`

Success

- GitpodV1CreateBaseSnapshotLogsTokenResponse
  - `accessToken` string, required — access_token authorizes access to the base snapshot's log resources.

## Other responses

- `default` — Error

---

[API](https://skmtc.net/gitpod-io/apis/gitpod-v1.md) · [All operations](https://skmtc.net/gitpod-io/apis/gitpod-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitpod-io/gitpod-v1/revisions/44d50c2ac284/schema)
