{"openapi":"3.1.0","info":{"title":"Vroni API","version":"v1","description":"Use a Bearer token from \/teams\/{team}\/api-tokens for v1 requests.\n\nSuccessful responses use { data, meta }; errors use { message, code, errors? }.\n\nBreaking change: P10 replaces the previous numeric admission.admission_decision_id webhook field with admission.admission_id, a public ULID. Old retained payloads are reprojected before redelivery and become non-replayable when the source resource is missing.\n\nLegacy api:projects:read satisfies api:repositories:read and only that. New tokens should prefer api:repositories:read.\n\nTreat every links.* URL as an opaque SaaS navigation string, not a parseable API resource path. Webhook envelope event_id values and run timeline event.id values are independent namespaces.\n\nUse \/api\/v1\/runs\/{id}\/status and \/api\/v1\/runs\/{id}\/events for polling. Event cursors are opaque, encrypted, scoped to one run, expire after 24 hours, and can resume polling from the current tail when has_more is false."},"servers":[{"url":"\/api\/v1"}],"security":[{"bearerAuth":[]}],"paths":{"\/openapi.json":{"get":{"summary":"OpenAPI document","security":[],"responses":{"200":{"description":"OpenAPI document"},"429":{"$ref":"#\/components\/responses\/RateLimited"}}}},"\/repositories":{"get":{"summary":"List repositories","parameters":[{"$ref":"#\/components\/parameters\/Page"},{"$ref":"#\/components\/parameters\/PerPage"},{"name":"query","in":"query","schema":{"type":"string"}},{"$ref":"#\/components\/parameters\/RepositoryProviderFilter"},{"$ref":"#\/components\/parameters\/RepositoryStatusFilter"},{"$ref":"#\/components\/parameters\/RepositoryListSort"}],"responses":{"200":{"$ref":"#\/components\/responses\/Repositories"},"401":{"$ref":"#\/components\/responses\/TokenRequired"},"403":{"$ref":"#\/components\/responses\/TokenAbilityDenied"},"404":{"$ref":"#\/components\/responses\/NotFound"},"422":{"$ref":"#\/components\/responses\/ValidationFailed"},"429":{"$ref":"#\/components\/responses\/RateLimited"}}}},"\/repositories\/{repository_id}":{"get":{"summary":"Show a repository","parameters":[{"$ref":"#\/components\/parameters\/RepositoryId"}],"responses":{"200":{"$ref":"#\/components\/responses\/Repository"},"401":{"$ref":"#\/components\/responses\/TokenRequired"},"403":{"$ref":"#\/components\/responses\/TokenAbilityDenied"},"404":{"$ref":"#\/components\/responses\/NotFound"},"422":{"$ref":"#\/components\/responses\/ValidationFailed"},"429":{"$ref":"#\/components\/responses\/RateLimited"}}}},"\/tasks":{"get":{"summary":"List tasks","parameters":[{"$ref":"#\/components\/parameters\/Page"},{"$ref":"#\/components\/parameters\/PerPage"},{"$ref":"#\/components\/parameters\/TaskStatusFilter"},{"$ref":"#\/components\/parameters\/TaskSourceFilter"},{"$ref":"#\/components\/parameters\/RepositoryIdFilter"},{"$ref":"#\/components\/parameters\/CreatedAtFromFilter"},{"$ref":"#\/components\/parameters\/CreatedAtUntilFilter"},{"$ref":"#\/components\/parameters\/TaskListSort"}],"responses":{"200":{"$ref":"#\/components\/responses\/Tasks"},"401":{"$ref":"#\/components\/responses\/TokenRequired"},"403":{"$ref":"#\/components\/responses\/TokenAbilityDenied"},"404":{"$ref":"#\/components\/responses\/NotFound"},"422":{"$ref":"#\/components\/responses\/ValidationFailed"},"429":{"$ref":"#\/components\/responses\/RateLimited"}}},"post":{"summary":"Create a task","description":"Creates a SaaS task and, when task approval is not required, queues the first run through the guarded admission path. On gated teams the request can be accepted for review with no run, no credit reservation, and no polling links. Idempotent when called with an Idempotency-Key header. If parked work is later approved, matching replays return the run-backed 200 response; if approval reaches admission denial, matching replays return 409 admission_denied.","parameters":[{"$ref":"#\/components\/parameters\/IdempotencyKey"}],"requestBody":{"$ref":"#\/components\/requestBodies\/TaskCreateRequest"},"responses":{"200":{"$ref":"#\/components\/responses\/TaskCreateReplay"},"201":{"$ref":"#\/components\/responses\/TaskCreated"},"202":{"$ref":"#\/components\/responses\/TaskPendingApproval"},"401":{"$ref":"#\/components\/responses\/TokenRequired"},"403":{"$ref":"#\/components\/responses\/TokenAbilityDenied"},"404":{"$ref":"#\/components\/responses\/NotFound"},"409":{"$ref":"#\/components\/responses\/AdmissionDeniedOrConflict"},"422":{"$ref":"#\/components\/responses\/ValidationFailed"},"429":{"$ref":"#\/components\/responses\/RateLimited"}}}},"\/tasks\/{task_id}":{"get":{"summary":"Show a task","parameters":[{"$ref":"#\/components\/parameters\/TaskId"}],"responses":{"200":{"$ref":"#\/components\/responses\/Task"},"401":{"$ref":"#\/components\/responses\/TokenRequired"},"403":{"$ref":"#\/components\/responses\/TokenAbilityDenied"},"404":{"$ref":"#\/components\/responses\/NotFound"},"422":{"$ref":"#\/components\/responses\/ValidationFailed"},"429":{"$ref":"#\/components\/responses\/RateLimited"}}}},"\/runs":{"get":{"summary":"List runs","parameters":[{"$ref":"#\/components\/parameters\/Page"},{"$ref":"#\/components\/parameters\/PerPage"},{"$ref":"#\/components\/parameters\/RunStatusFilter"},{"$ref":"#\/components\/parameters\/RunPublicationStateFilter"},{"$ref":"#\/components\/parameters\/RunTriggerSourceFilter"},{"$ref":"#\/components\/parameters\/RepositoryIdFilter"},{"$ref":"#\/components\/parameters\/TaskIdFilter"},{"$ref":"#\/components\/parameters\/CreatedAtFromFilter"},{"$ref":"#\/components\/parameters\/CreatedAtUntilFilter"},{"$ref":"#\/components\/parameters\/RunListSort"}],"responses":{"200":{"$ref":"#\/components\/responses\/Runs"},"401":{"$ref":"#\/components\/responses\/TokenRequired"},"403":{"$ref":"#\/components\/responses\/TokenAbilityDenied"},"404":{"$ref":"#\/components\/responses\/NotFound"},"422":{"$ref":"#\/components\/responses\/ValidationFailed"},"429":{"$ref":"#\/components\/responses\/RateLimited"}}}},"\/runs\/{run_id}":{"get":{"summary":"Show a run","parameters":[{"$ref":"#\/components\/parameters\/RunId"}],"responses":{"200":{"$ref":"#\/components\/responses\/Run"},"401":{"$ref":"#\/components\/responses\/TokenRequired"},"403":{"$ref":"#\/components\/responses\/TokenAbilityDenied"},"404":{"$ref":"#\/components\/responses\/NotFound"},"422":{"$ref":"#\/components\/responses\/ValidationFailed"},"429":{"$ref":"#\/components\/responses\/RateLimited"}}}},"\/runs\/{run_id}\/status":{"get":{"summary":"Show run status (polling)","parameters":[{"$ref":"#\/components\/parameters\/RunId"}],"responses":{"200":{"$ref":"#\/components\/responses\/RunStatus"},"401":{"$ref":"#\/components\/responses\/TokenRequired"},"403":{"$ref":"#\/components\/responses\/TokenAbilityDenied"},"404":{"$ref":"#\/components\/responses\/NotFound"},"422":{"$ref":"#\/components\/responses\/ValidationFailed"},"429":{"$ref":"#\/components\/responses\/RateLimited"}}}},"\/runs\/{run_id}\/events":{"get":{"summary":"List run events (incremental polling)","parameters":[{"$ref":"#\/components\/parameters\/RunId"},{"$ref":"#\/components\/parameters\/EventCursor"},{"$ref":"#\/components\/parameters\/EventLimit"}],"responses":{"200":{"$ref":"#\/components\/responses\/RunEvents"},"401":{"$ref":"#\/components\/responses\/TokenRequired"},"403":{"$ref":"#\/components\/responses\/TokenAbilityDenied"},"404":{"$ref":"#\/components\/responses\/NotFound"},"422":{"$ref":"#\/components\/responses\/CursorInvalid"},"429":{"$ref":"#\/components\/responses\/RateLimited"}}}},"\/credits":{"get":{"summary":"Show credit balance summary","responses":{"200":{"$ref":"#\/components\/responses\/CreditSummary"},"401":{"$ref":"#\/components\/responses\/TokenRequired"},"403":{"$ref":"#\/components\/responses\/TokenAbilityDenied"},"404":{"$ref":"#\/components\/responses\/NotFound"},"422":{"$ref":"#\/components\/responses\/ValidationFailed"},"429":{"$ref":"#\/components\/responses\/RateLimited"}}}},"\/webhook-subscriptions":{"get":{"summary":"List webhook subscriptions","responses":{"200":{"$ref":"#\/components\/responses\/Subscriptions"},"401":{"$ref":"#\/components\/responses\/TokenRequired"},"403":{"$ref":"#\/components\/responses\/TokenAbilityDenied"}}},"post":{"summary":"Create a webhook subscription","requestBody":{"$ref":"#\/components\/requestBodies\/SubscriptionWrite"},"responses":{"201":{"$ref":"#\/components\/responses\/SubscriptionWithSecret"},"422":{"$ref":"#\/components\/responses\/ValidationFailed"}}}},"\/webhook-subscriptions\/{subscription_id}":{"get":{"summary":"Show a webhook subscription","parameters":[{"$ref":"#\/components\/parameters\/SubscriptionId"}],"responses":{"200":{"$ref":"#\/components\/responses\/Subscription"}}},"patch":{"summary":"Update a webhook subscription","parameters":[{"$ref":"#\/components\/parameters\/SubscriptionId"}],"requestBody":{"$ref":"#\/components\/requestBodies\/SubscriptionPatch"},"responses":{"200":{"$ref":"#\/components\/responses\/Subscription"}}},"delete":{"summary":"Delete a webhook subscription","parameters":[{"$ref":"#\/components\/parameters\/SubscriptionId"}],"responses":{"200":{"description":"Deleted","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/SuccessEnvelope"}}}}}}},"\/webhook-subscriptions\/{subscription_id}\/test":{"post":{"summary":"Send a test webhook","parameters":[{"$ref":"#\/components\/parameters\/SubscriptionId"}],"responses":{"202":{"$ref":"#\/components\/responses\/Delivery"},"429":{"$ref":"#\/components\/responses\/RateLimited"}}}},"\/webhook-subscriptions\/{subscription_id}\/rotate-secret":{"post":{"summary":"Rotate a webhook signing secret","parameters":[{"$ref":"#\/components\/parameters\/SubscriptionId"}],"responses":{"200":{"$ref":"#\/components\/responses\/SubscriptionWithSecret"}}}},"\/webhook-subscriptions\/{subscription_id}\/disable":{"post":{"summary":"Disable a webhook subscription","parameters":[{"$ref":"#\/components\/parameters\/SubscriptionId"}],"responses":{"200":{"$ref":"#\/components\/responses\/Subscription"}}}},"\/webhook-deliveries":{"get":{"summary":"List webhook deliveries","parameters":[{"name":"subscription_id","in":"query","schema":{"type":"string"}},{"name":"event_type","in":"query","schema":{"$ref":"#\/components\/schemas\/WebhookEventType"}},{"name":"status","in":"query","schema":{"$ref":"#\/components\/schemas\/DeliveryStatus"}},{"name":"test","in":"query","schema":{"type":"boolean"}},{"name":"replayable","in":"query","schema":{"type":"boolean"}}],"responses":{"200":{"$ref":"#\/components\/responses\/Deliveries"}}}},"\/webhook-deliveries\/{delivery_id}":{"get":{"summary":"Show a webhook delivery","parameters":[{"$ref":"#\/components\/parameters\/DeliveryId"}],"responses":{"200":{"$ref":"#\/components\/responses\/Delivery"}}}},"\/webhook-deliveries\/{delivery_id}\/replay":{"post":{"summary":"Replay an eligible failed webhook delivery","parameters":[{"$ref":"#\/components\/parameters\/DeliveryId"}],"responses":{"202":{"$ref":"#\/components\/responses\/Delivery"}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"parameters":{"SubscriptionId":{"name":"subscription_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"DeliveryId":{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"RepositoryId":{"name":"repository_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"TaskId":{"name":"task_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"RunId":{"name":"run_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"EventId":{"name":"event_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"AdmissionId":{"name":"admission_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"IdempotencyKey":{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional opaque string. Same payload + same key returns the original task\/run or parked approval request with replay: true. After approval, the same key returns the resulting run-backed replay; after approval-time admission denial, it returns 409 admission_denied. Different payload + same key returns 409 trigger_key_conflict. Idempotency is scoped to one team and one repository.","schema":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[A-Za-z0-9_\\-:.]+$"}},"Page":{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},"PerPage":{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},"RepositoryStatusFilter":{"name":"status","in":"query","required":false,"description":"Repository status filter. Use status=ready or bracket arrays such as status[]=checking&status[]=ready.","style":"form","explode":true,"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/RepositoryStatusCode"}}},"TaskStatusFilter":{"name":"status","in":"query","required":false,"description":"Task status filter. Use status=running or bracket arrays such as status[]=queued&status[]=running.","style":"form","explode":true,"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/TaskStatusCode"}}},"RunStatusFilter":{"name":"status","in":"query","required":false,"description":"Run status filter. Use status=running or bracket arrays such as status[]=queued&status[]=running.","style":"form","explode":true,"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/RunStatusCode"}}},"RunPublicationStateFilter":{"name":"publication_state","in":"query","required":false,"description":"Filter run delivery state. awaiting_review returns runs held on an unpublished pull request proposal; delivered returns runs without an unpublished proposal.","schema":{"type":"string","enum":["all","delivered","awaiting_review"],"default":"all"}},"RepositoryProviderFilter":{"name":"provider","in":"query","required":false,"schema":{"$ref":"#\/components\/schemas\/RepositoryProvider"}},"TaskSourceFilter":{"name":"source","in":"query","required":false,"description":"Task source filter. Use source=github or bracket arrays such as source[]=github&source[]=api.","style":"form","explode":true,"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/TriggerSource"}}},"RunTriggerSourceFilter":{"name":"trigger_source","in":"query","required":false,"description":"Run trigger source filter. Use trigger_source=github or bracket arrays such as trigger_source[]=github&trigger_source[]=api.","style":"form","explode":true,"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/TriggerSource"}}},"RepositoryIdFilter":{"name":"repository_id","in":"query","required":false,"schema":{"$ref":"#\/components\/schemas\/PublicId"}},"TaskIdFilter":{"name":"task_id","in":"query","required":false,"schema":{"$ref":"#\/components\/schemas\/PublicId"}},"CreatedAtFromFilter":{"name":"created_at_from","in":"query","required":false,"description":"Inclusive ISO 8601 datetime with timezone, for example 2026-05-01T10:00:00Z.","schema":{"type":"string","format":"date-time"}},"CreatedAtUntilFilter":{"name":"created_at_until","in":"query","required":false,"description":"Exclusive ISO 8601 datetime with timezone, for example 2026-05-02T10:00:00+00:00.","schema":{"type":"string","format":"date-time"}},"RepositoryListSort":{"name":"sort","in":"query","required":false,"schema":{"type":"string","enum":["created_at","-created_at","name","-name","status","-status"]}},"TaskListSort":{"name":"sort","in":"query","required":false,"schema":{"type":"string","enum":["created_at","-created_at","updated_at","-updated_at","status","-status"]}},"RunListSort":{"name":"sort","in":"query","required":false,"description":"Sort order. credits and -credits are unavailable for managed-plan teams.","schema":{"type":"string","enum":["created_at","-created_at","duration","-duration","credits","-credits","started_at","-started_at","completed_at","-completed_at","status","-status"]}},"EventCursor":{"name":"cursor","in":"query","required":false,"description":"Opaque encrypted cursor returned by the previous response in meta.pagination.next_cursor. 24-hour lifetime; may be present when has_more is false so clients can resume polling from the current tail. On cursor_invalid restart from the beginning.","schema":{"type":"string"}},"EventLimit":{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":50}}},"requestBodies":{"SubscriptionWrite":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["description","endpoint_url","selected_events"],"properties":{"description":{"type":"string","maxLength":120},"endpoint_url":{"type":"string","format":"uri"},"selected_events":{"type":"array","minItems":1,"maxItems":9,"items":{"$ref":"#\/components\/schemas\/WebhookEventType"}},"enabled":{"type":"boolean","default":true}},"additionalProperties":false}}}},"SubscriptionPatch":{"required":true,"content":{"application\/json":{"schema":{"type":"object","properties":{"description":{"type":"string","maxLength":120},"endpoint_url":{"type":"string","format":"uri"},"selected_events":{"type":"array","minItems":1,"maxItems":9,"items":{"$ref":"#\/components\/schemas\/WebhookEventType"}},"enabled":{"type":"boolean"}},"additionalProperties":false}}}},"TaskCreateRequest":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TaskCreateRequest"},"example":{"repository_id":"01J00000000000000000000030","requested_outcome":"Review the CI permissions and document any risky jobs.","title":"Queue a CI permission audit","source_ref":"refs\/heads\/main","source_url":"https:\/\/github.com\/acme\/demo\/actions\/runs\/123","correlation_id":"build-123","ci":{"provider":"github_actions","workflow":"ci","job":"test","branch":"main","commit_sha":"abc1234","pipeline_url":"https:\/\/github.com\/acme\/demo\/actions\/runs\/123","external_run_id":"123"}}}}}},"responses":{"Subscription":{"description":"Subscription response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/SuccessEnvelope"}}}},"Subscriptions":{"description":"Subscription list response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/SuccessEnvelope"}}}},"SubscriptionWithSecret":{"description":"Subscription response with one-time signing secret in meta.signing_secret","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/SuccessEnvelope"}}}},"Delivery":{"description":"Webhook delivery response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/SuccessEnvelope"}}}},"Deliveries":{"description":"Webhook delivery list response","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/SuccessEnvelope"}}}},"Repositories":{"description":"Repository list response. data is an array of repository resources and meta.pagination is length pagination.","content":{"application\/json":{"schema":{"allOf":[{"$ref":"#\/components\/schemas\/SuccessEnvelope"},{"type":"object","required":["data","meta"],"properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/RepositoryResource"}},"meta":{"type":"object","required":["pagination"],"properties":{"pagination":{"$ref":"#\/components\/schemas\/PaginationMeta"}}}}}]},"example":{"data":[{"id":"01J00000000000000000000030","name":"GitHub Actions CI Hardening","provider":"github","status":"ready","status_label":"Ready","customer_status":{"code":"ready","label":"Ready","explanation":"The repository is ready."},"trusted_github_url":"https:\/\/github.com\/vronibot\/demo-github-actions-ci-hardening","canonical_url":"https:\/\/vroni.example\/projects\/30","links":{"repository":"https:\/\/vroni.example\/projects\/30","runs":"https:\/\/vroni.example\/api\/v1\/runs?repository_id=01J00000000000000000000030"}}],"meta":{"pagination":{"type":"length","current_page":1,"last_page":1,"per_page":25,"total":1}}}}}},"Repository":{"description":"Repository detail response","content":{"application\/json":{"schema":{"allOf":[{"$ref":"#\/components\/schemas\/SuccessEnvelope"},{"type":"object","required":["data"],"properties":{"data":{"$ref":"#\/components\/schemas\/RepositoryDetailResource"}}}]},"example":{"data":{"id":"01J00000000000000000000030","name":"GitHub Actions CI Hardening","provider":"github","status":"ready","status_label":"Ready","customer_status":{"code":"ready","label":"Ready","explanation":"The repository is ready."},"trusted_github_url":"https:\/\/github.com\/vronibot\/demo-github-actions-ci-hardening","canonical_url":"https:\/\/vroni.example\/projects\/30","links":{"repository":"https:\/\/vroni.example\/projects\/30","runs":"https:\/\/vroni.example\/api\/v1\/runs?repository_id=01J00000000000000000000030"},"latest_run":{"id":"01J00000000000000000000010","task_id":"01J00000000000000000000020","status":"completed","status_label":"Completed","repository":{"id":"01J00000000000000000000030","name":"GitHub Actions CI Hardening","canonical_url":"https:\/\/vroni.example\/projects\/30"},"task_title":"Ship the queue backpressure fix","trigger":{"source":"api","type":"direct","label":"API"},"pull_request":{"number":41,"url":"https:\/\/github.com\/vronibot\/demo\/pull\/41"},"created_at":"2026-05-04T09:58:00Z","started_at":"2026-05-04T10:00:00Z","completed_at":"2026-05-04T10:18:00Z","duration_seconds":1080,"credits_used":3,"settlement_status":"settled","attempt_count":1,"has_multiple_attempts":false,"has_findings":false,"failure_category":null,"failure_label":null,"canonical_url":"https:\/\/vroni.example\/runs\/10","links":{"run":"https:\/\/vroni.example\/runs\/10","repository":"https:\/\/vroni.example\/projects\/30","task":"https:\/\/vroni.example\/tasks\/01J00000000000000000000020"}},"recent_runs":[{"id":"01J00000000000000000000010","task_id":"01J00000000000000000000020","status":"completed","status_label":"Completed","repository":{"id":"01J00000000000000000000030","name":"GitHub Actions CI Hardening","canonical_url":"https:\/\/vroni.example\/projects\/30"},"task_title":"Ship the queue backpressure fix","trigger":{"source":"api","type":"direct","label":"API"},"pull_request":{"number":41,"url":"https:\/\/github.com\/vronibot\/demo\/pull\/41"},"created_at":"2026-05-04T09:58:00Z","started_at":"2026-05-04T10:00:00Z","completed_at":"2026-05-04T10:18:00Z","duration_seconds":1080,"credits_used":3,"settlement_status":"settled","attempt_count":1,"has_multiple_attempts":false,"has_findings":false,"failure_category":null,"failure_label":null,"canonical_url":"https:\/\/vroni.example\/runs\/10","links":{"run":"https:\/\/vroni.example\/runs\/10","repository":"https:\/\/vroni.example\/projects\/30","task":"https:\/\/vroni.example\/tasks\/01J00000000000000000000020"}}],"has_activity":true,"findings_visible":false}}}}},"Tasks":{"description":"Task list response. data is an array of task resources and meta.pagination is length pagination.","content":{"application\/json":{"schema":{"allOf":[{"$ref":"#\/components\/schemas\/SuccessEnvelope"},{"type":"object","required":["data","meta"],"properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/TaskResource"}},"meta":{"type":"object","required":["pagination"],"properties":{"pagination":{"$ref":"#\/components\/schemas\/PaginationMeta"}}}}}]},"example":{"data":[{"id":"01J00000000000000000000020","title":"Ship the queue backpressure fix","status":"completed","status_label":"Completed","repository":{"id":"01J00000000000000000000030","name":"GitHub Actions CI Hardening"},"latest_run":{"id":"01J00000000000000000000010","status":"completed","status_label":"Completed","started_at":"2026-05-04T10:00:00Z","completed_at":"2026-05-04T10:18:00Z"},"pull_request":{"url":"https:\/\/github.com\/vronibot\/demo\/pull\/41","state":null},"source":"api","approval":null,"canonical_url":"https:\/\/vroni.example\/tasks\/01J00000000000000000000020","links":{"task":"https:\/\/vroni.example\/tasks\/01J00000000000000000000020","repository":"https:\/\/vroni.example\/projects\/30"}}],"meta":{"pagination":{"type":"length","current_page":1,"last_page":1,"per_page":25,"total":1}}}}}},"Task":{"description":"Task detail response","content":{"application\/json":{"schema":{"allOf":[{"$ref":"#\/components\/schemas\/SuccessEnvelope"},{"type":"object","required":["data"],"properties":{"data":{"$ref":"#\/components\/schemas\/TaskDetailResource"}}}]},"example":{"data":{"id":"01J00000000000000000000020","task_id":"01J00000000000000000000020","title":"Ship the queue backpressure fix","status":"completed","status_label":"Completed","repository":{"id":"01J00000000000000000000030","name":"GitHub Actions CI Hardening"},"latest_run":{"id":"01J00000000000000000000010","status":"completed","status_label":"Completed","started_at":"2026-05-04T10:00:00Z","completed_at":"2026-05-04T10:18:00Z"},"pull_request":{"url":"https:\/\/github.com\/vronibot\/demo\/pull\/41","state":null},"source":"api","denial":null,"approval":null,"canonical_url":"https:\/\/vroni.example\/tasks\/01J00000000000000000000020","links":{"task":"https:\/\/vroni.example\/tasks\/01J00000000000000000000020","repository":"https:\/\/vroni.example\/projects\/30"},"requested_outcome":"Implement the queue backpressure fix and open a pull request.","next_actions":[{"action":"review_pull_request","label":"Review pull request"}]}}}}},"TaskCreated":{"description":"Task created and first run queued.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TaskCreateResponse"},"example":{"data":{"task":{"id":"01J00000000000000000000020","source":"api","title":"Queue a CI permission audit"},"run":{"id":"01J00000000000000000000010","status":"queued","status_label":"Queued","terminal":false},"repository":{"id":"01J00000000000000000000030","name":"GitHub Actions CI Hardening"},"correlation_id":"build-123","replay":false,"links":{"status":"https:\/\/vroni.example\/api\/v1\/runs\/01J00000000000000000000010\/status","events":"https:\/\/vroni.example\/api\/v1\/runs\/01J00000000000000000000010\/events","task":"https:\/\/vroni.example\/tasks\/01J00000000000000000000020","run":"https:\/\/vroni.example\/runs\/10","repository":"https:\/\/vroni.example\/projects\/30"}}}}}},"TaskCreateReplay":{"description":"Idempotent replay of a previously created task and run.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TaskCreateResponse"},"example":{"data":{"task":{"id":"01J00000000000000000000020","source":"api","title":"Queue a CI permission audit"},"run":{"id":"01J00000000000000000000010","status":"queued","status_label":"Queued","terminal":false},"repository":{"id":"01J00000000000000000000030","name":"GitHub Actions CI Hardening"},"correlation_id":"build-123","replay":true,"links":{"status":"https:\/\/vroni.example\/api\/v1\/runs\/01J00000000000000000000010\/status","events":"https:\/\/vroni.example\/api\/v1\/runs\/01J00000000000000000000010\/events","task":"https:\/\/vroni.example\/tasks\/01J00000000000000000000020","run":"https:\/\/vroni.example\/runs\/10","repository":"https:\/\/vroni.example\/projects\/30"}}}}}},"TaskPendingApproval":{"description":"Task accepted for review. No run exists yet, no credits are reserved, and polling links are omitted. Matching replays stay no-run only while the approval is still waiting.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TaskCreateResponse"},"example":{"data":{"approval_required":true,"task":{"id":"01J00000000000000000000020","source":"api","title":"Queue a CI permission audit","status":"waiting_for_review","canonical_url":"https:\/\/vroni.example\/tasks\/01J00000000000000000000020"},"approval":{"required":true,"status":"awaiting_approval","intent_id":"01J00000000000000000000050","requested_at":"2026-07-05T12:00:00Z"},"repository":{"id":"01J00000000000000000000030","name":"GitHub Actions CI Hardening"},"correlation_id":"build-123","replay":false,"links":{"task":"https:\/\/vroni.example\/tasks\/01J00000000000000000000020","repository":"https:\/\/vroni.example\/projects\/30"}}}}}},"AdmissionDeniedOrConflict":{"description":"Admission was denied, or the idempotency key was already used for different work.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorEnvelope"},"examples":{"admission_denied":{"value":{"message":"Vroni could not start this run.","code":"admission_denied","errors":{"reason":["project_not_ready"]},"admission_id":"01J00000000000000000000040","correlation_id":"build-123"}},"trigger_key_conflict":{"value":{"message":"The idempotency key has already been used with a different request.","code":"trigger_key_conflict","errors":{"idempotency_key":["payload_conflict"]},"admission_id":"01J00000000000000000000040","correlation_id":"build-123"}}}}}},"Runs":{"description":"Run list response. data is an array of run resources and meta.pagination is length pagination.","content":{"application\/json":{"schema":{"allOf":[{"$ref":"#\/components\/schemas\/SuccessEnvelope"},{"type":"object","required":["data","meta"],"properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/RunResource"}},"meta":{"type":"object","required":["pagination"],"properties":{"pagination":{"$ref":"#\/components\/schemas\/PaginationMeta"}}}}}]},"example":{"data":[{"id":"01J00000000000000000000010","task_id":"01J00000000000000000000020","status":"completed","status_label":"Completed","repository":{"id":"01J00000000000000000000030","name":"GitHub Actions CI Hardening","canonical_url":"https:\/\/vroni.example\/projects\/30"},"task_title":"Ship the queue backpressure fix","trigger":{"source":"api","type":"direct","label":"API"},"pull_request":{"number":41,"url":"https:\/\/github.com\/vronibot\/demo\/pull\/41"},"created_at":"2026-05-04T09:58:00Z","started_at":"2026-05-04T10:00:00Z","completed_at":"2026-05-04T10:18:00Z","duration_seconds":1080,"credits_used":3,"settlement_status":"settled","attempt_count":1,"has_multiple_attempts":false,"has_findings":false,"failure_category":null,"failure_label":null,"canonical_url":"https:\/\/vroni.example\/runs\/10","links":{"run":"https:\/\/vroni.example\/runs\/10","repository":"https:\/\/vroni.example\/projects\/30","task":"https:\/\/vroni.example\/tasks\/01J00000000000000000000020"}}],"meta":{"pagination":{"type":"length","current_page":1,"last_page":1,"per_page":25,"total":1}}}}}},"Run":{"description":"Run detail response","content":{"application\/json":{"schema":{"allOf":[{"$ref":"#\/components\/schemas\/SuccessEnvelope"},{"type":"object","required":["data"],"properties":{"data":{"$ref":"#\/components\/schemas\/RunDetailResource"}}}]},"example":{"data":{"id":"01J00000000000000000000010","task_id":"01J00000000000000000000020","status":"completed","status_label":"Completed","repository":{"id":"01J00000000000000000000030","name":"GitHub Actions CI Hardening","canonical_url":"https:\/\/vroni.example\/projects\/30"},"task_title":"Ship the queue backpressure fix","requested_outcome":"Implement the queue backpressure fix and open a pull request.","trigger":{"source":"api","type":"direct","label":"API"},"pull_request":{"number":41,"url":"https:\/\/github.com\/vronibot\/demo\/pull\/41"},"attempt_summary":{"attempt_count":1,"has_multiple_attempts":false},"outcome_summary":"Implemented the queue backpressure fix and opened a pull request.","failure_category":null,"failure_label":null,"cancellation":null,"timeline":[{"event":"status","label":"Status","timestamp":"2026-05-04T10:18:00Z","detail":"Run completed successfully.","status":"completed","status_label":"Completed"}],"settlement":{"credits_used":3,"credits_refunded":0,"settlement_status":"settled"},"started_at":"2026-05-04T10:00:00Z","completed_at":"2026-05-04T10:18:00Z","duration_seconds":1080,"next_action":null,"canonical_url":"https:\/\/vroni.example\/runs\/10","links":{"run":"https:\/\/vroni.example\/runs\/10","repository":"https:\/\/vroni.example\/projects\/30","task":"https:\/\/vroni.example\/tasks\/01J00000000000000000000020"}}}}}},"RunStatus":{"description":"Run status response","content":{"application\/json":{"schema":{"allOf":[{"$ref":"#\/components\/schemas\/SuccessEnvelope"},{"type":"object","required":["data"],"properties":{"data":{"$ref":"#\/components\/schemas\/RunStatusResource"}}}]},"example":{"data":{"id":"01J00000000000000000000010","task_id":"01J00000000000000000000020","repository":{"id":"01J00000000000000000000030","canonical_url":"https:\/\/vroni.example\/projects\/30"},"status":"completed","status_label":"Completed","terminal":true,"created_at":"2026-05-04T09:58:00Z","started_at":"2026-05-04T10:00:00Z","completed_at":"2026-05-04T10:18:00Z","duration_seconds":1080,"pull_request":{"number":41,"url":"https:\/\/github.com\/vronibot\/demo\/pull\/41"},"next_action":{"code":"open_pull_request","label":"Open the pull request","url":"https:\/\/github.com\/vronibot\/demo\/pull\/41"},"canonical_url":"https:\/\/vroni.example\/runs\/10","links":{"run":"https:\/\/vroni.example\/runs\/10","status":"https:\/\/vroni.example\/api\/v1\/runs\/01J00000000000000000000010\/status","events":"https:\/\/vroni.example\/api\/v1\/runs\/01J00000000000000000000010\/events"}}}}}},"RunEvents":{"description":"Run events list response with cursor pagination","content":{"application\/json":{"schema":{"allOf":[{"$ref":"#\/components\/schemas\/SuccessEnvelope"},{"type":"object","required":["data","meta"],"properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/RunEventResource"}},"meta":{"type":"object","required":["pagination"],"properties":{"pagination":{"$ref":"#\/components\/schemas\/CursorPaginationMeta"}}}}}]},"example":{"data":[{"event":{"id":"01J00000000000000000000111","type":"status","timestamp":"2026-05-04T10:00:00Z","label":"Status update","detail":"Run started.","status":"running","status_label":"Running"},"run":{"id":"01J00000000000000000000010"},"task":{"id":"01J00000000000000000000020"},"repository":{"id":"01J00000000000000000000030"}},{"event":{"id":"01J00000000000000000000112","type":"progress","timestamp":"2026-05-04T10:05:00Z","label":"Progress update","detail":"Compiled module 1 of 4."},"run":{"id":"01J00000000000000000000010"},"task":{"id":"01J00000000000000000000020"},"repository":{"id":"01J00000000000000000000030"}}],"meta":{"pagination":{"type":"cursor","limit":50,"has_more":true,"next_cursor":"eyJpdiI6Ii4uLiIsInZhbHVlIjoiLi4uIiwibWFjIjoiLi4uIn0"}}}}}},"CreditSummary":{"description":"Credit summary response. Managed-plan teams return a managed credit statement instead of numeric balance, debt, dunning, auto-top-up, period usage, or package data.","content":{"application\/json":{"schema":{"allOf":[{"$ref":"#\/components\/schemas\/SuccessEnvelope"},{"type":"object","required":["data"],"properties":{"data":{"$ref":"#\/components\/schemas\/CreditSummaryResource"}}}]},"examples":{"metered":{"summary":"Metered team","value":{"data":{"balance":600,"debt_amount":0,"dunning_status":null,"subscription":{"plan":"team","status":"active","renews_at":null},"auto_topup":{"enabled":true,"threshold":500,"daily_limit":2000,"last_triggered_at":"2026-05-03T08:00:00Z","failed_at":null},"current_period_usage":{"period":"last_30_days","period_start":"2026-04-07T00:00:00Z","period_end":"2026-05-06T23:59:59Z","credits_used":42,"run_count":12},"links":{"credits":"https:\/\/vroni.example\/credits","analytics":"https:\/\/vroni.example\/analytics"}}}},"managed":{"summary":"Managed-plan team","value":{"data":{"managed_credits":true,"mode":"managed","message":"Credits for this team are managed as part of your Concierge plan. Contact support if you need capacity adjusted.","message_key":"team.credits.managed.message","links":{"support":"https:\/\/vroni.example\/support"}}}}}}}},"NotFound":{"description":"Resource not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorEnvelope"},"example":{"message":"The requested resource could not be found.","code":"not_found"}}}},"TokenRequired":{"description":"Bearer token required","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorEnvelope"},"example":{"message":"A bearer API token is required.","code":"token_required"}}}},"TokenAbilityDenied":{"description":"Token ability denied","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorEnvelope"},"example":{"message":"The API token does not have the required ability.","code":"token_ability_denied"}}}},"ValidationFailed":{"description":"Validation failed","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorEnvelope"},"example":{"message":"The provided data is invalid.","code":"validation_failed","errors":{"endpoint_url":["dns_unresolved"]}}}}},"CursorInvalid":{"description":"Cursor failed validation (malformed, expired, wrong run, or tampered)","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorEnvelope"},"example":{"message":"The cursor is invalid or expired.","code":"validation_failed","errors":{"cursor":["cursor_invalid"]}}}}},"RateLimited":{"description":"Rate limited","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorEnvelope"},"example":{"message":"Too many requests. Please try again shortly.","code":"rate_limited"}}}}},"schemas":{"PublicId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$","example":"01J00000000000000000000010"},"CiMetadata":{"type":"object","additionalProperties":false,"properties":{"provider":{"type":"string","maxLength":80},"workflow":{"type":"string","maxLength":191},"job":{"type":"string","maxLength":191},"branch":{"type":"string","maxLength":191},"commit_sha":{"type":"string","maxLength":120},"pull_request_number":{"type":"integer","minimum":1,"maximum":4294967295},"pipeline_url":{"type":"string","format":"uri","maxLength":1024},"external_run_id":{"type":"string","maxLength":191},"changed_files":{"type":"array","maxItems":100,"items":{"type":"string","maxLength":1024}}}},"TaskCreateRequest":{"type":"object","additionalProperties":false,"required":["repository_id","requested_outcome"],"properties":{"repository_id":{"$ref":"#\/components\/schemas\/PublicId"},"requested_outcome":{"type":"string","minLength":1,"maxLength":65536},"title":{"type":"string","maxLength":255},"execution_mode":{"type":"string","enum":["standard","deep"]},"source_ref":{"type":"string","maxLength":120},"source_url":{"type":"string","format":"uri","maxLength":500},"correlation_id":{"type":"string","maxLength":191},"ci":{"$ref":"#\/components\/schemas\/CiMetadata"}}},"TaskCreateResponse":{"allOf":[{"$ref":"#\/components\/schemas\/SuccessEnvelope"},{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["task","repository","replay","links"],"properties":{"task":{"type":"object","required":["id","source"],"properties":{"id":{"$ref":"#\/components\/schemas\/PublicId"},"source":{"type":"string","const":"api"},"title":{"type":["string","null"]},"status":{"$ref":"#\/components\/schemas\/TaskStatusCode"},"canonical_url":{"type":["string","null"]}}},"run":{"type":["object","null"],"required":["id","status","status_label","terminal"],"properties":{"id":{"$ref":"#\/components\/schemas\/PublicId"},"status":{"$ref":"#\/components\/schemas\/RunStatusCode"},"status_label":{"type":"string"},"terminal":{"type":"boolean"}}},"approval_required":{"type":"boolean","description":"True when the request is parked for human review and no run has been created."},"approval":{"type":["object","null"],"properties":{"required":{"type":"boolean"},"status":{"type":"string"},"intent_id":{"type":["string","null"],"description":"Public id for API\/runtime parked intents when applicable."},"requested_at":{"type":["string","null"],"format":"date-time"}}},"repository":{"type":"object","required":["id","name"],"properties":{"id":{"$ref":"#\/components\/schemas\/PublicId"},"name":{"type":"string"}}},"correlation_id":{"type":["string","null"]},"replay":{"type":"boolean"},"links":{"type":"object","required":["task","repository"],"properties":{"status":{"type":["string","null"],"description":"Absent when no run exists yet."},"events":{"type":["string","null"],"description":"Absent when no run exists yet."},"task":{"type":["string","null"]},"run":{"type":["string","null"]},"repository":{"type":["string","null"]}}}}}}}]},"AdmissionDeniedReasonCode":{"type":"string","enum":["project_not_ready","project_paused","project_archived","project_disconnected","team_runs_paused","insufficient_credits","credit_entitlement_missing","reserve_not_met","subscription_gate_blocked","dunning_active","repository_setup_in_progress"]},"WebhookEventResource":{"type":"object","description":"Resource block used by run webhooks. team.id remains a numeric string; repository.id, task.id, run.id, and admission.admission_id are public ULIDs.","properties":{"team":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9]+$","example":"1"},"name":{"type":"string"}}},"repository":{"type":"object","properties":{"id":{"$ref":"#\/components\/schemas\/PublicId"},"name":{"type":"string","example":"owner\/repo"},"provider":{"type":"string","example":"github"}}},"task":{"type":["object","null"],"properties":{"id":{"$ref":"#\/components\/schemas\/PublicId"},"title":{"type":"string"}}},"run":{"type":["object","null"],"properties":{"id":{"$ref":"#\/components\/schemas\/PublicId"},"status":{"type":"string"},"managed_credits":{"type":"boolean","description":"Present and true for managed-plan team payloads. final_credits is omitted when this is true."}}},"admission":{"type":["object","null"],"properties":{"admission_id":{"$ref":"#\/components\/schemas\/PublicId"},"status":{"type":"string","example":"rejected"}}}}},"WebhookEventType":{"type":"string","enum":["run.started","run.completed","run.failed","run.timed_out","run.cancelled","run.rejected","run.queued","run.dispatched","run.running"]},"DeliveryStatus":{"type":"string","enum":["queued","accepted","retrying","failed","skipped"]},"PaginationMeta":{"type":"object","required":["type","current_page","last_page","per_page","total"],"properties":{"type":{"type":"string","const":"length"},"current_page":{"type":"integer","minimum":1},"last_page":{"type":"integer","minimum":1},"per_page":{"type":"integer","minimum":1,"maximum":100},"total":{"type":"integer","minimum":0}}},"CursorPaginationMeta":{"type":"object","required":["type","limit","has_more","next_cursor"],"properties":{"type":{"type":"string","const":"cursor"},"limit":{"type":"integer","minimum":1,"maximum":100},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"],"description":"Cursor for the next page or to resume polling from the current tail."}}},"RepositoryStatusCode":{"type":"string","enum":["ready","needs_setup","setting_up","checking","needs_attention"]},"TaskStatusCode":{"type":"string","enum":["blocked","waiting_for_review","pending","queued","running","cancellation_requested","declined","completed","failed","timed_out","cancelled"]},"RunStatusCode":{"type":"string","enum":["queued","running","cancellation_requested","completed","failed","timed_out","cancelled"]},"RunPublicationState":{"type":"string","enum":["delivered","awaiting_review"]},"PublicationBlock":{"type":"object","properties":{"state":{"type":"string","description":"Run blocks use delivered or awaiting_review. Task blocks with a pending proposal use pending for the proposal lifecycle state.","enum":["delivered","awaiting_review","pending"]},"publication_state":{"$ref":"#\/components\/schemas\/RunPublicationState"},"held_for_review":{"type":"boolean"},"can_approve":{"type":"boolean","description":"Present on task publication blocks when the current user may review pull request proposals."},"task_url":{"type":["string","null"]},"proposal":{"type":["object","null"],"description":"Public proposal details. Run resources expose proposal id\/status only; task resources include branch\/title\/body details only for pull-request approvers.","properties":{"id":{"$ref":"#\/components\/schemas\/PublicId"},"status":{"type":"string","enum":["pending","published","superseded","discarded"]},"repository_id":{"$ref":"#\/components\/schemas\/PublicId"},"base_branch":{"type":"string"},"head_branch":{"type":"string"},"head_sha":{"type":"string","pattern":"^[A-Fa-f0-9]{40}$"},"title":{"type":"string"},"body":{"type":["string","null"]},"requested_at":{"type":["string","null"],"format":"date-time"}}},"next_action":{"type":["object","null"]}}},"RunEventType":{"type":"string","enum":["status","progress","error","cancellation_requested","cancellation_completed"]},"TriggerSource":{"type":"string","enum":["github","dashboard","api","concierge"]},"RepositoryProvider":{"type":"string","enum":["github"]},"RepositoryResource":{"type":"object","properties":{"id":{"$ref":"#\/components\/schemas\/PublicId"},"name":{"type":"string"},"provider":{"$ref":"#\/components\/schemas\/RepositoryProvider"},"customer_status":{"type":"object"},"status":{"$ref":"#\/components\/schemas\/RepositoryStatusCode"},"status_label":{"type":"string"},"trusted_github_url":{"type":["string","null"]},"canonical_url":{"type":["string","null"],"description":"Opaque SaaS navigation URL. Resource identity fields use public ULIDs; web route path parameters may be internal."},"links":{"type":"object","description":"Opaque navigation URLs. API links use public IDs; web links may use internal route parameters."}}},"RepositoryDetailResource":{"allOf":[{"$ref":"#\/components\/schemas\/RepositoryResource"},{"type":"object","properties":{"latest_run":{"type":["object","null"]},"recent_runs":{"type":"array","items":{"type":"object"}},"has_activity":{"type":"boolean"},"findings_visible":{"type":"boolean"}}}]},"TaskResource":{"type":"object","properties":{"id":{"$ref":"#\/components\/schemas\/PublicId"},"task_id":{"$ref":"#\/components\/schemas\/PublicId"},"title":{"type":["string","null"]},"status":{"$ref":"#\/components\/schemas\/TaskStatusCode"},"status_label":{"type":"string"},"repository":{"type":"object"},"latest_run":{"type":["object","null"]},"pull_request":{"type":["object","null"]},"source":{"$ref":"#\/components\/schemas\/TriggerSource"},"denial":{"type":["object","null"],"properties":{"reason_code":{"type":["string","null"]},"message":{"type":["string","null"]},"next_action":{"type":["object","null"],"properties":{"code":{"type":["string","null"]},"url":{"type":["string","null"]}}}}},"approval":{"type":["object","null"],"description":"Customer-safe approval state for parked pre-run work. Internal source ids, trigger keys, actor snapshots, and admission ids are never exposed.","properties":{"required":{"type":"boolean"},"status":{"type":["string","null"],"enum":["awaiting_approval","approval_declined","approval_cancelled","declined","cancelled",null]},"source":{"type":["string","null"]},"can_cancel":{"type":"boolean"},"can_approve":{"type":"boolean"},"note":{"type":["string","null"]},"label":{"type":["string","null"]},"requested_at":{"type":["string","null"],"format":"date-time"},"resolved_at":{"type":["string","null"],"format":"date-time"}}},"publication":{"$ref":"#\/components\/schemas\/PublicationBlock"},"publication_state":{"$ref":"#\/components\/schemas\/RunPublicationState"},"held_for_review":{"type":"boolean"},"canonical_url":{"type":["string","null"],"description":"Opaque SaaS navigation URL. Resource identity fields use public ULIDs; web route path parameters may be internal."},"links":{"type":"object","description":"Opaque navigation URLs. API links use public IDs; web links may use internal route parameters."}}},"TaskDetailResource":{"allOf":[{"$ref":"#\/components\/schemas\/TaskResource"},{"type":"object","properties":{"requested_outcome":{"type":["string","null"]},"next_actions":{"type":"array","items":{"type":"object"}}}}]},"RunResource":{"type":"object","properties":{"id":{"$ref":"#\/components\/schemas\/PublicId"},"task_id":{"$ref":"#\/components\/schemas\/PublicId"},"status":{"$ref":"#\/components\/schemas\/RunStatusCode"},"status_label":{"type":"string"},"repository":{"type":"object"},"task_title":{"type":["string","null"]},"trigger":{"type":"object"},"pull_request":{"type":["object","null"]},"publication":{"$ref":"#\/components\/schemas\/PublicationBlock"},"publication_state":{"$ref":"#\/components\/schemas\/RunPublicationState"},"held_for_review":{"type":"boolean"},"created_at":{"type":["string","null"],"format":"date-time"},"started_at":{"type":["string","null"],"format":"date-time"},"completed_at":{"type":["string","null"],"format":"date-time"},"duration_seconds":{"type":["integer","null"]},"credits_used":{"type":["integer","null"],"description":"Metered teams only. This field is omitted for managed-plan teams."},"settlement_status":{"type":["string","null"],"description":"Customer-safe settlement state for completed billing, when available."},"attempt_count":{"type":"integer","minimum":0},"has_multiple_attempts":{"type":"boolean"},"has_findings":{"type":"boolean"},"failure_category":{"type":["string","null"],"description":"Customer-safe failure category, when the run failed."},"failure_label":{"type":["string","null"]},"canonical_url":{"type":["string","null"],"description":"Opaque SaaS navigation URL. Resource identity fields use public ULIDs; web route path parameters may be internal."},"links":{"type":"object","description":"Opaque navigation URLs. API links use public IDs; web links may use internal route parameters."}}},"RunDetailResource":{"allOf":[{"$ref":"#\/components\/schemas\/RunResource"},{"type":"object","properties":{"requested_outcome":{"type":["string","null"]},"attempt_summary":{"type":"object"},"outcome_summary":{"type":["string","null"]},"timeline":{"type":"array","items":{"type":"object"}},"settlement":{"type":["object","null"],"description":"Metered teams only. The settlement amount block is omitted for managed-plan teams."},"next_action":{"type":["object","null"]}}}]},"RunStatusResource":{"type":"object","required":["id","status","status_label","terminal","links"],"properties":{"id":{"$ref":"#\/components\/schemas\/PublicId"},"task_id":{"type":["string","null"],"$ref":"#\/components\/schemas\/PublicId"},"repository":{"type":"object","properties":{"id":{"$ref":"#\/components\/schemas\/PublicId"},"canonical_url":{"type":["string","null"]}}},"status":{"$ref":"#\/components\/schemas\/RunStatusCode"},"status_label":{"type":"string"},"terminal":{"type":"boolean"},"created_at":{"type":["string","null"],"format":"date-time"},"started_at":{"type":["string","null"],"format":"date-time"},"completed_at":{"type":["string","null"],"format":"date-time"},"duration_seconds":{"type":["integer","null"]},"pull_request":{"type":"object","properties":{"number":{"type":["integer","null"]},"url":{"type":["string","null"]}}},"publication":{"$ref":"#\/components\/schemas\/PublicationBlock"},"publication_state":{"$ref":"#\/components\/schemas\/RunPublicationState"},"held_for_review":{"type":"boolean"},"next_action":{"type":["object","null"],"properties":{"code":{"type":"string"},"label":{"type":"string"},"url":{"type":["string","null"]}}},"canonical_url":{"type":["string","null"]},"links":{"type":"object","required":["run","status","events"],"properties":{"run":{"type":["string","null"]},"status":{"type":"string"},"events":{"type":"string"}}}}},"RunEventResource":{"type":"object","required":["event","run"],"properties":{"event":{"type":"object","required":["id","type","timestamp","label"],"properties":{"id":{"$ref":"#\/components\/schemas\/PublicId"},"type":{"$ref":"#\/components\/schemas\/RunEventType"},"timestamp":{"type":["string","null"],"format":"date-time"},"label":{"type":"string"},"detail":{"type":["string","null"]},"status":{"$ref":"#\/components\/schemas\/RunStatusCode"},"status_label":{"type":"string"}}},"run":{"type":"object","properties":{"id":{"$ref":"#\/components\/schemas\/PublicId"},"publication":{"$ref":"#\/components\/schemas\/PublicationBlock"},"publication_state":{"$ref":"#\/components\/schemas\/RunPublicationState"},"held_for_review":{"type":"boolean"}}},"task":{"type":["object","null"],"properties":{"id":{"$ref":"#\/components\/schemas\/PublicId"}}},"repository":{"type":["object","null"],"properties":{"id":{"$ref":"#\/components\/schemas\/PublicId"}}}}},"CreditSummaryResource":{"oneOf":[{"type":"object","required":["managed_credits","mode","message","message_key","links"],"properties":{"managed_credits":{"type":"boolean","const":true},"mode":{"type":"string","enum":["managed"]},"message":{"type":"string"},"message_key":{"type":"string"},"links":{"type":"object","properties":{"support":{"type":["string","null"]}}}}},{"type":"object","properties":{"balance":{"type":"integer"},"debt_amount":{"type":"integer"},"dunning_status":{"type":["string","null"]},"subscription":{"type":["object","null"]},"auto_topup":{"type":"object"},"current_period_usage":{"type":"object"},"links":{"type":"object"}}}]},"SuccessEnvelope":{"type":"object","required":["data"],"properties":{"data":{"type":["object","array"]},"meta":{"type":"object"}}},"ErrorEnvelope":{"type":"object","required":["message","code"],"properties":{"message":{"type":"string"},"code":{"type":"string","enum":["token_required","token_ability_denied","validation_failed","rate_limited","not_found","plan_does_not_allow_api_access","replay_not_allowed","admission_denied","trigger_key_conflict"]},"errors":{"type":"object"}}}}},"x-rate-limit":{"v1-api":"120 requests per minute keyed by token id, then team id, then IP","v1-api-tasks-write":"30 requests per minute keyed by token id, then team id, then IP. Stacks on v1-api."},"x-vroni-action":{"name":"vroni\/vroni-task-action@v1","summary":"Wrapper around POST \/api\/v1\/tasks for GitHub Actions.","inputs":{"api-url":{"required":true},"api-token":{"required":true,"secret":true,"abilities":["api:tasks:write"],"wait_requires":["api:runs:read"]},"repository-id":{"required":true,"schema":{"$ref":"#\/components\/schemas\/PublicId"}},"requested-outcome":{"required":true},"title":{"required":false},"idempotency-key":{"required":false},"wait":{"required":false,"default":false},"timeout-seconds":{"required":false,"default":1800},"poll-interval-seconds":{"required":false,"default":10}},"outputs":["task-id","run-id","status","status-url","events-url","canonical-url"],"wait_behavior":{"requires_abilities":["api:tasks:write","api:runs:read"],"no_run_success":"When task creation returns approval_required=true and no data.run.id, output task-id, status=waiting_for_review, canonical-url, leave run\/status\/events outputs empty, and exit successfully without polling. Later idempotent replay after approval includes data.run.id and should use normal polling.","polls":"\/api\/v1\/runs\/{id}\/status","stops_on":["completed","failed","timed_out","cancelled"],"fails_step_on":["failed","timed_out","cancelled","timeout-seconds-exhausted"],"must_not_log":["api-token","Idempotency-Key","raw response bodies that include error.code != customer-safe codes"]},"events_resilience":{"cursor_lifetime_hours":24,"on_cursor_invalid":"Restart event listing from the beginning for the run, deduplicating by event.id; status polling continues by public run ID."}},"x-runtime-contract":{"dispatch":{"publication_mode":"Runs admitted while team pull request approval is required receive VRONI_PUBLICATION_MODE=branch_only. Direct-mode runs intentionally omit VRONI_PUBLICATION_MODE.","branch_only_env":{"VRONI_PUBLICATION_MODE":"branch_only"}},"finish_success":{"direct_pull_request":"Successful direct publication returns exactly one direct pull request shape through pr_url\/pr_number or pull_request.url\/pull_request.number.","proposed_pull_request":"Successful branch-only publication returns exactly one outcome_data.proposed_pull_request object with base_branch, head_branch, head_sha, title, optional body, and optional metadata.","invalid_contract":"A success payload with both shapes, neither shape, or malformed delivery data is recorded as a terminal failed run with failure_category=runtime_contract_failure, billing_status=review_required, no settlement row, and no pull request or proposal link."}},"x-ci-examples":{"direct_http":"curl -sS -X POST \"$VRONI_API_URL\/tasks\" -H \"Authorization: Bearer $VRONI_API_TOKEN\" -H \"Accept: application\/json\" -H \"Content-Type: application\/json\" -d '{\"repository_id\":\"01J00000000000000000000030\",\"requested_outcome\":\"Review the CI permissions and document any risky jobs.\",\"title\":\"Queue a CI permission audit\"}'","github_actions":"uses: vroni\/vroni-task-action@v1\nwith:\n  api-url: https:\/\/app.vroni.example\/api\/v1\n  api-token: ${{ secrets.VRONI_API_TOKEN }}\n  repository-id: 01J00000000000000000000030\n  requested-outcome: Review this build and report risky jobs.\n  title: CI permission audit\n  idempotency-key: ${{ github.run_id }}:${{ github.run_attempt }}\n  wait: true","gitlab_ci":"response=\"$(curl -sS -X POST \"$VRONI_API_URL\/tasks\" -H \"Authorization: Bearer $VRONI_API_TOKEN\" -H \"Idempotency-Key: $CI_PIPELINE_ID:$CI_JOB_ID\" -H \"Content-Type: application\/json\" --data @payload.json)\"\nif [ \"$(printf '%s' \"$response\" | jq -r '.data.approval_required \/\/ false')\" = \"true\" ]; then\n  printf 'Vroni task %s is waiting for review\\n' \"$(printf '%s' \"$response\" | jq -r '.data.task.id')\"\n  exit 0\nfi\nrun_id=\"$(printf '%s' \"$response\" | jq -r '.data.run.id')\"\ndeadline=$((SECONDS + 1800))\nwhile [ \"$SECONDS\" -lt \"$deadline\" ]; do\n  status=\"$(curl -sS -H \"Authorization: Bearer $VRONI_API_TOKEN\" \"$VRONI_API_URL\/runs\/$run_id\/status\" | jq -r '.data.status')\"\n  case \"$status\" in\n    completed) exit 0 ;;\n    failed|timed_out|cancelled) exit 1 ;;\n  esac\n  sleep 10\ndone\nexit 1"},"x-webhook-examples":{"run.completed":{"event":"run.completed","event_id":"01HZZZZZZZZZZZZZZZZZZZZZZZ","delivery_id":"01J00000000000000000000000","attempt_id":"01J00000000000000000000001","created_at":"2026-05-04T12:00:00Z","team":{"id":"1","name":"Demo Team"},"repository":{"id":"01J00000000000000000000030","name":"owner\/repo","provider":"github"},"task":{"id":"01J00000000000000000000020","title":"Ship the queue backpressure fix"},"run":{"id":"01J00000000000000000000010","status":"completed"}},"run.completed.managed":{"event":"run.completed","event_id":"01HZZZZZZZZZZZZZZZZZZZZZZX","delivery_id":"01J00000000000000000000005","attempt_id":"01J00000000000000000000006","created_at":"2026-05-04T12:00:02Z","team":{"id":"2","name":"Concierge Demo Team"},"repository":{"id":"01J00000000000000000000070","name":"owner\/managed-repo","provider":"github"},"task":{"id":"01J00000000000000000000080","title":"Ship the managed plan update"},"run":{"id":"01J00000000000000000000090","status":"completed","managed_credits":true}},"run.rejected":{"event":"run.rejected","event_id":"01HZZZZZZZZZZZZZZZZZZZZZZY","delivery_id":"01J00000000000000000000003","attempt_id":"01J00000000000000000000004","created_at":"2026-05-04T12:00:01Z","team":{"id":"1","name":"Demo Team"},"repository":{"id":"01J00000000000000000000050","name":"owner\/repo","provider":"github"},"task":{"id":"01J00000000000000000000060","title":"Start the rejected task"},"run":null,"admission":{"admission_id":"01J00000000000000000000040","status":"rejected","reason_code":"insufficient_credits"}},"run.queued":{"event":"run.queued","event_id":"01J00000000000000000001010","delivery_id":"01J00000000000000000002010","attempt_id":"01J00000000000000000003010","created_at":"2026-05-04T12:00:10Z","team":{"id":"1","name":"Demo Team"},"repository":{"id":"01J00000000000000000000030","name":"owner\/repo","provider":"github"},"task":{"id":"01J00000000000000000000020","title":"Ship the queue backpressure fix"},"run":{"id":"01J00000000000000000000010","status":"queued","queued_at":"2026-05-04T12:00:10Z"},"trigger":{"source":"api","type":"direct","ref":null,"task_source":"api","task_source_ref":null,"issue_url":null,"pr_number":null},"links":{"run":"https:\/\/app.vroni.example\/runs\/30","repository":"https:\/\/app.vroni.example\/projects\/45"}},"run.dispatched":{"event":"run.dispatched","event_id":"01J00000000000000000001011","delivery_id":"01J00000000000000000002011","attempt_id":"01J00000000000000000003011","created_at":"2026-05-04T12:01:00Z","team":{"id":"1","name":"Demo Team"},"repository":{"id":"01J00000000000000000000030","name":"owner\/repo","provider":"github"},"task":{"id":"01J00000000000000000000020","title":"Ship the queue backpressure fix"},"run":{"id":"01J00000000000000000000010","status":"queued","dispatched_at":"2026-05-04T12:01:00Z"},"trigger":{"source":"api","type":"direct","ref":null,"task_source":"api","task_source_ref":null,"issue_url":null,"pr_number":null},"links":{"run":"https:\/\/app.vroni.example\/runs\/30","repository":"https:\/\/app.vroni.example\/projects\/45"}},"run.running":{"event":"run.running","event_id":"01J00000000000000000001012","delivery_id":"01J00000000000000000002012","attempt_id":"01J00000000000000000003012","created_at":"2026-05-04T12:02:00Z","team":{"id":"1","name":"Demo Team"},"repository":{"id":"01J00000000000000000000030","name":"owner\/repo","provider":"github"},"task":{"id":"01J00000000000000000000020","title":"Ship the queue backpressure fix"},"run":{"id":"01J00000000000000000000010","status":"running","started_at":"2026-05-04T12:02:00Z"},"trigger":{"source":"api","type":"direct","ref":null,"task_source":"api","task_source_ref":null,"issue_url":null,"pr_number":null},"links":{"run":"https:\/\/app.vroni.example\/runs\/30","repository":"https:\/\/app.vroni.example\/projects\/45"}},"webhook.test":{"event":"webhook.test","subscription":{"id":"01J00000000000000000000002","selected_events":["run.completed"]}}}}