Skip to main content
This page shows how to manage skill presets with the Qovery API. Read that page first for the concepts: base, skill modes, team context, assignments and resolution order.
Preview: these endpoints are new and are likely to change. They are being added to the API reference.

Before you start

You need the Qovery CLI, signed in with qovery auth, and jq. The qovery api command sends authenticated requests to the Qovery API with your CLI session.
To call the API from a script instead, use an API token in the Authorization header:
Creating and editing presets requires AI features to be turned on for the organization, because every save goes through a model review. Reading, member endpoints and delete work either way. New organizations have it on by default. An Owner or Admin can turn it on with Turn on AI in the Console, from the Skills registry or the Copilot page, which also turns on the Copilot in read-only mode (see Turn on AI), or with Edit the organization’s AI features opt-in:

Endpoints

Owner and Admin are the roles that can manage organization settings. Custom roles cannot manage presets.

Create a preset

POST /organization/{organizationId}/skillPreset. name is required. base defaults to FULL, is_template to false, skills to an empty list, and assigned_to to no assignment. Get the IDs of the roles to assign, default or custom, and of the members:
Then create the preset:
The response is 201 with the preset:

List, get, edit and delete

PUT takes the same body as POST and replaces the preset: skills and assignments you leave out are removed. Start from the current preset when you edit one. Each edit increases revision by one. To use a template, read it, then create a new preset from its body with a new name, is_template set to false, and your assignments.

Errors

Security rejection (422)

The response lists every finding, with the rule ID or model category (rule_id), the field (location), the line within that field, starting at 1, a reason, and source: RULES for the rule checks, MODEL for the model review. The rules run first, so one response never mixes both sources. The offending text is never included. A rule check rejection:
A model review rejection has the same shape, with a category as rule_id:
Model categories are prompt-injection, concealment, credential-access, data-exfiltration, unsafe-execution, approval-bypass, social-engineering and other.

Security review unavailable (503)

When the model review cannot give a verdict, nothing is saved:
location is description, team context, description of skill '<name>' or content of skill '<name>'. For the list of rules and how to fix a finding, see Security.

Read what a member receives

Any member of the organization can call these endpoints. They answer for the caller: the preset assigned to them, to their role, or as the organization default, in that order.

Manifest

GET /organization/{organizationId}/skillPreset/resolved returns names, descriptions, approximate sizes and hashes. It never returns content, and it does not include who the preset is assigned to.
With no preset, the response is {"source": "QOVERY_DEFAULT", "skill_preset": null}.

One skill

GET /organization/{organizationId}/skillPreset/resolved/skill/{skillName} returns what to load for one skill: your organization’s content if any, and the team context, with their hashes.
skill_preset is null when no preset applies. Any Qovery skill name answers 200, even when the preset does not mention it. The endpoint answers 404 for a name that is not a valid skill name, checked before anything is read or recorded, and for a name that is neither a Qovery skill nor in the preset. The optional purpose query parameter says why the skill is fetched: Both return the same body and ETag. Any other value answers 400. Every call is recorded in the audit log, including calls answered with 304.

Caching with ETag

Both endpoints return the same ETag header. Treat its value as opaque: do not parse it. It changes when the preset is edited, and when the caller moves to another preset or to another assignment of the same preset. Send it back, quotes included, in If-None-Match. If nothing changed, the API answers 304 Not Modified with no body:
On the skill endpoint, a 304 is recorded with from_cache: true: the caller used its cached copy.

List revisions

GET /organization/{organizationId}/skillPreset/revision lists every saved state, most recent first, including revisions of deleted presets. Filter on one preset with skillPresetId. limit is between 1 and 100, 50 by default.
change_type is CREATE, UPDATE or DELETE. Each revision carries is_template, the flag at that revision, and security_review, the result of the model review the state passed: verdict, model, the review prompt_version, and findings holding any notes the model raised without blocking. security_review is null on a DELETE revision, and on a revision saved while Qovery had the model review turned off. A DELETE revision holds the state of the preset when it was deleted.

Read skill usage

GET /organization/{organizationId}/skillPreset/usage reports who loaded which skills, how often and when. It counts the same loads as the SKILL_LOAD audit entries, cached loads included. It counts agent loads only: reads with purpose=VIEW are audited as SKILL_VIEW and left out.
The response, shortened:
Usage data is kept for 90 days: older loads are purged every day, so from cannot reach further back. Usage is recorded on a best-effort basis so that it never blocks an agent. The SKILL_LOAD audit entries remain the reference: in the rare case a usage record fails, usage shows fewer loads than the audit log.

Read agent activity

Agent activity links skill loads to what agents did through Qovery, for members’ agents and for policy tokens. In the Console it is the Activity page, which is rolling out to organizations and may not appear for yours yet. The API is available to every organization. See Activity for what it covers and its limits. Every filter is optional, and they combine. policyTokenId cannot be used with actorKind=MEMBER, and userSub cannot be used with policyTokenId or actorKind=POLICY_TOKEN. A filter that matches nothing answers 200 with empty lists. The member endpoint ignores actorKind and policyTokenId, and its by_policy_token is always empty: policy tokens belong to the organization, not to a member. Every call a policy token makes counts as agent activity, whatever client it comes from. A refusal counts as denied whether the token’s policy refused it (401) or the token’s role did (403).
The response, shortened:
The response holds what the audit log already shows: events, targets, names and times. It never includes prompts, code or request content. Skill attribution comes from the user agent the client sends, so treat it as indicative.

Find edits and loads in the audit log

Preset edits, refused saves, skill loads and skill views are organization events in the audit log, with the sub-target type SKILL_PRESET: The changes summary of an update:
Saved states include team_context_sha256, and each skill’s content_sha256 and description_sha256. When a preset holds more than 65,536 characters of text, the entry keeps the hashes, leaves the text out and sets content_omitted: true. The revision history always holds the full text. A 400, 403 or 503 on a save is not recorded: it says nothing about the content. To list skill loads, or refused saves:

Skill Presets

Concepts, security rules and the member experience.

API Token

Call the API from a script.