Skip to main content
POST
/
assets
Create Asset
curl --request POST \
  --url https://api.hedra.com/web-app/public/assets \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "name": "<string>",
  "type": "image"
}'
{
  "name": "<string>",
  "type": "image",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

X-API-Key
string
header
required

Body

application/json
name
string
required

Name of the asset. Default to user-provided file name.

type
enum<string>
required

The type of the asset.

Available options:
image,
audio,
video,
voice

Response

Successful Response

name
string
required

Name of the asset. Default to user-provided file name.

type
enum<string>
required

The type of the asset.

Available options:
image,
audio,
video,
voice
id
string<uuid>
required

The id of the newly created asset. Should be used for upload.

I