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

# Create a sandbox upload URL

> Returns a presigned URL to upload one file to the Flare sandbox storage, and records a pending upload named `filename` for the tenant of the authenticated user. Send the raw content of the file as the body of an HTTP `PUT` request to `upload_url`; no additional header is required. The URL is valid for 24 hours and each call returns a new URL, even for the same `filename`. The upload stays pending until the file is submitted for analysis, and expires 5 days after this call.

> [!NOTE]
>
> Access to Sandbox is required for this feature.
> Please contact your Customer Success Manager for more details.

This endpoint allows uploading files for later submission for analysis in Sandbox. The response is a presigned upload URL allowing direct upload of the file. To upload multiple files, call this endpoint once for each file.


## OpenAPI

````yaml firework-v4-openapi post /firework/v4/sandbox/uploads
openapi: 3.1.0
info:
  title: Firework API
  version: v4
servers:
  - url: https://api.flare.io
security:
  - BearerAuth: []
tags:
  - name: Audit Logs
    description: Audit trail of actions performed in the platform.
  - name: Credentials
    description: >-
      Leaked credentials: search across all sources or within a tenant, and
      remediate or ignore them.
  - name: Entities
    description: >-
      Threat intelligence entities such as actors, chat channels, forum threads
      and domains, and the relations between them.
  - name: Events
    description: >-
      Events collected by Flare: global search, tenant and identifier feeds,
      event details, actions and saved feed views.
  - name: Identifiers
    description: >-
      Identifiers are the assets a tenant monitors, such as domains, keywords
      and email addresses. Includes recommendations and authorization of
      sensitive identifiers.
  - name: Matching Policies
    description: >-
      Matching policies refine which events match identifiers. Manage policies
      and their assignment to identifiers.
  - name: Sandbox
    description: File uploads and their sandbox analysis.
  - name: Threat Flow
    description: >-
      Threat Flow intelligence requests, generated reports and conversation
      summaries.
paths:
  /firework/v4/sandbox/uploads:
    post:
      tags:
        - Sandbox
      summary: Create a sandbox upload URL
      description: >-
        Returns a presigned URL to upload one file to the Flare sandbox storage,
        and records a pending upload named `filename` for the tenant of the
        authenticated user. Send the raw content of the file as the body of an
        HTTP `PUT` request to `upload_url`; no additional header is required.
        The URL is valid for 24 hours and each call returns a new URL, even for
        the same `filename`. The upload stays pending until the file is
        submitted for analysis, and expires 5 days after this call.
      operationId: create_presigned_upload_url_sandbox_uploads_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SandboxUploadUrlRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SandboxUploadPutUrlResponse'
        '401':
          description: UNAUTHORIZED
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    properties:
                      code:
                        type: string
                        enum:
                          - UNAUTHORIZED
                      data:
                        anyOf:
                          - additionalProperties: true
                            type: object
                          - type: 'null'
                        title: Data
                      message:
                        anyOf:
                          - type: string
                          - items: {}
                            type: array
                          - type: 'null'
                        title: Message
                    required:
                      - code
                      - data
                      - message
                    title: HTTPError
                    type: object
                required:
                  - error
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SandboxUploadUrlRequest:
      properties:
        filename:
          type: string
          title: Filename
          description: >-
            The name of the file to upload, at most 255 bytes when UTF-8
            encoded.
      type: object
      required:
        - filename
      title: SandboxUploadUrlRequest
    SandboxUploadPutUrlResponse:
      properties:
        upload_url:
          type: string
          title: Upload Url
          description: >-
            The presigned URL to send the content of the file to with an HTTP
            `PUT` request, valid for 24 hours.
      type: object
      required:
        - upload_url
      title: SandboxUploadPutUrlResponse
    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:
    BearerAuth:
      type: http
      scheme: bearer

````

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