curl --request POST \
--url https://api.blaxel.ai/v0/jobs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"events": [
{
"canaryRevision": "<string>",
"message": "<string>",
"revision": "<string>",
"status": "<string>",
"time": "<string>",
"type": "<string>"
}
],
"metadata": {
"createdAt": "<string>",
"updatedAt": "<string>",
"createdBy": "<string>",
"updatedBy": "<string>",
"displayName": "<string>",
"labels": {},
"name": "<string>",
"plan": "<unknown>",
"url": "<string>",
"workspace": "<string>"
},
"spec": {
"configurations": {
"key": {
"secret": true,
"value": "<string>"
}
},
"enabled": true,
"flavors": [
{
"name": "<string>",
"type": "<string>"
}
],
"integrationConnections": [
"<string>"
],
"policies": [
"<string>"
],
"revision": {
"active": "<string>",
"canary": "<string>",
"canaryPercent": 123,
"stickySessionTtl": 123,
"traffic": 123
},
"runtime": {
"args": [
"<unknown>"
],
"command": [
"<unknown>"
],
"configuration": {},
"cpu": 123,
"endpointName": "<string>",
"envs": [
"<unknown>"
],
"expires": "<string>",
"generation": "<string>",
"image": "<string>",
"maxConcurrentTasks": 123,
"maxRetries": 123,
"maxScale": 123,
"memory": 123,
"metricPort": 123,
"minScale": 123,
"model": "<string>",
"organization": "<string>",
"ports": [
{
"name": "<string>",
"protocol": "<string>",
"target": 123
}
],
"startupProbe": {},
"timeout": 123,
"transport": "<string>",
"ttl": "<string>",
"type": "<string>"
},
"sandbox": true,
"region": "<string>",
"triggers": [
{
"configuration": {
"authenticationType": "<string>",
"callbackSecret": "<string>",
"callbackUrl": "<string>",
"path": "<string>",
"retry": 123,
"schedule": "<string>",
"tasks": [
{}
],
"timeout": 123
},
"enabled": true,
"id": "<string>",
"type": "<string>"
}
]
},
"status": "<string>"
}
'{
"events": [
{
"canaryRevision": "<string>",
"message": "<string>",
"revision": "<string>",
"status": "<string>",
"time": "<string>",
"type": "<string>"
}
],
"metadata": {
"createdAt": "<string>",
"updatedAt": "<string>",
"createdBy": "<string>",
"updatedBy": "<string>",
"displayName": "<string>",
"labels": {},
"name": "<string>",
"plan": "<unknown>",
"url": "<string>",
"workspace": "<string>"
},
"spec": {
"configurations": {
"key": {
"secret": true,
"value": "<string>"
}
},
"enabled": true,
"flavors": [
{
"name": "<string>",
"type": "<string>"
}
],
"integrationConnections": [
"<string>"
],
"policies": [
"<string>"
],
"revision": {
"active": "<string>",
"canary": "<string>",
"canaryPercent": 123,
"stickySessionTtl": 123,
"traffic": 123
},
"runtime": {
"args": [
"<unknown>"
],
"command": [
"<unknown>"
],
"configuration": {},
"cpu": 123,
"endpointName": "<string>",
"envs": [
"<unknown>"
],
"expires": "<string>",
"generation": "<string>",
"image": "<string>",
"maxConcurrentTasks": 123,
"maxRetries": 123,
"maxScale": 123,
"memory": 123,
"metricPort": 123,
"minScale": 123,
"model": "<string>",
"organization": "<string>",
"ports": [
{
"name": "<string>",
"protocol": "<string>",
"target": 123
}
],
"startupProbe": {},
"timeout": 123,
"transport": "<string>",
"ttl": "<string>",
"type": "<string>"
},
"sandbox": true,
"region": "<string>",
"triggers": [
{
"configuration": {
"authenticationType": "<string>",
"callbackSecret": "<string>",
"callbackUrl": "<string>",
"path": "<string>",
"retry": 123,
"schedule": "<string>",
"tasks": [
{}
],
"timeout": 123
},
"enabled": true,
"id": "<string>",
"type": "<string>"
}
]
},
"status": "<string>"
}Creates a job.
curl --request POST \
--url https://api.blaxel.ai/v0/jobs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"events": [
{
"canaryRevision": "<string>",
"message": "<string>",
"revision": "<string>",
"status": "<string>",
"time": "<string>",
"type": "<string>"
}
],
"metadata": {
"createdAt": "<string>",
"updatedAt": "<string>",
"createdBy": "<string>",
"updatedBy": "<string>",
"displayName": "<string>",
"labels": {},
"name": "<string>",
"plan": "<unknown>",
"url": "<string>",
"workspace": "<string>"
},
"spec": {
"configurations": {
"key": {
"secret": true,
"value": "<string>"
}
},
"enabled": true,
"flavors": [
{
"name": "<string>",
"type": "<string>"
}
],
"integrationConnections": [
"<string>"
],
"policies": [
"<string>"
],
"revision": {
"active": "<string>",
"canary": "<string>",
"canaryPercent": 123,
"stickySessionTtl": 123,
"traffic": 123
},
"runtime": {
"args": [
"<unknown>"
],
"command": [
"<unknown>"
],
"configuration": {},
"cpu": 123,
"endpointName": "<string>",
"envs": [
"<unknown>"
],
"expires": "<string>",
"generation": "<string>",
"image": "<string>",
"maxConcurrentTasks": 123,
"maxRetries": 123,
"maxScale": 123,
"memory": 123,
"metricPort": 123,
"minScale": 123,
"model": "<string>",
"organization": "<string>",
"ports": [
{
"name": "<string>",
"protocol": "<string>",
"target": 123
}
],
"startupProbe": {},
"timeout": 123,
"transport": "<string>",
"ttl": "<string>",
"type": "<string>"
},
"sandbox": true,
"region": "<string>",
"triggers": [
{
"configuration": {
"authenticationType": "<string>",
"callbackSecret": "<string>",
"callbackUrl": "<string>",
"path": "<string>",
"retry": 123,
"schedule": "<string>",
"tasks": [
{}
],
"timeout": 123
},
"enabled": true,
"id": "<string>",
"type": "<string>"
}
]
},
"status": "<string>"
}
'{
"events": [
{
"canaryRevision": "<string>",
"message": "<string>",
"revision": "<string>",
"status": "<string>",
"time": "<string>",
"type": "<string>"
}
],
"metadata": {
"createdAt": "<string>",
"updatedAt": "<string>",
"createdBy": "<string>",
"updatedBy": "<string>",
"displayName": "<string>",
"labels": {},
"name": "<string>",
"plan": "<unknown>",
"url": "<string>",
"workspace": "<string>"
},
"spec": {
"configurations": {
"key": {
"secret": true,
"value": "<string>"
}
},
"enabled": true,
"flavors": [
{
"name": "<string>",
"type": "<string>"
}
],
"integrationConnections": [
"<string>"
],
"policies": [
"<string>"
],
"revision": {
"active": "<string>",
"canary": "<string>",
"canaryPercent": 123,
"stickySessionTtl": 123,
"traffic": 123
},
"runtime": {
"args": [
"<unknown>"
],
"command": [
"<unknown>"
],
"configuration": {},
"cpu": 123,
"endpointName": "<string>",
"envs": [
"<unknown>"
],
"expires": "<string>",
"generation": "<string>",
"image": "<string>",
"maxConcurrentTasks": 123,
"maxRetries": 123,
"maxScale": 123,
"memory": 123,
"metricPort": 123,
"minScale": 123,
"model": "<string>",
"organization": "<string>",
"ports": [
{
"name": "<string>",
"protocol": "<string>",
"target": 123
}
],
"startupProbe": {},
"timeout": 123,
"transport": "<string>",
"ttl": "<string>",
"type": "<string>"
},
"sandbox": true,
"region": "<string>",
"triggers": [
{
"configuration": {
"authenticationType": "<string>",
"callbackSecret": "<string>",
"callbackUrl": "<string>",
"path": "<string>",
"retry": 123,
"schedule": "<string>",
"tasks": [
{}
],
"timeout": 123
},
"enabled": true,
"id": "<string>",
"type": "<string>"
}
]
},
"status": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Job
Metadata Time fields for Persistance Owner fields for Persistance
Show child attributes
The date and time when the resource was created
The date and time when the resource was updated
The user or service account who created the resource
The user or service account who updated the resource
Model display name
Model name
Plan
URL
Workspace name
Job specification Core specification
Show child attributes
Optional configurations for the object
Enable or disable the resource
Deployment integration connection name
Policy name
Revision configuration
Set of configurations for a deployment
Show child attributes
The arguments to pass to the deployment runtime
The command to run the deployment
The configuration for the deployment
The CPU for the deployment in cores, only available for private cluster
Endpoint Name of the model. In case of hf_private_endpoint, it is the endpoint name. In case of hf_public_endpoint, it is not used.
The env variables to set in the deployment. Should be a list of Kubernetes EnvVar types
The expiration date for the deployment in ISO 8601 format - 2024-12-31T23:59:59Z
The generation of the deployment
The Docker image for the deployment
The maximum number of concurrent task for an execution
The maximum number of retries for the deployment
The minimum number of replicas for the deployment. Can be 0 or 1 (in which case the deployment is always running in at least one location).
The memory for the deployment in MB
The port to serve the metrics on
The maximum number of replicas for the deployment.
The slug name of the origin model at HuggingFace.
The organization of the model
The readiness probe. Should be a Kubernetes Probe type
The timeout for the deployment in seconds
The transport for the deployment, used by MCPs: "websocket" or "http-stream"
The TTL for the deployment in seconds - 30m, 24h, 7d
The type of origin for the deployment (hf_private_endpoint, hf_public_endpoint)
Sandbox mode
Region where the job should be created (e.g. us-was-1, eu-lon-1)
Triggers to use your agent
Show child attributes
The configuration of the trigger
Show child attributes
The authentication type of the trigger
The callback secret for async triggers (auto-generated, encrypted)
The callback URL for async triggers (optional)
The path of the trigger
The retry of the trigger
The schedule of the trigger, cron expression * * * * *
The tasks configuration of the cronjob
The timeout in seconds for async triggers (max 900s, MK3 only)
Enable or disable the trigger (default: true)
The id of the trigger
The type of trigger, can be http or http-async
Job status
successful operation
Job
Metadata Time fields for Persistance Owner fields for Persistance
Show child attributes
The date and time when the resource was created
The date and time when the resource was updated
The user or service account who created the resource
The user or service account who updated the resource
Model display name
Model name
Plan
URL
Workspace name
Job specification Core specification
Show child attributes
Optional configurations for the object
Enable or disable the resource
Deployment integration connection name
Policy name
Revision configuration
Set of configurations for a deployment
Show child attributes
The arguments to pass to the deployment runtime
The command to run the deployment
The configuration for the deployment
The CPU for the deployment in cores, only available for private cluster
Endpoint Name of the model. In case of hf_private_endpoint, it is the endpoint name. In case of hf_public_endpoint, it is not used.
The env variables to set in the deployment. Should be a list of Kubernetes EnvVar types
The expiration date for the deployment in ISO 8601 format - 2024-12-31T23:59:59Z
The generation of the deployment
The Docker image for the deployment
The maximum number of concurrent task for an execution
The maximum number of retries for the deployment
The minimum number of replicas for the deployment. Can be 0 or 1 (in which case the deployment is always running in at least one location).
The memory for the deployment in MB
The port to serve the metrics on
The maximum number of replicas for the deployment.
The slug name of the origin model at HuggingFace.
The organization of the model
The readiness probe. Should be a Kubernetes Probe type
The timeout for the deployment in seconds
The transport for the deployment, used by MCPs: "websocket" or "http-stream"
The TTL for the deployment in seconds - 30m, 24h, 7d
The type of origin for the deployment (hf_private_endpoint, hf_public_endpoint)
Sandbox mode
Region where the job should be created (e.g. us-was-1, eu-lon-1)
Triggers to use your agent
Show child attributes
The configuration of the trigger
Show child attributes
The authentication type of the trigger
The callback secret for async triggers (auto-generated, encrypted)
The callback URL for async triggers (optional)
The path of the trigger
The retry of the trigger
The schedule of the trigger, cron expression * * * * *
The tasks configuration of the cronjob
The timeout in seconds for async triggers (max 900s, MK3 only)
Enable or disable the trigger (default: true)
The id of the trigger
The type of trigger, can be http or http-async
Job status
Was this page helpful?