> ## Documentation Index
> Fetch the complete documentation index at: https://docs.devinenterprise.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 构建日志文件的预签名 URL

<div id="permissions">
  ## 权限
</div>

需要具备组织级别 `ManageRepoBlueprints` 权限的服务用户。

<div id="behavior">
  ## 行为
</div>

返回用于下载构建日志文件的预签名 URL。


## OpenAPI

````yaml zh/v3-openapi.yaml GET /v3beta1/organizations/{org_id}/snapshot-setup/builds/{build_id}/logs
openapi: 3.1.0
info:
  description: 采用 Service User 身份验证和 RBAC 的 Devin v3 API
  title: Devin API v3
  version: 3.0.0
servers: []
security:
  - bearerAuth: []
paths:
  /v3beta1/organizations/{org_id}/snapshot-setup/builds/{build_id}/logs:
    get:
      tags:
        - snapshot_setup
      summary: 构建日志文件的预签名 URL
      operationId: >-
        get_org_build_logs_v3beta1_organizations__org_id__snapshot_setup_builds__build_id__logs_get
      parameters:
        - in: path
          name: build_id
          required: true
          schema:
            title: Build Id
            type: string
        - description: 组织 ID（前缀：org-）
          in: path
          name: org_id
          required: true
          schema:
            example: org-abc123def456
            title: Org Id
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PresignedDownload'
          description: 成功响应
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: 验证错误
components:
  schemas:
    PresignedDownload:
      description: 可复用的预签名 URL 响应（TTL 为 10 分钟）。
      properties:
        expires_at:
          description: URL 过期时的 Unix 时间戳。
          title: Expires At
          type: integer
        url:
          description: 预签名 GET URL（HTTPS）。
          title: Url
          type: string
      required:
        - url
        - expires_at
      title: PresignedDownload
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    bearerAuth:
      description: 服务用户凭据（前缀：cog_）
      scheme: bearer
      type: http

````