Delete an asset
Takes the asset out of the library (archives it, D94): it’s no longer listed or offered, while its file and URL stay, so emails that show it keep showing it. 409 `asset_archived` for changes to it afterwards.
Takes the asset out of the library (archives it, D94): it’s no longer listed or offered, while its file and URL stay, so emails that show it keep showing it. 409 asset_archived for changes to it afterwards.
apiKey writeAuthorizationBearer <token>A workspace API key (pf_…), created under Developers → API keys.
Scope: write
id*stringuuididempotency-key?stringRun this write once: a retry with the same key gets the first answer (24 hours).
1 <= length <= 255No content
curl -X DELETE 'https://api.postforge.dev/v1/assets/497f6eca-6276-4993-bfeb-53cbbbba6f08'Rename or move an asset PATCH
Changes its name or folder. Its file and URL stay as they are.
Upload an asset’s file PUT
The file’s bytes (`application/octet-stream` with its Content-Length, the size `create` was given). Checks what the file really is and reads an image’s size; the asset is then ready at its URL. Sending them again before that replaces them. 422 `asset_type_mismatch` when the bytes aren’t the type given (or aren’t a file every email client shows, like WebP or SVG); 422 `asset_size_mismatch` when the size differs; 409 `asset_ready` once it’s ready (a new file is a new asset).