---
title: "TaskFileLink"
url: "https://developer-staging.agentsync.io/apis/platform-api/versions/8177e94d-86f2-48a5-8ed6-d5fbcb69f38a/schemas/TaskFileLink"
---

> Full API specification: https://developer-staging.agentsync.io/apis/platform-api/versions/8177e94d-86f2-48a5-8ed6-d5fbcb69f38a.md

# TaskFileLink

A file that answers one slot of a task, and a presigned link to it.

## OpenAPI definition

```yaml
openapi: 3.1.1
info:
  title: AgentSync Platform API
  version: 0.0.1
servers:
  - url: https://api.{environment}.agentsync.io/platform
    description: AgentSync API gateway
    variables:
      environment:
        default: sandbox
        enum:
          - sandbox
components:
  schemas:
    TaskFile:
      type: object
      description: A file uploaded to answer a slot of a task. The bytes are not part of it.
      required:
        - name
        - contentType
        - sizeBytes
        - sha256
      properties:
        name:
          type: string
          description: The file's name as uploaded.
          example: license.pdf
        contentType:
          type: string
          description: The file's media type.
          example: application/pdf
        sizeBytes:
          type: integer
          format: int64
          description: The file's size in bytes.
          example: 48213
        sha256:
          type: string
          description: The hex SHA-256 of the file's bytes.
          example: 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
      example:
        name: license.pdf
        contentType: application/pdf
        sizeBytes: 48213
        sha256: 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
    TaskFileLink:
      type: object
      description: A file that answers one slot of a task, and a presigned link to it.
      required:
        - url
        - expiresAt
        - file
      properties:
        url:
          type: string
          format: uri
          description: A presigned link to the file, good until expiresAt. Anyone who
            holds it can download the file, so treat it as a secret, and don't
            log, store or share it.
          example: https://files.example.com/task-files/abc123?X-Amz-Signature=redacted
        expiresAt:
          type: string
          format: date-time
          description: When the link stops working, ten minutes after it was issued.
          example: 2026-11-10T17:10:00Z
        file:
          $ref: "#/components/schemas/TaskFile"
          description: The file the link downloads.
      example:
        url: https://files.example.com/task-files/abc123?X-Amz-Signature=redacted
        expiresAt: 2026-11-10T17:10:00Z
        file:
          name: Errors and omissions certificate.pdf
          contentType: application/pdf
          sizeBytes: 421883
          sha256: 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
```
