Create a algorithm definition
POST
/v1/algorithm-definitionscurl -X POST 'https://api.embodiflow.io/v1/algorithm-definitions' \
-H 'Authorization: Bearer $EMBODIFLOW_PAT' \
-H 'Content-Type: application/json' \
-d '{
"projectId": "00000000-0000-0000-0000-000000000000",
"code": "string",
"name": "string",
"description": "string",
"category": "string",
"tags": [
"string"
],
"imageRef": "string",
"requestedEgressDomains": [
"string"
],
"paramSchema": {},
"outputSchema": {},
"resourceDefaults": {},
"registryServer": "string",
"registryUsername": "string",
"registryPassword": "string",
"acceptedInputFormats": [
"string"
]
}'Authorization
Send a personal access token with every request.
- Authorization: Bearer PAT
Header parameters
- Idempotency-Keystring
Optional idempotency key, at most 255 characters (UUIDv4 recommended). A repeated key returns the first response byte-for-byte, including a 5xx. The same key with a different body, or a second in-flight request, returns 409 IDEMPOTENCY_CONFLICT. Keys are unique per tenant and retained for 24 hours.
Request body
Content-Typeapplication/json
- projectIdstring (uuid) | null
- codestring | null
- namestringrequired
- descriptionstring | null
- categorystring | null
- tagsarray<string>
- imageRefstring | null
- requestedEgressDomainsarray<string>
- paramSchemaobject | null
- outputSchemaobject | null
- resourceDefaultsobject | null
- registryServerstring | null
Private registry credentials (for imageRef). Persisted only in internal storage on the revision; redacted from all public responses and summaries.
- registryUsernamestring | null
- registryPasswordstring | null
- acceptedInputFormatsarray<string>
Responses
Success
- dataobjectrequired
- idstringrequired
- tenantIdstring | nullrequired
- projectIdstring | nullrequired
- codestringrequired
- namestringrequired
- descriptionstring | nullrequired
- statusstringrequired
- ownerTypestringrequired
- isPublicone ofrequired
- systemSlugstring | nullrequired
- categorystring | nullrequired
- tagsarray<string>required
- thumbnailUrlstring | nullrequired
- documentationUrlstring | nullrequired
- latestRevisionIdstring | nullrequired
- createdAtstringrequired
- updatedAtstringrequired
Response example
{
"data": {
"id": "string",
"tenantId": "string",
"projectId": "string",
"code": "string",
"name": "string",
"description": "string",
"status": "string",
"ownerType": "string",
"isPublic": false,
"systemSlug": "string",
"category": "string",
"tags": [
"string"
],
"thumbnailUrl": "string",
"documentationUrl": "string",
"latestRevisionId": "string",
"createdAt": "string",
"updatedAt": "string"
}
}Servershttps://api.embodiflow.io/v1https://api.embodiflow.dev/v1