# Create file certification attachments

Request upload URLs for files to be included in a file certification

Endpoint: POST /v1/file-certifications-attachments
Version: 1.6.0
Security: ApiKeyAuth

## Security:

  - `ApiKeyAuth` (unknown)
    http bearer API Key

## Request body:

  - `application/json` (unknown)
    Request payload for file certification attachments (upload URLs)

## Request fields (application/json):

  - `files` (array, required)
    List of files to get upload URLs for

  - `files.file_name` (string, required)
    Name of the file to upload

  - `files.creation_datetime` (string)
    Optional. ISO 8601 (`Z` or offset). Past date in validation.

  - `files.size_bytes` (integer)
    Exact size of the file in bytes. Optional for API keys; when present the upload link is
signed with that `Content-Length` and accepts no other size. Required for a caller coming
from a connected assistant, where it must not exceed 52428800 (50 MB).

## Request examples:

  - `Request upload URLs for files` (unknown)

## Response 201:

  - `201` (unknown)
    List of attachments with upload URLs

## Response 201 fields (application/json):

  - `file_name` (string, required)
    Name of the file

  - `upload_session_token` (string, required)
    Token to use in the POST /v1/file-certifications call

  - `upload_url` (string, required)
    Pre-signed URL to upload the file (expires in 120 seconds)

## Response 400:

  - `400` (unknown)
    Validation error

## Response 400 fields (application/problem+json):

  - `type` (string)
    A URI reference that identifies the problem type.
    Example: https://api.truescreen.io/errors/validation-error

  - `title` (string, required)
    Short, human-readable summary of the problem.
    Example: Validation failed

  - `status` (integer)
    HTTP status code.
    Example: 400

  - `detail` (string)
    Human-readable explanation specific to this occurrence.
    Example: One or more fields have invalid values

  - `code` (string, required)
    Unique code to identify the error.
    Example: TS-000

## Response 422:

  - `422` (unknown)
    File larger than the limit allowed from a connected assistant (TS-045)

## Response 422 fields (application/problem+json):

  - `type` (string)
    A URI reference that identifies the problem type.
    Example: https://api.truescreen.io/errors/validation-error

  - `title` (string, required)
    Short, human-readable summary of the problem.
    Example: Validation failed

  - `status` (integer)
    HTTP status code.
    Example: 400

  - `detail` (string)
    Human-readable explanation specific to this occurrence.
    Example: One or more fields have invalid values

  - `code` (string, required)
    Unique code to identify the error.
    Example: TS-000

## Response 201 examples:

  - `Attachments with upload URLs (placeholder)` (unknown)

## Response 400 examples:

  - `Malformed payload` (unknown)

  - `Payload validation (e.g. missing files)` (unknown)

  - `Invalid creation_datetime format` (unknown)

  - `creation_datetime in the future` (unknown)

  - `size_bytes missing for a caller coming from a connected assistant` (unknown)

## Response 422 examples:

  - `File over 50 MB` (unknown)

