POST
/
links
Create Product Link
curl --request POST \
  --url https://app.levanta.io/api/creator/v2/preview/links \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "product": {
    "primary_id": "<string>",
    "marketplace": "amazon.com"
  },
  "subid1": "<string>",
  "subid2": "<string>"
}'
{
  "id": "<string>",
  "type": "product",
  "marketplace": "amazon.com",
  "url": "<string>",
  "mobileOptimizedUrl": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

The product link to create

product
object
required
subid1
string

An ID that identifies where the created link will be used. Allowed characters: [a-zA-Z0-9-_@./ ]

Required string length: 1 - 256
subid2
string

An ID that identifies where the created link will be used. Allowed characters: [a-zA-Z0-9-_@./ ]

Required string length: 1 - 256

Response

Success

id
string
required
type
enum<string>
required
Available options:
product,
storefront
marketplace
enum<string>
required

The marketplace the link is associated with

Available options:
amazon.com,
amazon.co.uk,
amazon.ca,
amazon.de,
amazon.fr,
walmart.com
url
string
required
mobileOptimizedUrl
string
required