Skills: a person's own SKILL.md files (the open format), in versions that never change. A skill belongs to the person, whichever organization they are signed in to; someone else's skill is a 404. Every write makes the next version; a write built on an old version is refused (409 skill_version_conflict). A file is at most 1 MiB. A person keeps at most 200 skills (409 skill_limit) and a skill at most 500 versions (400 skill_version_limit). The file starts with YAML front matter that has a name (1 to 64 characters of a-z, 0-9 and single hyphens) and a description (1 to 1024 characters). A file that does not is refused with a code that says why: invalid_frontmatter, missing_name, invalid_name, missing_description, invalid_description or skill_too_large (413). Export returns the file byte for byte. Load records (/v1/skill-loads) say which skill and version a session loaded in web chat or was delivered by a launcher; a record holds no skill text and stays when the skill is deleted. Promotions (/v1/skill-promotions): a person asks to share one version of their skill with the organization or a team, and an approver who is not that person approves or refuses it. The request is a copy; the skill stays the person's own.
When the latest version was written. For a library skill: when its latest approved version was approved
429Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
Errors
Status
Code
When
401
authentication_error
No key, or a key Gateway does not accept
403
role_required
Your role does not have this permission
429
Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).
Create a skill from a SKILL.md: version 1. Refused with 409 duplicate_name when you already have a skill of that name; error.nexus.skillId names it. Audited as skill.created.
Send the same key again to retry safely: the request runs once. See Idempotency keys.
Request body · application/json
contentstringrequired
The SKILL.md: YAML front matter between --- lines with a name and a description, then the instructions. At most 1 MiB of UTF-8. Stored exactly as written.
Responses
201Createdapplication/json
skillSkillSummaryrequired
idstringrequired
skl_…
namestringrequired
The latest version's name
max length 64 · pattern ^[a-z0-9]+(-[a-z0-9]+)*$
descriptionstringrequired
The latest version's description
min length 1 · max length 1024
latestVersionintegerrequired
createdAtstring (date-time)required
updatedAtstring (date-time)required
When the latest version was written. For a library skill: when its latest approved version was approved
versionSkillVersionrequired
skillIdstringrequired
versionintegerrequired
namestringrequired
This version's name
descriptionstringrequired
This version's description
contentSha256stringrequired
The SKILL.md's SHA-256, lowercase hex
bytesintegerrequired
The SKILL.md's size in bytes (UTF-8)
createdVia"web" | "cli" | "api"required
How the version was written. For a library version: how its author wrote the version that was approved
createdAtstring (date-time)required
When the version was written. For a library version: when it was approved
429Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
Errors
Status
Code
When
400
invalid_request_error
A field is missing or not valid; the message names it
401
authentication_error
No key, or a key Gateway does not accept
403
role_required
Your role does not have this permission
409
duplicate_name
Refused with 409 `duplicate_name` when you already have a skill of that name; `error.nexus.skillId` names it
409
idempotency_in_progress
A request with the same Idempotency-Key is still running
409
idempotency_interrupted
The first request with this Idempotency-Key was cut off and may have run in part
422
idempotency_key_reused
The Idempotency-Key was used with a different request
429
Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).
One of your skills and its versions, newest first. Or a library skill you may load (listSkillLibrary), where only the versions an approver approved and did not withdraw exist.
When the latest version was written. For a library skill: when its latest approved version was approved
versionsarray of SkillVersionrequired
Newest first
skillIdstringrequired
versionintegerrequired
namestringrequired
This version's name
descriptionstringrequired
This version's description
contentSha256stringrequired
The SKILL.md's SHA-256, lowercase hex
bytesintegerrequired
The SKILL.md's size in bytes (UTF-8)
createdVia"web" | "cli" | "api"required
How the version was written. For a library version: how its author wrote the version that was approved
createdAtstring (date-time)required
When the version was written. For a library version: when it was approved
429Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
Errors
Status
Code
When
401
authentication_error
No key, or a key Gateway does not accept
403
role_required
Your role does not have this permission
404
not_found
Nothing matches the path in your organization
429
Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).
Send the same key again to retry safely: the request runs once. See Idempotency keys.
Responses
200Deletedapplication/json
deletedbooleanrequired
idstringrequired
versionsintegerrequired
How many versions went with it
429Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
Errors
Status
Code
When
401
authentication_error
No key, or a key Gateway does not accept
403
role_required
Your role does not have this permission
404
not_found
Nothing matches the path in your organization
409
idempotency_in_progress
A request with the same Idempotency-Key is still running
409
idempotency_interrupted
The first request with this Idempotency-Key was cut off and may have run in part
422
idempotency_key_reused
The Idempotency-Key was used with a different request
429
Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).
Write the next version of one of your skills. With baseVersion, refused with 409 skill_version_conflict when that is no longer the latest. A new name in the front matter renames the skill (409 duplicate_name when you have another of that name). Audited as skill.version_written.
Send the same key again to retry safely: the request runs once. See Idempotency keys.
Request body · application/json
contentstringrequired
The SKILL.md: YAML front matter between --- lines with a name and a description, then the instructions. At most 1 MiB of UTF-8. Stored exactly as written.
baseVersioninteger
The version this was built on: refused with 409 skill_version_conflict when it is no longer the latest
min 1
Responses
201Writtenapplication/json
skillSkillSummaryrequired
idstringrequired
skl_…
namestringrequired
The latest version's name
max length 64 · pattern ^[a-z0-9]+(-[a-z0-9]+)*$
descriptionstringrequired
The latest version's description
min length 1 · max length 1024
latestVersionintegerrequired
createdAtstring (date-time)required
updatedAtstring (date-time)required
When the latest version was written. For a library skill: when its latest approved version was approved
versionSkillVersionrequired
skillIdstringrequired
versionintegerrequired
namestringrequired
This version's name
descriptionstringrequired
This version's description
contentSha256stringrequired
The SKILL.md's SHA-256, lowercase hex
bytesintegerrequired
The SKILL.md's size in bytes (UTF-8)
createdVia"web" | "cli" | "api"required
How the version was written. For a library version: how its author wrote the version that was approved
createdAtstring (date-time)required
When the version was written. For a library version: when it was approved
429Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
Errors
Status
Code
When
400
invalid_request_error
A field is missing or not valid; the message names it
401
authentication_error
No key, or a key Gateway does not accept
403
role_required
Your role does not have this permission
404
not_found
Nothing matches the path in your organization
409
skill_version_conflict
With `baseVersion`, refused with 409 `skill_version_conflict` when that is no longer the latest
409
duplicate_name
A new `name` in the front matter renames the skill (409 `duplicate_name` when you have another of that name)
409
idempotency_in_progress
A request with the same Idempotency-Key is still running
409
idempotency_interrupted
The first request with this Idempotency-Key was cut off and may have run in part
422
idempotency_key_reused
The Idempotency-Key was used with a different request
429
Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).
One version of one of your skills, with its SKILL.md. Or a library skill you may load (listSkillLibrary), where only the versions an approver approved and did not withdraw exist; latest is the newest approved one. A held, refused or withdrawn version is 404 skill_version_not_found, and a library skill you may not load is 404 skill_not_found.
How the version was written. For a library version: how its author wrote the version that was approved
createdAtstring (date-time)required
When the version was written. For a library version: when it was approved
contentstringrequired
The SKILL.md, exactly as it was written
429Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
Errors
Status
Code
When
401
authentication_error
No key, or a key Gateway does not accept
403
role_required
Your role does not have this permission
404
not_found
Nothing matches the path in your organization
404
skill_version_not_found
A held, refused or withdrawn version is 404 `skill_version_not_found`, and a library skill you may not load is 404 `skill_not_found`
404
skill_not_found
A held, refused or withdrawn version is 404 `skill_version_not_found`, and a library skill you may not load is 404 `skill_not_found`
429
Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).
A version's SKILL.md exactly as it was written, byte for byte, as text/markdown (never rendered on the API's origin). The ETag is its SHA-256. A library skill you may load (listSkillLibrary) exports at an approved version, and latest is the newest approved one.
200The SKILL.md, `text/markdown`; the `x-nexus-skill-version` header names the versiontext/markdown
string
429Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
Errors
Status
Code
When
401
authentication_error
No key, or a key Gateway does not accept
403
role_required
Your role does not have this permission
404
not_found
Nothing matches the path in your organization
429
Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).
Ask to promote one version of one of your skills to the organization or to a team you are in. A copy of the version is held until an approver who is not you approves or refuses it. Your skill stays yours. A repeat with the same Idempotency-Key within 24 hours gets the first answer and writes no second event. Audited as skill.promotion_requested, and the approvers are told.
The snapshot's name: what the version said when it was requested
descriptionstringrequired
The snapshot's description
contentSha256stringrequired
The snapshot's SHA-256, lowercase hex
bytesintegerrequired
The snapshot's size in bytes (UTF-8)
sourceSkillIdstringrequired
The author's skill (skl_…) the snapshot was taken from
sourceVersionintegerrequired
min 1
sourceWrittenVia"web" | "cli" | "api"required
How that version was written
sourceWrittenAtstring (date-time)required
requestedBystringrequired
The requester's user id
requestedVia"web" | "cli" | "api"required
requestedAtstring (date-time)required
notestring
max length 500
decidedBystring
The approver's user id, once it is approved or refused
decidedAtstring (date-time)
decisionReasonstring
max length 500
selfApprovedbooleanrequired
Whether the approver was the requester. Always false: nobody approves their own request
reviewedSkillPromotionReviewed
What the approver's client says they opened before they decided. Reported, not proved.
contentboolean
Opened the SKILL.md
diffboolean
Opened the diff from the last approved version
librarySkillIdstring
Once approved: the library skill (skl_…) this is a version of
libraryVersioninteger
Once approved: the library version
min 1
withdrawnBystring
withdrawnAtstring (date-time)
withdrawnReasonstring
max length 500
400`invalid_promotion`: a field is missing, unknown or out of bounds, `team` goes with `scope` `team` only, or the note is over 500 charactersapplication/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
403`not_in_team`: a team-scope request from someone who is not in the team; the matrix refuses a module key (`module_key`), a service account or an agent link (`role_required`) and an operator (`operator_scope`)application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
404`skill_not_found`, `skill_version_not_found` or `unknown_team`: no such skill of yours, version, or teamapplication/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
409`personal_org`: a personal organization has no one to approve; `promotion_exists`: this version already has a held or approved promotion to this target (`details` names it and its state); `promotion_limit`: you hold 20 undecided requests, or the organization 200application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
429Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
Errors
Status
Code
When
400
invalid_request_error
A field is missing or not valid; the message names it
400
`invalid_promotion`: a field is missing, unknown or out of bounds, `team` goes with `scope` `team` only, or the note is over 500 characters
401
authentication_error
No key, or a key Gateway does not accept
403
role_required
Your role does not have this permission
404
not_found
Nothing matches the path in your organization
404
`skill_not_found`, `skill_version_not_found` or `unknown_team`: no such skill of yours, version, or team
409
`personal_org`: a personal organization has no one to approve; `promotion_exists`: this version already has a held or approved promotion to this target (`details` names it and its state); `promotion_limit`: you hold 20 undecided requests, or the organization 200
409
idempotency_in_progress
A request with the same Idempotency-Key is still running
409
idempotency_interrupted
The first request with this Idempotency-Key was cut off and may have run in part
422
idempotency_key_reused
The Idempotency-Key was used with a different request
429
Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).
The load records of one of your sessions, in the order they were written: which skill and version it loaded in web chat, or was delivered by a launcher. A session that is not yours, and a session with none, answer an empty list.
loaded in web chat, delivered by a launcher. Never that the skill ran.
sessionIdstringrequired
createdAtstring (date-time)required
429Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
Errors
Status
Code
When
400
invalid_request_error
A field is missing or not valid; the message names it
401
authentication_error
No key, or a key Gateway does not accept
403
role_required
Your role does not have this permission
429
Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).
Record that a coding agent's session was delivered some of your skills, for a launcher (nexus claude, nexus codex). Each skill must be yours, or a library skill you may load (listSkillLibrary), and each version must exist and, for a library skill, be approved and not withdrawn (404 skill_not_found, skill_version_not_found); the record takes the version's name and SHA-256 from what Gateway stores, not from the request, and for a library skill also its scope (team or org) and the approved promotion that allowed it. The session must be one you opened, of the agent the surface names (404 session_not_found). All the records are written, or none (400 invalid_load for a request that is not well formed). It says what was delivered, never that the skill ran.
loaded in web chat, delivered by a launcher. Never that the skill ran.
sessionIdstringrequired
createdAtstring (date-time)required
429Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
Errors
Status
Code
When
400
invalid_request_error
A field is missing or not valid; the message names it
400
invalid_load
All the records are written, or none (400 `invalid_load` for a request that is not well formed)
401
authentication_error
No key, or a key Gateway does not accept
403
role_required
Your role does not have this permission
404
skill_not_found
Each skill must be yours, or a library skill you may load (`listSkillLibrary`), and each version must exist and, for a library skill, be approved and not withdrawn (404 `skill_not_found`, `skill_version_not_found`); the record takes the version's name and SHA-256 from what Gateway stores, not from the request, and for a library skill also its scope (`team` or `org`) and the approved promotion that allowed it
404
session_not_found
The session must be one you opened, of the agent the surface names (404 `session_not_found`)
409
idempotency_in_progress
A request with the same Idempotency-Key is still running
409
idempotency_interrupted
The first request with this Idempotency-Key was cut off and may have run in part
422
idempotency_key_reused
The Idempotency-Key was used with a different request
429
Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).
The library skills you may load, at the version a session loads: the highest approved version that nobody withdrew. An organization's library reaches every member, and a team's reaches that team's members and the members of the teams under it. Membership is read at each call, so a person who left a team stops seeing its library at once. The organization's skills come first, then the teams' skills, all by name (not grouped by team). Each skill says whether its name collides with another's (duplicateName), so a client that holds your own list too can apply the name rules without the SHA-256 of your skills. It holds no skill text: read a version with getSkillVersion or exportSkill and the library skill's id. A personal organization has no library, and an organization with nothing approved answers an empty list.
The library skill, skl_…. getSkill, getSkillVersion and exportSkill take it
namestringrequired
max length 64 · pattern ^[a-z0-9]+(-[a-z0-9]+)*$
descriptionstringrequired
min length 1 · max length 1024
scope"org" | "team"required
The organization's library, or a team's (and the teams under it)
teamIdstring
The team (team_…), for scope team
versionintegerrequired
The highest approved version that nobody withdrew: the one a session loads
min 1
approvedAtstring (date-time)required
When that version was approved
duplicateNameboolean
Another skill of this name keeps it from loading, so neither is delivered or loaded. Left out when false. A skill of yours with this name collides too when any library skill of the name has this flag, and the library copy serves it, with the same bytes, when none has
403The matrix refuses a module key (`module_key`), a service account or an agent link (`role_required`) and an operator (`operator_scope`). The domain answers any other caller that is no person with `person_required`; the matrix stops each kind firstapplication/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
429Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
Errors
Status
Code
When
401
authentication_error
No key, or a key Gateway does not accept
403
role_required
Your role does not have this permission
429
Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).
The skill promotion requests you reach, newest request first: your own, those to the teams you lead and the teams under them, and for owners and admins every one. It holds no skill text.
The snapshot's name: what the version said when it was requested
descriptionstringrequired
The snapshot's description
contentSha256stringrequired
The snapshot's SHA-256, lowercase hex
bytesintegerrequired
The snapshot's size in bytes (UTF-8)
sourceSkillIdstringrequired
The author's skill (skl_…) the snapshot was taken from
sourceVersionintegerrequired
min 1
sourceWrittenVia"web" | "cli" | "api"required
How that version was written
sourceWrittenAtstring (date-time)required
requestedBystringrequired
The requester's user id
requestedVia"web" | "cli" | "api"required
requestedAtstring (date-time)required
notestring
max length 500
decidedBystring
The approver's user id, once it is approved or refused
decidedAtstring (date-time)
decisionReasonstring
max length 500
selfApprovedbooleanrequired
Whether the approver was the requester. Always false: nobody approves their own request
reviewedSkillPromotionReviewed
What the approver's client says they opened before they decided. Reported, not proved.
contentboolean
Opened the SKILL.md
diffboolean
Opened the diff from the last approved version
librarySkillIdstring
Once approved: the library skill (skl_…) this is a version of
libraryVersioninteger
Once approved: the library version
min 1
withdrawnBystring
withdrawnAtstring (date-time)
withdrawnReasonstring
max length 500
nextCursorstring
Set while more follow: send it as cursor for the next page
400`invalid_promotion`: a filter, `limit` or `mine` is not valid, or the query holds a name this list does not read (it reads `state`, `scope`, `team`, `mine`, `limit` and `cursor`); `invalid_cursor`: `cursor` is not one this API returnedapplication/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
403The matrix refuses a module key (`module_key`), a service account or an agent link (`role_required`) and an operator (`operator_scope`)application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
404`unknown_team`: no such team in this organizationapplication/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
429Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
Errors
Status
Code
When
400
invalid_request_error
A field is missing or not valid; the message names it
400
`invalid_promotion`: a filter, `limit` or `mine` is not valid, or the query holds a name this list does not read (it reads `state`, `scope`, `team`, `mine`, `limit` and `cursor`); `invalid_cursor`: `cursor` is not one this API returned
401
authentication_error
No key, or a key Gateway does not accept
403
role_required
Your role does not have this permission
404
`unknown_team`: no such team in this organization
429
Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).
One promotion request and its snapshot (content, the SKILL.md as the version held it), for its requester and the approvers who reach it. previous is the last approved version of the same library skill, with its content, for a diff; it is null when there is none or you do not load that library. Someone who only loads the library reads that version and its text; who asked for it and who approved it (previous.promotion) go to the approvers of it only. Anyone else, in any state, gets 404 promotion_not_found.
The snapshot's name: what the version said when it was requested
descriptionstringrequired
The snapshot's description
contentSha256stringrequired
The snapshot's SHA-256, lowercase hex
bytesintegerrequired
The snapshot's size in bytes (UTF-8)
sourceSkillIdstringrequired
The author's skill (skl_…) the snapshot was taken from
sourceVersionintegerrequired
min 1
sourceWrittenVia"web" | "cli" | "api"required
How that version was written
sourceWrittenAtstring (date-time)required
requestedBystringrequired
The requester's user id
requestedVia"web" | "cli" | "api"required
requestedAtstring (date-time)required
notestring
max length 500
decidedBystring
The approver's user id, once it is approved or refused
decidedAtstring (date-time)
decisionReasonstring
max length 500
selfApprovedbooleanrequired
Whether the approver was the requester. Always false: nobody approves their own request
reviewedSkillPromotionReviewed
What the approver's client says they opened before they decided. Reported, not proved.
contentboolean
Opened the SKILL.md
diffboolean
Opened the diff from the last approved version
librarySkillIdstring
Once approved: the library skill (skl_…) this is a version of
libraryVersioninteger
Once approved: the library version
min 1
withdrawnBystring
withdrawnAtstring (date-time)
withdrawnReasonstring
max length 500
403The matrix refuses a module key (`module_key`), a service account or an agent link (`role_required`) and an operator (`operator_scope`)application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
404`promotion_not_found`: no such promotion in your reachapplication/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
429Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
Errors
Status
Code
When
401
authentication_error
No key, or a key Gateway does not accept
403
role_required
Your role does not have this permission
404
not_found
Nothing matches the path in your organization
404
`promotion_not_found`: no such promotion in your reach
404
promotion_not_found
Anyone else, in any state, gets 404 `promotion_not_found`
429
Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).
Approve or refuse a held promotion. An owner or admin decides for the organization; a lead of the team or of a team above it, an owner or an admin decides for a team. Never the requester, and only from a Nexus UI session or a CLI sign-in, not an API key. An approval adds the version to the library of its scope and tells the requester; a refusal needs a reason. Audited as skill.promotion_approved or skill.promotion_refused. A repeat with the same Idempotency-Key within 24 hours gets the first answer; a repeat without one gets 409 promotion_decided.
The snapshot's name: what the version said when it was requested
descriptionstringrequired
The snapshot's description
contentSha256stringrequired
The snapshot's SHA-256, lowercase hex
bytesintegerrequired
The snapshot's size in bytes (UTF-8)
sourceSkillIdstringrequired
The author's skill (skl_…) the snapshot was taken from
sourceVersionintegerrequired
min 1
sourceWrittenVia"web" | "cli" | "api"required
How that version was written
sourceWrittenAtstring (date-time)required
requestedBystringrequired
The requester's user id
requestedVia"web" | "cli" | "api"required
requestedAtstring (date-time)required
notestring
max length 500
decidedBystring
The approver's user id, once it is approved or refused
decidedAtstring (date-time)
decisionReasonstring
max length 500
selfApprovedbooleanrequired
Whether the approver was the requester. Always false: nobody approves their own request
reviewedSkillPromotionReviewed
What the approver's client says they opened before they decided. Reported, not proved.
contentboolean
Opened the SKILL.md
diffboolean
Opened the diff from the last approved version
librarySkillIdstring
Once approved: the library skill (skl_…) this is a version of
libraryVersioninteger
Once approved: the library version
min 1
withdrawnBystring
withdrawnAtstring (date-time)
withdrawnReasonstring
max length 500
400`invalid_promotion`: a field is missing, unknown or out of bounds, or a refusal has no `reason`application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
403`role_required`: only an owner, an admin or a team lead decides; `person_session_required`: an API key cannot decide, run `nexus auth login`; `self_approval`: nobody approves their own request; the matrix refuses a module key (`module_key`), a service account or an agent link (`role_required`) and an operator (`operator_scope`)application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
404`promotion_not_found`: no such promotion in your reachapplication/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
409`promotion_decided`: the promotion is no longer held (`details` names its state); `requester_left`: the requester is no longer a member; `team_deleted`: the target team no longer exists; `name_taken`: an approval would give people two library skills of one name (`details` names the scope and team); `library_limit`: the library holds its most skills, or the skill its most versionsapplication/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
429Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
Errors
Status
Code
When
400
invalid_request_error
A field is missing or not valid; the message names it
400
`invalid_promotion`: a field is missing, unknown or out of bounds, or a refusal has no `reason`
401
authentication_error
No key, or a key Gateway does not accept
403
role_required
Your role does not have this permission
404
not_found
Nothing matches the path in your organization
404
`promotion_not_found`: no such promotion in your reach
409
`promotion_decided`: the promotion is no longer held (`details` names its state); `requester_left`: the requester is no longer a member; `team_deleted`: the target team no longer exists; `name_taken`: an approval would give people two library skills of one name (`details` names the scope and team); `library_limit`: the library holds its most skills, or the skill its most versions
409
promotion_decided
A repeat with the same `Idempotency-Key` within 24 hours gets the first answer; a repeat without one gets 409 `promotion_decided`
409
idempotency_in_progress
A request with the same Idempotency-Key is still running
409
idempotency_interrupted
The first request with this Idempotency-Key was cut off and may have run in part
422
idempotency_key_reused
The Idempotency-Key was used with a different request
429
Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).
Withdraw a promotion. The requester withdraws their own held request; an approver who reaches it withdraws a held one, or an approved version (from a Nexus UI session or a CLI sign-in). The version leaves its library; text a model already read stays read. With allVersions, every approved version of that library skill is withdrawn in one transaction, each with its own event. The answer names the promotion and, in withdrawnIds, every promotion withdrawn. Audited as skill.promotion_withdrawn. The requester is told, unless they withdrew it themselves.
The snapshot's name: what the version said when it was requested
descriptionstringrequired
The snapshot's description
contentSha256stringrequired
The snapshot's SHA-256, lowercase hex
bytesintegerrequired
The snapshot's size in bytes (UTF-8)
sourceSkillIdstringrequired
The author's skill (skl_…) the snapshot was taken from
sourceVersionintegerrequired
min 1
sourceWrittenVia"web" | "cli" | "api"required
How that version was written
sourceWrittenAtstring (date-time)required
requestedBystringrequired
The requester's user id
requestedVia"web" | "cli" | "api"required
requestedAtstring (date-time)required
notestring
max length 500
decidedBystring
The approver's user id, once it is approved or refused
decidedAtstring (date-time)
decisionReasonstring
max length 500
selfApprovedbooleanrequired
Whether the approver was the requester. Always false: nobody approves their own request
reviewedSkillPromotionReviewed
What the approver's client says they opened before they decided. Reported, not proved.
contentboolean
Opened the SKILL.md
diffboolean
Opened the diff from the last approved version
librarySkillIdstring
Once approved: the library skill (skl_…) this is a version of
libraryVersioninteger
Once approved: the library version
min 1
withdrawnBystring
withdrawnAtstring (date-time)
withdrawnReasonstring
max length 500
400`invalid_promotion`: a field is unknown or out of bounds, or `allVersions` names a held requestapplication/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
403`person_session_required`: withdrawing an approved version needs a Nexus UI session or a CLI sign-in; `role_required`: the caller asks to withdraw an approved version and is not an approver of it (its requester gets this); the matrix refuses a module key (`module_key`), a service account or an agent link (`role_required`) and an operator (`operator_scope`)application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
404`promotion_not_found`: no such promotion in your reachapplication/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
409`promotion_decided`: the promotion was refused or is already withdrawn (`details` names its state)application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
429Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
Errors
Status
Code
When
400
invalid_request_error
A field is missing or not valid; the message names it
400
`invalid_promotion`: a field is unknown or out of bounds, or `allVersions` names a held request
401
authentication_error
No key, or a key Gateway does not accept
403
role_required
Your role does not have this permission
404
not_found
Nothing matches the path in your organization
404
`promotion_not_found`: no such promotion in your reach
409
`promotion_decided`: the promotion was refused or is already withdrawn (`details` names its state)
409
idempotency_in_progress
A request with the same Idempotency-Key is still running
409
idempotency_interrupted
The first request with this Idempotency-Key was cut off and may have run in part
422
idempotency_key_reused
The Idempotency-Key was used with a different request
429
Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).