Skip to content

Live Photo Templates

POST https://api.newportai.com/api/live_photo_templates

Get live photo API template list.

  • Use Live Photo Templates API to get template list with POST method

Request Header Parameters

  • Content-TypestringRequired
    Enum
    application/json
  • AuthorizationstringRequired
    Bearer authentication format, for example: Bearer

Request Body Parameters

  • lastTemplateIdstring
    Live photo video template id.
  • sizenumber
    size of the template list.

Response

  • codeinteger
    0 success, or error code.
  • messagestring
    "success", or error msg.
  • dataobject

Example

Request:

zsh
curl -X POST 'https://api.newportai.com/api/live_photo_templates' \
-H "Authorization: Bearer {{key}}" \
-H 'Content-Type: application/json' \
-d '{
  "lastTemplateId": "",
  "size": 1
}'

Response:

json
{
  "code": 0,
  "message": "success", 
  "data": {
    "requestId": "38cbf9ba785f40a6bd05aa8561f9dd39",
    "templates": [
      {
        "id": "65a5236b6570c4000718fd78",
        "name": "Locked Out of Heaven",
        "webpUrl": "https://dreamface-resource.s3.amazonaws.com/media/common/main/21a9d800-b428-4919-a7b2-435e9cee5b77.webp",
        "videoUrl": "https://dreamface-resource.s3.amazonaws.com/config/common/main/0e8e87544f714df39e6dac1372dbf5e8.mp4",
        "author": "Alexander",
        "singer": "Bruno Mars"
      }
    ]
  }
}