Autonomous Agent Integration

This page provides concise guidance for integrating autonomous agents, CI pipelines, or bots that submit jobs to SolarCompute's developer API. It is intended to reduce integration friction and surface required details when requesting sandbox access.

Recommended workflow

  1. Request sandbox API access (see Developer Quickstart).
  2. Use the sandbox API key to submit test jobs from your agent or pipeline.
  3. Validate outputs and scale concurrency in the sandbox before requesting production quotas.

Sample job JSON (agent submission)

Agents should include a short id, human-readable name, and expected resource sizes. Replace placeholders with sandbox values.

Copy sample JSON Download sample JSON Copied
{
  "client_job_id": "agent-12345-2026-10-20",
  "workload": "inference",
  "instance": "gpu-24gb-v1",
  "concurrency": 4,
  "command": "python serve_model.py --port 8080",
  "container": {
    "image": "registry.example.com/my-model:latest",
    "env": {"MODEL_PATH":"/data/model"}
  },
  "storage": {"type":"s3","path":"s3://my-bucket/input"},
  "callback_url": "https://my-agent.example.com/webhook/job-status",
  "expected_duration_seconds": 3600
}

Submitting a job  cURL example

Use your sandbox API key in the Authorization header. This example posts the sample JSON to the jobs endpoint; replace the URL and fields with your sandbox values.

curl -X POST "https://api.solarcompute.net.au/v1/jobs" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "client_job_id": "agent-12345-2026-10-20",
    "workload": "inference",
    "instance": "gpu-24gb-v1",
    "concurrency": 4,
    "command": "python serve_model.py --port 8080",
    "container": {"image": "registry.example.com/my-model:latest"},
    "storage": {"type":"s3","path":"s3://my-bucket/input"},
    "callback_url": "https://my-agent.example.com/webhook/job-status",
    "expected_duration_seconds": 3600
  }'

Webhook callback format

If you provide a callback_url, SolarCompute will POST job status updates. Validate signatures if you require authenticity.

{
  "job_id": "sc-abc123",
  "client_job_id": "agent-12345-2026-10-20",
  "status": "completed",
  "exit_code": 0,
  "started_at": "2026-10-20T10:12:00Z",
  "finished_at": "2026-10-20T11:15:00Z",
  "outputs": [{"type":"s3","path":"s3://my-bucket/output/result.tar.gz"}]
}

Polling and retry guidance

Security & headers

Use Authorization: Bearer <API_KEY> in the Authorization header. Protect keys in your agent's secret store and rotate keys regularly.

Agent best practices

When requesting sandbox access, include your agent's intended concurrency, expected job sizes, and callback URL in the request. Contact sales and developer support: hello@solarcompute.net.au.