# POST /api/content/packs/assets

Source: https://recoupable.dev/docs/api-reference/complete/content/post-content-packs-assets

Release rollout pending; discover current host capabilities before execution. Upload explicitly selected audio or reference artwork to owned private storage; return a temporary locator.

## POST /api/content/packs/assets

Full OpenAPI specification: https://recoupable.dev/docs/spec/content.json

## Authentication

This operation requires one of the security alternatives in the specification below. Security scheme definitions are included where present in the published specification.

[Authentication guide](https://recoupable.dev/docs/authentication)

## Operation and referenced schemas

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Recoup API - Content",
    "description": "API documentation for the Recoup platform - an AI agent platform for the music industry",
    "license": {
      "name": "MIT"
    },
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.recoupable.dev"
    }
  ],
  "paths": {
    "/api/content/packs/assets": {
      "post": {
        "operationId": "uploadReleasePackAsset",
        "description": "Release rollout pending; discover current host capabilities before execution. Upload explicitly selected audio or reference artwork to owned private storage; return a temporary locator.",
        "security": [
          {
            "apiKeyAuth": []
          },
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Current owned result; running is not completed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReleasePackUploadResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReleasePackError"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReleasePackError"
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credits; use returned billingUrl.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReleasePackError"
                }
              }
            }
          },
          "403": {
            "description": "Workspace access denied.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReleasePackError"
                }
              }
            }
          },
          "404": {
            "description": "Owned resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReleasePackError"
                }
              }
            }
          },
          "409": {
            "description": "Stale quote/revision, unresolved submission, budget/state conflict or required execution capability unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReleasePackError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UploadReleasePackAssetRequest"
              }
            }
          }
        },
        "x-recoup-availability": "pending"
      }
    }
  },
  "components": {
    "schemas": {
      "ReleasePackUploadResponse": {
        "type": "object",
        "description": "Private uploaded source locator or owner-scoped direct upload capability. Signed-upload mode requires transfer followed by finalize before using the source.",
        "properties": {
          "storage_key": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "content_type": {
            "type": "string"
          },
          "bytes": {
            "type": "integer"
          },
          "expires_at": {
            "type": "string"
          },
          "signed_upload_url": {
            "type": "string"
          },
          "upload_token": {
            "type": "string"
          },
          "expires_in_seconds": {
            "type": "integer"
          },
          "maximum_bytes": {
            "type": "integer"
          },
          "next_action": {
            "type": "string"
          }
        }
      },
      "ReleasePackError": {
        "type": "object",
        "required": [
          "status",
          "error"
        ],
        "properties": {
          "status": {
            "type": "string",
            "const": "error"
          },
          "error": {
            "type": "string"
          },
          "billingUrl": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "UploadReleasePackAssetRequest": {
        "type": "object",
        "properties": {
          "organization_id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "filename": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[A-Za-z0-9._ -]+$"
          },
          "content_type": {
            "type": "string",
            "enum": [
              "audio/mpeg",
              "audio/wav",
              "audio/x-wav",
              "audio/flac",
              "audio/mp4",
              "image/png",
              "image/jpeg",
              "image/webp"
            ]
          },
          "mode": {
            "default": "inline",
            "type": "string",
            "enum": [
              "inline",
              "signed_url",
              "finalize"
            ]
          },
          "base64": {
            "type": "string",
            "minLength": 4,
            "maxLength": 4000000
          },
          "source_url": {
            "type": "string",
            "maxLength": 4000,
            "format": "uri"
          },
          "storage_key": {
            "type": "string",
            "minLength": 1,
            "maxLength": 400
          },
          "file": {
            "type": "object",
            "properties": {
              "download_url": {
                "type": "string",
                "maxLength": 4000,
                "format": "uri"
              },
              "file_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2000
              },
              "mime_type": {
                "type": "string",
                "maxLength": 200
              },
              "file_name": {
                "type": "string",
                "maxLength": 300
              }
            },
            "required": [
              "download_url",
              "file_id"
            ],
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "apiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key",
        "description": "Your Recoup API key. [Learn more](/docs/quickstart#api-keys)."
      },
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  }
}
```
