---
title: "actor.task-create-request@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/actor.task-create-request"
updated: null
---

# actor.task-create-request@1 · OpenVibe.Services

HTML: [actor.task-create-request@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/actor.task-create-request)

# ActorTaskCreateRequest `actor.task-create-request@1`

Generated at 2026-12-01 05:42:00 UTC from [`openvibe-contracts v0.454.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.454.0) and [`openvibe-sdk v0.193.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.193.0).

- Version: 1.0.0
- Owner: actor
- Visibility: public
- Status: active
- Compatibility: backward
- Decision: [ADR-044](/docs/adr/ADR-044)
- Schema: [`https://openvibe.network/contracts/actor/task-create-request.v1.json`](/docs/contracts/actor.task-create-request.json)

actor.task-create-request@1: the body of POST /api/v1/tasks on OpenVibe.Actor (capability actor.task.create), the creation subset of platform.task@1. TASK is the instruction in plain words. MODE is the planner objective (default balanced). BUDGET caps what this task may cost (per\_task\_usd) and what the caller's tasks may cost in one UTC day (per\_day\_usd); either may be left out for the person's free-allowance defaults, and a value above the person's tier is refused 422 actor.budget.over\_tier, never silently lowered. AGENT pins one agent system by its id from GET /api/v1/agent-systems, the public catalog (routing still checks that it can take the task); AGENT\_ID names one of the caller's own agent contacts from GET /api/v1/agents to run this task as (absent: Vibe, their first agent). LEVEL is the thread's approval level; the effective level is the higher of the agent's own level and this one, inherited along the person's own parent chain and never from outside work. IDEMPOTENCY\_KEY: a repeat from the same requester within 24 h with an identical body answers the first task (200), with a different body 409 actor.idempotency.conflict. WEBHOOKS (at most 8): each an https URL and the state changes to deliver there (the names of platform.task@1 \`state\`). Actor signs every delivery with a secret it mints for the task, returned once as \`webhook\_secret\` in the answer that created it (and in an idempotent repeat), and POSTs actor.task-webhook@1 through its egress guard: public addresses only, ports 443 or 8443, no credentials in the URL, never a redirect. A URL that cannot be delivered to is refused 422 actor.webhook.refused. A webhook may instead name a project secret (\`secret\_ref\`, ADR-056): its deliveries are then signed by OpenVibe.Network with that secret, in the same headers, and no webhook\_secret is minted when every webhook names one. A secret\_ref on a task outside a project is refused 422 actor.webhook.secret\_unavailable. CONVERSATION names the product conversation this task answers ({ product, id }); TOOLS names the registry tool names the run may call (an empty array answers with no tool calls; a name nothing offers is said aloud in the run, never silently dropped); MODEL names one exact model id, resolved like one the person picked themselves. All three are the one-engine slice: a product has Actor answer one turn of its own conversation. TIER is the content tier (standard or uncensored): uncensored needs the person the task is for, and OpenVibe.AI checks that person's 18+ confirmation on the account before it answers on that tier.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `task` | string | yes | The instruction in plain words. | - `pattern \S`<br>- `minLength 1`<br>- `maxLength 20000` |
| `mode` | enum |  |  | - `one of "cheapest", "balanced", "best", "fastest", "private"`<br>- `default "balanced"` |
| `budget` | object |  |  | - `no other fields` |
| `budget.per_task_usd` | number |  |  | - `minimum 0`<br>- `maximum 100` |
| `budget.per_day_usd` | number |  |  | - `minimum 0`<br>- `maximum 1000` |
| `agent` | string |  | An agent system id from GET /api/v1/agents. | - `pattern ^[a-z][a-z0-9-]{1,63}$` |
| `idempotency_key` | string |  |  | - `pattern ^[A-Za-z0-9._:-]+$`<br>- `minLength 8`<br>- `maxLength 128` |
| `webhooks` | array of object |  | Where Actor tells the caller about this task's state changes (plan T17). | - `minItems 1`<br>- `maxItems 8`<br>- `items: no other fields` |
| `webhooks[].url` | string | yes | The HTTPS endpoint Actor POSTs to. | - `pattern ^https://`<br>- `format uri`<br>- `maxLength 2000` |
| `webhooks[].events` | array of enum | yes | The state changes delivered; the names of platform.task@1 \`state\`. | - `minItems 1`<br>- `maxItems 6`<br>- `unique items`<br>- `items: one of "queued", "running", "verifying", "succeeded", "failed", "cancelled"` |
| `webhooks[].secret_ref` | string |  | The name of a project secret (ADR-056) that signs this webhook's deliveries instead of the task's own secret. The task must be made in a project (by an app or agent token carrying project\_id and env); the secret is looked up in that project and environment, and the project must have granted it to actor for sign. Actor never sees the value: OpenVibe.Network computes each signature. | - `pattern ^[a-z][a-z0-9_-]{0,63}$` |
| `agent_id` | string |  | One of the caller's own agent contacts (actor.agent@1) the task runs as. Absent: their Vibe, created on first read. The public agent-system catalog stays in \`agent\`. | - `pattern ^agt_[0-9A-HJKMNP-TV-Z]{26}$` |
| `level` | enum |  | The thread's approval level. The effective level is max(the agent's level, this level, the levels of the person's own parent tasks). The always-ask floor still applies. | - `one of "ask", "auto-edits", "approve-for-me", "full"`<br>- `default "ask"` |
| `conversation` | object |  | The product conversation this task answers. Stored on the task so a later query can find the turn's task; the product keeps the task id beside its own conversation. | - `no other fields` |
| `conversation.product` | string | yes | The product whose conversation this task answers (exchange, chat, …). | - `minLength 1`<br>- `maxLength 64` |
| `conversation.id` | string | yes | That product's key for the conversation and turn. | - `minLength 1`<br>- `maxLength 256` |
| `tools` | array of string |  | The registry tool names the run may call. An empty array answers with no tool calls; a name nothing offers is said aloud in the run, never silently dropped. | - `maxItems 64`<br>- `items: pattern ^[a-z][a-z0-9_]{1,63}$` |
| `model` | string |  | One exact model id, resolved by OpenVibe.AI like one the person picked themselves. Omitted: Actor answers on its default. | - `minLength 1`<br>- `maxLength 256` |
| `tier` | enum |  | The content tier this task answers under. STANDARD is what every request gets. UNCENSORED is only for a task that names the person it is for (a person acting for themselves, or a first-party service naming them): OpenVibe.AI checks that person's 18+ confirmation on the account and refuses the tier without it. A task with no person, or one whose person has not confirmed, is answered on the standard tier. The hard floor (nothing sexual involving a minor) holds on every tier. | - `one of "standard", "uncensored"` |

## Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

 Valid: full

~~~~
{
  "task": "Research five competitors of my shop and write a one-page brief with sources.",
  "mode": "best",
  "budget": {
    "per_task_usd": 0.5,
    "per_day_usd": 2
  },
  "agent": "openai-agent",
  "idempotency_key": "brief-2026-10-08"
}
~~~~

Valid: minimal

~~~~
{
  "task": "What is the TTL of openvibe.network's MX record?"
}
~~~~

Valid: turn-adult

~~~~
{
  "task": "You are Sable.\n\nThe conversation so far:\nThe person: Do you like quiet weekends?\nThe companion: The quiet ones are the best ones.\n\nThe person now says:\nHelp me plan a quiet weekend.",
  "mode": "cheapest",
  "model": "deepseek/deepseek-chat@v1",
  "budget": {
    "per_task_usd": 0.05
  },
  "idempotency_key": "exchange-companion-cmp_01-turn-ext_01-v0",
  "conversation": {
    "product": "exchange",
    "id": "companion-chat:cmp_01/turn:ext_01/v0"
  },
  "tools": [],
  "tier": "uncensored"
}
~~~~

Valid: turn

~~~~
{
  "task": "You are Sable.\n\nThe conversation so far:\nThe person: Do you like quiet weekends?\nThe companion: The quiet ones are the best ones.\n\nThe person now says:\nHelp me plan a quiet weekend.",
  "mode": "cheapest",
  "model": "deepseek/deepseek-chat@v1",
  "budget": {
    "per_task_usd": 0.05
  },
  "idempotency_key": "exchange-companion-cmp_01-turn-ext_01-v0",
  "conversation": {
    "product": "exchange",
    "id": "companion-chat:cmp_01/turn:ext_01/v0"
  },
  "tools": []
}
~~~~

Valid: webhook-secret-ref

~~~~
{
  "task": "Summarise this week's Node.js release notes",
  "webhooks": [
    {
      "url": "https://hooks.example.com/actor",
      "events": [
        "succeeded",
        "failed"
      ],
      "secret_ref": "webhook-signing"
    }
  ]
}
~~~~

Valid: with-webhooks

~~~~
{
  "task": "Summarize today's top three posts on openvibe.news.",
  "webhooks": [
    {
      "url": "https://hooks.example.com/openvibe/actor",
      "events": [
        "succeeded",
        "failed",
        "cancelled"
      ]
    }
  ]
}
~~~~

Rejected: blank-task

~~~~
{
  "task": "   "
}
~~~~

Rejected: conversation-no-id

~~~~
{
  "task": "x",
  "conversation": {
    "product": "exchange"
  }
}
~~~~

Rejected: negative-budget

~~~~
{
  "task": "x",
  "budget": {
    "per_task_usd": -1
  }
}
~~~~

Rejected: tier-not-here

~~~~
{
  "task": "x",
  "tier": "adult"
}
~~~~

Rejected: tools-not-here

~~~~
{
  "task": "x",
  "tools": "read_page"
}
~~~~

Rejected: unknown-mode

~~~~
{
  "task": "x",
  "mode": "smartest"
}
~~~~

Rejected: webhook-http

~~~~
{
  "task": "x",
  "webhooks": [
    {
      "url": "http://hooks.example.com/x",
      "events": [
        "succeeded"
      ]
    }
  ]
}
~~~~

Rejected: webhook-secret-ref-spaces

~~~~
{
  "task": "Summarise this week's Node.js release notes",
  "webhooks": [
    {
      "url": "https://hooks.example.com/actor",
      "events": [
        "succeeded"
      ],
      "secret_ref": "Webhook Signing"
    }
  ]
}
~~~~

Rejected: webhook-secret-ref

~~~~
{
  "task": "x",
  "webhooks": [
    {
      "url": "https://hooks.example.com/x",
      "events": [
        "succeeded"
      ],
      "secret_ref": "HOOK_KEY"
    }
  ]
}
~~~~

Rejected: webhooks-not-here

~~~~
{
  "task": "x",
  "webhooks": []
}
~~~~

## Validate

~~~~
const contracts = require('openvibe-contracts');
contracts.validate('actor.task-create-request@1', value);   // { valid, errors: [{ path, message }] }
~~~~
