{"openapi":"3.1.0","info":{"title":"Siddiqiya Cloud — Emon AI Agent Hub API","version":"v1","description":"The public API for agents and developers. Money and permissions are always decided by the server; an agent can never approve its own spending."},"servers":[{"url":"https://app.hsdmj.com/api/v1"}],"paths":{"/health":{"get":{"operationId":"getHealth","summary":"Is the API up, and is the Agent Hub on?","tags":["System"],"security":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Health"}}}},"503":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/hire/capabilities":{"get":{"operationId":"getHireCapabilities","summary":"Search what Emon AI can be hired for (English or Bangla): each card's deliverable, modes, speed, credit range, formats, examples and how to ask","tags":["Emon Agent Hire"],"security":[],"parameters":[{"name":"q","in":"query","required":false,"description":"free text in English or Bangla, e.g. \"facebook post\" or \"অনুবাদ\"","schema":{"type":"string","maxLength":200}},{"name":"mode","in":"query","required":false,"description":"execution mode, comma separated: instant, asyncLong","schema":{"type":"string"}},{"name":"kind","in":"query","required":false,"description":"kind, comma separated: content, translation, formatting, code, research, workflow, general","schema":{"type":"string"}},{"name":"group","in":"query","required":false,"description":"group, comma separated: popular, core, workflow, general","schema":{"type":"string"}},{"name":"format","in":"query","required":false,"description":"output formats the caller needs (a card must offer at least one): markdown, text, json, csv, html, code","schema":{"type":"string"}},{"name":"language","in":"query","required":false,"description":"output language the caller needs (ISO 639-1, e.g. bn, en)","schema":{"type":"string","pattern":"^[a-z]{2}$"}},{"name":"max_credits","in":"query","required":false,"description":"the caller's budget: cards whose usual minimum fits","schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"name":"max_seconds","in":"query","required":false,"description":"cards whose typical time fits","schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HireCapabilities"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/hire/capabilities/{id}":{"get":{"operationId":"getHireCapability","summary":"One capability card by id, with its search metadata","tags":["Emon Agent Hire"],"security":[],"parameters":[{"name":"id","in":"path","required":true,"description":"a capability id, e.g. smart-content","schema":{"type":"string","pattern":"^[a-z0-9_-]{2,40}$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapabilityCard"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/hire/me":{"get":{"operationId":"getHireMe","summary":"Your API key: the limits the business owner set, what is left for 24 hours, and the largest job you can give right now","tags":["Emon Agent Hire"],"security":[{"ApiKey":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HireMe"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/hire/jobs":{"post":{"operationId":"createHireJob","summary":"Hire Emon AI for one job. max_credits is held first and is the most it can cost; an instant job answers with its result","tags":["Emon Agent Hire"],"security":[{"ApiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"used as client_request_id when the body has none: a retry with the same key never starts or charges a second job","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HireJobRequest"}}}},"responses":{"200":{"description":"The same request id again: the first job, nothing new charged","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HireJob"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HireJob"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"get":{"operationId":"listHireJobs","summary":"Your latest jobs (this key's only), newest first, without results","tags":["Emon Agent Hire"],"security":[{"ApiKey":[]}],"parameters":[{"name":"limit","in":"query","required":false,"description":"how many (newest first), 1-100, default 20","schema":{"type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HireJobList"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/hire/jobs/{id}":{"get":{"operationId":"getHireJob","summary":"One of your jobs: status, steps, credits, and the result once completed (poll a long job every 10-30 s)","tags":["Emon Agent Hire"],"security":[{"ApiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"the job_id","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HireJob"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/hire/jobs/{id}/actions":{"post":{"operationId":"actOnHireJob","summary":"Continue or stop at a checkpoint, or cancel. Cannot raise what the job holds","tags":["Emon Agent Hire"],"security":[{"ApiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"the job_id","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HireJobAction"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HireJob"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/openapi.json":{"get":{"operationId":"getOpenApi","summary":"This document","tags":["System"],"security":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenApiDocument"}}}}}}}},"components":{"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["BAD_REQUEST","UNAUTHENTICATED","FORBIDDEN","NOT_FOUND","CONFLICT","RATE_LIMITED","AGENT_HUB_OFF","UNAVAILABLE","INTERNAL","KEY_INVALID","KEY_DISABLED","KEY_JOB_LIMIT","KEY_DAILY_LIMIT","HIRE_OFF","HIRE_NOT_CONFIGURED","HIRE_BUSY","HIRE_CAP_INVALID","HIRE_STEP_CAP_INVALID","HIRE_DEADLINE_INVALID","HIRE_NOT_WAITING","HIRE_ENDED","CALLBACK_INVALID"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"description":"Every failed request returns this shape."},"Health":{"type":"object","properties":{"ok":{"type":"boolean","description":"true when the API and its database answer"},"api":{"type":"string","const":"v1"},"database":{"type":"string","enum":["up","down"]},"agent_hub":{"type":"string","enum":["on","off"],"description":"off until the platform owner switches the Agent Hub on"}},"required":["ok","api","database","agent_hub"],"additionalProperties":false},"HireCapabilities":{"type":"object","properties":{"availability":{"type":"string","enum":["live","test_mode"],"description":"test_mode while hiring is switched off for customers"},"currency":{"type":"string","const":"emon_credits"},"cards":{"type":"array","items":{"$ref":"#/components/schemas/CapabilityCard"},"description":"core skills first, then multi-step workflows, then the general card; with q, best match first"},"guarantees":{"type":"array","items":{"type":"string"},"description":"what the platform promises on every job, whatever the card"},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"how many cards are in this answer"},"matches":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"score":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"matched":{"type":"array","items":{"type":"string"}}},"required":["id","score","matched"],"additionalProperties":false},"description":"why each card is here (same order as cards); score 0 when no q was sent, and for the general fallback card"}},"required":["availability","currency","cards","guarantees","total","matches"],"additionalProperties":false},"CapabilityCard":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z0-9_-]{2,40}$"},"group":{"type":"string","enum":["popular","core","workflow","general"],"description":"popular = ready-made results from one line (videos, websites, apps); core = most reliable skills; workflow = several steps in the background; general = anything else"},"kind":{"type":"string","enum":["content","translation","formatting","code","research","workflow","general"]},"title":{"type":"string"},"tags":{"type":"array","items":{"type":"string"},"description":"short skill tags"},"description":{"type":"string"},"deliverable":{"type":"object","properties":{"formats":{"type":"array","items":{"type":"string","enum":["markdown","text","json","csv","html","code"]}},"what":{"type":"string"}},"required":["formats","what"],"additionalProperties":false,"description":"exactly what comes back"},"modes":{"minItems":1,"type":"array","items":{"type":"string","enum":["instant","asyncLong"]}},"speed":{"type":"object","properties":{"typical_seconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max_seconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"note":{"type":"string"}},"required":["typical_seconds","max_seconds","note"],"additionalProperties":false},"min_credits":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the usual credit range of one job; the cap you set is held, only real use is charged"},"max_credits":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"suggested_cap":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"a good credit cap to send for a typical job"},"tier":{"type":"string","enum":["light","standard","heavy"]},"protocols":{"type":"array","items":{"type":"string","enum":["rest","a2a","mcp"]}},"languages":{"type":"array","items":{"type":"string"},"description":"output languages; empty = any language the request asks for"},"input_hint":{"type":"string"},"examples":{"minItems":1,"maxItems":2,"type":"array","items":{"type":"object","properties":{"input":{"type":"string"},"output":{"type":"string"}},"required":["input","output"],"additionalProperties":false}},"works_with":{"type":"array","items":{"type":"string"},"description":"Siddiqiya Cloud services the result is ready to use in (pasted or imported by a person)"},"limits":{"type":"string","description":"what this card does not do"},"request":{"type":"object","properties":{"executionMode":{"type":"string","enum":["instant","asyncLong"]},"kind":{"type":"string","enum":["content","translation","formatting","code","research","workflow","general"]},"capability_id":{"type":"string"},"max_credits":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"step_credit_cap":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["executionMode","kind","capability_id","max_credits"],"additionalProperties":false,"description":"the fields to send for this card (plus client_request_id and instructions)"},"badges":{"type":"array","items":{"type":"string","enum":["audit_logged","server_held_credits","refund_on_our_failure","provider_disclosed","test_mode"]}},"l10n":{"type":"object","properties":{"bn":{"type":"object","properties":{"title":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"description":{"type":"string"},"deliverable_what":{"type":"string"},"speed_note":{"type":"string"},"input_hint":{"type":"string"},"examples":{"minItems":1,"maxItems":2,"type":"array","items":{"type":"object","properties":{"input":{"type":"string"},"output":{"type":"string"}},"required":["input","output"],"additionalProperties":false}},"works_with":{"type":"array","items":{"type":"string"}},"limits":{"type":"string"}},"required":["title","tags","description","deliverable_what","speed_note","input_hint","examples","works_with","limits"],"additionalProperties":false}},"required":["bn"],"additionalProperties":false,"description":"the same card in Bangla, for people; the English fields stay the reference"},"discovery":{"$ref":"#/components/schemas/CapabilityMeta"}},"required":["id","group","kind","title","tags","description","deliverable","modes","speed","min_credits","max_credits","suggested_cap","tier","protocols","languages","input_hint","examples","works_with","limits","request","badges","l10n","discovery"],"additionalProperties":false},"CapabilityMeta":{"type":"object","properties":{"id":{"type":"string","description":"stable capability id; send it as capability_id"},"slug":{"type":"string","description":"the same id, for URLs: /api/v1/hire/capabilities/{slug}"},"kind":{"type":"string","enum":["content","translation","formatting","code","research","workflow","general"]},"group":{"type":"string","enum":["popular","core","workflow","general"]},"keywords":{"type":"object","properties":{"en":{"type":"array","items":{"type":"string"}},"bn":{"type":"array","items":{"type":"string"}}},"required":["en","bn"],"additionalProperties":false,"description":"lower-case search words in English and Bangla"},"languages":{"type":"object","properties":{"output":{"type":"array","items":{"type":"string"},"description":"output languages (ISO 639-1); empty = any language the request asks for"},"card":{"type":"array","items":{"type":"string","enum":["en","bn"]},"description":"languages this card's own words are written in"}},"required":["output","card"],"additionalProperties":false},"execution_modes":{"minItems":1,"type":"array","items":{"type":"string","enum":["instant","asyncLong"]},"description":"instant = one answer while the caller waits; asyncLong = background job in steps"},"default_mode":{"type":"string","enum":["instant","asyncLong"]},"input_formats":{"type":"array","items":{"type":"string","enum":["text","markdown","csv","json","html","code"]},"description":"what the instructions may contain"},"output_formats":{"type":"array","items":{"type":"string","enum":["markdown","text","json","csv","html","code"]}},"duration_seconds":{"type":"object","properties":{"typical":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["typical","max"],"additionalProperties":false,"description":"estimated time to the finished result"},"credits":{"type":"object","properties":{"min":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"suggested_cap":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"step_cap":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"per-step cap for asyncLong jobs; null for instant-only cards"},"currency":{"type":"string","const":"emon_credits"}},"required":["min","max","suggested_cap","step_cap","currency"],"additionalProperties":false},"input_schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"JSON Schema of the hire request for this card (the same rules the server enforces)"},"output_schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"JSON Schema of the result: a list of parts (Markdown, code, JSON data)"},"status":{"type":"object","properties":{"availability":{"type":"string","enum":["live","test_mode"]},"sandbox":{"type":"boolean","description":"true while hiring is switched off for customers: read and integrate only"},"hire_via":{"type":"array","items":{"type":"string","enum":["app","api_key"]},"description":"ways to hire this card today; api_key arrives with Agent Hub API keys"}},"required":["availability","sandbox","hire_via"],"additionalProperties":false}},"required":["id","slug","kind","group","keywords","languages","execution_modes","default_mode","input_formats","output_formats","duration_seconds","credits","input_schema","output_schema","status"],"additionalProperties":false},"HireMe":{"type":"object","properties":{"key":{"type":"object","properties":{"name":{"type":"string"},"prefix":{"type":"string"},"created_at":{"type":"string"}},"required":["name","prefix","created_at"],"additionalProperties":false},"business":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"],"additionalProperties":false},"hire_enabled":{"type":"boolean"},"limits":{"type":"object","properties":{"per_job":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"per_24h":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"used_24h":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"left_24h":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["per_job","per_24h","used_24h","left_24h"],"additionalProperties":false,"description":"set by the business owner; the server refuses any job above them"},"max_credits_now":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"the largest max_credits a job may have right now (per-job limit, what is left for 24 hours, and the business's credits)"},"open_jobs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"jobs of this business not yet ended (at most 3 at a time)"},"mode_limits":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"required":["key","business","hire_enabled","limits","max_credits_now","open_jobs","mode_limits"],"additionalProperties":false},"HireJob":{"type":"object","properties":{"progress":{"$ref":"#/components/schemas/HireJobProgress"},"deliverable":{"description":"only when status is completed","type":"object","properties":{"job_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"parts":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["text","markdown","json","code","file","link"]}},"required":["kind"],"additionalProperties":{}},"description":"the result: markdown first, then each code / data block on its own (a short video's plan is a json part with emon_video: 1)"},"credits_charged":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"created_at":{"type":"string"}},"required":["job_id","parts","credits_charged","created_at"],"additionalProperties":{}},"duplicate":{"description":"true when this client_request_id was already used: this is the first job, nothing new was charged","type":"boolean"}},"required":["progress"],"additionalProperties":false},"HireJobProgress":{"type":"object","properties":{"job_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"executionMode":{"type":"string","enum":["instant","asyncLong"]},"status":{"type":"string","enum":["holding","queued","running","awaiting_approval","completed","failed","rejected","cancelled"],"description":"awaiting_approval: a checkpoint; POST /hire/jobs/{id}/actions with continue or stop"},"capability_id":{"type":"string"},"kind":{"type":"string","enum":["content","translation","formatting","code","research","workflow","general"]},"instructions":{"type":"string"},"max_credits":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"credits":{"type":"object","properties":{"held":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"released":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"refunded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["held","used","released","refunded"],"additionalProperties":false,"description":"held before work, used (charged), released (given back unused), refunded (our failure)"},"summary":{"type":"string"},"message":{"type":"string"},"error_code":{"type":"string"},"rejection":{"description":"why a job was refused without charge: payment_failed, credits_exhausted, safety_policy, …","type":"string"},"eta_at":{"type":"string"},"steps":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"status":{"type":"string"},"credit_cap":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"credits_used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["index","title","status","credit_cap","credits_used"],"additionalProperties":{}}},"created_at":{"type":"string"},"updated_at":{"type":"string"}},"required":["job_id","executionMode","status","credits","created_at","updated_at"],"additionalProperties":{}},"HireJobRequest":{"type":"object","properties":{"client_request_id":{"description":"your own id for this job (8-64 of A-Z a-z 0-9 _ -). The same id again returns the first job and never charges twice. Or send it as the Idempotency-Key header","type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$"},"capability_id":{"description":"which card does the job (GET /hire/capabilities); without it the general card does it","type":"string","pattern":"^[a-z0-9_-]{2,40}$"},"instructions":{"type":"string","minLength":1,"maxLength":12000,"description":"the job in plain words, in any language (one line is enough for the ready-made cards)"},"max_credits":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"the most this job may cost, held before work starts; only real use is charged. Must fit the key's per-job limit (GET /hire/me → max_credits_now)"},"executionMode":{"description":"instant (answer in this response) or asyncLong (steps, checkpoints); default: the card's default","type":"string","enum":["instant","asyncLong"]},"step_credit_cap":{"description":"asyncLong only: the most one step may cost; default: the card's step cap","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"deadline":{"description":"asyncLong only: ISO 8601 time the job must end by (at least 5 minutes away)","type":"string","maxLength":40},"output_language":{"description":"language of the result, e.g. bn or en; default: the language of the instructions","type":"string","pattern":"^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$"},"quality":{"description":"saver: every step on the low-cost model (long jobs often cost a tenth or less); best (default): the card's usual model. Only real use is charged either way","type":"string","enum":["saver","best"]},"callback_url":{"description":"https URL on a public host name: the server POSTs the job there (signed, see llms.txt → Webhooks) when it reaches a checkpoint or ends. Tried again for about 9 hours if your server does not answer 2xx","type":"string","maxLength":500}},"required":["instructions","max_credits"],"additionalProperties":false},"HireJobList":{"type":"object","properties":{"jobs":{"type":"array","items":{"$ref":"#/components/schemas/HireJobProgress"}}},"required":["jobs"],"additionalProperties":false},"HireJobAction":{"type":"object","properties":{"action":{"type":"string","enum":["continue","stop","cancel"],"description":"continue or stop at a checkpoint (stop keeps the work so far as the result); cancel at any time before the end. Nothing here can raise what the job holds"}},"required":["action"],"additionalProperties":false},"OpenApiDocument":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"securitySchemes":{"ApiKey":{"type":"http","scheme":"bearer","description":"An Emon AI API key (emk_ and 64 hex characters). The business owner makes it in Siddiqiya Cloud → Emon AI → API keys and sets its limits; jobs are paid from that business's Emon credits. Also accepted as the X-Api-Key header."},"Session":{"type":"http","scheme":"bearer","description":"A signed-in Siddiqiya Cloud user's access token."}}}}