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

# Generate a signed S3 URL

> Authorize a supported storage key and return a time-limited URL. Treat it as a secret capability; prefer run-media URLs when building recording playback.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/s3/signed-url
openapi: 3.1.0
info:
  title: Athena API
  version: 1.0.0
  description: >-
    Hosted Athena customer API. Authenticate backend management and call-trigger
    requests with X-API-Key. Website embeds and artifact playback use their own
    scoped tokens. Provider availability, feature settings, and verification
    limits are described in the guides.
servers:
  - url: https://athena.tryopencomputer.com
    description: Hosted Athena API
security: []
paths:
  /api/v1/s3/signed-url:
    get:
      tags:
        - S3
      summary: Generate a signed S3 URL
      description: >-
        Authorize a supported storage key and return a time-limited URL. Treat
        it as a secret capability; prefer run-media URLs when building recording
        playback.
      operationId: get_signed_url_api_v1_s3_signed_url_get
      parameters:
        - name: key
          in: query
          required: true
          schema:
            type: string
            description: S3 object key
            title: Key
          description: S3 object key
        - name: expires_in
          in: query
          required: false
          schema:
            type: integer
            default: 3600
            title: Expires In
        - name: inline
          in: query
          required: false
          schema:
            type: boolean
            default: false
            title: Inline
        - name: storage_backend
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Storage backend to use (e.g. 'minio', 's3'). When omitted the
              backend is inferred from the resource.
            title: Storage Backend
          description: >-
            Storage backend to use (e.g. 'minio', 's3'). When omitted the
            backend is inferred from the resource.
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
        - name: X-API-Key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/S3SignedUrlResponse'
        '400':
          description: Bad Request
        '401':
          description: Authentication is missing or invalid.
        '403':
          description: Forbidden
        '404':
          description: Not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: Internal Server Error
      security:
        - ApiKeyAuth: []
        - BearerAuth: []
components:
  schemas:
    S3SignedUrlResponse:
      properties:
        url:
          type: string
          title: Url
        expires_in:
          type: integer
          title: Expires In
      type: object
      required:
        - url
        - expires_in
      title: S3SignedUrlResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
    BearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.