Skip to main content
POST
/
api
/
v1
/
public
/
assets
/
{id}
/
finalize
Finalize a presigned upload
curl --request POST \
  --url http://localhost:3001/api/v1/public/assets/{id}/finalize \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "description": "<string>",
  "altText": "<string>",
  "imageType": "logo"
}
'
{
  "asset": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "filename": "<string>",
    "contentType": "<string>",
    "size": 4503599627370495,
    "url": "<string>",
    "width": 0,
    "height": 0,
    "createdAt": "2023-11-07T05:31:56Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://segmentflow.ai/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-api-key
string
header
required

Path Parameters

id
string<uuid>
required
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)$

Body

application/json
description
string
Maximum string length: 500
altText
string
Maximum string length: 200
imageType
enum<string>

Category of image for use in email templates

Available options:
logo,
hero,
header,
product,
background,
icon,
other

Response

Default Response

asset
object
required