Skip to main content
POST
/
api
/
ai
/
generate
Generate content
curl --request POST \
  --url https://app.alana.shopping/api/ai/generate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "workspace_id": "<string>",
  "content_type": "title",
  "input": {},
  "brand_id": "<string>",
  "options": {
    "tone": "<string>",
    "length": "short"
  }
}
'
{
  "content": "<string>",
  "alternatives": [
    "<string>"
  ],
  "confidence": 123
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Obtain a token via the authentication endpoint and include it in the Authorization header: Authorization: Bearer <token>

Body

application/json
workspace_id
string
required
content_type
enum<string>
required
Available options:
title,
description,
meta_description,
bullet_points
input
object
required

Input context for generation

brand_id
string | null
options
object

Response

Content generated successfully

content
string
alternatives
string[]
confidence
number<float>