Files

Copy Storage File By Ref

Copy an existing storage object (temp or permanent, any owner) into the caller's permanent storage.

Source is identified by ids (no external URLs) to avoid SSRF / arbitrary file copy.

post/api/storage/copy

Request

  • Base URL: https://api.agentstack.tech (the document declares no server; this is the origin it was published from)
  • URL: https://api.agentstack.tech/api/storage/copy
  • Auth: one of:
    • API key in header X-API-Key
    • HTTP bearer

Query parameters

project_idinteger nullable
scope'user' | 'project'

user = member row (P, caller); project = project row (P, 0).

Headers

Idempotency-Keystring

Client-generated key to make mutating requests idempotent.

Request body

target_folderstring

Target folder key in the caller's permanent storage

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.