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

# Presigned URL for the build's log file

## Permissions

Requires a service user with the `ManageRepoBlueprints` permission at the organization level.

## Behavior

Returns a presigned URL for downloading the build's log file.


## OpenAPI

````yaml v3-openapi.yaml GET /v3beta1/organizations/{org_id}/snapshot-setup/builds/{build_id}/logs
openapi: 3.1.0
info:
  description: Devin v3 API with Service User authentication and RBAC
  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: Presigned URL for the build's log file
      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
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PresignedDownload'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    PresignedDownload:
      description: Reusable presigned-URL response (10-minute TTL).
      properties:
        expires_at:
          description: Unix timestamp at which the URL expires.
          title: Expires At
          type: integer
        url:
          description: Presigned 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: 'Service User credential (prefix: cog_)'
      scheme: bearer
      type: http

````