Push Data
curl --request POST \
--url https://mango.sievedata.com/v2/push \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <x-api-key>' \
--data '{
"function": "<string>",
"id": "<string>",
"inputs": {}
}'
name of Sieve function. Possible values are: <organization-name>/<function-name>
or <organization-name>/<function-name>:<version-id-prefix>
where the version-id prefix is 4 or more characters of your function version.
An example would be: sieve/video_retalking
or sieve/video_retalking:1a8b41cc
.
ID of Sieve model
an array representing the inputs to the sieve function. Read more about inputs here
This endpoint triggers either a function or a model with a given set of inputs. The structure of the inputs should match the inputs types specified in the function or model definition.
Example
A function that takes in a sieve.Video
named video
and a sieve.Image
named image
would be triggered with the following request:
{
"function": "sieve/sample_function",
"inputs": {
"video": {
"url": "{SOME_VIDEO_URL}"
},
"image": {
"url": "{SOME_IMAGE_URL}"
}
}
}
A function that takes in a string
named prompt
would be triggered with the following request:
{
"function": "sieve/some_function",
"inputs": {
"prompt": "some string"
}
}
curl --request POST \
--url https://mango.sievedata.com/v2/push \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <x-api-key>' \
--data '{
"function": "<string>",
"id": "<string>",
"inputs": {}
}'