The POST
request to /api/v1/userFaceSwapImage/add
endpoint is used to add a user's face swap image.
Request
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
Body Params application/json
The URL of the user's face image
{
"face_url":"https://d1tzkvq5ukphug.cloudfront.net/adam2eve/beta/face_swap/ab2fca41-90e5-41a6-aa66-08a960b035e4.jpg"
}
Request samples
curl --location --request POST 'https://video.a2e.ai/api/v1/userFaceSwapImage/add' \
--header 'Content-Type: application/json' \
--data-raw '{
"face_url":"https://d1tzkvq5ukphug.cloudfront.net/adam2eve/beta/face_swap/ab2fca41-90e5-41a6-aa66-08a960b035e4.jpg"
}'
Responses
application/json The URL of the user's face image
The unique identifier of the user's face swap image
The user ID associated with the image
The timestamp of when the image was created
{
"code": 0,
"data": [
{
"face_url": "https://dh24as48lv9ce.cloudfront.net/adam2eve/beta/face_swap/ab2fca41-90e5-41a6-aa66-08a960b035e4.jpg",
"_id": "6673bee3e7aea87e7bcddd5d",
"createdAt": "2024-06-20T05:32:19.714Z",
"updatedAt": "2024-06-20T05:32:19.714Z"
},
{
"face_url": "https://dh24as48lv9ce.cloudfront.net/adam2eve/stable/faceSwap/2024067/1717730089329.png",
"_id": "66627b2a4a609ccee1ca24ff",
"createdAt": "2024-06-07T03:14:50.580Z",
"updatedAt": "2024-06-07T03:14:50.580Z"
}
]
}
Modified at 2025-02-25 06:10:54