Every answer is checked against the model shown here before it is sent, and no answer carries a member its model does not list. A member shown as any JSON is one whose shape belongs to somebody else, and says whose. .{key} is a key that is data, and [] an element of a list.
A refusal
Unless an operation below says otherwise, any status it does not list answers this:
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
message |
string | ||
ok |
boolean | ||
status |
integer | ||
why |
string |
GET /admin-api/attribute-sources
getAttributeSources
The SQL databases this realm reads people’s attributes from (#94)
Everything /admin/attribute-sources draws: each source (its database, the row it reads, the columns it writes onto which attributes, when it reads and what a failure does) with its status, and the rules a definition is held to. Never a password.
Mirrors GET /admin/attribute-sources on the admin console.
Scope: admin:read.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
sourcesPage |
query | integer | Which page of sources to return, answered by sourcesPaging (#313). |
|
per |
query | integer | Rows per page. Capped, like every list here. | |
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
200: The register.
| Member | Type | Required | What it is |
|---|---|---|---|
dialects |
list | ||
dialects[] |
string | ||
hostPatterns |
string | ||
job |
string | ||
modes |
list | ||
modes[] |
string | ||
onFailure |
list | ||
onFailure[] |
string | ||
passwordProviders |
list | ||
passwordProviders[] |
string | ||
refused |
object | ||
refused.names |
list | ||
refused.names[] |
string | ||
refused.prefixes |
list | ||
refused.prefixes[] |
string | ||
settings |
object | ||
settings.context |
object | ||
settings.context.configFile |
string, or null | ||
settings.context.defaultsFile |
string, or null | ||
settings.context.inRealm |
boolean | ||
settings.context.persistenceMode |
string | ||
settings.context.persistsAppconfig |
boolean | ||
settings.context.persistsRealms |
boolean | ||
settings.context.realmId |
string, or null | ||
settings.editableCount |
integer | ||
settings.groups |
list | ||
settings.groups[].group |
string | ||
settings.groups[].settings |
list | ||
settings.groups[].settings[].appconfigPath |
string | ||
settings.groups[].settings[].csvValueNotes |
map | The sentence beside each value. | |
settings.groups[].settings[].csvValueNotes.{key} |
string | ||
settings.groups[].settings[].csvValues |
list | ||
settings.groups[].settings[].csvValues[] |
string | ||
settings.groups[].settings[].default |
list, or boolean, or number, or string, or null | ||
settings.groups[].settings[].default[] |
string | ||
settings.groups[].settings[].description |
string | ||
settings.groups[].settings[].editRefusal |
string | ||
settings.groups[].settings[].editable |
boolean | ||
settings.groups[].settings[].enumValues |
list | ||
settings.groups[].settings[].enumValues[] |
string | ||
settings.groups[].settings[].env |
string, or null | ||
settings.groups[].settings[].group |
string | ||
settings.groups[].settings[].key |
string | ||
settings.groups[].settings[].label |
string | ||
settings.groups[].settings[].legacyEnv |
string, or null | ||
settings.groups[].settings[].masked |
boolean | ||
settings.groups[].settings[].max |
number | ||
settings.groups[].settings[].min |
number | ||
settings.groups[].settings[].ordered |
boolean | ||
settings.groups[].settings[].overridden |
boolean | ||
settings.groups[].settings[].realmSettable |
boolean | ||
settings.groups[].settings[].restartReason |
string | ||
settings.groups[].settings[].selectAll |
map | The rules by kind: onlyWhileOn and aloneWhileOn. | |
settings.groups[].settings[].selectAll.{key} |
list | ||
settings.groups[].settings[].selectAll.{key}[].canBeOn |
object | Nested deeper than this page draws. | |
settings.groups[].settings[].selectAll.{key}[].on |
object | Nested deeper than this page draws. | |
settings.groups[].settings[].selectAll.{key}[].setting |
object | Nested deeper than this page draws. | |
settings.groups[].settings[].selectAll.{key}[].values |
object | Nested deeper than this page draws. | |
settings.groups[].settings[].source |
string | ||
settings.groups[].settings[].step |
number | ||
settings.groups[].settings[].text |
string, or null | ||
settings.groups[].settings[].type |
string | ||
settings.groups[].settings[].value |
list, or boolean, or number, or string, or null | ||
settings.groups[].settings[].value[] |
string | ||
settings.overridden |
list | ||
settings.overridden[] |
string | ||
settings.page |
string | ||
settings.setWith |
string | ||
settings.settingCount |
integer | ||
settings.sharedWith |
map | The other pages, by settings group. | |
settings.sharedWith.{key} |
list | ||
settings.sharedWith.{key}[].label |
string | ||
settings.sharedWith.{key}[].path |
string | ||
sources |
list | ||
sources[].caCertificates |
string | ||
sources[].caFile |
string | ||
sources[].columns |
map | The attribute each column of the operator’s table is written onto. | |
sources[].columns.{key} |
string | ||
sources[].database |
string | ||
sources[].dialect |
string | ||
sources[].enabled |
boolean | ||
sources[].host |
string | ||
sources[].id |
string | ||
sources[].keyAttribute |
string | ||
sources[].keyColumn |
string | ||
sources[].onFailure |
string | ||
sources[].passwordField |
string | ||
sources[].passwordProvider |
string | ||
sources[].passwordRef |
string | ||
sources[].port |
number | ||
sources[].refresh |
list | ||
sources[].refresh[] |
string | ||
sources[].scheduleS |
number | ||
sources[].serverName |
string | ||
sources[].status |
object | ||
sources[].status.cursor |
string | ||
sources[].status.cursorKind |
string | ||
sources[].status.cursorOpen |
boolean | ||
sources[].status.cycleEndedAt |
number, or string, or null | ||
sources[].status.failures |
number | ||
sources[].status.lastCode |
string | ||
sources[].status.lastError |
string | ||
sources[].status.lastErrorAt |
string | ||
sources[].status.lastOkAt |
string | ||
sources[].status.lastRunAt |
string | ||
sources[].status.lastRunPeople |
number | ||
sources[].table |
string | ||
sources[].timeoutMs |
number | ||
sources[].trust |
object | ||
sources[].trust.caFile |
string | ||
sources[].trust.certificates |
list | ||
sources[].trust.certificates[].ca |
boolean | ||
sources[].trust.certificates[].expired |
boolean | ||
sources[].trust.certificates[].issuer |
string | ||
sources[].trust.certificates[].notAfter |
string | ||
sources[].trust.certificates[].notBefore |
string | ||
sources[].trust.certificates[].notYetValid |
boolean | ||
sources[].trust.certificates[].selfSigned |
boolean | ||
sources[].trust.certificates[].sha256 |
string | ||
sources[].trust.certificates[].subject |
string | ||
sources[].trust.publicRoots |
boolean | ||
sources[].trust.unreadable |
number | ||
sources[].trustPublicRoots |
boolean | ||
sources[].user |
string | ||
sourcesPaging |
object | ||
sourcesPaging.firstRow |
integer | ||
sourcesPaging.lastRow |
integer | ||
sourcesPaging.noun |
string, or null | ||
sourcesPaging.page |
integer | ||
sourcesPaging.pages |
integer | ||
sourcesPaging.param |
string, or null | ||
sourcesPaging.perPage |
integer | ||
sourcesPaging.total |
integer |
POST /admin-api/attribute-sources/add-source
addAttributeSource
Add an attribute source
A database this realm reads people’s attributes from. Refused for an attribute another source writes, one no outside source may write, a host attributeSources.hostPatterns does not allow, or a name that is not an identifier. Audited.
Mirrors POST /admin/attribute-sources and POST /admin/attribute-sources/new on the admin console.
Scope: admin:write.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
Request body
| Member | Type | Required | What it is |
|---|---|---|---|
caCertificates |
string | The database’s trust chain as PEM certificates, stored with the source. Trusted ALONE unless trustPublicRoots; with no chain and no caFile, the public roots are used. An empty string clears it. A block that does not parse, or an expired certificate, is refused. | |
caFile |
string | A PEM file of CA certificates on this service’s disk, added to caCertificates. TLS is always verified. | |
columns |
map | yes | { “<column>”: “<directory attribute>” }. No attribute this service keeps, no identity or group membership, no mail; an attribute has one source. |
columns.{key} |
string | ||
database |
string | yes | |
dialect |
one of postgres, mysql |
PostgreSQL, or MySQL / MariaDB: postgres when absent. Sent empty, it is refused. |
|
enabled |
boolean | ||
host |
string | yes | The database host; attributeSources.hostPatterns may narrow it. |
id |
string | yes | The source’s id in this realm. |
keyAttribute |
string | The person’s attribute the key column holds (uid, employeeNumber, entryUUID…). | |
keyColumn |
string | yes | |
onFailure |
one of keep, refuse |
keep: the stored values stand and the sign-in proceeds; refuse: the sign-in is refused. | |
passwordField |
string | The field, where the secret is a JSON object. | |
passwordProvider |
one of none, file, aws, gcp, azure, vault |
Where the password is read from, through common/secrets.js; never stored here. | |
passwordRef |
string | A path (file) or a secret’s name; empty is the key-encryption key’s location. | |
port |
integer | ||
refresh |
list | When a person is read. | |
refresh[] |
one of once, sign-in, schedule, on-demand |
||
scheduleS |
integer | The scheduled refresh’s interval. | |
serverName |
string | The name the certificate is checked against; the host when empty. | |
table |
string | yes | A table or view, optionally schema.table. |
timeoutMs |
integer | ||
trustPublicRoots |
boolean | Trust node’s public roots beside caCertificates. Off by default. | |
user |
string | yes |
200: The source as stored.
| Member | Type | Required | What it is |
|---|---|---|---|
changed |
list | ||
changed[] |
string | ||
errors |
list | ||
errors[] |
string | ||
failures |
list | ||
failures[].source |
string | ||
failures[].why |
string | ||
found |
boolean | ||
key |
string | ||
message |
string | ||
ok |
boolean | yes | |
row |
map | The row, by the operator’s column names. | |
row.{key} |
any JSON | A value of the operator’s own SQL table, as its driver read it. A value of the operator’s own SQL table, as its driver read it. | |
runId |
number, or string | ||
source |
object | ||
source.caCertificates |
string | ||
source.caFile |
string | ||
source.columns |
map | The attribute each column of the operator’s table is written onto. | |
source.columns.{key} |
string | ||
source.database |
string | ||
source.dialect |
string | ||
source.enabled |
boolean | ||
source.host |
string | ||
source.id |
string | ||
source.keyAttribute |
string | ||
source.keyColumn |
string | ||
source.onFailure |
string | ||
source.passwordField |
string | ||
source.passwordProvider |
string | ||
source.passwordRef |
string | ||
source.port |
number | ||
source.refresh |
list | ||
source.refresh[] |
string | ||
source.scheduleS |
number | ||
source.serverName |
string | ||
source.table |
string | ||
source.timeoutMs |
number | ||
source.trustPublicRoots |
boolean | ||
source.user |
string | ||
why |
string |
400: The operation was refused; errors says why and nothing changed.
| Member | Type | Required | What it is |
|---|---|---|---|
changed |
list | ||
changed[] |
string | ||
errors |
list | ||
errors[] |
string | ||
failures |
list | ||
failures[].source |
string | ||
failures[].why |
string | ||
found |
boolean | ||
key |
string | ||
message |
string | ||
ok |
boolean | yes | |
row |
map | The row, by the operator’s column names. | |
row.{key} |
any JSON | A value of the operator’s own SQL table, as its driver read it. A value of the operator’s own SQL table, as its driver read it. | |
runId |
number, or string | ||
source |
object | ||
source.caCertificates |
string | ||
source.caFile |
string | ||
source.columns |
map | The attribute each column of the operator’s table is written onto. | |
source.columns.{key} |
string | ||
source.database |
string | ||
source.dialect |
string | ||
source.enabled |
boolean | ||
source.host |
string | ||
source.id |
string | ||
source.keyAttribute |
string | ||
source.keyColumn |
string | ||
source.onFailure |
string | ||
source.passwordField |
string | ||
source.passwordProvider |
string | ||
source.passwordRef |
string | ||
source.port |
number | ||
source.refresh |
list | ||
source.refresh[] |
string | ||
source.scheduleS |
number | ||
source.serverName |
string | ||
source.table |
string | ||
source.timeoutMs |
number | ||
source.trustPublicRoots |
boolean | ||
source.user |
string | ||
why |
string |
GET /admin-api/attribute-sources/new
getNewAttributeSourceForm
What an attribute source may be added with, and which of it is required
The create’s fields in createFields, each with required — id, host, database, user, table, keyColumn and columns (at least one column=attribute) are refused when empty; every other field is optional, with the default the create applies when it is absent — plus the closed sets the form’s choices come from and attributeSources.hostPatterns. It adds nothing: the create is POST /admin-api/attribute-sources/add-source.
Mirrors GET /admin/attribute-sources/new on the admin console.
Scope: admin:read.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
200: The fields, which are required, and the choices.
| Member | Type | Required | What it is |
|---|---|---|---|
createFields |
list | ||
createFields[] |
object | One field of a directory object’s create (#1132): the name the create takes it under and whether the create refuses without it. A field is required exactly when the create refuses an empty or absent value; every other field is optional. | |
createFields[].name |
string | yes | |
createFields[].required |
boolean | yes | |
createFields[].requiredWhen |
object | A field required for some choices only: the create refuses without it when field holds one of values — * meaning any value at all, so two fields that go together each name the other — and is otherwise indifferent. required is false for such a field. |
|
createFields[].requiredWhen.field |
string | yes | |
createFields[].requiredWhen.values |
list | yes | |
createFields[].requiredWhen.values[] |
string | ||
dialects |
list | ||
dialects[] |
string | ||
hostPatterns |
string | ||
modes |
list | ||
modes[] |
string | ||
onFailure |
list | ||
onFailure[] |
string | ||
passwordProviders |
list | ||
passwordProviders[] |
string |
POST /admin-api/attribute-sources/refresh-person
refreshAttributeSourcePerson
Read one person from the sources now
From every source that allows on-demand, or the one named by id. Audited.
Mirrors POST /admin/attribute-sources and POST /admin/attribute-sources/new on the admin console.
Scope: admin:write.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
Request body
| Member | Type | Required | What it is |
|---|---|---|---|
id |
string | The source’s id in this realm. | |
username |
string | yes |
200: What changed, and which sources failed.
| Member | Type | Required | What it is |
|---|---|---|---|
changed |
list | ||
changed[] |
string | ||
errors |
list | ||
errors[] |
string | ||
failures |
list | ||
failures[].source |
string | ||
failures[].why |
string | ||
found |
boolean | ||
key |
string | ||
message |
string | ||
ok |
boolean | yes | |
row |
map | The row, by the operator’s column names. | |
row.{key} |
any JSON | A value of the operator’s own SQL table, as its driver read it. A value of the operator’s own SQL table, as its driver read it. | |
runId |
number, or string | ||
source |
object | ||
source.caCertificates |
string | ||
source.caFile |
string | ||
source.columns |
map | The attribute each column of the operator’s table is written onto. | |
source.columns.{key} |
string | ||
source.database |
string | ||
source.dialect |
string | ||
source.enabled |
boolean | ||
source.host |
string | ||
source.id |
string | ||
source.keyAttribute |
string | ||
source.keyColumn |
string | ||
source.onFailure |
string | ||
source.passwordField |
string | ||
source.passwordProvider |
string | ||
source.passwordRef |
string | ||
source.port |
number | ||
source.refresh |
list | ||
source.refresh[] |
string | ||
source.scheduleS |
number | ||
source.serverName |
string | ||
source.table |
string | ||
source.timeoutMs |
number | ||
source.trustPublicRoots |
boolean | ||
source.user |
string | ||
why |
string |
400: The operation was refused; errors says why and nothing changed.
| Member | Type | Required | What it is |
|---|---|---|---|
changed |
list | ||
changed[] |
string | ||
errors |
list | ||
errors[] |
string | ||
failures |
list | ||
failures[].source |
string | ||
failures[].why |
string | ||
found |
boolean | ||
key |
string | ||
message |
string | ||
ok |
boolean | yes | |
row |
map | The row, by the operator’s column names. | |
row.{key} |
any JSON | A value of the operator’s own SQL table, as its driver read it. A value of the operator’s own SQL table, as its driver read it. | |
runId |
number, or string | ||
source |
object | ||
source.caCertificates |
string | ||
source.caFile |
string | ||
source.columns |
map | The attribute each column of the operator’s table is written onto. | |
source.columns.{key} |
string | ||
source.database |
string | ||
source.dialect |
string | ||
source.enabled |
boolean | ||
source.host |
string | ||
source.id |
string | ||
source.keyAttribute |
string | ||
source.keyColumn |
string | ||
source.onFailure |
string | ||
source.passwordField |
string | ||
source.passwordProvider |
string | ||
source.passwordRef |
string | ||
source.port |
number | ||
source.refresh |
list | ||
source.refresh[] |
string | ||
source.scheduleS |
number | ||
source.serverName |
string | ||
source.table |
string | ||
source.timeoutMs |
number | ||
source.trustPublicRoots |
boolean | ||
source.user |
string | ||
why |
string |
POST /admin-api/attribute-sources/refresh-source
refreshAttributeSource
Read every person from a source now
Queues the scheduled refresh for this source, which reads the realm’s people a page at a time. Audited.
Mirrors POST /admin/attribute-sources and POST /admin/attribute-sources/new on the admin console.
Scope: admin:write.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
Request body
| Member | Type | Required | What it is |
|---|---|---|---|
id |
string | yes | The source’s id in this realm. |
200: The scheduler run, in runId.
| Member | Type | Required | What it is |
|---|---|---|---|
changed |
list | ||
changed[] |
string | ||
errors |
list | ||
errors[] |
string | ||
failures |
list | ||
failures[].source |
string | ||
failures[].why |
string | ||
found |
boolean | ||
key |
string | ||
message |
string | ||
ok |
boolean | yes | |
row |
map | The row, by the operator’s column names. | |
row.{key} |
any JSON | A value of the operator’s own SQL table, as its driver read it. A value of the operator’s own SQL table, as its driver read it. | |
runId |
number, or string | ||
source |
object | ||
source.caCertificates |
string | ||
source.caFile |
string | ||
source.columns |
map | The attribute each column of the operator’s table is written onto. | |
source.columns.{key} |
string | ||
source.database |
string | ||
source.dialect |
string | ||
source.enabled |
boolean | ||
source.host |
string | ||
source.id |
string | ||
source.keyAttribute |
string | ||
source.keyColumn |
string | ||
source.onFailure |
string | ||
source.passwordField |
string | ||
source.passwordProvider |
string | ||
source.passwordRef |
string | ||
source.port |
number | ||
source.refresh |
list | ||
source.refresh[] |
string | ||
source.scheduleS |
number | ||
source.serverName |
string | ||
source.table |
string | ||
source.timeoutMs |
number | ||
source.trustPublicRoots |
boolean | ||
source.user |
string | ||
why |
string |
400: The operation was refused; errors says why and nothing changed.
| Member | Type | Required | What it is |
|---|---|---|---|
changed |
list | ||
changed[] |
string | ||
errors |
list | ||
errors[] |
string | ||
failures |
list | ||
failures[].source |
string | ||
failures[].why |
string | ||
found |
boolean | ||
key |
string | ||
message |
string | ||
ok |
boolean | yes | |
row |
map | The row, by the operator’s column names. | |
row.{key} |
any JSON | A value of the operator’s own SQL table, as its driver read it. A value of the operator’s own SQL table, as its driver read it. | |
runId |
number, or string | ||
source |
object | ||
source.caCertificates |
string | ||
source.caFile |
string | ||
source.columns |
map | The attribute each column of the operator’s table is written onto. | |
source.columns.{key} |
string | ||
source.database |
string | ||
source.dialect |
string | ||
source.enabled |
boolean | ||
source.host |
string | ||
source.id |
string | ||
source.keyAttribute |
string | ||
source.keyColumn |
string | ||
source.onFailure |
string | ||
source.passwordField |
string | ||
source.passwordProvider |
string | ||
source.passwordRef |
string | ||
source.port |
number | ||
source.refresh |
list | ||
source.refresh[] |
string | ||
source.scheduleS |
number | ||
source.serverName |
string | ||
source.table |
string | ||
source.timeoutMs |
number | ||
source.trustPublicRoots |
boolean | ||
source.user |
string | ||
why |
string |
POST /admin-api/attribute-sources/remove-source
removeAttributeSource
Remove an attribute source
It leaves the register; what it wrote on people’s entries stays. Audited.
Mirrors POST /admin/attribute-sources and POST /admin/attribute-sources/new on the admin console.
Scope: admin:write.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
Request body
| Member | Type | Required | What it is |
|---|---|---|---|
id |
string | yes | The source’s id in this realm. |
200: What was removed.
| Member | Type | Required | What it is |
|---|---|---|---|
changed |
list | ||
changed[] |
string | ||
errors |
list | ||
errors[] |
string | ||
failures |
list | ||
failures[].source |
string | ||
failures[].why |
string | ||
found |
boolean | ||
key |
string | ||
message |
string | ||
ok |
boolean | yes | |
row |
map | The row, by the operator’s column names. | |
row.{key} |
any JSON | A value of the operator’s own SQL table, as its driver read it. A value of the operator’s own SQL table, as its driver read it. | |
runId |
number, or string | ||
source |
object | ||
source.caCertificates |
string | ||
source.caFile |
string | ||
source.columns |
map | The attribute each column of the operator’s table is written onto. | |
source.columns.{key} |
string | ||
source.database |
string | ||
source.dialect |
string | ||
source.enabled |
boolean | ||
source.host |
string | ||
source.id |
string | ||
source.keyAttribute |
string | ||
source.keyColumn |
string | ||
source.onFailure |
string | ||
source.passwordField |
string | ||
source.passwordProvider |
string | ||
source.passwordRef |
string | ||
source.port |
number | ||
source.refresh |
list | ||
source.refresh[] |
string | ||
source.scheduleS |
number | ||
source.serverName |
string | ||
source.table |
string | ||
source.timeoutMs |
number | ||
source.trustPublicRoots |
boolean | ||
source.user |
string | ||
why |
string |
400: The operation was refused; errors says why and nothing changed.
| Member | Type | Required | What it is |
|---|---|---|---|
changed |
list | ||
changed[] |
string | ||
errors |
list | ||
errors[] |
string | ||
failures |
list | ||
failures[].source |
string | ||
failures[].why |
string | ||
found |
boolean | ||
key |
string | ||
message |
string | ||
ok |
boolean | yes | |
row |
map | The row, by the operator’s column names. | |
row.{key} |
any JSON | A value of the operator’s own SQL table, as its driver read it. A value of the operator’s own SQL table, as its driver read it. | |
runId |
number, or string | ||
source |
object | ||
source.caCertificates |
string | ||
source.caFile |
string | ||
source.columns |
map | The attribute each column of the operator’s table is written onto. | |
source.columns.{key} |
string | ||
source.database |
string | ||
source.dialect |
string | ||
source.enabled |
boolean | ||
source.host |
string | ||
source.id |
string | ||
source.keyAttribute |
string | ||
source.keyColumn |
string | ||
source.onFailure |
string | ||
source.passwordField |
string | ||
source.passwordProvider |
string | ||
source.passwordRef |
string | ||
source.port |
number | ||
source.refresh |
list | ||
source.refresh[] |
string | ||
source.scheduleS |
number | ||
source.serverName |
string | ||
source.table |
string | ||
source.timeoutMs |
number | ||
source.trustPublicRoots |
boolean | ||
source.user |
string | ||
why |
string |
POST /admin-api/attribute-sources/test-source
testAttributeSource
Connect to a source and read one row, writing nothing
Reads the row for a person (by username, whose key attribute is used) or for a key given outright, and returns it. Nothing is written.
Mirrors POST /admin/attribute-sources and POST /admin/attribute-sources/new on the admin console.
Scope: admin:write.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
Request body
| Member | Type | Required | What it is |
|---|---|---|---|
id |
string | yes | The source’s id in this realm. |
key |
string | ||
username |
string |
200: found and the row.
| Member | Type | Required | What it is |
|---|---|---|---|
changed |
list | ||
changed[] |
string | ||
errors |
list | ||
errors[] |
string | ||
failures |
list | ||
failures[].source |
string | ||
failures[].why |
string | ||
found |
boolean | ||
key |
string | ||
message |
string | ||
ok |
boolean | yes | |
row |
map | The row, by the operator’s column names. | |
row.{key} |
any JSON | A value of the operator’s own SQL table, as its driver read it. A value of the operator’s own SQL table, as its driver read it. | |
runId |
number, or string | ||
source |
object | ||
source.caCertificates |
string | ||
source.caFile |
string | ||
source.columns |
map | The attribute each column of the operator’s table is written onto. | |
source.columns.{key} |
string | ||
source.database |
string | ||
source.dialect |
string | ||
source.enabled |
boolean | ||
source.host |
string | ||
source.id |
string | ||
source.keyAttribute |
string | ||
source.keyColumn |
string | ||
source.onFailure |
string | ||
source.passwordField |
string | ||
source.passwordProvider |
string | ||
source.passwordRef |
string | ||
source.port |
number | ||
source.refresh |
list | ||
source.refresh[] |
string | ||
source.scheduleS |
number | ||
source.serverName |
string | ||
source.table |
string | ||
source.timeoutMs |
number | ||
source.trustPublicRoots |
boolean | ||
source.user |
string | ||
why |
string |
400: The operation was refused; errors says why and nothing changed.
| Member | Type | Required | What it is |
|---|---|---|---|
changed |
list | ||
changed[] |
string | ||
errors |
list | ||
errors[] |
string | ||
failures |
list | ||
failures[].source |
string | ||
failures[].why |
string | ||
found |
boolean | ||
key |
string | ||
message |
string | ||
ok |
boolean | yes | |
row |
map | The row, by the operator’s column names. | |
row.{key} |
any JSON | A value of the operator’s own SQL table, as its driver read it. A value of the operator’s own SQL table, as its driver read it. | |
runId |
number, or string | ||
source |
object | ||
source.caCertificates |
string | ||
source.caFile |
string | ||
source.columns |
map | The attribute each column of the operator’s table is written onto. | |
source.columns.{key} |
string | ||
source.database |
string | ||
source.dialect |
string | ||
source.enabled |
boolean | ||
source.host |
string | ||
source.id |
string | ||
source.keyAttribute |
string | ||
source.keyColumn |
string | ||
source.onFailure |
string | ||
source.passwordField |
string | ||
source.passwordProvider |
string | ||
source.passwordRef |
string | ||
source.port |
number | ||
source.refresh |
list | ||
source.refresh[] |
string | ||
source.scheduleS |
number | ||
source.serverName |
string | ||
source.table |
string | ||
source.timeoutMs |
number | ||
source.trustPublicRoots |
boolean | ||
source.user |
string | ||
why |
string |
POST /admin-api/attribute-sources/update-source
updateAttributeSource
Change an attribute source
The members given replace the source’s; the rest are kept. Checked as add-source is. Audited.
Mirrors POST /admin/attribute-sources and POST /admin/attribute-sources/new on the admin console.
Scope: admin:write.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
Request body
| Member | Type | Required | What it is |
|---|---|---|---|
caCertificates |
string | The database’s trust chain as PEM certificates, stored with the source. Trusted ALONE unless trustPublicRoots; with no chain and no caFile, the public roots are used. An empty string clears it. A block that does not parse, or an expired certificate, is refused. | |
caFile |
string | A PEM file of CA certificates on this service’s disk, added to caCertificates. TLS is always verified. | |
columns |
map | { “<column>”: “<directory attribute>” }. No attribute this service keeps, no identity or group membership, no mail; an attribute has one source. | |
columns.{key} |
string | ||
database |
string | ||
dialect |
one of postgres, mysql |
PostgreSQL, or MySQL / MariaDB. | |
enabled |
boolean | ||
host |
string | The database host; attributeSources.hostPatterns may narrow it. | |
id |
string | yes | The source’s id in this realm. |
keyAttribute |
string | The person’s attribute the key column holds (uid, employeeNumber, entryUUID…). | |
keyColumn |
string | ||
onFailure |
one of keep, refuse |
keep: the stored values stand and the sign-in proceeds; refuse: the sign-in is refused. | |
passwordField |
string | The field, where the secret is a JSON object. | |
passwordProvider |
one of none, file, aws, gcp, azure, vault |
Where the password is read from, through common/secrets.js; never stored here. | |
passwordRef |
string | A path (file) or a secret’s name; empty is the key-encryption key’s location. | |
port |
integer | ||
refresh |
list | When a person is read. | |
refresh[] |
one of once, sign-in, schedule, on-demand |
||
scheduleS |
integer | The scheduled refresh’s interval. | |
serverName |
string | The name the certificate is checked against; the host when empty. | |
table |
string | A table or view, optionally schema.table. | |
timeoutMs |
integer | ||
trustPublicRoots |
boolean | Trust node’s public roots beside caCertificates. Off by default. | |
user |
string |
200: The source as stored.
| Member | Type | Required | What it is |
|---|---|---|---|
changed |
list | ||
changed[] |
string | ||
errors |
list | ||
errors[] |
string | ||
failures |
list | ||
failures[].source |
string | ||
failures[].why |
string | ||
found |
boolean | ||
key |
string | ||
message |
string | ||
ok |
boolean | yes | |
row |
map | The row, by the operator’s column names. | |
row.{key} |
any JSON | A value of the operator’s own SQL table, as its driver read it. A value of the operator’s own SQL table, as its driver read it. | |
runId |
number, or string | ||
source |
object | ||
source.caCertificates |
string | ||
source.caFile |
string | ||
source.columns |
map | The attribute each column of the operator’s table is written onto. | |
source.columns.{key} |
string | ||
source.database |
string | ||
source.dialect |
string | ||
source.enabled |
boolean | ||
source.host |
string | ||
source.id |
string | ||
source.keyAttribute |
string | ||
source.keyColumn |
string | ||
source.onFailure |
string | ||
source.passwordField |
string | ||
source.passwordProvider |
string | ||
source.passwordRef |
string | ||
source.port |
number | ||
source.refresh |
list | ||
source.refresh[] |
string | ||
source.scheduleS |
number | ||
source.serverName |
string | ||
source.table |
string | ||
source.timeoutMs |
number | ||
source.trustPublicRoots |
boolean | ||
source.user |
string | ||
why |
string |
400: The operation was refused; errors says why and nothing changed.
| Member | Type | Required | What it is |
|---|---|---|---|
changed |
list | ||
changed[] |
string | ||
errors |
list | ||
errors[] |
string | ||
failures |
list | ||
failures[].source |
string | ||
failures[].why |
string | ||
found |
boolean | ||
key |
string | ||
message |
string | ||
ok |
boolean | yes | |
row |
map | The row, by the operator’s column names. | |
row.{key} |
any JSON | A value of the operator’s own SQL table, as its driver read it. A value of the operator’s own SQL table, as its driver read it. | |
runId |
number, or string | ||
source |
object | ||
source.caCertificates |
string | ||
source.caFile |
string | ||
source.columns |
map | The attribute each column of the operator’s table is written onto. | |
source.columns.{key} |
string | ||
source.database |
string | ||
source.dialect |
string | ||
source.enabled |
boolean | ||
source.host |
string | ||
source.id |
string | ||
source.keyAttribute |
string | ||
source.keyColumn |
string | ||
source.onFailure |
string | ||
source.passwordField |
string | ||
source.passwordProvider |
string | ||
source.passwordRef |
string | ||
source.port |
number | ||
source.refresh |
list | ||
source.refresh[] |
string | ||
source.scheduleS |
number | ||
source.serverName |
string | ||
source.table |
string | ||
source.timeoutMs |
number | ||
source.trustPublicRoots |
boolean | ||
source.user |
string | ||
why |
string |
GET /admin-api/hardware-tokens
getHardwareTokens
The realm’s hardware tokens (#1955)
Everything Directory → Hardware tokens draws: tokens, one page of the physical security keys and smart cards this realm recorded from attestation — vendor, serial, model, holder, where the serial came from, status and the credentials on each — newest first, with paging. capped is true where the store is read on demand and the unsearched list is its newest thousand rows; search by serial or username (q) for any other.
Mirrors GET /admin/hardware-tokens on the admin console.
Scope: admin:read.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
q |
query | string | A serial, matched exactly, or a username for that person’s tokens; empty for every token. | |
status |
query | one of empty, active, lost |
active or lost; empty for both. |
|
page |
query | integer | Which page; a page past the end answers the last one. | |
per |
query | integer | Rows per page, 50 by default and at most 300. | |
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
200: The page of tokens.
| Member | Type | Required | What it is |
|---|---|---|---|
capped |
boolean | yes | |
escrowed |
list | yes | The escrowed piv-key-management certificates of the person q names; empty for a serial, nobody, or no search. |
escrowed[].issuedAt |
string | yes | |
escrowed[].notAfter |
string | yes | |
escrowed[].profile |
string | yes | |
escrowed[].revoked |
boolean | yes | Whether the certificate was revoked; its escrowed key is still recoverable. |
escrowed[].serialHex |
string | yes | The certificate’s serial, lower-case hex: what recoverEscrowedPivKey names. |
escrowed[].subject |
string | yes | |
paging |
object | yes | |
paging.firstRow |
integer | ||
paging.lastRow |
integer | ||
paging.noun |
string | ||
paging.page |
integer | ||
paging.pages |
integer | ||
paging.param |
string | ||
paging.perPage |
integer | ||
paging.total |
integer | ||
piv |
object | yes | What the PIV enrolment form may issue here (#1955 P2). |
piv.keyEscrow |
boolean | yes | Whether piv-key-management keys may be escrowed (piv.keyEscrow). |
piv.profiles |
list | yes | The PIV slot profiles this realm’s EST may issue (est.allowedProfiles). |
piv.profiles[] |
string | ||
piv.requireAttestation |
boolean | yes | Whether a PIV profile needs a YubiKey PIV attestation (piv.requireAttestation). |
q |
string | yes | |
sshCertificates |
list | yes | The SSH user certificates of the person q names that have not expired, revoked ones marked; empty for a serial, nobody, or no search. |
sshCertificates[].authority |
string | yes | classical, or ssh-mldsa-65 for a certificate the ML-DSA authority signed. |
sshCertificates[].hardwareBound |
boolean | yes | Whether verified hardware evidence covered the key. |
sshCertificates[].issuedAt |
string | yes | |
sshCertificates[].keyFingerprint |
string | yes | The certified key’s SHA256 fingerprint. |
sshCertificates[].keyType |
string | yes | The certified key’s OpenSSH type. |
sshCertificates[].notAfter |
string | yes | |
sshCertificates[].principals |
list | yes | |
sshCertificates[].principals[] |
string | ||
sshCertificates[].revoked |
boolean | yes | |
sshCertificates[].revokedAt |
string | yes | When it was revoked; empty for one that was not. |
sshCertificates[].serialHex |
string | yes | The serial, lower-case hex: what revokeUserSshCertificate names. |
status |
string | yes | |
tokens |
list | yes | |
tokens[].attested |
boolean | yes | |
tokens[].credentials |
list | yes | |
tokens[].credentials[].addedAt |
string | yes | |
tokens[].credentials[].algorithm |
string | The signature algorithm recorded for it, when the door that wrote it named one (an ML-DSA passkey’s COSE algorithm). Absent where the credential has none. | |
tokens[].credentials[].holder |
string | yes | Who registered it, by username. |
tokens[].credentials[].kind |
string | yes | fido, x509, or since #1955 P4 hotp or totp (an imported OATH token), and since P5 yubico-otp (later ssh, openpgp). |
tokens[].credentials[].label |
string | yes | |
tokens[].credentials[].ref |
string | yes | The credential id, the certificate’s serial in lower-case hex, or an imported OATH token’s inventory key. |
tokens[].credentials[].retired |
boolean | yes | Whether the lost-key act retired it. |
tokens[].credentials[].smartCard |
boolean | yes | Whether the evidence says its key is on a smart card. |
tokens[].credentials[].source |
string | yes | The evidence source it was recorded from. |
tokens[].evidenceSources |
list | yes | Where its serial came from: fido-enterprise-attestation, piv-attestation, vendor-import, pskc-import, yubiotp-import, ssh-security-key-attestation. |
tokens[].evidenceSources[] |
string | ||
tokens[].firmware |
string | yes | |
tokens[].formFactor |
string | yes | |
tokens[].holder |
string | yes | Who holds it, by username; empty for an entry since deleted. |
tokens[].key |
string | yes | <vendor>/<serial>, what reportHardwareTokenLost names. |
tokens[].lostAt |
string | yes | |
tokens[].lostBy |
string | yes | |
tokens[].model |
string | yes | |
tokens[].registeredAt |
string | yes | |
tokens[].serial |
string | yes | |
tokens[].status |
string | yes | active or lost. |
tokens[].updatedAt |
string | yes | |
tokens[].vendor |
string | yes |
POST /admin-api/hardware-tokens/assign-oath
assignOathToken
Assign an imported OATH token to a person (#1955)
Gives an unassigned token to a named person: its secret becomes their credential of its kind (an HOTP token their one-time code token, a TOTP token their authenticator, replacing an app), the hardware token register records it with evidence pskc-import, so its codes earn amr hwk beside otp while the token is active, and the inventory drops its copy of the secret. 404 for no such token, 409 for one already assigned or retired, 400 for a name with no entry or a kind the authentication policy has off.
Mirrors POST /admin/hardware-tokens on the admin console.
Scope: admin:write.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
Request body
| Member | Type | Required | What it is |
|---|---|---|---|
key |
string | yes | The token, <vendor>/<serial>/<key id>. |
username |
string | yes | The person it is given to. |
200: The token is assigned.
| Member | Type | Required | What it is |
|---|---|---|---|
message |
string | yes | |
ok |
boolean | yes | |
token |
object | yes | |
token.algorithm |
string | yes | The HMAC: SHA1, SHA256 or SHA512. |
token.assignedAt |
string | yes | |
token.assignedVia |
string | yes | api, console or claim (the person took it on the portal). |
token.digits |
integer | yes | |
token.holder |
string | yes | Who it is assigned to, by username; empty while unassigned. |
token.importedAt |
string | yes | |
token.importedBy |
string | yes | |
token.issuer |
string | yes | |
token.key |
string | yes | <vendor>/<serial>/<key id>, what assignOathToken and removeOathToken name. |
token.keyId |
string | yes | The key’s Id in the seed file. |
token.kind |
string | yes | hotp or totp. |
token.model |
string | yes | |
token.period |
integer | yes | A TOTP token’s time step in seconds; 0 for HOTP. |
token.protection |
string | yes | How the seed file protected it: none, pre-shared or pbe. |
token.retiredAt |
string | yes | |
token.serial |
string | yes | The device serial the seed file’s DeviceInfo names: what is printed on the token, and what a person claims it by. |
token.status |
string | yes | unassigned, assigned or retired (its hardware token was reported lost). |
token.vendor |
string | yes |
400: The operation was refused; errors says why and nothing changed.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
404: No such token in this realm’s inventory.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
409: The token is already assigned or retired.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
POST /admin-api/hardware-tokens/assign-yubiotp
assignYubiOtp
Assign an imported YubiKey OTP to a person (#1955)
Gives an unassigned YubiKey OTP to a named person. otp is one password the key types, and it is spent, so the same touch cannot also sign in. The AES key stays on this service, so later sign-ins are amr otp and never hwk. The hardware token register records evidence yubiotp-import. 404 for no such serial, 409 for one already assigned, 400 when yubiotp.offered is off or the OTP does not match.
Mirrors POST /admin/hardware-tokens on the admin console.
Scope: admin:write.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
Request body
| Member | Type | Required | What it is |
|---|---|---|---|
otp |
string | yes | One OTP the key types, which is spent. |
serial |
string | yes | The token’s serial. |
username |
string | yes | The person it is given to. |
200: The token is assigned.
| Member | Type | Required | What it is |
|---|---|---|---|
message |
string | yes | |
ok |
boolean | yes | |
token |
object | yes | |
token.holder |
string | yes | |
token.publicId |
string | yes | |
token.serial |
string | yes | |
token.status |
string | yes |
400: The operation was refused; errors says why and nothing changed.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
404: No such serial in this realm’s inventory.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
409: The token is already assigned.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
POST /admin-api/hardware-tokens/enrol-piv
enrolPivCertificate
Issue a PIV slot certificate to a person (#1955)
The console’s PIV enrolment form, for a machine: issues username a certificate under one of the four PIV slot profiles (piv-auth 9a, piv-sign 9c, piv-key-management 9d, piv-card-auth 9e) from a PKCS#10 request (csr, PEM) over the EST Issuing CA, held to est.allowedProfiles. With the key’s YubiKey PIV attestation — the slot’s attestation certificate (attestationCertificate) and the f9 attestation certificate (attestationIssuer), PEM — the attestation is verified against the realm’s PIV attestation anchors and its PIN and touch policy, the YubiKey is recorded among the realm’s hardware tokens, and the certificate earns hwk and sc at sign-in. An attestation that does not verify is refused. piv.requireAttestation refuses a request without one.
Mirrors POST /admin/hardware-tokens on the admin console.
Scope: admin:write.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
Request body
| Member | Type | Required | What it is |
|---|---|---|---|
attestationCertificate |
string | The slot’s attestation certificate, PEM (ykman piv keys attest). | |
attestationIssuer |
string | The f9 attestation certificate, PEM (ykman piv certificates export f9), and any intermediate after it. | |
csr |
string | yes | The PKCS#10 certificate request, PEM. |
profile |
string | yes | piv-auth, piv-sign, piv-key-management or piv-card-auth. |
username |
string | yes | The person the certificate is for. |
200: The certificate issued.
| Member | Type | Required | What it is |
|---|---|---|---|
attested |
boolean | yes | Whether a YubiKey PIV attestation of the key verified. |
certificatePem |
string | yes | |
chainPem |
list | yes | |
chainPem[] |
string | ||
message |
string | yes | |
ok |
boolean | yes | |
profile |
string | yes | |
serialHex |
string | yes | The issued certificate’s serial, lower-case hex. |
token |
string | yes | The hardware token the certificate was recorded on, or empty. |
400: The request, the profile or the attestation was refused; errors says why and nothing was issued.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
404: No such person in this realm.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
409: The person already holds as many enrolled certificates as the realm allows.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
503: The certificate could not be issued or recorded.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
GET /admin-api/hardware-tokens/escrowed
getEscrowedPivKeys
A person’s escrowed PIV key-management certificates (#1955)
The piv-key-management certificates of username whose keys this service generated and keeps in escrow (piv.keyEscrow): serial, subject, validity and whether each was revoked. Never a key; recovering one is recoverEscrowedPivKey.
Mirrors GET /admin/hardware-tokens on the admin console.
Scope: admin:read.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
username |
query | string | yes | The person whose escrowed certificates to list. |
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
200: The escrowed certificates.
| Member | Type | Required | What it is |
|---|---|---|---|
escrowed |
list | yes | |
escrowed[].issuedAt |
string | yes | |
escrowed[].notAfter |
string | yes | |
escrowed[].profile |
string | yes | |
escrowed[].revoked |
boolean | yes | Whether the certificate was revoked; its escrowed key is still recoverable. |
escrowed[].serialHex |
string | yes | The certificate’s serial, lower-case hex: what recoverEscrowedPivKey names. |
escrowed[].subject |
string | yes | |
username |
string | yes |
POST /admin-api/hardware-tokens/import-pskc
importPskcSeedFile
Import a vendor’s PSKC seed file (#1955)
Reads an RFC 6030 KeyContainer and keeps every HOTP and TOTP key in it as an UNASSIGNED token, keyed by vendor, serial and key id, its secret sealed under the key-encryption key. A file encrypted under a pre-shared key (section 6.1, AES-CBC or AES Key Wrap) is opened with preSharedKey, in hexadecimal or base64; one protected by a password (section 6.2, PBKDF2) with password. Its MAC is checked first (section 6.1.1), so a wrong key or an altered file imports nothing. Neither the key nor the password is ever stored, logged or answered. A plaintext file is refused in product mode unless pskc.allowPlaintextImport is on. A key that cannot be imported (a PIN key, no serial, already in the inventory) is in skipped with the reason; the rest are imported.
Mirrors POST /admin/hardware-tokens on the admin console.
Scope: admin:write.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
Request body
| Member | Type | Required | What it is |
|---|---|---|---|
password |
string | The password, for a file protected by one. | |
preSharedKey |
string | The pre-shared key (16, 24 or 32 octets), in hexadecimal or base64, for a file encrypted under one. | |
pskc |
string | yes | The seed file’s XML text. |
200: What was imported and what was skipped.
| Member | Type | Required | What it is |
|---|---|---|---|
imported |
list | yes | |
imported[].algorithm |
string | yes | The HMAC: SHA1, SHA256 or SHA512. |
imported[].assignedAt |
string | yes | |
imported[].assignedVia |
string | yes | api, console or claim (the person took it on the portal). |
imported[].digits |
integer | yes | |
imported[].holder |
string | yes | Who it is assigned to, by username; empty while unassigned. |
imported[].importedAt |
string | yes | |
imported[].importedBy |
string | yes | |
imported[].issuer |
string | yes | |
imported[].key |
string | yes | <vendor>/<serial>/<key id>, what assignOathToken and removeOathToken name. |
imported[].keyId |
string | yes | The key’s Id in the seed file. |
imported[].kind |
string | yes | hotp or totp. |
imported[].model |
string | yes | |
imported[].period |
integer | yes | A TOTP token’s time step in seconds; 0 for HOTP. |
imported[].protection |
string | yes | How the seed file protected it: none, pre-shared or pbe. |
imported[].retiredAt |
string | yes | |
imported[].serial |
string | yes | The device serial the seed file’s DeviceInfo names: what is printed on the token, and what a person claims it by. |
imported[].status |
string | yes | unassigned, assigned or retired (its hardware token was reported lost). |
imported[].vendor |
string | yes | |
message |
string | yes | |
ok |
boolean | yes | |
protection |
string | yes | none, pre-shared or pbe. |
skipped |
list | yes | |
skipped[].index |
integer | yes | The key package’s place in the file, from 0. |
skipped[].keyId |
string | yes | |
skipped[].serial |
string | yes | |
skipped[].why |
string | yes | Why it was not imported, in English. |
400: The file was refused whole; errors says why and nothing was imported.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
POST /admin-api/hardware-tokens/import-yubiotp
importYubiOtpCsv
Import a YubiKey OTP CSV (#1955)
Reads a CSV of serial, modhex public id, hexadecimal private id and hexadecimal AES key, and keeps each row as an UNASSIGNED YubiKey OTP. A file in the clear is refused in product mode unless yubiotp.allowPlaintextImport is on. The secrets are sealed when the file is accepted, and the file is not kept. A row that cannot be imported is in skipped with the reason.
Mirrors POST /admin/hardware-tokens on the admin console.
Scope: admin:write.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
Request body
| Member | Type | Required | What it is |
|---|---|---|---|
csv |
string | yes | The CSV text. Columns are serial, modhex public id, hexadecimal private id and hexadecimal AES key. |
200: What was imported and what was skipped.
| Member | Type | Required | What it is |
|---|---|---|---|
imported |
list | yes | |
imported[].publicId |
string | yes | |
imported[].serial |
string | yes | |
message |
string | yes | |
ok |
boolean | yes | |
skipped |
list | yes | |
skipped[].serial |
string | yes | |
skipped[].why |
string | yes |
400: The file was refused whole; errors says why and nothing was imported.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
POST /admin-api/hardware-tokens/issue-ssh
issueUserSshCertificate
Issue an SSH user certificate to a person (#2071)
An administrator certifies one OpenSSH public key for the person username names, through the same core the person’s own POST /account-api/ssh/certificates uses: the principals are that person’s uid, or groups of theirs the realm offers as principals (pki.sshGroupPrincipals), each a separate decision of the access-control policy about THEM; none given is their uid. A security key’s attestation, with the challenge ssh-keygen was given, earns the longer lifetime; any other key the shorter one (pki.sshSoftwareLifetimeSeconds). The certificate is written onto the person’s entry (stsSshUserCertificate, the master copy) and recorded in the realm’s register before it is answered, and the audit row names the administrator. The certificate is public; it is answered once here and listed, without the line, by getUserSshCertificates. 404 for nobody of that name, 403 for a principal the policy refuses or a group that cannot be one, 400 for a key or lifetime that is refused, 503 when the realm has no SSH user CA or the certificate could not be recorded. Acting on a Security Administrator’s account needs admin:security.
Mirrors POST /admin/hardware-tokens on the admin console.
Scope: admin:write.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
Request body
| Member | Type | Required | What it is |
|---|---|---|---|
attestation |
string | Base64 of the OpenSSH security-key attestation file (ssh-keygen -O write-attestation=), for an sk-* key. |
|
attestationChallenge |
string | Base64 of the challenge ssh-keygen was given (-O challenge=), which the attestation signed; required with attestation. |
|
lifetimeS |
integer, or string | Certificate lifetime in seconds, or the console’s text of one; empty or absent is pki.sshSoftwareLifetimeSeconds. At most that for an ordinary key, and pki.sshHardwareLifetimeSeconds with verified hardware evidence. | |
principals |
list, or string | ||
principals[] |
string | ||
publicKey |
string | yes | One OpenSSH public key line; certificate keys and authorized-key options are not accepted. |
username |
string | yes | The person the certificate is issued to. |
200: The certificate, issued and written onto the person’s entry.
| Member | Type | Required | What it is |
|---|---|---|---|
certificate |
string | yes | The OpenSSH user certificate, in authorized-key format. |
hardwareBound |
boolean | yes | Whether verified hardware evidence covered the key. |
message |
string | yes | |
ok |
boolean | yes | |
pqcCertificate |
string | The ML-DSA certificate issued beside the classical one, where pki.sshUserCaPqcAlongsideClassical is on. | |
pqcSerialHex |
string | ||
serialHex |
string | yes | The serial, lower-case hex: what revokeUserSshCertificate names. |
username |
string | yes | Who it was issued to. |
validAfter |
integer | yes | Seconds since the epoch. |
validBefore |
integer | yes | Seconds since the epoch. |
400: The key, the principals or the lifetime was refused; nothing was issued.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
403: A principal the policy refused, or a group that cannot be one.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
404: Nobody of that name in this realm’s directory.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
503: The realm has no SSH user CA, or the certificate could not be recorded.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
POST /admin-api/hardware-tokens/lost
reportHardwareTokenLost
Report a hardware token lost (#1955)
Marks the token lost, then retires every credential on it by its kind: a passkey is removed from its holder’s entry (passing the last-way-in guard) and the sessions it signed in end, a certificate is revoked for keyCompromise; a CAEP credential-change goes for each. retired and notRetired list them; a credential not retired is still live. The token is named by its <vendor>/<serial> or by a credential on it: an OATH token by the key the PSKC import answered. 404 for no such token, 409 for one already lost. Acting on a Security Administrator’s token needs admin:security.
Mirrors POST /admin/hardware-tokens on the admin console.
Scope: admin:write.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
Request body
| Member | Type | Required | What it is |
|---|---|---|---|
key |
string | yes | The token: its <vendor>/<serial>, or the key the PSKC import answered for an OATH token on it (<vendor>/<serial>/<key id>). |
200: The token is lost, and what was retired.
| Member | Type | Required | What it is |
|---|---|---|---|
message |
string | yes | |
notRetired |
list | yes | |
notRetired[].kind |
string | yes | |
notRetired[].label |
string | ||
notRetired[].ok |
boolean | ||
notRetired[].ref |
string | yes | |
notRetired[].sessionsEnded |
integer | ||
notRetired[].why |
string | yes | Why it was not retired, in English; empty where it was. |
ok |
boolean | yes | |
retired |
list | yes | |
retired[].kind |
string | yes | |
retired[].label |
string | ||
retired[].ok |
boolean | ||
retired[].ref |
string | yes | |
retired[].sessionsEnded |
integer | ||
retired[].why |
string | yes | Why it was not retired, in English; empty where it was. |
token |
object | yes | |
token.attested |
boolean | yes | |
token.credentials |
list | yes | |
token.credentials[].addedAt |
string | yes | |
token.credentials[].algorithm |
string | The signature algorithm recorded for it, when the door that wrote it named one (an ML-DSA passkey’s COSE algorithm). Absent where the credential has none. | |
token.credentials[].holder |
string | yes | Who registered it, by username. |
token.credentials[].kind |
string | yes | fido, x509, or since #1955 P4 hotp or totp (an imported OATH token), and since P5 yubico-otp (later ssh, openpgp). |
token.credentials[].label |
string | yes | |
token.credentials[].ref |
string | yes | The credential id, the certificate’s serial in lower-case hex, or an imported OATH token’s inventory key. |
token.credentials[].retired |
boolean | yes | Whether the lost-key act retired it. |
token.credentials[].smartCard |
boolean | yes | Whether the evidence says its key is on a smart card. |
token.credentials[].source |
string | yes | The evidence source it was recorded from. |
token.evidenceSources |
list | yes | Where its serial came from: fido-enterprise-attestation, piv-attestation, vendor-import, pskc-import, yubiotp-import, ssh-security-key-attestation. |
token.evidenceSources[] |
string | ||
token.firmware |
string | yes | |
token.formFactor |
string | yes | |
token.holder |
string | yes | Who holds it, by username; empty for an entry since deleted. |
token.key |
string | yes | <vendor>/<serial>, what reportHardwareTokenLost names. |
token.lostAt |
string | yes | |
token.lostBy |
string | yes | |
token.model |
string | yes | |
token.registeredAt |
string | yes | |
token.serial |
string | yes | |
token.status |
string | yes | active or lost. |
token.updatedAt |
string | yes | |
token.vendor |
string | yes |
400: The operation was refused; errors says why and nothing changed.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
404: No such token in this realm.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
409: The token was already reported lost.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
GET /admin-api/hardware-tokens/oath
getOathTokens
The realm’s imported OATH tokens (#1955)
Directory → Hardware tokens’ OATH tab: tokens, one page of the HOTP and TOTP tokens administrators imported from vendors’ PSKC seed files (RFC 6030) — vendor, serial, key id, kind, digits, status (unassigned, assigned, retired) and who holds it — newest first, with paging. capped as getHardwareTokens has it. No secret is ever in this answer.
Mirrors GET /admin/hardware-tokens on the admin console.
Scope: admin:read.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
q |
query | string | A serial, matched exactly, or a username for the tokens assigned to that person; empty for every token. | |
status |
query | one of empty, unassigned, assigned, retired |
unassigned, assigned or retired; empty for all three. |
|
page |
query | integer | Which page; a page past the end answers the last one. | |
per |
query | integer | Rows per page, 50 by default and at most 300. | |
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
200: The page of tokens.
| Member | Type | Required | What it is |
|---|---|---|---|
capped |
boolean | yes | |
paging |
object | yes | |
paging.firstRow |
integer | ||
paging.lastRow |
integer | ||
paging.noun |
string | ||
paging.page |
integer | ||
paging.pages |
integer | ||
paging.param |
string | ||
paging.perPage |
integer | ||
paging.total |
integer | ||
q |
string | yes | |
status |
string | yes | |
tokens |
list | yes | |
tokens[].algorithm |
string | yes | The HMAC: SHA1, SHA256 or SHA512. |
tokens[].assignedAt |
string | yes | |
tokens[].assignedVia |
string | yes | api, console or claim (the person took it on the portal). |
tokens[].digits |
integer | yes | |
tokens[].holder |
string | yes | Who it is assigned to, by username; empty while unassigned. |
tokens[].importedAt |
string | yes | |
tokens[].importedBy |
string | yes | |
tokens[].issuer |
string | yes | |
tokens[].key |
string | yes | <vendor>/<serial>/<key id>, what assignOathToken and removeOathToken name. |
tokens[].keyId |
string | yes | The key’s Id in the seed file. |
tokens[].kind |
string | yes | hotp or totp. |
tokens[].model |
string | yes | |
tokens[].period |
integer | yes | A TOTP token’s time step in seconds; 0 for HOTP. |
tokens[].protection |
string | yes | How the seed file protected it: none, pre-shared or pbe. |
tokens[].retiredAt |
string | yes | |
tokens[].serial |
string | yes | The device serial the seed file’s DeviceInfo names: what is printed on the token, and what a person claims it by. |
tokens[].status |
string | yes | unassigned, assigned or retired (its hardware token was reported lost). |
tokens[].vendor |
string | yes |
POST /admin-api/hardware-tokens/recover-key
recoverEscrowedPivKey
Recover a person’s escrowed PIV key-management key (#1955)
Answers the escrowed private key of username’s piv-key-management certificate serial (piv.keyEscrow), so mail encrypted to it can be decrypted after the card is lost. Admin Write is not enough: the access-control policy decides it (resource piv-key-escrow, action recover-key), and the built-in policy permits a caller holding PIV_KEY_RECOVERY, a member of the group roles.pivKeyRecoveryGroup names. Audited (piv-escrow.recover) and told to the person over CAEP. Sent with Cache-Control: no-store.
Mirrors POST /admin/hardware-tokens on the admin console.
Scope: admin:write.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
Request body
| Member | Type | Required | What it is |
|---|---|---|---|
serial |
string | yes | The escrowed certificate’s serial, hex. |
username |
string | yes | The person whose key it is. |
200: The escrowed key and its certificate.
| Member | Type | Required | What it is |
|---|---|---|---|
certificatePem |
string | yes | |
chainPem |
list | yes | |
chainPem[] |
string | ||
message |
string | yes | |
ok |
boolean | yes | |
privateKeyPem |
string | yes | The escrowed private key, PEM. |
serialHex |
string | yes |
400: The request was refused.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
401: The caller signed in longer ago than account.recentAuthMinutes allows for a recovery (RFC 9470 insufficient_user_authentication, with max_age): sign in again and resend.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
403: The access-control policy did not permit the recovery.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
404: No escrowed key is held for that certificate of that person.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
503: The escrowed key could not be opened.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
POST /admin-api/hardware-tokens/remove-oath
removeOathToken
Remove an unassigned OATH token from the inventory (#1955)
Removes a token imported by mistake, or a retired one. An assigned token is refused (409): it is retired by reporting its hardware token lost (reportHardwareTokenLost), which also takes the secret off its holder’s entry. 404 for no such token.
Mirrors POST /admin/hardware-tokens on the admin console.
Scope: admin:write.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
Request body
| Member | Type | Required | What it is |
|---|---|---|---|
key |
string | yes | The token, <vendor>/<serial>/<key id>. |
200: The token is removed.
| Member | Type | Required | What it is |
|---|---|---|---|
key |
string | yes | |
message |
string | yes | |
ok |
boolean | yes |
400: The operation was refused; errors says why and nothing changed.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
404: No such token in this realm’s inventory.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
409: The token is assigned.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
POST /admin-api/hardware-tokens/remove-yubiotp
removeYubiOtp
Remove an unassigned YubiKey OTP from the inventory (#1955)
Removes a YubiKey OTP imported by mistake. An assigned one is refused (409): report the hardware token lost, which also takes the secret off its holder’s entry. 404 for no such serial.
Mirrors POST /admin/hardware-tokens on the admin console.
Scope: admin:write.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
Request body
| Member | Type | Required | What it is |
|---|---|---|---|
serial |
string | yes | The token’s serial. |
200: The token is removed.
| Member | Type | Required | What it is |
|---|---|---|---|
message |
string | yes | |
ok |
boolean | yes | |
serial |
string | yes |
400: The operation was refused; errors says why and nothing changed.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
404: No such serial in this realm’s inventory.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
409: The token is assigned.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
POST /admin-api/hardware-tokens/revoke-ssh
revokeUserSshCertificate
Revoke a person’s SSH user certificate
Revokes the SSH user certificate serial of username and rebuilds the realm’s OpenSSH KRL, which lists it until it expires. The serial must be that person’s. 404 for nobody of that name or a serial that is not theirs. Acting on a Security Administrator’s certificate needs admin:security.
Mirrors POST /admin/hardware-tokens on the admin console.
Scope: admin:write.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
Request body
| Member | Type | Required | What it is |
|---|---|---|---|
serial |
string | yes | The certificate’s serial, hex. |
username |
string | yes | The person whose certificate it is. |
200: The certificate is revoked.
| Member | Type | Required | What it is |
|---|---|---|---|
message |
string | yes | |
ok |
boolean | yes | |
serialHex |
string | yes |
400: The request was refused.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
404: Nobody of that name, or no certificate of theirs with that serial.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
503: The revocation could not be recorded.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
GET /admin-api/hardware-tokens/ssh-certificates
getUserSshCertificates
A person’s SSH user certificates
The SSH user certificates issued to username that have not expired, newest first, revoked ones marked: serial, key type and fingerprint, principals, validity, whether hardware evidence covered the key, and which authority signed it. Never a key; revoking one is revokeUserSshCertificate.
Mirrors GET /admin/hardware-tokens on the admin console.
Scope: admin:read.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
username |
query | string | yes | The person whose SSH certificates to list. |
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
200: The certificates.
| Member | Type | Required | What it is |
|---|---|---|---|
certificates |
list | yes | |
certificates[].authority |
string | yes | classical, or ssh-mldsa-65 for a certificate the ML-DSA authority signed. |
certificates[].hardwareBound |
boolean | yes | Whether verified hardware evidence covered the key. |
certificates[].issuedAt |
string | yes | |
certificates[].keyFingerprint |
string | yes | The certified key’s SHA256 fingerprint. |
certificates[].keyType |
string | yes | The certified key’s OpenSSH type. |
certificates[].notAfter |
string | yes | |
certificates[].principals |
list | yes | |
certificates[].principals[] |
string | ||
certificates[].revoked |
boolean | yes | |
certificates[].revokedAt |
string | yes | When it was revoked; empty for one that was not. |
certificates[].serialHex |
string | yes | The serial, lower-case hex: what revokeUserSshCertificate names. |
username |
string | yes |
POST /admin-api/hardware-tokens/ykval-client-add
addYkvalClient
Create a YK-VAL client (#1955)
Creates a client that may call GET and POST /wsapi/2.0/verify. id is 1 to 16 digits. The HMAC-SHA1 key is in key and is shown once; it is not logged. The endpoint itself stays off until yubiotp.ykval is on.
Mirrors POST /admin/hardware-tokens on the admin console.
Scope: admin:write.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
Request body
| Member | Type | Required | What it is |
|---|---|---|---|
id |
string | yes | The client id, 1 to 16 digits. |
200: The client is created and its key is shown once.
| Member | Type | Required | What it is |
|---|---|---|---|
id |
string | yes | |
key |
string | yes | The HMAC-SHA1 key, base64, shown once. |
message |
string | yes | |
ok |
boolean | yes |
400: The id was refused; errors says why.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
POST /admin-api/hardware-tokens/ykval-client-remove
removeYkvalClient
Remove a YK-VAL client (#1955)
Removes a YK-VAL client. 404 for no such id.
Mirrors POST /admin/hardware-tokens on the admin console.
Scope: admin:write.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
Request body
| Member | Type | Required | What it is |
|---|---|---|---|
id |
string | yes | The client id. |
200: The client is removed.
| Member | Type | Required | What it is |
|---|---|---|---|
id |
string | yes | |
message |
string | yes | |
ok |
boolean | yes |
404: No such client.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
GET /admin-api/hardware-tokens/yubiotp
getYubiOtpTokens
The realm’s imported YubiKey OTPs (#2071)
Directory → Hardware tokens’ YubiKey OTP tab: tokens, one page of the YubiKey OTPs administrators imported from a CSV — serial, public identity, status (unassigned, assigned, retired) and who holds it — newest first, with paging. q naming a person answers the tokens on THEIR ENTRY (stsYubiOtpToken, the master copy), which is what a person’s YubiKey OTP sub-tab lists; no search walks the directory. capped as getHardwareTokens has it. No key is ever in this answer.
Mirrors GET /admin/hardware-tokens on the admin console.
Scope: admin:read.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
q |
query | string | A serial, matched exactly, or a username for the YubiKey OTPs on that person’s entry; empty for every token. | |
status |
query | one of empty, unassigned, assigned, retired |
unassigned, assigned or retired; empty for all three. |
|
page |
query | integer | Which page; a page past the end answers the last one. | |
per |
query | integer | Rows per page, 50 by default and at most 300. | |
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
200: The page of tokens.
| Member | Type | Required | What it is |
|---|---|---|---|
capped |
boolean | yes | |
paging |
object | yes | |
paging.firstRow |
integer | ||
paging.lastRow |
integer | ||
paging.noun |
string | ||
paging.page |
integer | ||
paging.pages |
integer | ||
paging.param |
string | ||
paging.perPage |
integer | ||
paging.total |
integer | ||
q |
string | yes | |
status |
string | yes | |
tokens |
list | yes | |
tokens[].assignedAt |
string | yes | |
tokens[].holder |
string | yes | Who it is assigned to, by username; empty while unassigned. |
tokens[].importedAt |
string | yes | |
tokens[].publicId |
string | yes | The modhex public identity the key types first. |
tokens[].retiredAt |
string | yes | |
tokens[].serial |
string | yes | The serial printed on the YubiKey: what assignYubiOtp and removeYubiOtp name. |
tokens[].status |
string | yes | unassigned, assigned or retired (its hardware token was reported lost, or its holder gave it up). |
GET /admin-api/openpgp
getOpenPgpKeys
One person’s OpenPGP key and mail encryption (#1955)
Everything Directory → OpenPGP keys draws: with user, that person’s registered OpenPGP key, their outstanding registration challenge, their Web Key Directory publication, their S/MIME certificate and how mail to them is encrypted; and the realm’s Web Key Directory switch and domains.
Mirrors GET /admin/openpgp on the admin console.
Scope: admin:read.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
user |
query | string | The person whose OpenPGP key, publication and mail encryption to draw; empty for the realm’s Web Key Directory alone. | |
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
200: The view.
| Member | Type | Required | What it is |
|---|---|---|---|
found |
boolean | yes | Whether user names a person of this realm. |
person |
object, or null | yes | |
person.challenge |
object, or null | yes | The person’s outstanding registration challenge (#1955): the text to sign with gpg --clearsign. |
person.challenge.expiresAt |
string | yes | When it lapses, ISO 8601. |
person.challenge.text |
string | yes | |
person.key |
object, or null | yes | The person’s registered OpenPGP public key (#1955). |
person.key.algorithm |
string | yes | The primary key’s algorithm, as openpgp.js names it (ed25519, eddsaLegacy ed25519Legacy, ecdsa nistP256, rsaEncryptSign 4096). |
person.key.armored |
string | yes | The public key, ASCII-armored. |
person.key.created |
string | yes | When the key was made, ISO 8601. |
person.key.encryption |
string | yes | The encryption key’s algorithm; empty for a key with none valid when registered. |
person.key.expiresAt |
string | yes | When it expires, ISO 8601; empty for never. |
person.key.fingerprint |
string | yes | The fingerprint, lower-case hex: 40 characters for a v4 key, 64 for a v6 one. |
person.key.registeredAt |
string | yes | When it was registered, ISO 8601. |
person.key.registeredVia |
string | yes | Where: portal or api. |
person.key.userIds |
list | yes | The user ids that carried the entry’s address when it was registered. |
person.key.userIds[] |
string | ||
person.key.version |
integer | yes | The key version, 4 or 6. |
person.mail |
string | yes | The address on the person’s entry. |
person.mailEncryption |
object | yes | How mail to the person is encrypted (#1955). |
person.mailEncryption.choice |
string | yes | none, openpgp or smime. |
person.mailEncryption.openpgpUsable |
boolean | yes | Whether the registered OpenPGP key has an encryption key valid now. |
person.mailEncryption.smimeCertificate |
object, or null | yes | |
person.mailEncryption.smimeCertificate.serial |
string | yes | |
person.mailEncryption.smimeCertificate.subject |
string | yes | |
person.mailEncryption.smimeProblem |
string | yes | Why no S/MIME certificate on the entry can receive, in English; empty otherwise. |
person.mailEncryption.smimeUsable |
boolean | yes | Whether the person’s userSMIMECertificate holds a certificate that can receive now. |
person.username |
string | yes | |
person.wkd |
object | yes | The person’s Web Key Directory publication (#1955). |
person.wkd.domainServed |
boolean | yes | Whether the domain of the person’s address is one the realm’s directory serves. |
person.wkd.enabled |
boolean | yes | Whether the realm answers the Web Key Directory (openpgp.wkd). |
person.wkd.hash |
string | yes | The hashed local part of the person’s address, z-base-32. |
person.wkd.optedIn |
boolean | yes | Whether the person chose to publish their key. |
person.wkd.published |
boolean | yes | Whether it is answered now: a key, the choice, the realm’s switch and a domain the realm serves. |
person.wkd.url |
string | yes | The advanced method’s URL for the address; empty without one. |
user |
string | yes | The person asked about; empty for none. |
wkd |
object | yes | The realm’s Web Key Directory: its switch and the domains it serves. |
wkd.domains |
list | yes | |
wkd.domains[] |
string | ||
wkd.enabled |
boolean | yes |
POST /admin-api/openpgp/challenge
issueOpenPgpChallenge
Issue a person an OpenPGP registration challenge (#1955)
A challenge for user to sign with gpg --clearsign (on a YubiKey OpenPGP card the card signs), replacing any earlier one, good for openpgp.challengeLifetimeS. Hand it to the person; their signature is what registerOpenPgpKey takes. Refused for a person with no mail address (STS-OPENPGP-0006).
Mirrors POST /admin/openpgp on the admin console.
Scope: admin:write.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
Request body
| Member | Type | Required | What it is |
|---|---|---|---|
user |
string | yes | The person, by username. |
200: Done: the sentence, and the person as they now are.
| Member | Type | Required | What it is |
|---|---|---|---|
challenge |
object, or null | yes | The person’s outstanding registration challenge (#1955): the text to sign with gpg --clearsign. |
challenge.expiresAt |
string | yes | When it lapses, ISO 8601. |
challenge.text |
string | yes | |
message |
string | yes | |
ok |
boolean | yes | |
view |
object | yes | |
view.found |
boolean | yes | Whether user names a person of this realm. |
view.person |
object, or null | yes | |
view.person.challenge |
object, or null | yes | The person’s outstanding registration challenge (#1955): the text to sign with gpg --clearsign. |
view.person.challenge.expiresAt |
string | yes | When it lapses, ISO 8601. |
view.person.challenge.text |
string | yes | |
view.person.key |
object, or null | yes | The person’s registered OpenPGP public key (#1955). |
view.person.key.algorithm |
string | yes | The primary key’s algorithm, as openpgp.js names it (ed25519, eddsaLegacy ed25519Legacy, ecdsa nistP256, rsaEncryptSign 4096). |
view.person.key.armored |
string | yes | The public key, ASCII-armored. |
view.person.key.created |
string | yes | When the key was made, ISO 8601. |
view.person.key.encryption |
string | yes | The encryption key’s algorithm; empty for a key with none valid when registered. |
view.person.key.expiresAt |
string | yes | When it expires, ISO 8601; empty for never. |
view.person.key.fingerprint |
string | yes | The fingerprint, lower-case hex: 40 characters for a v4 key, 64 for a v6 one. |
view.person.key.registeredAt |
string | yes | When it was registered, ISO 8601. |
view.person.key.registeredVia |
string | yes | Where: portal or api. |
view.person.key.userIds |
list | yes | The user ids that carried the entry’s address when it was registered. |
view.person.key.userIds[] |
string | ||
view.person.key.version |
integer | yes | The key version, 4 or 6. |
view.person.mail |
string | yes | The address on the person’s entry. |
view.person.mailEncryption |
object | yes | How mail to the person is encrypted (#1955). |
view.person.mailEncryption.choice |
string | yes | none, openpgp or smime. |
view.person.mailEncryption.openpgpUsable |
boolean | yes | Whether the registered OpenPGP key has an encryption key valid now. |
view.person.mailEncryption.smimeCertificate |
object, or null | yes | |
view.person.mailEncryption.smimeCertificate.serial |
string | yes | |
view.person.mailEncryption.smimeCertificate.subject |
string | yes | |
view.person.mailEncryption.smimeProblem |
string | yes | Why no S/MIME certificate on the entry can receive, in English; empty otherwise. |
view.person.mailEncryption.smimeUsable |
boolean | yes | Whether the person’s userSMIMECertificate holds a certificate that can receive now. |
view.person.username |
string | yes | |
view.person.wkd |
object | yes | The person’s Web Key Directory publication (#1955). |
view.person.wkd.domainServed |
boolean | yes | Whether the domain of the person’s address is one the realm’s directory serves. |
view.person.wkd.enabled |
boolean | yes | Whether the realm answers the Web Key Directory (openpgp.wkd). |
view.person.wkd.hash |
string | yes | The hashed local part of the person’s address, z-base-32. |
view.person.wkd.optedIn |
boolean | yes | Whether the person chose to publish their key. |
view.person.wkd.published |
boolean | yes | Whether it is answered now: a key, the choice, the realm’s switch and a domain the realm serves. |
view.person.wkd.url |
string | yes | The advanced method’s URL for the address; empty without one. |
view.user |
string | yes | The person asked about; empty for none. |
view.wkd |
object | yes | The realm’s Web Key Directory: its switch and the domains it serves. |
view.wkd.domains |
list | yes | |
view.wkd.domains[] |
string | ||
view.wkd.enabled |
boolean | yes |
400: The operation was refused; errors says why and nothing changed.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
404: No such person in this realm.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
500: The act verified but could not be written, or threw.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
POST /admin-api/openpgp/mail-encryption
setMailEncryption
Set how mail to a person is encrypted (#1955)
choice: none, openpgp (their key must have an encryption key valid now) or smime (their userSMIMECertificate must hold a certificate that can receive).
Mirrors POST /admin/openpgp on the admin console.
Scope: admin:write.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
Request body
| Member | Type | Required | What it is |
|---|---|---|---|
choice |
string | yes | none, openpgp or smime. |
user |
string | yes | The person, by username. |
200: Done: the sentence, and the person as they now are.
| Member | Type | Required | What it is |
|---|---|---|---|
challenge |
object, or null | yes | The person’s outstanding registration challenge (#1955): the text to sign with gpg --clearsign. |
challenge.expiresAt |
string | yes | When it lapses, ISO 8601. |
challenge.text |
string | yes | |
message |
string | yes | |
ok |
boolean | yes | |
view |
object | yes | |
view.found |
boolean | yes | Whether user names a person of this realm. |
view.person |
object, or null | yes | |
view.person.challenge |
object, or null | yes | The person’s outstanding registration challenge (#1955): the text to sign with gpg --clearsign. |
view.person.challenge.expiresAt |
string | yes | When it lapses, ISO 8601. |
view.person.challenge.text |
string | yes | |
view.person.key |
object, or null | yes | The person’s registered OpenPGP public key (#1955). |
view.person.key.algorithm |
string | yes | The primary key’s algorithm, as openpgp.js names it (ed25519, eddsaLegacy ed25519Legacy, ecdsa nistP256, rsaEncryptSign 4096). |
view.person.key.armored |
string | yes | The public key, ASCII-armored. |
view.person.key.created |
string | yes | When the key was made, ISO 8601. |
view.person.key.encryption |
string | yes | The encryption key’s algorithm; empty for a key with none valid when registered. |
view.person.key.expiresAt |
string | yes | When it expires, ISO 8601; empty for never. |
view.person.key.fingerprint |
string | yes | The fingerprint, lower-case hex: 40 characters for a v4 key, 64 for a v6 one. |
view.person.key.registeredAt |
string | yes | When it was registered, ISO 8601. |
view.person.key.registeredVia |
string | yes | Where: portal or api. |
view.person.key.userIds |
list | yes | The user ids that carried the entry’s address when it was registered. |
view.person.key.userIds[] |
string | ||
view.person.key.version |
integer | yes | The key version, 4 or 6. |
view.person.mail |
string | yes | The address on the person’s entry. |
view.person.mailEncryption |
object | yes | How mail to the person is encrypted (#1955). |
view.person.mailEncryption.choice |
string | yes | none, openpgp or smime. |
view.person.mailEncryption.openpgpUsable |
boolean | yes | Whether the registered OpenPGP key has an encryption key valid now. |
view.person.mailEncryption.smimeCertificate |
object, or null | yes | |
view.person.mailEncryption.smimeCertificate.serial |
string | yes | |
view.person.mailEncryption.smimeCertificate.subject |
string | yes | |
view.person.mailEncryption.smimeProblem |
string | yes | Why no S/MIME certificate on the entry can receive, in English; empty otherwise. |
view.person.mailEncryption.smimeUsable |
boolean | yes | Whether the person’s userSMIMECertificate holds a certificate that can receive now. |
view.person.username |
string | yes | |
view.person.wkd |
object | yes | The person’s Web Key Directory publication (#1955). |
view.person.wkd.domainServed |
boolean | yes | Whether the domain of the person’s address is one the realm’s directory serves. |
view.person.wkd.enabled |
boolean | yes | Whether the realm answers the Web Key Directory (openpgp.wkd). |
view.person.wkd.hash |
string | yes | The hashed local part of the person’s address, z-base-32. |
view.person.wkd.optedIn |
boolean | yes | Whether the person chose to publish their key. |
view.person.wkd.published |
boolean | yes | Whether it is answered now: a key, the choice, the realm’s switch and a domain the realm serves. |
view.person.wkd.url |
string | yes | The advanced method’s URL for the address; empty without one. |
view.user |
string | yes | The person asked about; empty for none. |
view.wkd |
object | yes | The realm’s Web Key Directory: its switch and the domains it serves. |
view.wkd.domains |
list | yes | |
view.wkd.domains[] |
string | ||
view.wkd.enabled |
boolean | yes |
400: The operation was refused; errors says why and nothing changed.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
404: No such person in this realm.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
500: The act verified but could not be written, or threw.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
POST /admin-api/openpgp/publish
publishOpenPgpKey
Publish a person’s OpenPGP key in the Web Key Directory (#1955)
The person’s choice, made for them: the Web Key Directory answers their key for their address, where the realm turned it on (openpgp.wkd) and serves the address’s domain.
Mirrors POST /admin/openpgp on the admin console.
Scope: admin:write.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
Request body
| Member | Type | Required | What it is |
|---|---|---|---|
user |
string | yes | The person, by username. |
200: Done: the sentence, and the person as they now are.
| Member | Type | Required | What it is |
|---|---|---|---|
challenge |
object, or null | yes | The person’s outstanding registration challenge (#1955): the text to sign with gpg --clearsign. |
challenge.expiresAt |
string | yes | When it lapses, ISO 8601. |
challenge.text |
string | yes | |
message |
string | yes | |
ok |
boolean | yes | |
view |
object | yes | |
view.found |
boolean | yes | Whether user names a person of this realm. |
view.person |
object, or null | yes | |
view.person.challenge |
object, or null | yes | The person’s outstanding registration challenge (#1955): the text to sign with gpg --clearsign. |
view.person.challenge.expiresAt |
string | yes | When it lapses, ISO 8601. |
view.person.challenge.text |
string | yes | |
view.person.key |
object, or null | yes | The person’s registered OpenPGP public key (#1955). |
view.person.key.algorithm |
string | yes | The primary key’s algorithm, as openpgp.js names it (ed25519, eddsaLegacy ed25519Legacy, ecdsa nistP256, rsaEncryptSign 4096). |
view.person.key.armored |
string | yes | The public key, ASCII-armored. |
view.person.key.created |
string | yes | When the key was made, ISO 8601. |
view.person.key.encryption |
string | yes | The encryption key’s algorithm; empty for a key with none valid when registered. |
view.person.key.expiresAt |
string | yes | When it expires, ISO 8601; empty for never. |
view.person.key.fingerprint |
string | yes | The fingerprint, lower-case hex: 40 characters for a v4 key, 64 for a v6 one. |
view.person.key.registeredAt |
string | yes | When it was registered, ISO 8601. |
view.person.key.registeredVia |
string | yes | Where: portal or api. |
view.person.key.userIds |
list | yes | The user ids that carried the entry’s address when it was registered. |
view.person.key.userIds[] |
string | ||
view.person.key.version |
integer | yes | The key version, 4 or 6. |
view.person.mail |
string | yes | The address on the person’s entry. |
view.person.mailEncryption |
object | yes | How mail to the person is encrypted (#1955). |
view.person.mailEncryption.choice |
string | yes | none, openpgp or smime. |
view.person.mailEncryption.openpgpUsable |
boolean | yes | Whether the registered OpenPGP key has an encryption key valid now. |
view.person.mailEncryption.smimeCertificate |
object, or null | yes | |
view.person.mailEncryption.smimeCertificate.serial |
string | yes | |
view.person.mailEncryption.smimeCertificate.subject |
string | yes | |
view.person.mailEncryption.smimeProblem |
string | yes | Why no S/MIME certificate on the entry can receive, in English; empty otherwise. |
view.person.mailEncryption.smimeUsable |
boolean | yes | Whether the person’s userSMIMECertificate holds a certificate that can receive now. |
view.person.username |
string | yes | |
view.person.wkd |
object | yes | The person’s Web Key Directory publication (#1955). |
view.person.wkd.domainServed |
boolean | yes | Whether the domain of the person’s address is one the realm’s directory serves. |
view.person.wkd.enabled |
boolean | yes | Whether the realm answers the Web Key Directory (openpgp.wkd). |
view.person.wkd.hash |
string | yes | The hashed local part of the person’s address, z-base-32. |
view.person.wkd.optedIn |
boolean | yes | Whether the person chose to publish their key. |
view.person.wkd.published |
boolean | yes | Whether it is answered now: a key, the choice, the realm’s switch and a domain the realm serves. |
view.person.wkd.url |
string | yes | The advanced method’s URL for the address; empty without one. |
view.user |
string | yes | The person asked about; empty for none. |
view.wkd |
object | yes | The realm’s Web Key Directory: its switch and the domains it serves. |
view.wkd.domains |
list | yes | |
view.wkd.domains[] |
string | ||
view.wkd.enabled |
boolean | yes |
400: The operation was refused; errors says why and nothing changed.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
404: No such person in this realm.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
500: The act verified but could not be written, or threw.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
POST /admin-api/openpgp/register
registerOpenPgpKey
Register a person’s OpenPGP key on their proof (#1955)
publicKey (one armored public key) and signed (the person’s outstanding challenge signed with gpg --clearsign): the key must be neither revoked nor expired, use an algorithm openpgp.algorithms names (RFC 9980 composites ML-DSA-65+Ed25519, ML-DSA-87+Ed448, ML-KEM-768+X25519 and ML-KEM-1024+X448, then Ed25519, Ed448, ECDSA and ECDH on P-256 to P-521, X25519, X448, and RSA of openpgp.minRsaBits), carry a valid user id with the entry’s address, and have signed exactly the challenge since it was issued. openpgp.pqcOnly narrows a new registration to the composites. It replaces any key the person had.
Mirrors POST /admin/openpgp on the admin console.
Scope: admin:write.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
Request body
| Member | Type | Required | What it is |
|---|---|---|---|
publicKey |
string | yes | The armored OpenPGP public key. |
signed |
string | yes | The person’s challenge, signed with gpg –clearsign. |
user |
string | yes | The person, by username. |
200: Done: the sentence, and the person as they now are.
| Member | Type | Required | What it is |
|---|---|---|---|
challenge |
object, or null | yes | The person’s outstanding registration challenge (#1955): the text to sign with gpg --clearsign. |
challenge.expiresAt |
string | yes | When it lapses, ISO 8601. |
challenge.text |
string | yes | |
message |
string | yes | |
ok |
boolean | yes | |
view |
object | yes | |
view.found |
boolean | yes | Whether user names a person of this realm. |
view.person |
object, or null | yes | |
view.person.challenge |
object, or null | yes | The person’s outstanding registration challenge (#1955): the text to sign with gpg --clearsign. |
view.person.challenge.expiresAt |
string | yes | When it lapses, ISO 8601. |
view.person.challenge.text |
string | yes | |
view.person.key |
object, or null | yes | The person’s registered OpenPGP public key (#1955). |
view.person.key.algorithm |
string | yes | The primary key’s algorithm, as openpgp.js names it (ed25519, eddsaLegacy ed25519Legacy, ecdsa nistP256, rsaEncryptSign 4096). |
view.person.key.armored |
string | yes | The public key, ASCII-armored. |
view.person.key.created |
string | yes | When the key was made, ISO 8601. |
view.person.key.encryption |
string | yes | The encryption key’s algorithm; empty for a key with none valid when registered. |
view.person.key.expiresAt |
string | yes | When it expires, ISO 8601; empty for never. |
view.person.key.fingerprint |
string | yes | The fingerprint, lower-case hex: 40 characters for a v4 key, 64 for a v6 one. |
view.person.key.registeredAt |
string | yes | When it was registered, ISO 8601. |
view.person.key.registeredVia |
string | yes | Where: portal or api. |
view.person.key.userIds |
list | yes | The user ids that carried the entry’s address when it was registered. |
view.person.key.userIds[] |
string | ||
view.person.key.version |
integer | yes | The key version, 4 or 6. |
view.person.mail |
string | yes | The address on the person’s entry. |
view.person.mailEncryption |
object | yes | How mail to the person is encrypted (#1955). |
view.person.mailEncryption.choice |
string | yes | none, openpgp or smime. |
view.person.mailEncryption.openpgpUsable |
boolean | yes | Whether the registered OpenPGP key has an encryption key valid now. |
view.person.mailEncryption.smimeCertificate |
object, or null | yes | |
view.person.mailEncryption.smimeCertificate.serial |
string | yes | |
view.person.mailEncryption.smimeCertificate.subject |
string | yes | |
view.person.mailEncryption.smimeProblem |
string | yes | Why no S/MIME certificate on the entry can receive, in English; empty otherwise. |
view.person.mailEncryption.smimeUsable |
boolean | yes | Whether the person’s userSMIMECertificate holds a certificate that can receive now. |
view.person.username |
string | yes | |
view.person.wkd |
object | yes | The person’s Web Key Directory publication (#1955). |
view.person.wkd.domainServed |
boolean | yes | Whether the domain of the person’s address is one the realm’s directory serves. |
view.person.wkd.enabled |
boolean | yes | Whether the realm answers the Web Key Directory (openpgp.wkd). |
view.person.wkd.hash |
string | yes | The hashed local part of the person’s address, z-base-32. |
view.person.wkd.optedIn |
boolean | yes | Whether the person chose to publish their key. |
view.person.wkd.published |
boolean | yes | Whether it is answered now: a key, the choice, the realm’s switch and a domain the realm serves. |
view.person.wkd.url |
string | yes | The advanced method’s URL for the address; empty without one. |
view.user |
string | yes | The person asked about; empty for none. |
view.wkd |
object | yes | The realm’s Web Key Directory: its switch and the domains it serves. |
view.wkd.domains |
list | yes | |
view.wkd.domains[] |
string | ||
view.wkd.enabled |
boolean | yes |
400: The operation was refused; errors says why and nothing changed.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
404: No such person in this realm.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
500: The act verified but could not be written, or threw.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
POST /admin-api/openpgp/remove
removeOpenPgpKey
Remove a person’s OpenPGP key (#1955)
Removes the key from user’s entry, and so from the Web Key Directory; a mail choice of openpgp becomes none.
Mirrors POST /admin/openpgp on the admin console.
Scope: admin:write.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
Request body
| Member | Type | Required | What it is |
|---|---|---|---|
user |
string | yes | The person, by username. |
200: Done: the sentence, and the person as they now are.
| Member | Type | Required | What it is |
|---|---|---|---|
challenge |
object, or null | yes | The person’s outstanding registration challenge (#1955): the text to sign with gpg --clearsign. |
challenge.expiresAt |
string | yes | When it lapses, ISO 8601. |
challenge.text |
string | yes | |
message |
string | yes | |
ok |
boolean | yes | |
view |
object | yes | |
view.found |
boolean | yes | Whether user names a person of this realm. |
view.person |
object, or null | yes | |
view.person.challenge |
object, or null | yes | The person’s outstanding registration challenge (#1955): the text to sign with gpg --clearsign. |
view.person.challenge.expiresAt |
string | yes | When it lapses, ISO 8601. |
view.person.challenge.text |
string | yes | |
view.person.key |
object, or null | yes | The person’s registered OpenPGP public key (#1955). |
view.person.key.algorithm |
string | yes | The primary key’s algorithm, as openpgp.js names it (ed25519, eddsaLegacy ed25519Legacy, ecdsa nistP256, rsaEncryptSign 4096). |
view.person.key.armored |
string | yes | The public key, ASCII-armored. |
view.person.key.created |
string | yes | When the key was made, ISO 8601. |
view.person.key.encryption |
string | yes | The encryption key’s algorithm; empty for a key with none valid when registered. |
view.person.key.expiresAt |
string | yes | When it expires, ISO 8601; empty for never. |
view.person.key.fingerprint |
string | yes | The fingerprint, lower-case hex: 40 characters for a v4 key, 64 for a v6 one. |
view.person.key.registeredAt |
string | yes | When it was registered, ISO 8601. |
view.person.key.registeredVia |
string | yes | Where: portal or api. |
view.person.key.userIds |
list | yes | The user ids that carried the entry’s address when it was registered. |
view.person.key.userIds[] |
string | ||
view.person.key.version |
integer | yes | The key version, 4 or 6. |
view.person.mail |
string | yes | The address on the person’s entry. |
view.person.mailEncryption |
object | yes | How mail to the person is encrypted (#1955). |
view.person.mailEncryption.choice |
string | yes | none, openpgp or smime. |
view.person.mailEncryption.openpgpUsable |
boolean | yes | Whether the registered OpenPGP key has an encryption key valid now. |
view.person.mailEncryption.smimeCertificate |
object, or null | yes | |
view.person.mailEncryption.smimeCertificate.serial |
string | yes | |
view.person.mailEncryption.smimeCertificate.subject |
string | yes | |
view.person.mailEncryption.smimeProblem |
string | yes | Why no S/MIME certificate on the entry can receive, in English; empty otherwise. |
view.person.mailEncryption.smimeUsable |
boolean | yes | Whether the person’s userSMIMECertificate holds a certificate that can receive now. |
view.person.username |
string | yes | |
view.person.wkd |
object | yes | The person’s Web Key Directory publication (#1955). |
view.person.wkd.domainServed |
boolean | yes | Whether the domain of the person’s address is one the realm’s directory serves. |
view.person.wkd.enabled |
boolean | yes | Whether the realm answers the Web Key Directory (openpgp.wkd). |
view.person.wkd.hash |
string | yes | The hashed local part of the person’s address, z-base-32. |
view.person.wkd.optedIn |
boolean | yes | Whether the person chose to publish their key. |
view.person.wkd.published |
boolean | yes | Whether it is answered now: a key, the choice, the realm’s switch and a domain the realm serves. |
view.person.wkd.url |
string | yes | The advanced method’s URL for the address; empty without one. |
view.user |
string | yes | The person asked about; empty for none. |
view.wkd |
object | yes | The realm’s Web Key Directory: its switch and the domains it serves. |
view.wkd.domains |
list | yes | |
view.wkd.domains[] |
string | ||
view.wkd.enabled |
boolean | yes |
400: The operation was refused; errors says why and nothing changed.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
404: No such person in this realm.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
500: The act verified but could not be written, or threw.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
POST /admin-api/openpgp/smime
setSmimeCertificate
Set a person’s S/MIME certificate (#1955)
certificate: one PEM or base64 DER certificate that can receive S/MIME now and names the entry’s address; empty removes it (and a mail choice of smime becomes none).
Mirrors POST /admin/openpgp on the admin console.
Scope: admin:write.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
Request body
| Member | Type | Required | What it is |
|---|---|---|---|
certificate |
string | yes | The certificate; empty removes it. |
user |
string | yes | The person, by username. |
200: Done: the sentence, and the person as they now are.
| Member | Type | Required | What it is |
|---|---|---|---|
challenge |
object, or null | yes | The person’s outstanding registration challenge (#1955): the text to sign with gpg --clearsign. |
challenge.expiresAt |
string | yes | When it lapses, ISO 8601. |
challenge.text |
string | yes | |
message |
string | yes | |
ok |
boolean | yes | |
view |
object | yes | |
view.found |
boolean | yes | Whether user names a person of this realm. |
view.person |
object, or null | yes | |
view.person.challenge |
object, or null | yes | The person’s outstanding registration challenge (#1955): the text to sign with gpg --clearsign. |
view.person.challenge.expiresAt |
string | yes | When it lapses, ISO 8601. |
view.person.challenge.text |
string | yes | |
view.person.key |
object, or null | yes | The person’s registered OpenPGP public key (#1955). |
view.person.key.algorithm |
string | yes | The primary key’s algorithm, as openpgp.js names it (ed25519, eddsaLegacy ed25519Legacy, ecdsa nistP256, rsaEncryptSign 4096). |
view.person.key.armored |
string | yes | The public key, ASCII-armored. |
view.person.key.created |
string | yes | When the key was made, ISO 8601. |
view.person.key.encryption |
string | yes | The encryption key’s algorithm; empty for a key with none valid when registered. |
view.person.key.expiresAt |
string | yes | When it expires, ISO 8601; empty for never. |
view.person.key.fingerprint |
string | yes | The fingerprint, lower-case hex: 40 characters for a v4 key, 64 for a v6 one. |
view.person.key.registeredAt |
string | yes | When it was registered, ISO 8601. |
view.person.key.registeredVia |
string | yes | Where: portal or api. |
view.person.key.userIds |
list | yes | The user ids that carried the entry’s address when it was registered. |
view.person.key.userIds[] |
string | ||
view.person.key.version |
integer | yes | The key version, 4 or 6. |
view.person.mail |
string | yes | The address on the person’s entry. |
view.person.mailEncryption |
object | yes | How mail to the person is encrypted (#1955). |
view.person.mailEncryption.choice |
string | yes | none, openpgp or smime. |
view.person.mailEncryption.openpgpUsable |
boolean | yes | Whether the registered OpenPGP key has an encryption key valid now. |
view.person.mailEncryption.smimeCertificate |
object, or null | yes | |
view.person.mailEncryption.smimeCertificate.serial |
string | yes | |
view.person.mailEncryption.smimeCertificate.subject |
string | yes | |
view.person.mailEncryption.smimeProblem |
string | yes | Why no S/MIME certificate on the entry can receive, in English; empty otherwise. |
view.person.mailEncryption.smimeUsable |
boolean | yes | Whether the person’s userSMIMECertificate holds a certificate that can receive now. |
view.person.username |
string | yes | |
view.person.wkd |
object | yes | The person’s Web Key Directory publication (#1955). |
view.person.wkd.domainServed |
boolean | yes | Whether the domain of the person’s address is one the realm’s directory serves. |
view.person.wkd.enabled |
boolean | yes | Whether the realm answers the Web Key Directory (openpgp.wkd). |
view.person.wkd.hash |
string | yes | The hashed local part of the person’s address, z-base-32. |
view.person.wkd.optedIn |
boolean | yes | Whether the person chose to publish their key. |
view.person.wkd.published |
boolean | yes | Whether it is answered now: a key, the choice, the realm’s switch and a domain the realm serves. |
view.person.wkd.url |
string | yes | The advanced method’s URL for the address; empty without one. |
view.user |
string | yes | The person asked about; empty for none. |
view.wkd |
object | yes | The realm’s Web Key Directory: its switch and the domains it serves. |
view.wkd.domains |
list | yes | |
view.wkd.domains[] |
string | ||
view.wkd.enabled |
boolean | yes |
400: The operation was refused; errors says why and nothing changed.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
404: No such person in this realm.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
500: The act verified but could not be written, or threw.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
POST /admin-api/openpgp/withdraw
withdrawOpenPgpKey
Stop publishing a person’s OpenPGP key (#1955)
The Web Key Directory answers nothing for the person’s address.
Mirrors POST /admin/openpgp on the admin console.
Scope: admin:write.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
Request body
| Member | Type | Required | What it is |
|---|---|---|---|
user |
string | yes | The person, by username. |
200: Done: the sentence, and the person as they now are.
| Member | Type | Required | What it is |
|---|---|---|---|
challenge |
object, or null | yes | The person’s outstanding registration challenge (#1955): the text to sign with gpg --clearsign. |
challenge.expiresAt |
string | yes | When it lapses, ISO 8601. |
challenge.text |
string | yes | |
message |
string | yes | |
ok |
boolean | yes | |
view |
object | yes | |
view.found |
boolean | yes | Whether user names a person of this realm. |
view.person |
object, or null | yes | |
view.person.challenge |
object, or null | yes | The person’s outstanding registration challenge (#1955): the text to sign with gpg --clearsign. |
view.person.challenge.expiresAt |
string | yes | When it lapses, ISO 8601. |
view.person.challenge.text |
string | yes | |
view.person.key |
object, or null | yes | The person’s registered OpenPGP public key (#1955). |
view.person.key.algorithm |
string | yes | The primary key’s algorithm, as openpgp.js names it (ed25519, eddsaLegacy ed25519Legacy, ecdsa nistP256, rsaEncryptSign 4096). |
view.person.key.armored |
string | yes | The public key, ASCII-armored. |
view.person.key.created |
string | yes | When the key was made, ISO 8601. |
view.person.key.encryption |
string | yes | The encryption key’s algorithm; empty for a key with none valid when registered. |
view.person.key.expiresAt |
string | yes | When it expires, ISO 8601; empty for never. |
view.person.key.fingerprint |
string | yes | The fingerprint, lower-case hex: 40 characters for a v4 key, 64 for a v6 one. |
view.person.key.registeredAt |
string | yes | When it was registered, ISO 8601. |
view.person.key.registeredVia |
string | yes | Where: portal or api. |
view.person.key.userIds |
list | yes | The user ids that carried the entry’s address when it was registered. |
view.person.key.userIds[] |
string | ||
view.person.key.version |
integer | yes | The key version, 4 or 6. |
view.person.mail |
string | yes | The address on the person’s entry. |
view.person.mailEncryption |
object | yes | How mail to the person is encrypted (#1955). |
view.person.mailEncryption.choice |
string | yes | none, openpgp or smime. |
view.person.mailEncryption.openpgpUsable |
boolean | yes | Whether the registered OpenPGP key has an encryption key valid now. |
view.person.mailEncryption.smimeCertificate |
object, or null | yes | |
view.person.mailEncryption.smimeCertificate.serial |
string | yes | |
view.person.mailEncryption.smimeCertificate.subject |
string | yes | |
view.person.mailEncryption.smimeProblem |
string | yes | Why no S/MIME certificate on the entry can receive, in English; empty otherwise. |
view.person.mailEncryption.smimeUsable |
boolean | yes | Whether the person’s userSMIMECertificate holds a certificate that can receive now. |
view.person.username |
string | yes | |
view.person.wkd |
object | yes | The person’s Web Key Directory publication (#1955). |
view.person.wkd.domainServed |
boolean | yes | Whether the domain of the person’s address is one the realm’s directory serves. |
view.person.wkd.enabled |
boolean | yes | Whether the realm answers the Web Key Directory (openpgp.wkd). |
view.person.wkd.hash |
string | yes | The hashed local part of the person’s address, z-base-32. |
view.person.wkd.optedIn |
boolean | yes | Whether the person chose to publish their key. |
view.person.wkd.published |
boolean | yes | Whether it is answered now: a key, the choice, the realm’s switch and a domain the realm serves. |
view.person.wkd.url |
string | yes | The advanced method’s URL for the address; empty without one. |
view.user |
string | yes | The person asked about; empty for none. |
view.wkd |
object | yes | The realm’s Web Key Directory: its switch and the domains it serves. |
view.wkd.domains |
list | yes | |
view.wkd.domains[] |
string | ||
view.wkd.enabled |
boolean | yes |
400: The operation was refused; errors says why and nothing changed.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
404: No such person in this realm.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
500: The act verified but could not be written, or threw.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
messages |
list | One entry per sentence of errors, null where a sentence has no catalog message (#2006). |
|
messages[] |
object, or null | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, a parameter that is words carried the same way. The page draws it in its own language and falls back to the English in errors. |
|
messages[].key |
string | yes | |
messages[].params |
map | ||
messages[].params.{key} |
object, or string, or number | A refusal’s sentence as a catalog message (#2006): its key in the refusals catalogs and its parameters, drawn by the page in its own language. |
|
messages[].params.{key}.key |
string | yes | |
messages[].params.{key}.params |
map | ||
messages[].params.{key}.params.{key} |
string, or number | ||
ok |
boolean |
GET /admin-api/post-login-activities
getPostLoginActivities
Started post-login activities in this realm (#1111)
Everything Directory → Post-login activities draws: started, every post-login activity started in the realm, newest first — id, activity, groups (their DNs; empty for the whole realm), intervalDays, maxMails, perRun, state (running, paused, ended), who started and last changed it and when — each with run, what its scheduler job has done (passes over the population, read, mailed, notDue, heldBack, refused, lastRunAt, lastSummary); the activities an administrator may start (pqc-passkey-migration, pqc-mail-encryption, piv-reissue; #2009), the limits of the numbers and of groups, whether a mail transport is mailAvailable, whether any post-login profile is activityEnabled for the passkey migration (the POLICY asking anybody by itself; a running started activity asks its own people at sign-in whatever it says, #1126) and enabledActivities, every activity some profile’s own switch turns on, the job and how often it runs; and groupChooser, the start form’s group search (#1123): chosen (the groups asked, each resolved — found false for a name this realm does not have) and pane, one page of the groups whose cn or DN contains groupq, 20 from groupfrom (a stale offset is clamped to the first page), the chosen ones left out (total, matched, from, shown: each dn and cn). The search reads the directory’s group index, never its people. Who was mailed and where each person stands is the reports application’s postLoginProgress source, not this operation.
Mirrors GET /admin/post-login-activities on the admin console.
Scope: admin:read.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
groupq |
query | string | The group search: a substring of a group’s cn or DN, case-insensitive; empty for every group. | |
groupfrom |
query | string | Where the page of the group search starts. | |
groups |
query | string | The groups chosen so far, cns or DNs separated by ; (a DN’s commas stay intact; a ; inside a DN value is escaped, \;); resolved into groupChooser.chosen and left out of the search. At most 4096 characters, which is as much as one request line can carry; fifty ordinary group names fit. |
|
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
200: The started activities and the chooser.
| Member | Type | Required | What it is |
|---|---|---|---|
activities |
list | ||
activities[] |
string | ||
activityEnabled |
boolean | ||
enabledActivities |
list | ||
enabledActivities[] |
string | ||
everyMinutes |
number | ||
groupChooser |
object | ||
groupChooser.chosen |
list | ||
groupChooser.chosen[].asked |
string | ||
groupChooser.chosen[].cn |
string, or null | ||
groupChooser.chosen[].dn |
string, or null | ||
groupChooser.chosen[].found |
boolean | ||
groupChooser.pane |
object | ||
groupChooser.pane.from |
number | ||
groupChooser.pane.matched |
number | ||
groupChooser.pane.shown |
list | ||
groupChooser.pane.shown[].cn |
string, or null | ||
groupChooser.pane.shown[].dn |
string | ||
groupChooser.pane.total |
number | ||
groupChooser.search |
string | ||
job |
string | ||
limits |
object | ||
limits.groups |
object | ||
limits.groups.max |
number | ||
limits.intervalDays |
object | ||
limits.intervalDays.dflt |
number | ||
limits.intervalDays.max |
number | ||
limits.intervalDays.min |
number | ||
limits.maxMails |
object | ||
limits.maxMails.dflt |
number | ||
limits.maxMails.max |
number | ||
limits.maxMails.min |
number | ||
limits.perRun |
object | ||
limits.perRun.dflt |
number | ||
limits.perRun.max |
number | ||
limits.perRun.min |
number | ||
mailAvailable |
boolean | ||
realm |
string | ||
started |
list | ||
started[].activity |
string | ||
started[].changedAt |
number, or string, or null | ||
started[].changedBy |
string, or null | ||
started[].endedAt |
number, or string, or null | ||
started[].groups |
list | ||
started[].groups[] |
string | ||
started[].id |
string | ||
started[].intervalDays |
number | ||
started[].maxMails |
number | ||
started[].perRun |
number | ||
started[].run |
object | ||
started[].run.cursor |
string | ||
started[].run.heldBack |
number | ||
started[].run.lastRunAt |
string, or null | ||
started[].run.lastSummary |
string | ||
started[].run.mailed |
number | ||
started[].run.notDue |
number | ||
started[].run.passes |
number | ||
started[].run.read |
number | ||
started[].run.refused |
number | ||
started[].startedAt |
number, or string, or null | ||
started[].startedBy |
string, or null | ||
started[].state |
string |
POST /admin-api/post-login-activities/end
endPostLoginActivity
End a started post-login activity
A running or paused post-login activity ends for good: it asks nobody at sign-in and mails nobody again, and what it did stays on the page and on each person’s progress row. STS-AUTHN-0491 for no such started activity or one already ended.
Mirrors POST /admin/post-login-activities on the admin console.
Scope: admin:write.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
Request body
| Member | Type | Required | What it is |
|---|---|---|---|
id |
string | yes | The started activity. |
200: The post-login activity ended.
| Member | Type | Required | What it is |
|---|---|---|---|
errors |
list | ||
errors[] |
string | ||
message |
string | ||
ok |
boolean | yes | |
started |
object | ||
started.activity |
string | ||
started.changedAt |
number, or string, or null | ||
started.changedBy |
string, or null | ||
started.endedAt |
number, or string, or null | ||
started.groups |
list | ||
started.groups[] |
string | ||
started.id |
string | ||
started.intervalDays |
number | ||
started.maxMails |
number | ||
started.perRun |
number | ||
started.startedAt |
number, or string, or null | ||
started.startedBy |
string, or null | ||
started.state |
string |
400: The operation was refused; errors says why and nothing changed.
| Member | Type | Required | What it is |
|---|---|---|---|
errors |
list | ||
errors[] |
string | ||
message |
string | ||
ok |
boolean | yes | |
started |
object | ||
started.activity |
string | ||
started.changedAt |
number, or string, or null | ||
started.changedBy |
string, or null | ||
started.endedAt |
number, or string, or null | ||
started.groups |
list | ||
started.groups[] |
string | ||
started.id |
string | ||
started.intervalDays |
number | ||
started.maxMails |
number | ||
started.perRun |
number | ||
started.startedAt |
number, or string, or null | ||
started.startedBy |
string, or null | ||
started.state |
string |
POST /admin-api/post-login-activities/pause
pausePostLoginActivity
Pause a started post-login activity
A running post-login activity stops asking at sign-in and stops mailing, within the slice a run is in; its cursor is kept. A person the post-login policy itself switches on is still asked. STS-AUTHN-0491 for no such started activity or one that is not running.
Mirrors POST /admin/post-login-activities on the admin console.
Scope: admin:write.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
Request body
| Member | Type | Required | What it is |
|---|---|---|---|
id |
string | yes | The started activity. |
200: The post-login activity paused.
| Member | Type | Required | What it is |
|---|---|---|---|
errors |
list | ||
errors[] |
string | ||
message |
string | ||
ok |
boolean | yes | |
started |
object | ||
started.activity |
string | ||
started.changedAt |
number, or string, or null | ||
started.changedBy |
string, or null | ||
started.endedAt |
number, or string, or null | ||
started.groups |
list | ||
started.groups[] |
string | ||
started.id |
string | ||
started.intervalDays |
number | ||
started.maxMails |
number | ||
started.perRun |
number | ||
started.startedAt |
number, or string, or null | ||
started.startedBy |
string, or null | ||
started.state |
string |
400: The operation was refused; errors says why and nothing changed.
| Member | Type | Required | What it is |
|---|---|---|---|
errors |
list | ||
errors[] |
string | ||
message |
string | ||
ok |
boolean | yes | |
started |
object | ||
started.activity |
string | ||
started.changedAt |
number, or string, or null | ||
started.changedBy |
string, or null | ||
started.endedAt |
number, or string, or null | ||
started.groups |
list | ||
started.groups[] |
string | ||
started.id |
string | ||
started.intervalDays |
number | ||
started.maxMails |
number | ||
started.perRun |
number | ||
started.startedAt |
number, or string, or null | ||
started.startedBy |
string, or null | ||
started.state |
string |
POST /admin-api/post-login-activities/resume
resumePostLoginActivity
Resume a paused post-login activity
A paused post-login activity asks at sign-in again, and mails again from where its cursor stopped. STS-AUTHN-0491 for no such started activity or one that is not paused.
Mirrors POST /admin/post-login-activities on the admin console.
Scope: admin:write.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
Request body
| Member | Type | Required | What it is |
|---|---|---|---|
id |
string | yes | The started activity. |
200: The post-login activity running again.
| Member | Type | Required | What it is |
|---|---|---|---|
errors |
list | ||
errors[] |
string | ||
message |
string | ||
ok |
boolean | yes | |
started |
object | ||
started.activity |
string | ||
started.changedAt |
number, or string, or null | ||
started.changedBy |
string, or null | ||
started.endedAt |
number, or string, or null | ||
started.groups |
list | ||
started.groups[] |
string | ||
started.id |
string | ||
started.intervalDays |
number | ||
started.maxMails |
number | ||
started.perRun |
number | ||
started.startedAt |
number, or string, or null | ||
started.startedBy |
string, or null | ||
started.state |
string |
400: The operation was refused; errors says why and nothing changed.
| Member | Type | Required | What it is |
|---|---|---|---|
errors |
list | ||
errors[] |
string | ||
message |
string | ||
ok |
boolean | yes | |
started |
object | ||
started.activity |
string | ||
started.changedAt |
number, or string, or null | ||
started.changedBy |
string, or null | ||
started.endedAt |
number, or string, or null | ||
started.groups |
list | ||
started.groups[] |
string | ||
started.id |
string | ||
started.intervalDays |
number | ||
started.maxMails |
number | ||
started.perRun |
number | ||
started.startedAt |
number, or string, or null | ||
started.startedBy |
string, or null | ||
started.state |
string |
POST /admin-api/post-login-activities/start
startPostLoginActivity
Start a post-login activity
Starts a post-login activity in this realm. AT SIGN-IN, from now, each person it reaches is asked to do it (#1126), under the rules of the post-login profile that reaches them — even where that profile is off, unless it is a NAMED profile that is off, which excludes them. BY MAIL, from the next run of the scheduler job post-login.activity-mail (every few minutes, or Run now on Monitoring → Scheduler) each person the activity is DUE for — it reaches them, the realm can make what it asks for, they have not done it — is mailed at the address on their entry a reminder to sign in, at most maxMails times and never twice inside intervalDays. activity is which one (#2009): pqc-passkey-migration (an ML-DSA passkey, the default), pqc-mail-encryption (an ML-KEM OpenPGP key or S/MIME certificate) or piv-reissue (a new PIV slot certificate from a post-quantum issuer, or before one expires), each mailed with its own message and asked under its own block of the post-login profile’s rules. The mail’s one link opens the sign-in page; it carries no credential, and the post-login activity does the work. groups narrows the people to the members of those groups: their UNION, a person in two of them read and mailed once; none means everybody in the realm. A group this realm does not have is refused (STS-AUTHN-0530); a second started activity for the same activity and the same groups is refused (STS-AUTHN-0492); bad values are STS-AUTHN-0490.
Mirrors POST /admin/post-login-activities on the admin console.
Scope: admin:write.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
Request body (optional)
| Member | Type | Required | What it is |
|---|---|---|---|
activity |
one of pqc-passkey-migration, pqc-mail-encryption, piv-reissue |
The post-login activity: pqc-passkey-migration (a post-quantum passkey, the default), pqc-mail-encryption (a post-quantum mail-encryption key: OpenPGP or S/MIME) or piv-reissue (a new PIV slot certificate, #2009). |
|
groups |
list | Groups’ cns or DNs, the people being the union of their members; empty or absent for everybody in the realm. | |
groups[] |
string | ||
intervalDays |
integer | Days between two mails to one person (default 7). | |
maxMails |
integer | The most mails one person is sent (default 3). | |
perRun |
integer | People read per run of the job (default 1000). |
200: The post-login activity started.
| Member | Type | Required | What it is |
|---|---|---|---|
errors |
list | ||
errors[] |
string | ||
message |
string | ||
ok |
boolean | yes | |
started |
object | ||
started.activity |
string | ||
started.changedAt |
number, or string, or null | ||
started.changedBy |
string, or null | ||
started.endedAt |
number, or string, or null | ||
started.groups |
list | ||
started.groups[] |
string | ||
started.id |
string | ||
started.intervalDays |
number | ||
started.maxMails |
number | ||
started.perRun |
number | ||
started.startedAt |
number, or string, or null | ||
started.startedBy |
string, or null | ||
started.state |
string |
400: The operation was refused; errors says why and nothing changed.
| Member | Type | Required | What it is |
|---|---|---|---|
errors |
list | ||
errors[] |
string | ||
message |
string | ||
ok |
boolean | yes | |
started |
object | ||
started.activity |
string | ||
started.changedAt |
number, or string, or null | ||
started.changedBy |
string, or null | ||
started.endedAt |
number, or string, or null | ||
started.groups |
list | ||
started.groups[] |
string | ||
started.id |
string | ||
started.intervalDays |
number | ||
started.maxMails |
number | ||
started.perRun |
number | ||
started.startedAt |
number, or string, or null | ||
started.startedBy |
string, or null | ||
started.state |
string |
GET /admin-api/secret-destinations
getSecretDestinations
Where this realm pushes service accounts’ rotated passwords (#221)
Everything Directory → Secret destinations draws: each destination (an application entry declared for the secret-destination family) with its provider, payload, location, whether a write credential is set, and whether it is usable and why not; the providers and payloads offered, and what each provider’s credential is. NEVER a credential.
Mirrors GET /admin/secret-destinations on the admin console.
Scope: admin:read.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
q |
query | string | Narrows destinations to those whose name, identifier, DN or provider contains this, case-insensitively — the person page’s push destination search (#602). matched counts them. |
|
destinationsPage |
query | integer | Which page of destinations to return, answered by destinationsPaging (#313). |
|
per |
query | integer | Rows per page. Capped, like every list here. | |
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
200: The register.
| Member | Type | Required | What it is |
|---|---|---|---|
credentialShapes |
map | What each provider’s credential is. | |
credentialShapes.{key} |
string | ||
destinations |
list | ||
destinations[].credentialSet |
boolean | ||
destinations[].credentialShape |
string | ||
destinations[].id |
string | ||
destinations[].identifier |
string | ||
destinations[].location |
object | ||
destinations[].location.caCertificates |
string | ||
destinations[].location.directory |
string | ||
destinations[].location.endpoint |
string | ||
destinations[].location.field |
string | ||
destinations[].location.mount |
string | ||
destinations[].location.payload |
string | ||
destinations[].location.project |
string | ||
destinations[].location.provider |
string | ||
destinations[].location.region |
string | ||
destinations[].name |
string | ||
destinations[].payload |
string | ||
destinations[].problems |
list | ||
destinations[].problems[] |
string | ||
destinations[].provider |
string | ||
destinations[].usable |
boolean | ||
destinationsPaging |
object | ||
destinationsPaging.firstRow |
integer | ||
destinationsPaging.lastRow |
integer | ||
destinationsPaging.noun |
string, or null | ||
destinationsPaging.page |
integer | ||
destinationsPaging.pages |
integer | ||
destinationsPaging.param |
string, or null | ||
destinationsPaging.perPage |
integer | ||
destinationsPaging.total |
integer | ||
family |
string | ||
fileAllowed |
boolean | ||
matched |
integer | ||
payloads |
list | ||
payloads[] |
string | ||
providers |
list | ||
providers[] |
string |
POST /admin-api/secret-destinations/add-destination
addSecretDestination
Add a secret push destination
Creates an application entry declared for the secret-destination family, with its location and its write credential (sealed, write-only). Refused for an unknown provider or payload, a missing location, a credential that is not its provider’s shape, a plain http address, or a file in product mode. Audited, without the credential.
Mirrors POST /admin/secret-destinations and POST /admin/secret-destinations/new on the admin console.
Scope: admin:write.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
Request body
| Member | Type | Required | What it is |
|---|---|---|---|
caCertificates |
string | vault: PEM certificates of the CA its listener chains to. | |
credential |
string | The WRITE credential, write-only: never returned, drawn or logged. aws: JSON {accessKeyId, secretAccessKey[, sessionToken]}; gcp: a service account key’s JSON; azure: JSON {tenantId, clientId, clientSecret}; vault: a token. Required for every provider but file. On a change, empty keeps the one set. | |
directory |
string | file: the absolute directory a secret name is a file in. Required for file. | |
endpoint |
string | azure: the vault URL; vault: its address. https only. Required for azure and vault. | |
field |
string | vault, password payload: the field written; value when empty. | |
identifier |
string | yes | The destination’s application identifier (add only): the entry it is filed under in ou=applications. |
mount |
string | vault: the KV version 2 mount; secret when empty. | |
name |
string | What to call it on a page. | |
payload |
one of password, json |
password (the bare password) or json ({username, password, realm, rotatedAt}). | |
project |
string | gcp: the project a short secret name is in. | |
provider |
one of aws, gcp, azure, vault, file |
yes | aws, gcp, azure, vault, or file (development mode only). |
region |
string | aws: the region. Required for aws. |
200: The destination as the register now answers it.
| Member | Type | Required | What it is |
|---|---|---|---|
destination |
object | ||
destination.credentialSet |
boolean | ||
destination.credentialShape |
string | ||
destination.id |
string | ||
destination.identifier |
string | ||
destination.location |
object | ||
destination.location.caCertificates |
string | ||
destination.location.directory |
string | ||
destination.location.endpoint |
string | ||
destination.location.field |
string | ||
destination.location.mount |
string | ||
destination.location.payload |
string | ||
destination.location.project |
string | ||
destination.location.provider |
string | ||
destination.location.region |
string | ||
destination.name |
string | ||
destination.payload |
string | ||
destination.problems |
list | ||
destination.problems[] |
string | ||
destination.provider |
string | ||
destination.usable |
boolean | ||
errors |
list | ||
errors[] |
string | ||
message |
string | ||
ok |
boolean | yes | |
version |
number, or string, or null |
400: The operation was refused; errors says why and nothing changed.
| Member | Type | Required | What it is |
|---|---|---|---|
destination |
object | ||
destination.credentialSet |
boolean | ||
destination.credentialShape |
string | ||
destination.id |
string | ||
destination.identifier |
string | ||
destination.location |
object | ||
destination.location.caCertificates |
string | ||
destination.location.directory |
string | ||
destination.location.endpoint |
string | ||
destination.location.field |
string | ||
destination.location.mount |
string | ||
destination.location.payload |
string | ||
destination.location.project |
string | ||
destination.location.provider |
string | ||
destination.location.region |
string | ||
destination.name |
string | ||
destination.payload |
string | ||
destination.problems |
list | ||
destination.problems[] |
string | ||
destination.provider |
string | ||
destination.usable |
boolean | ||
errors |
list | ||
errors[] |
string | ||
message |
string | ||
ok |
boolean | yes | |
version |
number, or string, or null |
GET /admin-api/secret-destinations/new
getNewSecretDestinationForm
What a secret destination may be added with, and which of it is required
The create’s fields in createFields, each with required — identifier and provider are refused when empty — and, for a field required for some providers only, requiredWhen: the write credential for every provider but file, AWS’s region, Azure’s and Vault’s endpoint, the file provider’s directory. Every other field is optional. Plus the closed sets the form’s choices come from. It adds nothing: the create is POST /admin-api/secret-destinations/add-destination.
Mirrors GET /admin/secret-destinations/new on the admin console.
Scope: admin:read.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
200: The fields, which are required, and the choices.
| Member | Type | Required | What it is |
|---|---|---|---|
createFields |
list | ||
createFields[] |
object | One field of a directory object’s create (#1132): the name the create takes it under and whether the create refuses without it. A field is required exactly when the create refuses an empty or absent value; every other field is optional. | |
createFields[].name |
string | yes | |
createFields[].required |
boolean | yes | |
createFields[].requiredWhen |
object | A field required for some choices only: the create refuses without it when field holds one of values — * meaning any value at all, so two fields that go together each name the other — and is otherwise indifferent. required is false for such a field. |
|
createFields[].requiredWhen.field |
string | yes | |
createFields[].requiredWhen.values |
list | yes | |
createFields[].requiredWhen.values[] |
string | ||
credentialShapes |
map | ||
credentialShapes.{key} |
string | ||
fileAllowed |
boolean | ||
payloads |
list | ||
payloads[] |
string | ||
providers |
list | ||
providers[] |
string |
POST /admin-api/secret-destinations/remove-destination
removeSecretDestination
Remove a secret push destination
Deletes its application entry, credential and all. Nothing at the secrets manager changes. Audited.
Mirrors POST /admin/secret-destinations and POST /admin/secret-destinations/new on the admin console.
Scope: admin:write.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
Request body
| Member | Type | Required | What it is |
|---|---|---|---|
id |
string | yes | The destination: its entry’s DN, as the register answers it, or its identifier. |
200: What was removed.
| Member | Type | Required | What it is |
|---|---|---|---|
destination |
object | ||
destination.credentialSet |
boolean | ||
destination.credentialShape |
string | ||
destination.id |
string | ||
destination.identifier |
string | ||
destination.location |
object | ||
destination.location.caCertificates |
string | ||
destination.location.directory |
string | ||
destination.location.endpoint |
string | ||
destination.location.field |
string | ||
destination.location.mount |
string | ||
destination.location.payload |
string | ||
destination.location.project |
string | ||
destination.location.provider |
string | ||
destination.location.region |
string | ||
destination.name |
string | ||
destination.payload |
string | ||
destination.problems |
list | ||
destination.problems[] |
string | ||
destination.provider |
string | ||
destination.usable |
boolean | ||
errors |
list | ||
errors[] |
string | ||
message |
string | ||
ok |
boolean | yes | |
version |
number, or string, or null |
400: The operation was refused; errors says why and nothing changed.
| Member | Type | Required | What it is |
|---|---|---|---|
destination |
object | ||
destination.credentialSet |
boolean | ||
destination.credentialShape |
string | ||
destination.id |
string | ||
destination.identifier |
string | ||
destination.location |
object | ||
destination.location.caCertificates |
string | ||
destination.location.directory |
string | ||
destination.location.endpoint |
string | ||
destination.location.field |
string | ||
destination.location.mount |
string | ||
destination.location.payload |
string | ||
destination.location.project |
string | ||
destination.location.provider |
string | ||
destination.location.region |
string | ||
destination.name |
string | ||
destination.payload |
string | ||
destination.problems |
list | ||
destination.problems[] |
string | ||
destination.provider |
string | ||
destination.usable |
boolean | ||
errors |
list | ||
errors[] |
string | ||
message |
string | ||
ok |
boolean | yes | |
version |
number, or string, or null |
POST /admin-api/secret-destinations/test-push
testSecretDestination
Write a canary version to a test secret
Writes a random password nobody uses, as the destination’s payload, to secretName — which must already exist and must be kept for testing: a secret a service account’s rotation writes is refused. Proves the credential, the address and the secret. Audited.
Mirrors POST /admin/secret-destinations and POST /admin/secret-destinations/new on the admin console.
Scope: admin:write.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
Request body
| Member | Type | Required | What it is |
|---|---|---|---|
id |
string | yes | The destination: its entry’s DN, as the register answers it, or its identifier. |
secretName |
string | yes | The test secret. |
200: ok and the version the store answered, or a coded refusal.
| Member | Type | Required | What it is |
|---|---|---|---|
destination |
object | ||
destination.credentialSet |
boolean | ||
destination.credentialShape |
string | ||
destination.id |
string | ||
destination.identifier |
string | ||
destination.location |
object | ||
destination.location.caCertificates |
string | ||
destination.location.directory |
string | ||
destination.location.endpoint |
string | ||
destination.location.field |
string | ||
destination.location.mount |
string | ||
destination.location.payload |
string | ||
destination.location.project |
string | ||
destination.location.provider |
string | ||
destination.location.region |
string | ||
destination.name |
string | ||
destination.payload |
string | ||
destination.problems |
list | ||
destination.problems[] |
string | ||
destination.provider |
string | ||
destination.usable |
boolean | ||
errors |
list | ||
errors[] |
string | ||
message |
string | ||
ok |
boolean | yes | |
version |
number, or string, or null |
400: The operation was refused; errors says why and nothing changed.
| Member | Type | Required | What it is |
|---|---|---|---|
destination |
object | ||
destination.credentialSet |
boolean | ||
destination.credentialShape |
string | ||
destination.id |
string | ||
destination.identifier |
string | ||
destination.location |
object | ||
destination.location.caCertificates |
string | ||
destination.location.directory |
string | ||
destination.location.endpoint |
string | ||
destination.location.field |
string | ||
destination.location.mount |
string | ||
destination.location.payload |
string | ||
destination.location.project |
string | ||
destination.location.provider |
string | ||
destination.location.region |
string | ||
destination.name |
string | ||
destination.payload |
string | ||
destination.problems |
list | ||
destination.problems[] |
string | ||
destination.provider |
string | ||
destination.usable |
boolean | ||
errors |
list | ||
errors[] |
string | ||
message |
string | ||
ok |
boolean | yes | |
version |
number, or string, or null |
POST /admin-api/secret-destinations/update-destination
updateSecretDestination
Change a secret push destination
The members given replace the destination’s; the rest are kept, the credential included when none is given. Checked as add-destination is. Audited, without the credential.
Mirrors POST /admin/secret-destinations and POST /admin/secret-destinations/new on the admin console.
Scope: admin:write.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
Request body
| Member | Type | Required | What it is |
|---|---|---|---|
caCertificates |
string | vault: PEM certificates of the CA its listener chains to. | |
credential |
string | The WRITE credential, write-only: never returned, drawn or logged. aws: JSON {accessKeyId, secretAccessKey[, sessionToken]}; gcp: a service account key’s JSON; azure: JSON {tenantId, clientId, clientSecret}; vault: a token. On a change, empty keeps the one set. | |
directory |
string | file: the absolute directory a secret name is a file in. | |
endpoint |
string | azure: the vault URL; vault: its address. https only. | |
field |
string | vault, password payload: the field written; value when empty. | |
id |
string | yes | The destination: its entry’s DN, as the register answers it, or its identifier. |
mount |
string | vault: the KV version 2 mount; secret when empty. | |
name |
string | What to call it on a page. | |
payload |
one of password, json |
password (the bare password) or json ({username, password, realm, rotatedAt}). | |
project |
string | gcp: the project a short secret name is in. | |
provider |
one of aws, gcp, azure, vault, file |
aws, gcp, azure, vault, or file (development mode only). | |
region |
string | aws: the region. |
200: The destination as the register now answers it.
| Member | Type | Required | What it is |
|---|---|---|---|
destination |
object | ||
destination.credentialSet |
boolean | ||
destination.credentialShape |
string | ||
destination.id |
string | ||
destination.identifier |
string | ||
destination.location |
object | ||
destination.location.caCertificates |
string | ||
destination.location.directory |
string | ||
destination.location.endpoint |
string | ||
destination.location.field |
string | ||
destination.location.mount |
string | ||
destination.location.payload |
string | ||
destination.location.project |
string | ||
destination.location.provider |
string | ||
destination.location.region |
string | ||
destination.name |
string | ||
destination.payload |
string | ||
destination.problems |
list | ||
destination.problems[] |
string | ||
destination.provider |
string | ||
destination.usable |
boolean | ||
errors |
list | ||
errors[] |
string | ||
message |
string | ||
ok |
boolean | yes | |
version |
number, or string, or null |
400: The operation was refused; errors says why and nothing changed.
| Member | Type | Required | What it is |
|---|---|---|---|
destination |
object | ||
destination.credentialSet |
boolean | ||
destination.credentialShape |
string | ||
destination.id |
string | ||
destination.identifier |
string | ||
destination.location |
object | ||
destination.location.caCertificates |
string | ||
destination.location.directory |
string | ||
destination.location.endpoint |
string | ||
destination.location.field |
string | ||
destination.location.mount |
string | ||
destination.location.payload |
string | ||
destination.location.project |
string | ||
destination.location.provider |
string | ||
destination.location.region |
string | ||
destination.name |
string | ||
destination.payload |
string | ||
destination.problems |
list | ||
destination.problems[] |
string | ||
destination.provider |
string | ||
destination.usable |
boolean | ||
errors |
list | ||
errors[] |
string | ||
message |
string | ||
ok |
boolean | yes | |
version |
number, or string, or null |