{"openapi":"3.0.3","info":{"title":"Workforce Authority API","description":"This API authenticates via the OAuth authorization code flow to get a token tied to a specific user in the core\nsystem. The authorization is tied to the user's permissions in Workforce Authority.\nAll endpoints will check for the `Accept-Language` header to localize messages to the best of its ability.\nAll endpoints will respond with rate-limit headers:\n  * `X-RateLimit-Limit`: the number of requests allowed\n  * `X-RateLimit-Remaining`: the number of requests remaining before reaching the limit\n  * `X-RateLimit-Reset`: the number of seconds before the rate-limit resets\n\nWhen the rate limiter is unavailable, a request goes through without these headers, or, where the deployment is\nconfigured to refuse such requests, gets a Service Unavailable (`HTTP 503`).\nMost errors will result in a `4XX` class error and return error messages. However, in exceptional cases, any\nendpoint may result in an Internal Server Error (`HTTP 500`).\n","version":"11.0","license":{"name":"Workforce Authority License","url":"https://www.secureauth.com/legal-portal/"}},"components":{"headers":{"LocationHeader":{"description":"Suggested URL to load, usually the URL for an updated resource.\n","schema":{"type":"string","format":"url"}},"LinkHeader":{"description":"Link(s) to related resource(s), in the format defined by\n[RFC 5988](https://tools.ietf.org/html/rfc5988#section-5). This will include a link with relation type `next`\nto the next page, if there is a next page, and a link with relation type `prev` to the previous page, if there is a previous page.\n","schema":{"type":"string","example":"<https://example.com/resource?page_token={NEXT_TOKEN}>; rel=\"next\",\n<https://example.com/resource?page_token={PREV_TOKEN}>; rel=\"prev\"\n"}},"RetryAfterHeader":{"description":"When to try your next API call, in unix timestamp format.","schema":{"type":"integer","format":"uint64"}},"RetryAfterSecondsHeader":{"description":"How long to wait before retrying, in seconds.","schema":{"type":"integer","format":"uint32"}},"IdempotencyKeyHeader":{"description":"The Idempotency-Key the send used, the caller's or the one the core system generated.","schema":{"type":"string"}}},"responses":{"202-Accepted":{"description":"Accepted\nThe request was accepted and will be processed as soon as possible. This indicates an action that could take\nsome time to fully complete.\n","headers":{"Location":{"$ref":"#/components/headers/LocationHeader"}}},"204-NoContent":{"description":"No Content\nThe request has succeeded, but the client doesn't need to navigate away from its current page.\n"},"205-ResetContent":{"description":"Reset Content\nThis response indicates that the request was successful and the client should refresh their display to reflect\nthat. You may want to reload the associated resource or collection.\n"},"400-BadRequest":{"description":"Bad Request\nThe request was not properly formed. Either some required parameters were missing, or the request body was\nmalformed. The response will contain a machine-friendly `code` that indicates the general form of the error and\na more human-friendly `message` that has more specifics of the error.\n","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"$ref":"#/components/schemas/ErrorCode"},"message":{"type":"string","example":"Missing parameter: tenant_id"}},"additionalProperties":false}}}},"401-NotAuthorized":{"description":"Not Authorized\nThe authorization is either missing, invalid, or expired. Please get a new authorization token to proceed.\n"},"403-Forbidden":{"description":"Forbidden\nThe authorization token presented does not have sufficient privileges to perform the requested action.\n"},"404-NotFound":{"description":"Not Found\nOne or more of the requested resources could not be found. Make sure to check the resource identifiers and try\nagain.\n"},"409-Conflict":{"description":"Conflict\nAn operation was requested which conflicts with the current state of the resource.\n"},"415-UnsupportedMediaType":{"description":"Unsupported Media Type\nThe request was made with an unsupported media type. This API only accepts JSON request bodies.\n"},"422-UnprocessableEntity":{"description":"Unprocessable Entity\nWe could not process the request as given. This is due to the input not being accepted. Either a parameter is\nof the wrong type, or has a value not allowed by the system. The type of error will be contained in the\nresponse's `code` property in a machine-friendly format. A human-friendly array of messages will be available in\nthe `errors` property.\n","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"$ref":"#/components/schemas/ErrorCode"},"messages":{"type":"array","items":{"type":"string","example":"name must be present"}}},"additionalProperties":false}}}},"429-TooManyRequests":{"description":"Too Many requests\nYou have exceeded your rate limits. Please wait until `Retry-After` seconds have elapsed.\n","headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfterHeader"}}},"503-ServiceUnavailable":{"description":"Service Unavailable\nA service the request depends on was unavailable and the request was not completed. When\n`Retry-After` is present the wait is bounded; when it is absent the fault needs operator\nattention and retrying will not clear it. The `code` says which.\n`rate_limit_unavailable` means the rate-limit check could not run; wait out `Retry-After` and\nretry. It answers before any assertion is spent.\n","headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfterSecondsHeader"}},"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"$ref":"#/components/schemas/ErrorCode"},"message":{"type":"string"}},"additionalProperties":false}}}},"MessagingForbidden":{"description":"The token lacks the scope or the tenant role, or messaging is off for the tenant (`messaging_not_enabled`)."},"MessagingNotFound":{"description":"The tenant or the verification or template was not found. On a send, only an unknown tenant answers 404: an unknown template fails the send with `template_not_found`. `country_not_declared`: the template's language does not list that country.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingError"}}}},"MessagingConflict":{"description":"The resource is not in a state that allows the operation. `verification_not_pending`: the verification is no longer pending, or its send failed; `details.status` carries its status when known. `send_in_progress`: a check or resend reached a verification whose send is still queued, and nothing was checked or sent. A resend answered this way counts against none of the number's sends. `resend_in_progress`: another resend of this verification is still queued, and nothing was sent. Each retry counts against the number's send limit. Retry either one after `Retry-After` seconds. A check while only a resend is queued checks as usual. `country_decided`: SecureAuth has already handled the country, so it can't be withdrawn. `locale_removed`: the language was removed from the template; restore it first. `locale_is_default`: the default language can't be removed; make another language the default first. `template_exists`: the template already has that language. `template_disabled`: the template, or the version or language the request names, is disabled. A disabled template's name can't be used again.","headers":{"Idempotency-Key":{"$ref":"#/components/headers/IdempotencyKeyHeader"},"Retry-After":{"$ref":"#/components/headers/RetryAfterSecondsHeader"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingError"}}}},"MessagingUnprocessable":{"description":"The request was refused, for example `invalid_phone`, `invalid_code` (a `code` that breaks its channel's rule: 4 to 16 letters or digits for `sms`, 4 to 10 digits for `voice`), `malformed`, `channel_unsupported`, `template_required` (an `sms` send without a template) or `idempotency_key_reused`. With `malformed`, `details.field` names the field at fault when it is `client_reference` or `channel`. A `POST`, `PATCH` or `DELETE` takes its fields in the JSON body: once the body passes request validation, a query-string key its operation doesn't list answers `malformed`, with no details, before anything is sent or changed. A template operation can answer `template_not_approved` or, on a new template or version whose text has no `{{code}}`, `code_placeholder_missing`. A voice template write can answer `template_rule_violation`, with `details.rule` naming the rule the text breaks. `details` names the country, variable, value or rule at fault when known; the response never repeats a phone number or a code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingError"}}}},"MessagingTooManyRequests":{"description":"A rate limit was reached. Wait `Retry-After` seconds.","headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfterSecondsHeader"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingError"}}}},"MessagingBadGateway":{"description":"`provider_error`: the messaging service's provider failed the request. `upstream_auth_failed` and `upstream_error`: the messaging service refused the core system; retrying will not help until SecureAuth fixes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingError"}}}},"MessagingUnavailable":{"description":"The messaging service is unavailable, other template requests are in progress, the rate limits could not be checked, or a send or resend could not be queued. Retry later. Retry a send or resend with the same `Idempotency-Key`, which never sends a second code. When `Retry-After` is present, wait that many seconds first.","headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfterSecondsHeader"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingError"}}}},"MessagingVoiceTemplatesForbidden":{"description":"The token lacks the scope or the tenant role, or messaging is off for the tenant (`messaging_not_enabled`). `voice_templates_not_provisioned`, on a read or a check: voice templates are not enabled for the tenant's messaging account. Contact SecureAuth to turn them on. `voice_template_writes_not_provisioned`, on a write: the tenant's messaging account is not allowed to make that change, though it may still read. Contact SecureAuth to allow it. `voice_templates_self_service_off`, on a write: SecureAuth writes this tenant's voice templates, because it has not turned on `self_service` in the voice template settings. Contact SecureAuth to change a text. `voice_not_enabled`, on a test call: voice calls are not turned on for the tenant."},"AuthenticatedEntityAbilitiesResponse":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Abilities"}}}},"DirectoryCreateResponse":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectoryDetails"}}},"headers":{"Location":{"$ref":"#/components/headers/LocationHeader"}}},"DirectoryDetailsResponse":{"description":"OK","content":{"application/json":{"schema":{"type":"object","allOf":[{"$ref":"#/components/schemas/DirectoryDetails"},{"$ref":"#/components/schemas/RecordAbilities"}]}}}},"DirectoryListResponse":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","allOf":[{"$ref":"#/components/schemas/DirectorySummary"},{"$ref":"#/components/schemas/RecordAbilities"}]}}}}},"DirectoryStatusResponse":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectoryStatus"}}}},"DirectoryStatusAllClientsResponse":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DirectoryStatus"}}}}},"DirectoryUpdateResponse":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectoryDetails"}}},"headers":{"Location":{"$ref":"#/components/headers/LocationHeader"}}},"DomainListResponse":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","allOf":[{"$ref":"#/components/schemas/DomainSummary"},{"$ref":"#/components/schemas/RecordAbilities"}]}}}},"headers":{"Link":{"$ref":"#/components/headers/LinkHeader"}}},"EntitlementListResponse":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EntitlementDetails"}}}},"headers":{"Link":{"$ref":"#/components/headers/LinkHeader"}}},"RoleCreateResponse":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleDetails"}}},"headers":{"Location":{"$ref":"#/components/headers/LocationHeader"}}},"RoleDetailsResponse":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleDetailsWithAbilities"}}}},"RoleUpdateResponse":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleDetails"}}}},"SettingsResponse":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Friendly name of the tenant."},"flags":{"type":"array","items":{"$ref":"#/components/schemas/FlagSummary"}}}}}}},"SettingsGroupsResponse":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"groups":{"type":"object"}}}}}},"TenantCreateResponse":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantDetailsWithSettings"}}},"headers":{"Location":{"$ref":"#/components/headers/LocationHeader"}}},"TenantUpdateResponse":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantDetails"}}}},"TenantDetailsResponse":{"description":"OK","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/TenantDetails"},{"$ref":"#/components/schemas/RecordAbilities"}]}}}},"TotpResetResponse":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"seed":{"description":"Cryptographic seed for a Time-based One Time Password (TOTP)","type":"string","format":"base32","pattern":"^[A-Z2-7]{32}$","minLength":32,"maxLength":32,"example":"ARTE7UU6WKPWHO6BDYRWL4EHU2DRHPEA"},"uri":{"type":"string","format":"uri","example":"otpauth://totp/arculix.com:user@example.com?secret=ARTE7UU6WKPWHO6BDYRWL4EHU2DRHPEA&issuer=arculix.com"}},"additionalProperties":false}}}}},"schemas":{"UUID":{"type":"string","format":"uuid","minLength":36,"maxLength":36},"UUIDReadOnly":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"readOnly":true},"UUIDNullable":{"type":"string","format":"uuid","minLength":36,"maxLength":36,"nullable":true},"TenantBranding":{"type":"object","properties":{"background_color":{"$ref":"#/components/schemas/Color"},"idp_title":{"type":"string","nullable":true},"image_url":{"type":"string","format":"url","nullable":true},"login_title":{"type":"string","nullable":true},"primary_color":{"$ref":"#/components/schemas/Color"},"primary_text_color":{"$ref":"#/components/schemas/Color"},"primary_ui_color":{"$ref":"#/components/schemas/Color"},"secondary_text_color":{"$ref":"#/components/schemas/Color"},"secondary_ui_color":{"$ref":"#/components/schemas/Color"},"support_email":{"type":"string","format":"email","nullable":true},"warning_color":{"$ref":"#/components/schemas/Color"}},"additionalProperties":false,"nullable":true},"TenantSlug":{"type":"string","pattern":"^(?:[\\w-]{1,20}|[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12})$"},"MessagingError":{"type":"object","required":["code","message"],"additionalProperties":false,"properties":{"code":{"$ref":"#/components/schemas/ErrorCode"},"message":{"type":"string"},"details":{"type":"object","additionalProperties":false,"properties":{"status":{"type":"string"},"country":{"type":"string"},"limit":{"description":"The limit that was reached."},"variable":{"type":"string"},"value":{"type":"string"},"field":{"type":"string","description":"The request field at fault."},"rule":{"type":"string","description":"The voice text rule a voice template write breaks: `unsupported_locale`, `body_too_long`, `forbidden_character`, `unknown_variable`, `code_count`, `support_phone`, `url_or_email`, `written_number` or `keypad_or_callback`. The list can grow."},"renamed_to":{"allOf":[{"$ref":"#/components/schemas/MessagingTemplateName"}],"description":"With `template_not_found`: the template's current name, when the request named it by an old name. Writes take the current name only."}}}}},"MessagingClientReferenceFilter":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[!-~]+$","example":"order-20261124-0042"},"MessagingTemplateName":{"type":"string","description":"Lower-case letters, digits, `-` and `_`, starting with a letter or digit; 1 to 64 characters.","pattern":"^[a-z0-9][a-z0-9_-]{0,63}$","example":"jpmc-otp"},"MessagingLocale":{"type":"string","description":"A language (`en`) or a language and country (`en-SG`), in that case.","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$","example":"en"},"MessagingCountry":{"type":"string","description":"An upper-case ISO 3166-1 alpha-2 country code.","pattern":"^[A-Z]{2}$","example":"IN"},"MessagingTemplateBody":{"type":"string","minLength":1,"maxLength":1024,"description":"The message text, with at most 10 distinct `{{variable}}` placeholders, `{{code}}` among them. `{{code}}` is filled with the verification code. `{{code_length}}` is optional and filled with the code's number of characters, 4 to 16: `Your {{code_length}}-character code is {{code}}.` sends as `Your 8-character code is A7K29QXM.` Neither is ever declared. Every other variable must be declared in `variables` (a list of values) or in `variable_formats` (a number, a phone number or a time), never both. Segments count the code at 16 characters and `{{code_length}}` as `16`. A body without the exact token `{{code}}` answers 422 `code_placeholder_missing`. A version's body never changes."},"MessagingTemplateVariables":{"type":"object","description":"The values each declared variable may take: at most 9 variables, since `{{code}}` takes one of the body's 10 and is never declared, and 8 when the body also uses `{{code_length}}`; 1 to 20 values each, each value 1 to 32 characters. Declaring `code` or `code_length`, here or in `variable_formats`, answers 422 `malformed`. Approved together with the body.","maxProperties":9,"additionalProperties":{"type":"array","minItems":1,"maxItems":20,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":32}},"example":{"brand":["Chase","J.P. Morgan"]}},"MessagingVariableFormat":{"type":"object","additionalProperties":false,"required":["type"],"description":"How one variable's value is checked. `type` is `digits` (a number of `min_length` to `max_length` digits, both 1 to 3), `time` (a time of day written `HH:MM`) or `phone` (a phone number of `min_length` to `max_length` digits, both 7 to 15, country code included, with an optional leading `+` that doesn't count; nothing else, so no spaces, dashes, dots or parentheses). A version has at most one phone variable. A time variable comes from `params` (`source` `params`, the default) or is filled with the send time (`source` `send_time`), which needs `time_zone`. `digits` and `phone` refuse `pattern`, `source` and `time_zone`; `time` refuses `min_length` and `max_length`. A length from 1 to 15 outside its type's range answers 422 `malformed`; any other answers 400.","properties":{"type":{"type":"string","enum":["digits","time","phone"]},"min_length":{"type":"integer","minimum":1,"maximum":15,"description":"With `digits`, 1 to 3, defaults to 1. With `phone`, 7 to 15, defaults to 7."},"max_length":{"type":"integer","minimum":1,"maximum":15,"description":"Required with `digits`, 1 to 3. With `phone`, 7 to 15, defaults to 15."},"pattern":{"type":"string","enum":["HH:MM"],"description":"With `time`. Defaults to `HH:MM`."},"source":{"type":"string","enum":["params","send_time"],"description":"With `time`. Defaults to `params`."},"time_zone":{"type":"string","maxLength":64,"description":"With `send_time`, an IANA zone such as `Asia/Hong_Kong`. A version has one zone: every send-time variable in it uses the same one. The send time is in this zone, whatever the recipient's country."}},"example":{"type":"digits","max_length":3}},"MessagingVariableFormats":{"type":"object","description":"Per variable, how its value is checked. A variable is one of four kinds: declared values (listed in `variables`), digits, time, or phone. A digits, time or phone variable is not declared in `variables`. The messaging service refuses a format variable next to another variable. Before the variable it requires the start of the text, a space, or an opening bracket or quote; after it, the end of the text, a space, or closing punctuation (422 `malformed`, with `details.variable` naming the variable). Names are lowercase letters, digits and underscores; any other name answers 422 `malformed`, with `details.variable` set to it. The service counts sample values toward the message's segment cap: nines at the minimum and maximum length for digits (`9` and `999` at the default minimum), `23:59` for time, and for phone `min_length` nines and `+` followed by `max_length` nines (`9999999` and `+999999999999999` at the defaults). A version with a phone variable is created with a `phone_variable_default` warning. Some countries' rules forbid it: adding such a country, or creating such a version for one, answers 422 `country_rule_violation`. A send there uses another version that can send, and fails with `template_not_approved` when none can.","maxProperties":9,"additionalProperties":{"$ref":"#/components/schemas/MessagingVariableFormat"}},"MessagingTemplateCreateRequest":{"type":"object","additionalProperties":false,"required":["name","locale","body"],"properties":{"name":{"$ref":"#/components/schemas/MessagingTemplateName"},"locale":{"$ref":"#/components/schemas/MessagingLocale"},"body":{"$ref":"#/components/schemas/MessagingTemplateBody"},"countries":{"type":"array","description":"The countries this template will send to. Each gets its own approval. Any other country sends under the template's Other countries approval, unless it is regulated, or SecureAuth rejected it or put it on hold.","uniqueItems":true,"maxItems":250,"items":{"type":"string","pattern":"^[A-Z]{2}$"}},"variables":{"$ref":"#/components/schemas/MessagingTemplateVariables"},"variable_formats":{"$ref":"#/components/schemas/MessagingVariableFormats"}}},"MessagingTemplateVersionRequest":{"type":"object","additionalProperties":false,"required":["locale","body"],"properties":{"locale":{"$ref":"#/components/schemas/MessagingLocale"},"body":{"$ref":"#/components/schemas/MessagingTemplateBody"},"countries":{"type":"array","nullable":true,"description":"The countries this version sends to. Omit or send null to keep those of the version before. An empty list leaves only Other countries. Each listed country gets its own approval.","uniqueItems":true,"maxItems":250,"items":{"type":"string","pattern":"^[A-Z]{2}$"}},"variables":{"$ref":"#/components/schemas/MessagingTemplateVariables"},"variable_formats":{"$ref":"#/components/schemas/MessagingVariableFormats"}}},"MessagingTemplateCountryRequest":{"type":"object","additionalProperties":false,"required":["locale","country"],"properties":{"locale":{"$ref":"#/components/schemas/MessagingLocale"},"country":{"$ref":"#/components/schemas/MessagingCountry"}}},"MessagingTemplateUpdateRequest":{"type":"object","description":"Exactly one of `default_locale` and `name`; both or neither answers 400 `bad_request`.","additionalProperties":false,"minProperties":1,"maxProperties":1,"properties":{"default_locale":{"$ref":"#/components/schemas/MessagingLocale"},"name":{"$ref":"#/components/schemas/MessagingTemplateName"}}},"MessagingTemplatePublishRequest":{"type":"object","additionalProperties":false,"required":["locale","version"],"properties":{"locale":{"$ref":"#/components/schemas/MessagingLocale"},"version":{"type":"integer","minimum":1}}},"MessagingTemplateApproval":{"type":"object","additionalProperties":false,"required":["country","status","sender_id","notes","updated_at"],"properties":{"country":{"type":"string","description":"A country code, or `default` for countries without their own approval."},"status":{"type":"string","description":"`pending`, `approved` or `rejected`."},"sender_id":{"type":"string","nullable":true},"notes":{"type":"string","nullable":true},"updated_at":{"type":"string","format":"date-time"}}},"MessagingWarning":{"type":"object","additionalProperties":false,"required":["code","message"],"description":"A hint that never blocks the request. `template_renamed` means the request named the template by an old name; switch to the name the message gives. `phone_variable_default` means the new version has a phone variable, which sends whatever number each request gives to every country its default approval covers; the message says why that matters. Other codes may be added, so show or log an unknown one rather than fail.","properties":{"code":{"type":"string","example":"template_renamed"},"message":{"type":"string"}}},"MessagingTemplateVersion":{"type":"object","additionalProperties":false,"required":["name","locale","version","default_locale","body","variables","variable_formats","status","published","created_at","disabled_at","disabled_reason","approvals"],"properties":{"name":{"type":"string"},"locale":{"type":"string"},"version":{"type":"integer"},"default_locale":{"type":"string"},"body":{"type":"string"},"variables":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}},"variable_formats":{"type":"object","description":"The version's formats, with the messaging service's defaults filled in. A `type` other than `digits`, `time` or `phone`, or a length outside its type's range, can appear here if the service adds one later.","additionalProperties":{"type":"object","properties":{"type":{"type":"string"},"min_length":{"type":"integer"},"max_length":{"type":"integer"},"pattern":{"type":"string"},"source":{"type":"string"},"time_zone":{"type":"string"}}}},"status":{"type":"string","description":"`active` or `disabled`."},"published":{"type":"boolean","description":"Whether this is the version sends use for its locale."},"created_at":{"type":"string","format":"date-time"},"disabled_at":{"type":"string","format":"date-time","nullable":true},"disabled_reason":{"type":"string","nullable":true},"approvals":{"type":"array","items":{"$ref":"#/components/schemas/MessagingTemplateApproval"}},"warnings":{"type":"array","description":"Only when the SMS provider gave the new version any.","items":{"$ref":"#/components/schemas/MessagingWarning"}}}},"MessagingTemplatePublication":{"type":"object","additionalProperties":false,"required":["name","locale","version","published_at"],"properties":{"name":{"type":"string"},"locale":{"type":"string"},"version":{"type":"integer"},"published_at":{"type":"string","format":"date-time"}}},"MessagingCountryList":{"type":"object","additionalProperties":false,"required":["countries"],"properties":{"countries":{"type":"array","items":{"$ref":"#/components/schemas/MessagingCountryProfile"}}}},"MessagingCountryProfile":{"type":"object","additionalProperties":false,"required":["code","regulated"],"properties":{"code":{"$ref":"#/components/schemas/MessagingCountry"},"regulated":{"type":"boolean","description":"Sends to this country need their own approval and never go out under Other countries."}}},"MessagingTemplateList":{"type":"object","additionalProperties":false,"required":["templates"],"properties":{"templates":{"type":"array","items":{"$ref":"#/components/schemas/MessagingTemplate"}}}},"MessagingTemplate":{"type":"object","additionalProperties":false,"required":["name","default_locale","status","channel","aliases","locales"],"properties":{"name":{"type":"string"},"aliases":{"type":"array","description":"Old names still reserved for the template, ascending; sends and reads by them reach it until released.","items":{"$ref":"#/components/schemas/MessagingTemplateName"}},"warnings":{"type":"array","description":"Only on a read by an old name.","items":{"$ref":"#/components/schemas/MessagingWarning"}},"default_locale":{"type":"string"},"default_locale_live":{"type":"boolean","description":"Whether the default language has a live version: published and not disabled. While it's `false`, a send is refused when the language it asks for has no live version and no live version exists for the recipient's country. Absent when the SMS provider doesn't report it."},"status":{"type":"string","description":"`disabled` once the template is disabled; otherwise `active`."},"channel":{"type":"string","example":"sms"},"locales":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["locale","status","removed_at","publication","versions"],"properties":{"locale":{"type":"string"},"status":{"type":"string","enum":["active","removed","disabled"],"description":"`removed` after the language is removed; it never sends and can be restored. `disabled` when every version is disabled, by SecureAuth or because the template is; with `removed_at` set, the language is removed and has nothing to restore. Otherwise `active`."},"removed_at":{"type":"string","format":"date-time","nullable":true,"description":"When the language was removed; null while it is not. Treat a language as removed whenever this is set."},"publication":{"allOf":[{"$ref":"#/components/schemas/MessagingTemplatePublication"}],"nullable":true},"versions":{"type":"array","description":"Oldest first.","items":{"$ref":"#/components/schemas/MessagingTemplateVersion"}}}}}}},"MessagingVoiceTemplateList":{"type":"object","additionalProperties":false,"required":["templates"],"properties":{"templates":{"type":"array","items":{"$ref":"#/components/schemas/MessagingVoiceTemplate"}}}},"MessagingVoiceTemplate":{"type":"object","additionalProperties":false,"required":["name","default_locale","default_locale_live","status","is_default","channel","locales"],"properties":{"name":{"type":"string"},"default_locale":{"type":"string","description":"The locale a call tries last, after its own locale and that locale's language."},"default_locale_live":{"type":"boolean","description":"Whether the default locale has a live version."},"status":{"type":"string","description":"`disabled` once every version is disabled; otherwise `active`."},"is_default":{"type":"boolean","description":"Whether calls that name no template read this one."},"channel":{"type":"string","example":"voice"},"locales":{"type":"array","description":"Ascending by locale.","items":{"type":"object","additionalProperties":false,"required":["locale","status","live","publication","versions"],"properties":{"locale":{"type":"string"},"status":{"type":"string","description":"`disabled` when every version of the locale is disabled; otherwise `active`."},"live":{"type":"boolean","description":"Whether calls read this locale. It needs a published version that is active and that SecureAuth approved."},"publication":{"allOf":[{"$ref":"#/components/schemas/MessagingTemplatePublication"}],"nullable":true},"versions":{"type":"array","description":"Oldest first.","items":{"$ref":"#/components/schemas/MessagingVoiceTemplateVersion"}}}}}}},"MessagingVoiceTemplateVersion":{"type":"object","additionalProperties":false,"required":["name","locale","version","default_locale","body","max_code_digits","support_phone","rendered_text","duration","status","published","created_at","disabled_at","disabled_reason","variables","variable_formats","approval"],"properties":{"name":{"type":"string"},"locale":{"type":"string"},"version":{"type":"integer"},"default_locale":{"type":"string"},"body":{"type":"string","description":"The text the call reads, at most 500 characters. It may use `{{code}}` one to three times, `{{code_length}}` and `{{support_phone}}`, which the SMS provider fills, and the variables the version declares. A version's body never changes."},"max_code_digits":{"type":"integer","description":"The longest code the text is written for, 4 to 10. A call with a longer code reads another text."},"support_phone":{"type":"string","nullable":true,"description":"The number this version reads for `{{support_phone}}`. Null when the text doesn't use it."},"rendered_text":{"type":"string","description":"The body with a sample code, as a call reads it."},"duration":{"$ref":"#/components/schemas/MessagingVoiceDuration"},"status":{"type":"string","description":"`active` or `disabled`."},"published":{"type":"boolean","description":"Whether this is the locale's published version. Calls read it only while it is also active and approved."},"created_at":{"type":"string","format":"date-time"},"disabled_at":{"type":"string","format":"date-time","nullable":true},"disabled_reason":{"type":"string","nullable":true},"variables":{"type":"object","description":"The values each variable declared by list may take.","additionalProperties":{"type":"array","items":{"type":"string"}}},"variable_formats":{"type":"object","description":"The version's formats, with the SMS provider's defaults filled in. A `type` other than `digits` or `phone`, or a length outside its type's range, can appear here if the service adds one later.","additionalProperties":{"type":"object","properties":{"type":{"type":"string"},"min_length":{"type":"integer"},"max_length":{"type":"integer"}}}},"warnings":{"type":"array","description":"Only on a new version, where it is always present. `over_budget`: the estimate is above `budget_seconds`, so the call may be cut. It never blocks; SecureAuth's timed test call decides.","items":{"$ref":"#/components/schemas/MessagingVoiceTemplateNotice"}},"approval":{"type":"object","additionalProperties":false,"required":["status","notes","updated_at"],"properties":{"status":{"type":"string","description":"`pending`, `approved` or `rejected`."},"notes":{"type":"string","nullable":true,"description":"SecureAuth's note, such as why it rejected the version."},"updated_at":{"type":"string","format":"date-time"}}}}},"MessagingVoiceDuration":{"type":"object","additionalProperties":false,"required":["estimated_seconds","budget_seconds","provider_limit_seconds","code_digits","calibrated","measured_seconds"],"properties":{"estimated_seconds":{"type":"number","description":"How long a call takes to read the text with a code of `code_digits` digits, as the SMS provider estimates it."},"budget_seconds":{"type":"number","description":"The longest a text should take. Above it, the call may be cut."},"provider_limit_seconds":{"type":"number","description":"The longest a call lasts."},"code_digits":{"type":"integer"},"calibrated":{"type":"boolean","description":"False while the estimate is approximate, before the SMS provider has timed real calls in the locale."},"measured_seconds":{"type":"number","nullable":true,"description":"How long the call took when SecureAuth timed it to approve the version. Null otherwise."}}},"MessagingVoiceLocaleList":{"type":"object","additionalProperties":false,"required":["budget_seconds","provider_limit_seconds","locales"],"properties":{"budget_seconds":{"type":"number"},"provider_limit_seconds":{"type":"number"},"locales":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["locale","calibrated"],"properties":{"locale":{"type":"string"},"calibrated":{"type":"boolean","description":"False while the locale's duration estimates are approximate."}}}}}},"MessagingVoiceTemplateSettings":{"type":"object","additionalProperties":false,"required":["self_service","default_template","support_phone","test_calls_per_day"],"properties":{"self_service":{"type":"boolean","description":"Whether the tenant may write its own voice templates. Until SecureAuth turns it on, SecureAuth writes them."},"default_template":{"type":"string","nullable":true,"description":"The template calls read when they name none. Null means none is set, so those calls read the call text SecureAuth manages for the organization."},"support_phone":{"type":"string","nullable":true,"description":"The number new versions read for `{{support_phone}}`. SecureAuth sets it. A version keeps the number it was created with."},"test_calls_per_day":{"type":"integer","description":"Test calls the tenant may place per day."}}},"MessagingVoiceTemplateBody":{"type":"string","minLength":1,"maxLength":2000,"description":"The text the call reads. It may use `{{code}}` one to three times, `{{code_length}}` and `{{support_phone}}`, which the SMS provider fills, and the variables the version declares in `variables` and `variable_formats`. The SMS provider enforces its voice text rules, such as at most 500 characters. A write that breaks one answers 422 `template_rule_violation` with `details.rule` naming the rule; a check answers 200 and lists it under `violations`.","example":"Hello, this is Example Bank. Your code is {{code}}. Again, your code is {{code}}."},"MessagingVoiceTemplateVariables":{"type":"object","description":"The values a call's `params` may give each declared variable: 1 to 20 values each, each value 1 to 32 characters. A version has at most 10 variables, counting `variable_formats` too. `code`, `code_length` and `support_phone` are filled by the SMS provider and never declared. The SMS provider refuses a variable it can't accept, such as one the body doesn't use, with 422 `malformed`, and `details.variable` names it. Approved together with the body.","maxProperties":10,"additionalProperties":{"type":"array","minItems":1,"maxItems":20,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":32}},"example":{"durationunit":["minutes","hours"]}},"MessagingVoiceVariableFormat":{"type":"object","additionalProperties":false,"required":["type"],"description":"How one variable's value is checked. `type` is `digits` (a number of `min_length` to `max_length` digits, both 1 to 3, `max_length` required) or `phone` (a phone number of `min_length` to `max_length` digits, both 7 to 15, country code included). A version has at most one `phone` variable. The SMS provider refuses a length outside its type's range with 422 `malformed`, and `details.variable` names the variable.","properties":{"type":{"type":"string","enum":["digits","phone"]},"min_length":{"type":"integer","minimum":1,"maximum":15,"description":"With `digits`, 1 to 3. With `phone`, 7 to 15."},"max_length":{"type":"integer","minimum":1,"maximum":15,"description":"With `digits`, 1 to 3. With `phone`, 7 to 15."}},"example":{"type":"digits","max_length":2}},"MessagingVoiceVariableFormats":{"type":"object","description":"Per variable, how its value is checked: `digits` or `phone`. A variable is declared in `variables` or here, never both, and a version has at most 10 variables across the two. The SMS provider refuses a variable it cannot accept with 422 `malformed`, and `details.variable` names the variable. Names are lowercase letters, digits and underscores.","maxProperties":10,"additionalProperties":{"$ref":"#/components/schemas/MessagingVoiceVariableFormat"}},"MessagingVoiceMaxCodeDigits":{"type":"integer","minimum":4,"maximum":10,"default":10,"description":"The longest code the text is written for. A call with a longer code reads another text. Lower it only when your codes are shorter: it leaves room for words."},"MessagingVoiceTemplateCreateRequest":{"type":"object","additionalProperties":false,"required":["name","locale","body"],"properties":{"name":{"$ref":"#/components/schemas/MessagingTemplateName"},"locale":{"$ref":"#/components/schemas/MessagingLocale"},"body":{"$ref":"#/components/schemas/MessagingVoiceTemplateBody"},"max_code_digits":{"$ref":"#/components/schemas/MessagingVoiceMaxCodeDigits"},"variables":{"$ref":"#/components/schemas/MessagingVoiceTemplateVariables"},"variable_formats":{"$ref":"#/components/schemas/MessagingVoiceVariableFormats"}}},"MessagingVoiceTemplateTextRequest":{"type":"object","additionalProperties":false,"required":["locale","body"],"properties":{"locale":{"$ref":"#/components/schemas/MessagingLocale"},"body":{"$ref":"#/components/schemas/MessagingVoiceTemplateBody"},"max_code_digits":{"$ref":"#/components/schemas/MessagingVoiceMaxCodeDigits"},"variables":{"$ref":"#/components/schemas/MessagingVoiceTemplateVariables"},"variable_formats":{"$ref":"#/components/schemas/MessagingVoiceVariableFormats"}}},"MessagingVoiceTemplateUpdateRequest":{"type":"object","additionalProperties":false,"required":["default_locale"],"properties":{"default_locale":{"$ref":"#/components/schemas/MessagingLocale"}}},"MessagingVoiceTemplateSettingsUpdateRequest":{"type":"object","additionalProperties":false,"required":["default_template"],"properties":{"default_template":{"type":"string","nullable":true,"pattern":"^[a-z0-9][a-z0-9_-]{0,63}$","description":"A template name, or null for no default template.","example":"login-call"}}},"MessagingVoiceTestCallRequest":{"type":"object","additionalProperties":false,"required":["locale","version","test_number_id"],"properties":{"locale":{"$ref":"#/components/schemas/MessagingLocale"},"version":{"type":"integer","minimum":1},"test_number_id":{"type":"string","format":"uuid","description":"One of the tenant's test numbers, which SecureAuth adds."}}},"MessagingVoiceTestCall":{"type":"object","additionalProperties":false,"required":["name","locale","version","number_label","country","code_digits","status","estimated_seconds","measured_seconds","created_at"],"properties":{"name":{"type":"string"},"locale":{"type":"string"},"version":{"type":"integer"},"number_label":{"type":"string","description":"The test number's label. The number itself is never returned."},"country":{"type":"string","description":"The test number's country, an ISO 3166-1 alpha-2 code."},"code_digits":{"type":"integer","description":"The length of the sample code the call reads."},"status":{"type":"string","description":"`accepted`: the SMS provider placed the call. `unknown`: the provider's answer was lost, and the phone may still ring. No later status can be read; whoever answers hears the text.","example":"accepted"},"estimated_seconds":{"type":"number","description":"How long the call takes to read the text, as the SMS provider estimates it."},"measured_seconds":{"type":"number","nullable":true,"description":"Always null here; only SecureAuth times calls."},"created_at":{"type":"string","format":"date-time"}}},"MessagingVoiceTemplateNotice":{"type":"object","additionalProperties":false,"required":["code"],"properties":{"code":{"type":"string","example":"over_budget"}}},"MessagingVoiceTemplateCheckResult":{"type":"object","additionalProperties":false,"required":["valid","rendered_text","duration","violations","warnings"],"properties":{"valid":{"type":"boolean","description":"Whether the text breaks no rule. A version with this text would be accepted, barring a taken name."},"rendered_text":{"type":"string","description":"The text as a call reads it, with a sample code of `max_code_digits` digits and the tenant's support number. Empty when the text can't be read, such as one with an unknown variable."},"duration":{"$ref":"#/components/schemas/MessagingVoiceDuration"},"violations":{"type":"array","description":"The first rule the text breaks, in the SMS provider's order; empty when `valid`. `code` is one of `unsupported_locale`, `body_too_long`, `forbidden_character`, `unknown_variable`, `code_count`, `support_phone`, `url_or_email`, `written_number`, `keypad_or_callback` or `template_too_long`. Accept other codes, and more than one entry.","items":{"$ref":"#/components/schemas/MessagingVoiceTemplateNotice"}},"warnings":{"type":"array","description":"Hints that never block, such as `over_budget`, described on the version's `warnings`.","items":{"$ref":"#/components/schemas/MessagingVoiceTemplateNotice"}}}},"MessagingVoiceTestNumber":{"type":"object","additionalProperties":false,"required":["id","label","masked","country","added_at"],"properties":{"id":{"type":"string","format":"uuid"},"label":{"type":"string","example":"QA phone, New York"},"masked":{"type":"string","description":"The number with its middle digits hidden. The full number is never returned.","example":"+1•••••4567"},"country":{"type":"string","example":"US"},"added_at":{"type":"string","format":"date-time"}}},"MessagingVoiceTestNumberList":{"type":"object","additionalProperties":false,"required":["test_numbers"],"properties":{"test_numbers":{"type":"array","description":"Ascending by label.","items":{"$ref":"#/components/schemas/MessagingVoiceTestNumber"}}}},"MessagingVerificationCreateRequest":{"type":"object","required":["to","channel"],"additionalProperties":false,"properties":{"to":{"description":"The destination, in E.164 form with a leading `+`, such as `+14155550123`. Anything else answers 422 `invalid_phone`."},"channel":{"type":"string","description":"`sms` texts the code. `voice` places a call that reads the code, with no wait before this first call; on a tenant without voice, the send fails with `voice_not_enabled`. Any other value answers 422 `channel_unsupported`.","example":"sms"},"template":{"allOf":[{"$ref":"#/components/schemas/MessagingTemplateName"}],"description":"A template name, lower case and without a locale; the locale goes in `locale`. With `sms`, the text template to send. Its text must include `{{code}}`. Required with `sms` (422 `template_required`). With `voice`, optional: the voice template the call reads, such as `login-voice`. Omitted, or `default`, the call reads the tenant's default voice template. A name the tenant doesn't have fails the send with `template_not_found`. A named voice template is read in the call's locale, then that locale's language, then the template's default locale. A version that isn't published, active and approved, or allows fewer digits than the code has, is skipped for the next locale. With no readable version in any of them, the call reads the tenant's default voice template the same way, then the call text SecureAuth manages for the tenant, and the send doesn't fail for that. A voice call whose live version declares variables does fail, with `template_params_invalid`, when `params` leaves one without a value or gives it a refused one; the call never falls back to the default template for that reason. A `voice` verification's resend asks for the template its send named, with the same fallback. In the JSON body only: a `template` in the query string answers 422 `malformed`."},"locale":{"allOf":[{"$ref":"#/components/schemas/MessagingLocale"}],"description":"With `sms`, the template locale to send; omitted, the template's default locale. With `voice`, the call's language; omitted, the tenant's default."},"params":{"type":"object","description":"Values for the template's variables, other than `code` and `code_length`. They fill the voice template's variables on every call of the verification: a `voice` send and its resends, or a \"call me\" resend of an `sms` verification, which reads the default voice template. The messaging service checks a digits, time or phone value against the template's variable format, and refuses a value for a send-time variable. Either fails the send with `template_params_invalid`. So does a value for `code_length`, which the messaging service fills with the code's length. At most 20, the SMS provider's cap for a call; more answers 400 `bad_request`. In the JSON body only: `params` in the query string answer 422 `malformed`.","maxProperties":20,"additionalProperties":{"type":"string","maxLength":32}},"code":{"description":"Your own code to send instead of a generated one, as a string in the JSON body. With `sms` it is 4 to 16 letters or digits, such as `\"Ab12Cd34\"`. With `voice` it is 4 to 10 digits, such as `\"012345\"`. A `code` in the query string answers 422 `malformed`. `null` answers 400 `bad_request`. Anything else, a JSON number included, answers 422 `invalid_code`. A text sends it in the template's `{{code}}`; a call reads it. A call reads only digits, up to 10. If the user may ask for a call later, send a code of 4 to 10 digits: a `voice` resend of any other code fails, with `voice_needs_numeric_code` in `resend_failure_reason`. A template version created before 16-character codes was checked with a 10-character code, so a longer code that pushes its text past the tenant's SMS segment limit fails the send with `template_params_invalid`. Your code lasts the tenant's code lifetime, not your generator's window. Resends repeat it, and the check endpoint accepts it. A retry with the same `Idempotency-Key` answers the first send's verification, even with another code: a repeat compares the number and channel, not the code. SecureAuth turns this on per tenant; until then a well-formed code fails the send with `customer_codes_not_enabled`, and a malformed one still answers 422 `invalid_code`.","example":"012345"},"client_reference":{"description":"Your own ID for this send, such as your transaction ID: a string of 1 to 128 printable ASCII characters with no spaces, kept exactly as sent, in the JSON body. `null` answers 400 `bad_request`. Any other malformed value answers 422 `malformed` with `details.field` `client_reference`; a `client_reference` in the query string answers 422 `malformed`. The verification returns it, the verification list and search filter by it, and `POST .../verifications/check` checks a code by it. It need not be unique, so a retry can reuse it. It appears in logs, so never put personal data in it, such as a name, a phone number or an account number.","example":"order-20261124-0042"}}},"MessagingVerificationSearchRequest":{"type":"object","additionalProperties":false,"properties":{"to":{"description":"The destination, in E.164 form with a leading `+`, matched exactly. Anything else answers 422 `invalid_phone`. Required on the first page; a later page takes it from `page_token`."},"status":{"type":"string","description":"Only verifications with this status. A pending verification past its expiry counts as `expired`. `failed` is a verification that failed its checks (too many wrong codes). `send_failed` is a failed send; its `last_failure_reason` says why.","enum":["pending","approved","failed","send_failed","expired"]},"created_after":{"type":"string","format":"date-time","description":"Only verifications created at or after this time."},"created_before":{"type":"string","format":"date-time","description":"Only verifications created before this time."},"client_reference":{"allOf":[{"$ref":"#/components/schemas/MessagingClientReferenceFilter"}],"description":"Only verifications whose send passed this `client_reference`, matched exactly. A value a send would refuse answers 400 `bad_request`."}}},"MessagingResendRequest":{"type":"object","additionalProperties":false,"properties":{"channel":{"type":"string","description":"The channel of this delivery. Omitted, the verification's own. `voice` on an `sms` verification places a call that reads the same code, allowed from `voice_available_at`. A call can't read a code with letters or more than 10 digits, so that resend fails, with `voice_needs_numeric_code` in `resend_failure_reason`. `sms` on a `voice` verification answers 422 `malformed`, since a call has no text template. A resend names no template: `voice` on an `sms` verification reads the tenant's default voice template. Any other value answers 422 `channel_unsupported`.","example":"voice"}}},"MessagingCheckRequest":{"type":"object","required":["code"],"additionalProperties":false,"properties":{"code":{"description":"The code the user entered, as a string of 4 to 16 letters or digits, in the JSON body; a `code` in the query string answers 422 `malformed`. Letter case doesn't matter, so `ab12cd` matches `AB12CD`."}}},"MessagingCheckByReferenceRequest":{"type":"object","required":["client_reference","code"],"additionalProperties":false,"properties":{"client_reference":{"description":"The `client_reference` the send passed, matched exactly. `null` answers 400 `bad_request`. A value a send would refuse answers 422 `malformed` with `details.field` `client_reference`.","example":"order-20261124-0042"},"code":{"description":"The code the user entered, as a string of 4 to 16 letters or digits. Letter case doesn't matter, so `ab12cd` matches `AB12CD`."}}},"MessagingDelivery":{"type":"object","additionalProperties":false,"required":["n","channel","message_id","call_id","status","failure_category","failure_reason","sent_at","delivered_at","delivered_at_approximate","late_receipt"],"properties":{"n":{"type":"integer","description":"The delivery number. 1 is the first send, and each resend adds one."},"channel":{"type":"string","description":"`sms` or `voice`."},"message_id":{"type":"string","nullable":true,"description":"The text's ID. Null for a call, and for a text whose send went unanswered."},"call_id":{"type":"string","nullable":true,"description":"The call's ID. Null for a text, and for a call whose request went unanswered."},"status":{"type":"string","description":"A text: `pending`, `delivered`, `failed` or `unknown`. A call: `accepted` (placed), `in_progress` (ringing), `answered` (by a person or voicemail, which the provider cannot tell apart), `not_answered`, `busy`, `failed`, `canceled`, `blocked` or `unknown`."},"failure_category":{"type":"string","nullable":true,"description":"Why the delivery failed, when it did: `invalid_number`, `carrier_rejected`, `blocked`, `unreachable`, `expired`, `provider_error` or `unknown`."},"failure_reason":{"type":"string","nullable":true,"description":"A short reason, safe to show to a user."},"sent_at":{"type":"string","format":"date-time"},"delivered_at":{"type":"string","format":"date-time","nullable":true,"description":"The time in the text's delivery report, or when the call was answered. A text whose report has no time takes the time the report reached the messaging service. Null until the delivery is delivered or answered, and for a call with no reported time."},"delivered_at_approximate":{"type":"boolean","description":"True when a text's report had no time, so `delivered_at` is when the report reached the messaging service, in whole seconds."},"late_receipt":{"type":"boolean","nullable":true,"description":"True when the delivery's report reached the messaging service late, false when on time. Null when the messaging service gives no verdict."}}},"MessagingVerification":{"type":"object","additionalProperties":false,"required":["id","status","channel","to","template","expires_at","created_at","attempts","max_attempts","attempts_left","deliveries","voice_available_at","code_source","client_reference","resend_status","resend_failure_reason","resend_failure_variable","verified_at"],"properties":{"id":{"type":"string","description":"The core system's ID for the verification, the same from the send's 202 on. Only a verification the core system holds no record of comes back with the messaging service's ID. Earlier releases returned the messaging service's ID once the code was sent. So across an upgrade, or a rollback to an earlier release, the same verification can come back with the other ID. Both work as input. Match a verification by the ID you hold or by `client_reference`, never by the `id` a later response returns.","example":"3f2b8c1e-7a4d-4e9b-b5c6-0d1e2f3a4b5c"},"status":{"type":"string","description":"`pending`, `approved`, `failed` or `expired`. Only `approved` means the user proved the number."},"channel":{"type":"string","description":"The channel the verification started on, `sms` or `voice`. Each delivery names its own."},"to":{"type":"string","description":"The destination, masked.","example":"+1********23"},"country":{"type":"string","nullable":true},"template":{"type":"string","nullable":true,"description":"The template the send named: a text template, or a voice template for a verification started by voice. Null for a voice send that named none."},"locale":{"type":"string","nullable":true},"expires_at":{"type":"string","format":"date-time"},"created_at":{"type":"string","format":"date-time"},"attempts":{"type":"integer"},"max_attempts":{"type":"integer"},"attempts_left":{"type":"integer"},"deliveries":{"type":"array","description":"Oldest first.","items":{"$ref":"#/components/schemas/MessagingDelivery"}},"voice_available_at":{"type":"string","format":"date-time","nullable":true,"description":"From when a resend may call: the last delivery's time plus the tenant's wait. A resend that calls earlier fails with `voice_not_yet_available`, on a text or a voice verification. A code with letters or more than 10 digits fails a call with `voice_needs_numeric_code`, whatever this field says. Null when the tenant has no voice or the verification is final."},"code_source":{"type":"string","nullable":true,"description":"`customer` when the send passed its own `code`, `generated` when the messaging service chose it. Null when the messaging service doesn't say."},"client_reference":{"type":"string","nullable":true,"description":"The `client_reference` the send passed; null without one."},"resend_status":{"type":"string","nullable":true,"enum":["queued","failed"],"description":"`queued` while a resend waits for the messaging service, `failed` when the last queued resend failed. Null otherwise: no resend, or it went out."},"resend_failure_reason":{"type":"string","nullable":true,"description":"The failed resend's error code while `resend_status` is `failed`; null otherwise."},"resend_failure_variable":{"type":"string","nullable":true,"description":"The template variable the SMS provider refused in the failed resend, set only when its reason is `template_params_invalid` and the provider names one. When allowed values together break a voice text rule, it names each of the version's `variables` the text uses, comma-separated. It never holds a value."},"verified_at":{"type":"string","format":"date-time","nullable":true,"description":"When the core system received the messaging service's approval of the code: at most one check round trip after the messaging service approved it. Null until a check is approved, and for a verification approved before the core system kept this time."},"warnings":{"type":"array","description":"Hints the messaging service gave on the send and on each resend, each kept once. They never block the send; the delivery's status says whether the code went out. `template_renamed` means the send named the template by an old name; switch to the name its message gives. Absent when there are none, and never on a send's or resend's 202.","items":{"$ref":"#/components/schemas/MessagingWarning"}}}},"MessagingVerificationRecord":{"type":"object","additionalProperties":false,"description":"The core system's stored record of a verification, as of `refreshed_at`. The messaging service forgets a verification 15 minutes after its code expires; the record stays for the tenant's retention period.","required":["id","status","channel","to","live","created_at"],"properties":{"id":{"type":"string","description":"The core system's ID for the verification, the same from the send's 202 on. Only a verification the core system holds no record of comes back with the messaging service's ID. Earlier releases returned the messaging service's ID once the code was sent. So across an upgrade, or a rollback to an earlier release, the same verification can come back with the other ID. Both work as input. Match a verification by the ID you hold or by `client_reference`, never by the `id` a later response returns."},"status":{"type":"string","description":"`queued`, `pending`, `approved`, `failed` or `expired`. `queued`: the core system hasn't recorded the messaging service's answer to the send yet. A pending record past its expiry reads `expired`."},"channel":{"type":"string","description":"The channel the verification started on, `sms` or `voice`."},"to":{"type":"string","description":"The destination, masked."},"country":{"type":"string","nullable":true},"template":{"type":"string","nullable":true,"description":"The template the send named: a text template, or a voice template for a verification started by voice. Null for a voice send that named none."},"locale":{"type":"string","nullable":true},"attempts":{"type":"integer","nullable":true},"max_attempts":{"type":"integer","nullable":true},"last_delivery_status":{"type":"string","nullable":true,"description":"The last delivery's status, a text's or a call's, as in `MessagingDelivery`."},"last_failure_category":{"type":"string","nullable":true,"description":"`send_failed` when the send failed, with its error code in `last_failure_reason`. Otherwise the last delivery's `failure_category`."},"last_failure_reason":{"type":"string","nullable":true},"last_failure_variable":{"type":"string","nullable":true,"description":"The template variable the SMS provider refused, set only when `last_failure_reason` is `template_params_invalid` and the provider names one. When allowed values together break a voice text rule, it names each of the version's `variables` the text uses, comma-separated. It never holds a value."},"last_send_requested_at":{"type":"string","format":"date-time","nullable":true,"description":"When the core system received the send or resend behind the last delivery. Subtract it from `last_delivered_at` for how long that delivery took."},"last_delivered_at":{"type":"string","format":"date-time","nullable":true,"description":"The last delivery's `delivered_at`, as in `MessagingDelivery`, late receipts included."},"last_late_receipt":{"type":"boolean","nullable":true,"description":"The last delivery's `late_receipt`, as in `MessagingDelivery`. Null when there is no verdict."},"expires_at":{"type":"string","format":"date-time","nullable":true},"created_at":{"type":"string","format":"date-time"},"live":{"type":"boolean","description":"Always false, which marks the core system's stored record."},"refreshed_at":{"type":"string","format":"date-time","nullable":true},"client_reference":{"type":"string","nullable":true,"description":"The `client_reference` the send passed; null without one."},"resend_status":{"type":"string","nullable":true,"enum":["queued","failed"],"description":"`queued` while a resend waits for the messaging service, `failed` when the last queued resend failed. Null otherwise: no resend, or it went out."},"resend_failure_reason":{"type":"string","nullable":true,"description":"The failed resend's error code while `resend_status` is `failed`; null otherwise."},"resend_failure_variable":{"type":"string","nullable":true,"description":"The template variable the SMS provider refused in the failed resend, set only when its reason is `template_params_invalid` and the provider names one. When allowed values together break a voice text rule, it names each of the version's `variables` the text uses, comma-separated. It never holds a value."},"verified_at":{"type":"string","format":"date-time","nullable":true,"description":"The verification's `verified_at`, as in `MessagingVerification`."},"warnings":{"type":"array","description":"The verification's `warnings`, as in `MessagingVerification`. Absent when there are none, and never on a send's or resend's 202.","items":{"$ref":"#/components/schemas/MessagingWarning"}},"deliveries":{"type":"array","description":"Fetching one verification only, never listing or searching: every delivery the core system stored, oldest first. Empty for a verification stored before the core system kept each delivery, whose `last_*` fields describe its last delivery alone.","items":{"$ref":"#/components/schemas/MessagingDeliveryRecord"}}}},"MessagingDeliveryRecord":{"type":"object","additionalProperties":false,"description":"The core system's stored record of one delivery.","required":["n","channel","status","failure_category","failure_reason","send_requested_at","delivered_at","late_receipt"],"properties":{"n":{"type":"integer","description":"The delivery number, as in `MessagingDelivery`."},"channel":{"type":"string","nullable":true,"description":"`sms` or `voice`."},"status":{"type":"string","nullable":true,"description":"The delivery's status, a text's or a call's, as in `MessagingDelivery`."},"failure_category":{"type":"string","nullable":true},"failure_reason":{"type":"string","nullable":true},"send_requested_at":{"type":"string","format":"date-time","nullable":true,"description":"When the core system received the send or resend behind this delivery. Subtract it from `delivered_at` for how long the delivery took. Null when the core system first recorded the delivery from a later read, not from its send."},"delivered_at":{"type":"string","format":"date-time","nullable":true,"description":"The delivery's `delivered_at`, as in `MessagingDelivery`, late receipts included."},"late_receipt":{"type":"boolean","nullable":true,"description":"The delivery's `late_receipt`, as in `MessagingDelivery`. Null when there is no verdict."}}},"MessagingCheckResult":{"type":"object","additionalProperties":false,"required":["id","status","attempts_left"],"properties":{"id":{"type":"string"},"status":{"type":"string","description":"`approved` is the only success. `pending` means a wrong code with attempts left, `failed` the attempt limit, `expired` a code past its lifetime."},"attempts_left":{"type":"integer"}}},"WebhookPayloadFormat":{"description":"The body format of each delivery. `generic` posts a signed JSON batch of audit logs; `splunk_hec` posts the Splunk HTTP Event Collector format.","type":"string","enum":["generic","splunk_hec"]},"WebhookWriteProperties":{"type":"object","properties":{"url":{"description":"The HTTPS address that receives audit logs. Write-only: reads return `url_hint` instead, because services such as Slack keep their credential in the URL path.","type":"string","maxLength":2048},"description":{"type":"string","maxLength":255,"nullable":true},"payload_format":{"$ref":"#/components/schemas/WebhookPayloadFormat"},"log_types":{"description":"The audit log types to send. An empty list sends every type.","type":"array","items":{"$ref":"#/components/schemas/LogType"}},"headers":{"description":"Extra request headers, for example `Authorization`. Write-only: reads return only `header_names`.","type":"object","maxProperties":5,"additionalProperties":{"type":"string"}},"standard_webhooks_signing":{"description":"Sign each delivery per the Standard Webhooks specification. Turning it on returns the secret once, in `standard_webhooks_secret`; turning it off discards the secret.","type":"boolean"}}},"WebhookCreateRequest":{"allOf":[{"$ref":"#/components/schemas/WebhookWriteProperties"},{"type":"object","required":["url"]}]},"WebhookUpdateRequest":{"allOf":[{"$ref":"#/components/schemas/WebhookWriteProperties"},{"type":"object","properties":{"status":{"description":"`active` re-enables a disabled webhook; `disabled` stops capture and delivery.","type":"string","enum":["active","disabled"]}}}]},"WebhookLane":{"description":"Delivery state for one region that sends this webhook's audit logs.","type":"object","properties":{"region":{"type":"string"},"last_success_at":{"description":"When this region last delivered a batch of audit logs. Test deliveries do not set it.","type":"string","format":"date-time","nullable":true},"failing_since":{"description":"When this region's current run of failed batches began; null once a batch is delivered or the receiver answers 429.\nThe webhook is disabled after this region has failed for 24 hours, counted from the latest of this time, the\nwebhook's `enabled_at`, and the end of any pause of deliveries.","type":"string","format":"date-time","nullable":true},"dropped_count":{"type":"integer"},"buffered":{"description":"Audit logs waiting to be sent; the string `10,000+` once the count passes the cap.","oneOf":[{"type":"integer"},{"type":"string"}]}}},"Webhook":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/UUIDReadOnly"},"description":{"type":"string","nullable":true},"url_hint":{"description":"The scheme and host of the URL, the last four characters of its path, and the names of its query parameters with every value masked, for example `https://http-intake.logs.datadoghq.com/…logs?dd-api-key=…`.","type":"string"},"log_types":{"description":"`LogType` values. During an upgrade, or after a rollback, an earlier release can return a type only a later release lists.","type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/LogType"},{"type":"string"}]}},"payload_format":{"$ref":"#/components/schemas/WebhookPayloadFormat"},"header_names":{"type":"array","items":{"type":"string"}},"standard_webhooks_signing":{"type":"boolean"},"standard_webhooks_secret":{"description":"The signing secret. Present only in the response that created, rotated or enabled it.","type":"string"},"status":{"type":"string","enum":["active","disabled"]},"disabled_reason":{"type":"string","nullable":true},"disabled_region":{"type":"string","nullable":true},"disabled_at":{"description":"When the webhook was last disabled. Null while it is active, and for webhooks disabled before this field existed.","type":"string","format":"date-time","nullable":true},"capturing":{"description":"Whether audit logs are being buffered for this webhook. False while it is disabled.","type":"boolean"},"enabled_at":{"type":"string","format":"date-time"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"lanes":{"description":"At least one entry per region of the deployment. A region that has not yet handled an event for this webhook has both timestamps null and zero counts.","type":"array","items":{"$ref":"#/components/schemas/WebhookLane"}}}},"WebhookDeliveryStatus":{"description":"`in_flight` is being sent. `succeeded` was delivered, or had nothing left to send once its audit logs were deleted. `failed` did not get through: an event delivery waits for its next attempt, a test is finished. `split` handed its events back to go out in other deliveries, in smaller batches when the receiver answered 413; any that had expired are counted in a separate `dropped` delivery. `dropped` discarded its events, which will not be sent.","type":"string","enum":["in_flight","succeeded","failed","split","dropped"]},"WebhookDelivery":{"description":"One attempt series to send a batch of audit logs, or one test, to a webhook.","type":"object","properties":{"id":{"description":"Also sent as the `Webhook-Id` header, and stable across the batch's retries.","type":"string","format":"uuid"},"kind":{"type":"string","enum":["event","test"]},"status":{"$ref":"#/components/schemas/WebhookDeliveryStatus"},"region":{"description":"The region that recorded the delivery. A test is recorded and sent in the region that accepted the request.","type":"string"},"event_count":{"type":"integer"},"byte_size":{"description":"Size of the body sent. Null until the first attempt.","type":"integer","nullable":true},"attempts":{"type":"integer"},"next_attempt_at":{"type":"string","format":"date-time","nullable":true},"last_response_code":{"type":"integer","nullable":true},"last_error":{"description":"The last failure. Anything the receiver echoed back of the webhook's URL path segments and query values of 4 or more characters, header values or signing secret is masked, so ordinary path words are masked too.","type":"string","nullable":true},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"WebhookPayload":{"description":"The body of a `generic` delivery: audit logs in the shape of Get Audit Log details. With `payload_format: splunk_hec` the body is instead one HEC envelope per line, newline-separated, each wrapping one such audit log in `event`.","type":"array","items":{"$ref":"#/components/schemas/AuditLogDetails"}},"WebAuthnId":{"type":"string","example":"RHV6sosLpRADGakhWACf9fHFahyXjq8Ed5g-fXzdmK69oAKcImXGkFNYFLZifHmBC0Lajz-Q_SC8Eo2UfZrYwg"},"ApplicationClientId":{"type":"string","format":"uid","pattern":"^[0-9a-zA-Z\\-_]+$","minLength":1,"maxLength":255,"readOnly":true},"ApplicationClientIdWrite":{"type":"string","format":"uid","pattern":"^[0-9a-zA-Z\\-_]+$","minLength":1,"maxLength":255},"ApplicationId":{"description":"Unique identifier for the application in Workforce Authority","type":"string","maxLength":64,"readOnly":true},"ApplicationType":{"type":"string","nullable":true},"AuditLogId":{"description":"Unique identifier for an Audit Log entry.","allOf":[{"$ref":"#/components/schemas/UUIDReadOnly"}]},"CertificateId":{"description":"Unique identifier for the certificate in Workforce Authority.","allOf":[{"$ref":"#/components/schemas/UUIDReadOnly"}]},"ChangePasswordRequest":{"type":"object","properties":{"current_password":{"type":"string","minLength":1},"password":{"type":"string","minLength":1},"password_confirmation":{"type":"string","minLength":1}},"required":["current_password","password","password_confirmation"]},"Color":{"description":"A hex color, `#RGB` or `#RRGGBB`. A blank value resets the color to its default.","type":"string","format":"color","example":"#38103c","nullable":true},"ConnectorId":{"description":"Unique identifier for the directory connector.","type":"string","example":"ldap:v1:5023c047-7232-41c8-9d00-1cc858367efd"},"CodedError":{"description":"An error carrying a machine-readable `code` alongside its human-readable `message`.\n","type":"object","properties":{"code":{"$ref":"#/components/schemas/ErrorCode"},"message":{"type":"string"}},"additionalProperties":false},"DirectoryId":{"description":"Unique identifier for a User Directory in Workforce Authority","allOf":[{"$ref":"#/components/schemas/UUIDReadOnly"}]},"DirectoryType":{"type":"string","enum":["ActiveDirectory","Arculix","AzureAd","Google","IdentityPool"]},"DirectoryMappings":{"type":"object","description":"Keyed by directory attribute. Each row names a `field_name` and a `sync_mode`. An Active Directory row may also carry a boolean `fetch_on_login`, which says whether a login fetches the attribute. When it is absent the attribute is fetched, except for the photo."},"EntitlementId":{"description":"Unique identifier for an entitlement in Workforce Authority","allOf":[{"$ref":"#/components/schemas/UUIDReadOnly"}]},"EmailAddressId":{"description":"Unique identifier for the user email address in Workforce Authority.","allOf":[{"$ref":"#/components/schemas/UUIDReadOnly"}]},"ErrorCode":{"type":"string","pattern":"^[a-z]([a-z0-9_]*[a-z0-9])?$","example":"parameter_error"},"FederatedIdpClientId":{"description":"Unique identifier for the Federated IdP Client in Workforce Authority","allOf":[{"$ref":"#/components/schemas/UUIDReadOnly"}]},"FingerprintId":{"description":"Unique identifier for the fingerprint in Workforce Authority.","allOf":[{"$ref":"#/components/schemas/UUIDReadOnly"}]},"IpAddress":{"description":"IPv4 Address.","type":"string","format":"ipv4","example":"127.0.0.1"},"LogType":{"description":"The type of the audit log event","type":"string","enum":["TfaLog","ContinuousAuthenticationLog","DataEventLog","WorkstationLog","RiskEvalLog","SecurityEventLog","SystemErrorLog","AgentCertificateLog","AgentEventLog","MessagingTemplateLog","EndpointTrustTokenLog"]},"PhoneId":{"description":"Unique identifier for the phone number","allOf":[{"$ref":"#/components/schemas/UUIDReadOnly"}]},"PolicyId":{"description":"Unique identifier for the policy in Workforce Authority.","allOf":[{"$ref":"#/components/schemas/UUIDReadOnly"}]},"OAuthProviderId":{"description":"Unique identifier for the OAuth provider in Workforce Authority","type":"string","maxLength":64,"readOnly":true},"SamlProviderId":{"description":"Unique identifier for the SAML provider in Workforce Authority","type":"string","maxLength":64,"readOnly":true},"RoleId":{"description":"Unique identifier for the role in Workforce Authority","allOf":[{"$ref":"#/components/schemas/UUIDReadOnly"}]},"UserId":{"description":"Unique identifier for the user in Workforce Authority.","allOf":[{"$ref":"#/components/schemas/UUIDReadOnly"}]},"WorkstationId":{"description":"Unique identifier for the workstation.","allOf":[{"$ref":"#/components/schemas/UUIDReadOnly"}]},"AgentId":{"description":"Unique identifier for the agent.","allOf":[{"$ref":"#/components/schemas/UUIDReadOnly"}]},"RecordAbilities":{"type":"object","properties":{"abilities":{"type":"object","description":"A hashmap with permission names as key and a boolean as value to indicate if such permission has been\ngranted, such as `'{ \"action1\": true, \"action2\": false, ..., \"actionN\": true }'`.\n","additionalProperties":{"type":"boolean"}}}},"Timestamps":{"type":"object","properties":{"created_at":{"type":"string","format":"date-time","readOnly":true,"description":"When the object was first created."},"updated_at":{"type":"string","format":"date-time","readOnly":true,"description":"The last time the object was updated."}}},"Abilities":{"type":"object","description":"A hashmap with resource name as key and a list of permissions as the value, such as\n`'{ \"resourceA\": [\"action1\", ..., \"actionN\"], \"resourceB\": [...], ... }'`.\n","additionalProperties":{"type":"array","items":{"type":"string"},"minItems":1}},"CertificateResponse":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/CertificateId"},"friendly_name":{"description":"Friendly name of certificate","type":"string"},"certificate":{"description":"Certificate Key","type":"string"},"common_name":{"description":"Common name of certificate","type":"string"},"expired_at":{"description":"Date til certificate validity","type":"string","format":"date-time"}}},"AuditLogSummary":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/AuditLogId"},"time":{"description":"When the event happened.","type":"string","format":"date-time"},"event":{"type":"string","description":"The type of event this log indicates. Values include:\n- Authentication\n- Continuous Authentication\n- Risk Evaluation\n- Workstation Log\n"},"username":{"description":"Username for the user linked with the event.","type":"string","nullable":true},"user_email":{"description":"The identifier used during the event. Usually an email address, but not guaranteed to be\none: a directory-synced tenant can key its users on a non-email attribute such as\n\"sAMAccountName\", and a login attempt for an identifier that resolves to no user records\nthe raw value that was submitted. Null or empty when no identifier was recorded. Null when\nthe tenant's \"arculix_username_format\" flag is not \"email\".\n","type":"string","nullable":true},"user_id":{"anyOf":[{"$ref":"#/components/schemas/UserId"},{"type":"object","nullable":true}]},"is_user_deleted":{"description":"Indicates if the user has been deleted. Trying to load a deleted user will result in an error.\n","type":"boolean","nullable":true},"description":{"type":"string","description":"The status of the event logged. Values include:\n- MFA Approved\n- MFA Expired\n- MFA Rejected\n- Pending\n- Logged In\n- Logged Out\n- Locked\n- Unlocked\n- Login Failed\n"},"application":{"type":"string","nullable":true},"result":{"type":"string","nullable":true},"log_type":{"description":"One of the `LogType` values. During an upgrade, or after a rollback, an earlier release can return a type only a later release lists.","anyOf":[{"$ref":"#/components/schemas/LogType"},{"type":"string"}]}}},"AuditLogDetails":{"allOf":[{"$ref":"#/components/schemas/AuditLogSummary"},{"type":"object","properties":{"application_type":{"$ref":"#/components/schemas/ApplicationType"},"location":{"description":"The geographic location the event occurred at, if available.","type":"string"},"details":{"type":"object","additionalProperties":true},"tfa":{"type":"object","nullable":true,"properties":{"type":{"type":"string","nullable":true},"out_of_band_method_name":{"type":"string","description":"The display name of the Out-of-Band method used to resolve this transaction, such as\n\"Push\", \"Passkey\" or \"Authenticator app code\". It is display text, not an identifier, and\nchanges when a method is renamed.\n","nullable":true},"message":{"description":"A human-readable description of the transaction. This message is not localized.","type":"string","nullable":true}}},"workstation":{"type":"object","nullable":true},"workstation_event":{"type":"object"}}}]},"Connector":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/ConnectorId"},"secret_key":{"description":"The secret key for the directory connector.","type":"string","format":"byte","example":"bSDGDVVL3Oi2Z1lUgr4weuLVuLKBcamX6PHsHlO4A2k="},"domains":{"type":"array","items":{"type":"string","format":"domain"}}},"required":["id","secret_key"]},"ConnectorStatus":{"type":"object","properties":{"client_count":{"description":"The number of connected connectors in the pool.","type":"integer","readOnly":true},"online":{"description":"Whether the directory connector pool is online or not.","type":"boolean","readOnly":true}}},"UserPhoto":{"type":"object","description":"A user's reference photograph, from the tenant's directory or, when the caller passes max_age and the mapping permits keeping, from the core system's stored copy. The response is never cacheable by an intermediary: it carries Cache-Control no-store.\n","properties":{"content_type":{"type":"string","description":"The media type sniffed from the bytes themselves, not declared by the directory.","example":"image/jpeg"},"image_b64":{"type":"string","format":"byte","description":"The photograph, Base64 encoded."},"sha256":{"type":"string","description":"Hex-encoded SHA-256 digest of the decoded bytes."},"source":{"type":"string","enum":["directory","cache"],"description":"Where the bytes came from. An internal directory always reports \"directory\", because there the store is the directory rather than a copy of it.\n"},"age_s":{"type":"integer","minimum":0,"description":"How long ago the stored copy was last written or confirmed, in seconds. A photograph that changed at the directory resets this whenever it is next fetched, by a login or by this endpoint. An unchanged one resets it only on a read of this endpoint. Present only when source is \"cache\".\n"},"saved_by":{"$ref":"#/components/schemas/UserPhotoSavedBy"}},"required":["content_type","image_b64","sha256","source"]},"UserPhotoSavedBy":{"type":"object","description":"Who saved the photograph served, and through which directory.","properties":{"kind":{"type":"string","enum":["self","admin","client","directory","unknown"],"description":"\"self\" is the user's own upload, \"admin\" an administrator's, \"client\" an API client's with no user behind it, and \"directory\" a copy the directory delivered or a live read of it. \"unknown\" means the photo was saved before saver tracking began.\n"},"username":{"type":"string","description":"The saver's username. Present only for \"self\" and \"admin\" while that user still exists.","example":"admin1"},"at":{"type":"string","format":"date-time","description":"When the photograph was saved, in UTC. Absent for a live read that keeps no copy, and for \"unknown\".","example":"2026-12-03T18:00:00Z"},"directory":{"type":"object","description":"The directory configuration that stored the photograph or, for a live read, answered it. Absent when that configuration has since been deleted.\n","properties":{"id":{"$ref":"#/components/schemas/UUID"},"type":{"type":"string","description":"The directory type's code name.","example":"ActiveDirectory"},"name":{"type":"string","example":"corp.example"}},"required":["id","type","name"]}},"required":["kind"]},"UserPhotoUpload":{"type":"object","description":"A JPEG or PNG photograph to store as the user's reference photo.","properties":{"image_b64":{"type":"string","format":"byte","description":"The photograph, Base64 encoded (RFC 4648, no line breaks). Its decoded size may not exceed the deployment's upload limit, 1 MiB by default. It may be at most 8,192 pixels on each side and 16,777,216 (4,096 × 4,096) in all, and a PNG may use at most 8 bits a channel.\n"}},"required":["image_b64"],"additionalProperties":false},"DeviceSummary":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/UUID"},"device_type":{"type":"string"},"operating_system":{"type":"object","properties":{"name":{"type":"string"},"version":{"type":"string"}}},"app_version":{"type":"string"},"enabled":{"type":"boolean","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true,"description":"When the device was first created."},"updated_at":{"type":"string","format":"date-time","readOnly":true,"description":"The last time the device was updated."}},"required":["id","enabled"]},"DeviceDetails":{"allOf":[{"$ref":"#/components/schemas/DeviceSummary"},{"type":"object","properties":{"last_access_at":{"type":"string","nullable":true,"format":"date-time"},"icon":{"type":"object","properties":{"url":{"type":"string","format":"url"},"size":{"description":"The dimensions of the icon (`width` x `height`)","type":"string","pattern":"^\\d+x\\d+$"},"width":{"type":"integer"},"height":{"type":"integer"}}}}}]},"DomainSummary":{"type":"object","allOf":[{"$ref":"#/components/schemas/Timestamps"},{"type":"object","properties":{"id":{"type":"integer","minimum":0},"name":{"type":"string","minLength":1},"verified":{"type":"boolean"}},"required":["created_at","id","name","updated_at"]}]},"Entitlement":{"type":"object","properties":{"description":{"minLength":1,"type":"string"},"id":{"$ref":"#/components/schemas/EntitlementId"}},"required":["description","id"]},"EntitlementDetails":{"allOf":[{"$ref":"#/components/schemas/Entitlement"},{"$ref":"#/components/schemas/RecordAbilities"},{"type":"object","properties":{"action":{"type":"string"},"resource":{"type":"string"},"scope":{"type":"string","enum":["global","organization","self"]}},"required":["action","resource","scope"]}]},"Flag":{"type":"object","properties":{"name":{"description":"The code name of the flag. Unique between flags.","type":"string","minLength":1},"value":{"description":"The value of the flag. A flag whose value_type is decimal carries its value as a decimal string, so the precision it was stored with survives a consumer that parses JSON numbers as doubles. Every other numeric flag carries a JSON number.\n","oneOf":[{"type":"string"},{"type":"boolean"},{"type":"number"},{"type":"object","nullable":true}]}},"additionalProperties":false,"required":["name","value"]},"FlagSummary":{"allOf":[{"$ref":"#/components/schemas/Flag"},{"type":"object","properties":{"description":{"description":"Description of the flag","type":"string","minLength":1},"group":{"description":"The group the flag belongs to","type":"string","nullable":true},"options":{"description":"Additional options used to configure the flag, such as the min or max values allowed for numeric flags","type":"object","nullable":true,"properties":{"comma_separated":{"description":"Indicates if the flag value is a comma-separated list","type":"boolean"},"min":{"description":"Minimum value accepted by the flag. This option is only used by numeric flags","type":"number"},"min_exclusive":{"description":"When true, the minimum is the first value refused rather than the smallest accepted. This option is only used by numeric flags","type":"boolean"},"max":{"description":"Maximum value accepted by the flag. This option is only used by numeric flags","type":"number"},"max_exclusive":{"description":"When true, the maximum is the first value refused rather than the largest accepted. This option is only used by numeric flags","type":"boolean"},"nullable":{"description":"Indicates if the flag is nullable","type":"boolean"},"possible_values":{"description":"Values accepted by the flag. This option is only used by enum flags","type":"array","items":{"type":"object","properties":{"text":{"type":"string","minLength":1},"value":{"type":"string"}}}},"step":{"description":"Amount the flag's increment and decrement controls move its value by. This option is only used by numeric flags","type":"number","minimum":0,"exclusiveMinimum":true}}},"title":{"description":"The human readable name of the flag","type":"string"},"status":{"description":"The flag status","type":"string","nullable":true,"enum":["alpha","beta","deprecated"]},"tags":{"description":"Tags associated with the flag, grouped by context","type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}},"value_type":{"description":"The data type of the flag value","type":"string","enum":["string","enum","boolean","number","decimal","json","object"]}},"additionalProperties":false,"required":["description","title","value_type"]}]},"InvitationDetails":{"type":"object","properties":{"created_at":{"type":"string","format":"date-time","description":"Timestamp that specifies when the invitation was created."},"expires_at":{"type":"string","format":"date-time","description":"Timestamp that specifies when the invitation will expire."},"id":{"$ref":"#/components/schemas/UUID"},"status":{"type":"string","enum":["pending","accepted","failed","in progress"]},"username":{"type":"string","description":"The username of the user that the invitation is for."},"qr_code":{"type":"string","description":"URL-safe base64-encoded payload that the SecureAuth authenticator app reads to complete pairing.\nOnly present when the requester is self-pairing.\n"},"universal_link":{"type":"string","format":"uri","description":"Universal link that opens the SecureAuth authenticator app (mobile or desktop) and completes pairing\non the device the link is opened from. Only present when the requester is self-pairing.\n"},"custom_schema_pairing_link":{"type":"string","format":"uri","description":"Deep link that opens the authenticator app on the device this response is read from and\ncompletes pairing without navigating the browser. Only present when the requester is self-pairing.\n"},"pairing_app_name":{"type":"string","description":"Display name of the authenticator app the user should open to complete pairing.\nOnly present when the requester is self-pairing.\n"}}},"InvitationCreationRequest":{"type":"object","properties":{"send_email":{"type":"boolean","default":true,"description":"Whether to send an email to the user with the invitation."}}},"PolicyCondition":{"description":"One condition of a policy. A policy matches when all of its top-level conditions match.\n\n`and`, `or` and `not` group other conditions in `children`. `and` matches when every child matches, and\n`or` when any child does. `not` holds one child and matches when that child does not. Every other name is\nchecked against the sign-in, as `params` configures it, and carries no `children`.\n\nDuring an upgrade or a rollback, a policy can hold a condition type the server doesn't recognize. A read\nreturns it as stored, with any conditions it groups in `children`. It never matches, and a write that keeps\nit is refused.\n","type":"object","properties":{"name":{"description":"The condition type, or `and`, `or` or `not` for a group.","type":"string","example":"network"},"enabled":{"description":"Whether the condition is checked. Only false skips it, with any conditions it groups; null is checked.","type":"boolean","nullable":true},"params":{"description":"Settings for the condition type. Groups have none.","type":"object","nullable":true},"children":{"description":"The conditions a group holds. Present only on `and`, `or`, `not` and an unrecognized type that groups others.","type":"array","items":{"$ref":"#/components/schemas/PolicyCondition"}}},"required":["name","enabled","params"],"additionalProperties":false},"PolicyEvent":{"description":"The step of the sign-in that evaluates the policy.","type":"string","enum":["authentication","enrollment","passkey_enrollment","post_authentication"]},"PolicyAction":{"description":"What happens when the policy matches. `authentication` policies take `accept`, `reject`, `force_oob` or\n`change_loa_score`. `enrollment` policies take `device_pairing_required` or `change_loa_score`.\n`passkey_enrollment` policies take `accept` or `reject`. `post_authentication` policies take\n`require_password`.\n","type":"string","enum":["accept","reject","force_oob","change_loa_score","device_pairing_required","require_password"]},"Policy":{"description":"A conditional policy, with its conditions. Settings policies are not available through this API.\n","type":"object","properties":{"id":{"$ref":"#/components/schemas/PolicyId"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"enabled":{"description":"Whether the policy runs. A policy whose value is false or null is off.","type":"boolean","nullable":true},"global":{"description":"When true, the policy applies to every application in the tenant. Otherwise it applies to the applications in `application_uids`.","type":"boolean","nullable":true},"event":{"$ref":"#/components/schemas/PolicyEvent"},"action":{"$ref":"#/components/schemas/PolicyAction"},"action_params":{"description":"Settings for the action, such as `loa_delta` for `change_loa_score` or `allowed_methods` for `force_oob`.","type":"object","nullable":true},"predefined":{"description":"Whether the policy shows on the Standard policies page.","type":"boolean","nullable":true},"application_uids":{"description":"Client IDs of the applications the policy applies to when it is not global.","type":"array","items":{"$ref":"#/components/schemas/ApplicationClientId"}},"conditions":{"type":"array","items":{"$ref":"#/components/schemas/PolicyCondition"}},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["id","name","description","enabled","global","event","action","action_params","predefined","application_uids","conditions","created_at","updated_at"],"additionalProperties":false},"PolicyConditionRequest":{"description":"One condition to store, shaped as `PolicyCondition`. It carries no id: a write replaces every stored condition.\n","type":"object","properties":{"name":{"description":"The condition type, or `and`, `or` or `not` for a group.","type":"string","example":"network"},"enabled":{"description":"Whether the condition is checked. Only false skips it, with any conditions it groups; null is checked.","type":"boolean","nullable":true},"params":{"description":"Settings for the condition type. Groups take none.","type":"object","nullable":true},"children":{"description":"The conditions a group holds. Only `and`, `or` and `not` take them.","type":"array","items":{"$ref":"#/components/schemas/PolicyConditionRequest"}}},"required":["name"],"additionalProperties":false},"PolicyWriteRequest":{"description":"The fields of a conditional policy a client sets. Groups in `conditions` (`and`, `or`, `not`, `children`)\nneed the tenant's Condition groups setting (`policy_condition_groups`) on.\n\nA `passkey_enrollment` policy refuses a checked `operating_system` or `request_header` condition with 422,\nbecause its requests carry no user agent and no sign-in headers. A change of `event` to `passkey_enrollment`\nis refused the same way while the policy keeps one. A write that leaves `conditions` out and keeps the event\ndoesn't recheck the stored ones.\n","type":"object","properties":{"name":{"type":"string"},"description":{"type":"string","nullable":true},"enabled":{"description":"Whether the policy runs. A policy whose value is false or null is off.","type":"boolean","nullable":true},"global":{"description":"When true, the policy applies to every application in the tenant. Otherwise it applies to the applications in `application_uids`.","type":"boolean","nullable":true},"event":{"$ref":"#/components/schemas/PolicyEvent"},"action":{"$ref":"#/components/schemas/PolicyAction"},"action_params":{"description":"Settings for the action, such as `loa_delta` for `change_loa_score` or `allowed_methods` for `force_oob`.","type":"object","nullable":true},"predefined":{"description":"Whether the policy shows on the Standard policies page.","type":"boolean","nullable":true},"application_uids":{"description":"Client IDs of the applications the policy applies to when it is not global. Replaces the stored list.","type":"array","items":{"$ref":"#/components/schemas/ApplicationClientIdWrite"}},"conditions":{"description":"The policy's conditions. Replaces every stored condition.","type":"array","items":{"$ref":"#/components/schemas/PolicyConditionRequest"}}}},"PolicyCreateRequest":{"allOf":[{"$ref":"#/components/schemas/PolicyWriteRequest"},{"type":"object","required":["name","event","action"]}]},"RoleBaseProperties":{"type":"object","properties":{"name":{"minLength":1,"type":"string"},"type":{"type":"string","enum":["SharedRole","SyncedTenantRole","TenantRole"]}}},"Role":{"allOf":[{"$ref":"#/components/schemas/RoleBaseProperties"},{"type":"object","properties":{"id":{"$ref":"#/components/schemas/RoleId"}},"required":["id","name","type"]}]},"RoleSummary":{"allOf":[{"$ref":"#/components/schemas/Role"},{"type":"object","properties":{"default":{"type":"boolean"},"global":{"type":"boolean"},"display_name":{"type":"string"}},"required":["default","global","display_name"]}]},"RoleDetails":{"allOf":[{"$ref":"#/components/schemas/RoleSummary"},{"type":"object","properties":{"entitlements":{"type":"array","items":{"$ref":"#/components/schemas/Entitlement"}}},"required":["entitlements"]}]},"RoleDetailsWithAbilities":{"allOf":[{"$ref":"#/components/schemas/RoleSummary"},{"$ref":"#/components/schemas/RecordAbilities"},{"type":"object","properties":{"entitlements":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/Entitlement"},{"$ref":"#/components/schemas/RecordAbilities"}]}}},"required":["entitlements"]}]},"RoleSource":{"type":"object","nullable":true,"additionalProperties":false,"description":"Source directory details for directory-synced roles, or `null` for non-synced roles.","properties":{"directory_name":{"type":"string","nullable":true},"directory_type":{"type":"string","nullable":true},"path":{"type":"array","items":{"type":"string"}},"domain":{"type":"string"}},"required":["directory_name","directory_type","path","domain"]},"RoleList":{"type":"array","items":{"type":"object","allOf":[{"$ref":"#/components/schemas/RoleSummary"},{"$ref":"#/components/schemas/RecordAbilities"},{"type":"object","properties":{"entitlements_count":{"type":"integer","minimum":0,"description":"Count of entitlements on the role visible to the caller, present when `include_summary=true`."},"entitlement_ids":{"type":"array","items":{"$ref":"#/components/schemas/EntitlementId"},"description":"UUIDs of entitlements on the role visible to the caller, present when `include_summary=true`."},"source":{"$ref":"#/components/schemas/RoleSource"}}}]}},"RoleCreatePayload":{"allOf":[{"$ref":"#/components/schemas/RoleBaseProperties"},{"type":"object","properties":{"entitlements":{"type":"array","items":{"$ref":"#/components/schemas/EntitlementId"}}},"required":["name","type"]}]},"RoleUpdatePayload":{"type":"object","properties":{"name":{"minLength":1,"type":"string"},"entitlements":{"type":"array","items":{"$ref":"#/components/schemas/EntitlementId"}}}},"Settings":{"type":"object","properties":{"name":{"type":"string","description":"Friendly name of the tenant."},"flags":{"type":"array","items":{"$ref":"#/components/schemas/Flag"}}}},"SettingsUpdateResult":{"type":"object","required":["users_reset"],"properties":{"users_reset":{"type":"integer","minimum":1,"description":"Users whose own value for a changed setting was removed and who now follow the organization."}}},"TemplateSummary":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/UUIDReadOnly"},"name":{"type":"string","description":"The name of the template."},"description":{"type":"string","description":"A brief description of the template."},"icon":{"type":"string","description":"The URL of the icon representing the template.","nullable":true},"target_class_name":{"type":"string","description":"The class name of the target model for the template."}},"required":["id","name","target_class_name","icon","description"]},"TemplateDetails":{"type":"object","allOf":[{"$ref":"#/components/schemas/TemplateSummary"},{"$ref":"#/components/schemas/Timestamps"},{"type":"object","properties":{"data":{"type":"object"}},"required":["data"]}]},"TemporaryPinRequest":{"type":"object","properties":{"expires_at":{"type":"string","format":"date-time","description":"When the PIN expires. Default is 24 hours from now."},"remaining_uses":{"type":"integer","nullable":true,"description":"The number of remaining uses or null for unlimited. Default is null"}}},"TemporaryPinResponse":{"allOf":[{"$ref":"#/components/schemas/TemporaryPinRequest"},{"type":"object","properties":{"id":{"$ref":"#/components/schemas/UUID"},"secret":{"type":"string","readOnly":true,"description":"The PIN value"},"creator":{"type":"object","properties":{"name":{"description":"The email address of the PIN creator (if creator is a user) or application name (if creator is an application)"},"id":{"description":"The unique identifier of the PIN creator"}},"required":["id"]},"created_at":{"type":"string","format":"date-time","description":"The time at which the PIN was created"}}}]},"AgentEnrollmentRequest":{"type":"object","required":["csr","unique_workstation_id","unique_user_id"],"properties":{"csr":{"type":"string","description":"PEM-encoded certificate signing request. Only its public key is used; the subject it claims is ignored. The key must be EC on the P-256 (`prime256v1`) curve.\n"},"unique_workstation_id":{"type":"string","maxLength":255,"description":"The customer's identifier for the machine."},"unique_user_id":{"type":"string","maxLength":255,"description":"The customer's identifier for the operating-system account."},"attestation":{"type":"object","description":"The agent's self-reported enrollment evidence. Recorded verbatim; never server-verified. Refused with `invalid` past 16 KB of serialized JSON.\n"},"agent_version":{"type":"string","description":"Recorded when supplied. A value longer than 255 characters, or one that is blank after trimming, is recorded as absent rather than truncated.\n"},"inference_provider":{"type":"string","description":"The hardware backend the agent resolved — currently cpu, coreml or directml. Deliberately not an enum: a backend this list has not learned yet is recorded as absent rather than failing the enrollment carrying it.\n"},"seed_public_key":{"$ref":"#/components/schemas/AgentSeedPublicKey"}}},"AgentRenewalRequest":{"type":"object","required":["csr"],"properties":{"csr":{"type":"string","description":"PEM-encoded certificate signing request. Only its public key is used; the subject it claims is ignored. The key must be EC on the P-256 (`prime256v1`) curve, and must not be the one the agent's current certificate carries.\n"},"agent_version":{"type":"string","description":"Recorded when supplied. Omitting it, or sending it blank, leaves what the row already knows, unlike enrollment, which replaces both fields wholesale. A value longer than 255 characters clears the recorded one rather than being truncated.\n"},"inference_provider":{"type":"string","description":"The hardware backend the agent resolved — currently cpu, coreml or directml. A value this list has not learned yet clears the recorded one rather than failing the renewal.\n"}}},"AgentEventBatchRequest":{"type":"object","required":["events"],"properties":{"events":{"type":"array","minItems":1,"maxItems":500,"description":"One batch of published agent events. Nothing inside an item is required here on purpose: a fault in one event is itemized in `rejected` and the rest of the batch still lands, which a schema-level requirement would turn into a wholesale refusal.\n","items":{"description":"One published event, kept verbatim in `payload`. `id` is the uuid the agent assigns; replaying it in the same region stores nothing, which is what makes upload idempotent. An event carrying none is itemized as `missing_id`, since nothing could deduplicate it. An event with a readable id is stored only if it also carries `event_type` and `t_wall`; one that lacks either is itemized as `invalid`. The item declares no `type`, so an element which is not an object is itemized as `malformed` rather than refusing the batch; `null` is itemized the same way.\n","nullable":true,"additionalProperties":true}}}},"AgentEventBatchResponse":{"type":"object","required":["accepted","duplicate","rejected"],"properties":{"accepted":{"type":"integer","description":"Events stored by this request."},"duplicate":{"type":"integer","description":"Events already stored, whether the repeat came from an earlier batch or from twice inside this one. Not an error: it is what a replayed upload reports.\n"},"rejected":{"type":"array","description":"One entry per event that could not be stored, in no particular order.","items":{"type":"object","required":["id","code","detail"],"properties":{"id":{"type":"string","nullable":true,"description":"The event's own id, or null when it carried none to report."},"code":{"type":"string","enum":["missing_id","malformed","invalid"],"description":"`missing_id` when no id was sent, `malformed` when the event or its id could not be read at all, `invalid` when a field was missing or failed its type or range.\n"},"detail":{"type":"string","description":"Which field failed, for the agent's own log. Not a localized message."}}}}}},"AgentInstallerPlatform":{"type":"string","enum":["macos","windows"]},"AgentInstallerVariant":{"type":"string","enum":["plain","sentinel"],"description":"`sentinel` is the kill-protected build.\n"},"AgentInstallerArch":{"type":"string","enum":["x64","arm64"]},"AgentInstallerVersion":{"type":"string","description":"`X.Y.Z`, each part 0 to 1023 without a leading zero. The installer's own build number is not part of it: of several builds of one version, the highest is the one served.\n","pattern":"^(0|[1-9][0-9]{0,2}|10[01][0-9]|102[0-3])\\.(0|[1-9][0-9]{0,2}|10[01][0-9]|102[0-3])\\.(0|[1-9][0-9]{0,2}|10[01][0-9]|102[0-3])$","example":"3.1.3"},"AgentInstallerFeedResponse":{"type":"object","required":["schema","releases"],"properties":{"schema":{"type":"integer","enum":[1],"description":"The feed format's version. An agent should ignore a feed whose schema it does not know."},"releases":{"type":"array","description":"One entry per platform, variant and arch the store holds an installer for, ordered by platform, variant and then arch.\n","items":{"$ref":"#/components/schemas/AgentInstallerRelease"}}},"additionalProperties":false},"AgentInstallerRelease":{"type":"object","required":["platform","variant","arch","version","published"],"properties":{"platform":{"$ref":"#/components/schemas/AgentInstallerPlatform"},"variant":{"$ref":"#/components/schemas/AgentInstallerVariant"},"arch":{"$ref":"#/components/schemas/AgentInstallerArch"},"version":{"$ref":"#/components/schemas/AgentInstallerVersion"},"published":{"type":"string","format":"date","description":"The UTC date the installer was published."}},"additionalProperties":false},"AgentInstallerDownloadResponse":{"type":"object","required":["version","url","expires_in"],"properties":{"version":{"$ref":"#/components/schemas/AgentInstallerVersion"},"url":{"type":"string","format":"uri","description":"A presigned GET for the installer zip. It needs no credential and must not be logged."},"expires_in":{"type":"integer","description":"Seconds from issue until `url` stops working. It can be shorter than the deployment's configured link life, since a link signed with temporary credentials ends with them.\n"}},"additionalProperties":false},"AgentEnrollmentResponse":{"type":"object","required":["id","certificate","ca_chain"],"properties":{"id":{"type":"string","format":"uuid","description":"The agent the returned certificate identifies."},"certificate":{"type":"string","description":"PEM-encoded leaf certificate."},"ca_chain":{"type":"array","items":{"type":"string"},"description":"PEM-encoded issuers, excluding the leaf."}}},"CertificateRequest":{"type":"object","properties":{"certificate":{"type":"string"},"public_key":{"type":"string"},"friendly_name":{"type":"string"},"certificate_type":{"type":"string","enum":["signing_certificate","verifying_certificate","certificate_authority"]}}},"EmailResponse":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/EmailAddressId"},"email_address":{"type":"string","format":"email","maxLength":255},"is_confirmed":{"type":"boolean"}},"required":["id","email_address","is_confirmed"]},"EmailRequest":{"type":"object","properties":{"email_address":{"type":"string","format":"email","maxLength":255},"is_confirmed":{"type":"boolean"}},"required":["email_address"]},"OAuthProviderMappings":{"type":"array","nullable":true,"items":{"type":"object","properties":{"source":{"type":"string"},"target":{"type":"string"},"transform":{"oneOf":[{"$ref":"#/components/schemas/OAuthProviderMappingTransform"},{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/OAuthProviderMappingTransform"}}]},"validation":{"oneOf":[{"$ref":"#/components/schemas/OAuthProviderMappingValidation"},{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/OAuthProviderMappingValidation"}}]}}}},"OAuthProviderVerifier":{"anyOf":[{"type":"object","nullable":true,"properties":{"jwks_url":{"type":"string","format":"uri"}},"required":["jwks_url"]},{"type":"object","nullable":true,"properties":{"jwks":{"type":"object","required":["keys"],"properties":{"keys":{"type":"array","minItems":1,"items":{"type":"object","required":["kty"],"properties":{"kty":{"type":"string"},"alg":{"type":"string"},"use":{"type":"string"},"kid":{"type":"string"},"x5c":{"type":"array","items":{"type":"string"}},"n":{"type":"string"},"e":{"type":"string"},"x5t":{"type":"string"},"crv":{"type":"string"},"x":{"type":"string"},"y":{"type":"string"},"k":{"type":"string"}}}}}}},"required":["jwks"]}]},"OAuthProviderServerMetadata":{"type":"object","nullable":true,"properties":{"authorization_endpoint":{"type":"string","format":"uri"},"token_endpoint":{"type":"string","format":"uri"},"jwks_uri":{"type":"string","format":"uri"},"token_endpoint_auth_methods_supported":{"type":"array","minItems":1,"items":{"type":"string"}}},"required":["authorization_endpoint","token_endpoint","jwks_uri"]},"OAuthProviderSourceAttributes":{"type":"array","nullable":true,"items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"label":{"type":"string","minLength":1},"type":{"type":"string","enum":["string","uuid"]},"array":{"type":"boolean"}},"required":["name","label","type"]}},"OAuthProviderSummary":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/OAuthProviderId"},"name":{"type":"string"},"issuer":{"type":"string"}},"required":["name","issuer"]},"OAuthProviderDetails":{"type":"object","allOf":[{"$ref":"#/components/schemas/OAuthProviderSummary"},{"$ref":"#/components/schemas/Timestamps"},{"type":"object","properties":{"well_known_configuration_url":{"type":"string","format":"uri","nullable":true},"server_metadata":{"$ref":"#/components/schemas/OAuthProviderServerMetadata"},"verifier":{"$ref":"#/components/schemas/OAuthProviderVerifier"},"mappings":{"$ref":"#/components/schemas/OAuthProviderMappings"},"source_attributes":{"$ref":"#/components/schemas/OAuthProviderSourceAttributes"}}}]},"OAuthProviderMappingTransform":{"type":"object","properties":{"type":{"type":"string","enum":["value","finder_builder","profile_builder","inject","strip_email_domain"]},"options":{"type":"object"}},"required":["type"]},"OAuthProviderMappingValidation":{"type":"object","properties":{"type":{"type":"string","enum":["application_roles","json_schema"]},"options":{"type":"object"}},"required":["type"]},"OAuthProviderEditRequest":{"type":"object","properties":{"name":{"type":"string"},"issuer":{"type":"string"},"well_known_configuration_url":{"type":"string","format":"url"},"server_metadata":{"$ref":"#/components/schemas/OAuthProviderServerMetadata"},"verifier":{"$ref":"#/components/schemas/OAuthProviderVerifier"},"mappings":{"$ref":"#/components/schemas/OAuthProviderMappings"},"source_attributes":{"$ref":"#/components/schemas/OAuthProviderSourceAttributes"}}},"OAuthProviderCreateRequest":{"allOf":[{"$ref":"#/components/schemas/OAuthProviderEditRequest"},{"type":"object","required":["name","issuer"]}]},"SamlProviderSummary":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/SamlProviderId"},"name":{"type":"string"},"entity_id":{"type":"string"}},"required":["name","entity_id"]},"SamlProviderDetails":{"type":"object","allOf":[{"$ref":"#/components/schemas/SamlProviderSummary"},{"$ref":"#/components/schemas/Timestamps"},{"type":"object","properties":{"sso_url":{"type":"string"},"certificates":{"type":"array","items":{"type":"string","description":"PEM-encoded X.509 certificate"}}},"required":["sso_url","certificates"]}]},"SamlProviderEditRequest":{"type":"object","properties":{"name":{"type":"string"},"entity_id":{"type":"string"},"sso_url":{"type":"string"},"certificates":{"type":"array","items":{"type":"string"}}}},"SamlProviderCreateRequest":{"allOf":[{"$ref":"#/components/schemas/SamlProviderEditRequest"},{"type":"object","required":["name","entity_id","sso_url","certificates"]}]},"SamlProviderMetadataParseRequest":{"type":"object","properties":{"metadata_xml":{"type":"string","maxLength":1048576,"description":"The upstream IdP's SAML metadata document. Rejected above 1 MiB, since the document is\nbuilt into a DOM in process before any field is read from it.\n"}},"required":["metadata_xml"]},"SamlProviderMetadataPrefill":{"type":"object","description":"Fields read from an IdP metadata document, for prefilling a SAML provider form. Nothing is\npersisted. A field the metadata does not carry is omitted rather than returned empty, so\nevery property here is optional.\n","properties":{"entity_id":{"type":"string"},"sso_url":{"type":"string"},"certificates":{"type":"array","items":{"type":"string","description":"PEM-encoded X.509 certificate"}}}},"FederatedIdpClient":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["FederatedOAuthClient","FederatedSamlClient"]},"identity_provider_id":{"$ref":"#/components/schemas/UUID"},"auto_provision_user":{"type":"boolean"},"sync_profile_attributes":{"type":"boolean"},"sync_user_groups":{"type":"boolean"},"sync_global_roles":{"type":"boolean"},"enabled":{"type":"boolean"}}},"FederatedOAuthClient":{"allOf":[{"$ref":"#/components/schemas/FederatedIdpClient"},{"type":"object","properties":{"client_id":{"type":"string","minLength":1},"client_secret":{"type":"string","nullable":true},"grant_type":{"type":"string","enum":["authorization_code"]},"scopes":{"type":"array","items":{"type":"string"}},"response_types":{"type":"array","items":{"type":"string","enum":["code"]}},"token_endpoint_auth_method":{"type":"string","enum":["client_secret_basic","client_secret_post","none"]},"token_type":{"type":"string","enum":["id_token","access_token"]},"audience":{"type":"string","nullable":true},"id_token_signed_response_alg":{"type":"string","nullable":true},"pkce":{"type":"boolean"},"resources":{"type":"array","items":{"type":"string"}}}}]},"FederatedSamlClient":{"allOf":[{"$ref":"#/components/schemas/FederatedIdpClient"},{"type":"object","properties":{"name_id_format":{"type":"string","enum":["unspecified","email_address","x_509_subject_name","windows_domain_qualified_name","kerberos","entity","persistent","transient","encrypted"]},"attribute_mapping":{"type":"object","additionalProperties":false,"properties":{"email":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"groups":{"type":"string"}}}}}]},"FederatedIdpClientSummary":{"type":"object","required":["id","name","type","enabled"],"properties":{"id":{"$ref":"#/components/schemas/FederatedIdpClientId"},"name":{"type":"string"},"enabled":{"type":"boolean"},"type":{"type":"string","enum":["FederatedOAuthClient","FederatedSamlClient"]},"redirect_url":{"type":"string","format":"url"},"acs_url":{"type":"string","format":"url"},"sp_entity_id":{"type":"string"}}},"FederatedOAuthClientDetails":{"type":"object","allOf":[{"$ref":"#/components/schemas/FederatedOAuthClient"},{"$ref":"#/components/schemas/FederatedIdpClientSummary"},{"$ref":"#/components/schemas/Timestamps"},{"type":"object","required":["id","name","type","redirect_url","identity_provider_id","identity_provider_type","client_id","client_secret","grant_type","scopes","response_types","token_endpoint_auth_method","token_type","audience","id_token_signed_response_alg","pkce","identity_provider"],"properties":{"identity_provider_type":{"type":"string","enum":["ArculixOAuth::OAuthProvider"]},"identity_provider":{"$ref":"#/components/schemas/FederatedIdpClientProvider"}}}]},"FederatedSamlClientDetails":{"type":"object","allOf":[{"$ref":"#/components/schemas/FederatedSamlClient"},{"$ref":"#/components/schemas/FederatedIdpClientSummary"},{"$ref":"#/components/schemas/Timestamps"},{"type":"object","required":["id","name","type","identity_provider_id","identity_provider_type","name_id_format","attribute_mapping","acs_url","sp_entity_id","identity_provider"],"properties":{"identity_provider_type":{"type":"string","enum":["SamlProvider"]},"identity_provider":{"$ref":"#/components/schemas/FederatedIdpClientProvider"}}}]},"FederatedIdpClientProvider":{"type":"object","nullable":true,"description":"The identity provider the client is bound to. Null when its provider has since been deleted.","properties":{"id":{"$ref":"#/components/schemas/UUID"},"name":{"type":"string"}},"required":["id","name"]},"FederatedIdpClientDetails":{"type":"object","oneOf":[{"$ref":"#/components/schemas/FederatedOAuthClientDetails"},{"$ref":"#/components/schemas/FederatedSamlClientDetails"}],"discriminator":{"propertyName":"type","mapping":{"FederatedOAuthClient":"#/components/schemas/FederatedOAuthClientDetails","FederatedSamlClient":"#/components/schemas/FederatedSamlClientDetails"}}},"FederatedOAuthClientSecretRequiredUnlessTokenEndpointAuthMethodNone":{"type":"object","anyOf":[{"type":"object","required":["client_secret"],"properties":{"client_secret":{"type":"string","minLength":1,"nullable":false}}},{"type":"object","required":["token_endpoint_auth_method"],"properties":{"token_endpoint_auth_method":{"type":"string","enum":["none"]}}}]},"FederatedOAuthClientCreateRequest":{"type":"object","allOf":[{"$ref":"#/components/schemas/FederatedOAuthClient"},{"$ref":"#/components/schemas/FederatedOAuthClientSecretRequiredUnlessTokenEndpointAuthMethodNone"},{"type":"object","required":["name","identity_provider_id","client_id","grant_type","token_endpoint_auth_method"]}]},"FederatedSamlClientCreateRequest":{"type":"object","allOf":[{"$ref":"#/components/schemas/FederatedSamlClient"},{"type":"object","required":["name","identity_provider_id"]}]},"FederatedIdpClientCreateRequest":{"oneOf":[{"$ref":"#/components/schemas/FederatedOAuthClientCreateRequest"},{"$ref":"#/components/schemas/FederatedSamlClientCreateRequest"}],"discriminator":{"propertyName":"type","mapping":{"FederatedOAuthClient":"#/components/schemas/FederatedOAuthClientCreateRequest","FederatedSamlClient":"#/components/schemas/FederatedSamlClientCreateRequest"}}},"FederatedIdpClientPatchRequest":{"allOf":[{"$ref":"#/components/schemas/FederatedOAuthClient"},{"$ref":"#/components/schemas/FederatedSamlClient"}]},"UserBase":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/UserId"},"username":{"type":"string"}},"required":["id","username"]},"UserRequest":{"type":"object","properties":{"first_name":{"type":"string","nullable":true,"format":"name"},"last_name":{"type":"string","nullable":true,"format":"name"},"mobile_phone_number":{"type":"string","nullable":true,"format":"phone","pattern":"^\\+([0-9] ?){6,14}[0-9]$","maxLength":255,"example":"+1 555 555 5555"}}},"CreateUserRequest":{"allOf":[{"$ref":"#/components/schemas/UserRequest"},{"type":"object","properties":{"username":{"type":"string","description":"The identifier for the user. Must be unique within the same tenant. Might be restricted to specific formats depending on the settings for the \"arculix_username_format\" flag"}},"required":["username"]}]},"UserResponse":{"allOf":[{"$ref":"#/components/schemas/UserBase"},{"type":"object","properties":{"first_name":{"type":"string","format":"name","nullable":true},"last_name":{"type":"string","format":"name","nullable":true},"last_login_at":{"type":"string","format":"date-time","nullable":true},"last_mfa_at":{"type":"string","format":"date-time","nullable":true,"deprecated":true},"mobile_phone_number":{"type":"string","format":"phone","nullable":true},"email_addresses":{"type":"array","items":{"$ref":"#/components/schemas/EmailResponse"}}}},{"$ref":"#/components/schemas/Timestamps"}]},"UserList":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/UserBase"},{"type":"object","properties":{"email_addresses":{"type":"array","items":{"type":"string","format":"email","maxLength":255}}}}]}},"Workstation":{"allOf":[{"$ref":"#/components/schemas/WorkstationBase"},{"type":"object","properties":{"unique_workstation_id":{"description":"The local unique identifier for the workstation. On most systems, this is a GUID.","type":"string"},"unique_user_id":{"description":"The unique identifier for the user on the workstation. On most systems, this is a GUID.","type":"string"},"session_state":{"type":"string"},"last_heartbeat_time":{"description":"The last time we received a heartbeat from the workstation.","type":"string","format":"date-time","nullable":true},"last_ip_address":{"description":"The last IP address the workstation sent us.","type":"string","format":"ipv4","nullable":true},"public_key":{"type":"string","nullable":true},"system_attributes":{"type":"object","properties":{"os":{"description":"The name of the operating system on the workstation.","type":"string","example":"Windows"},"version":{"description":"The version of the operating system on the workstation.","type":"string"},"device_model":{"description":"The workstation's model identifier.","type":"string","example":"iMac17,1"},"agent_version":{"description":"The version of the agent running on the workstation.","type":"string","example":"627.1352"},"bulk":{"type":"boolean"},"nic_mac":{"description":"The MAC address of the network interface card on the workstation.","type":"string","format":"MAC"},"private_ip":{"description":"The private IP address of the workstation. This is its address inside your network.","type":"string","format":"ipv4"},"gateway_mac":{"description":"The MAC address of the gateway the workstation is using.","type":"string","format":"MAC"},"updates_enabled":{"type":"boolean"},"firewall_enabled":{"type":"boolean"},"bitlocker_enabled":{"type":"boolean"},"uefi_secure_boot_enabled":{"type":"boolean"},"password_enabled":{"description":"Indicates if the user is able to log in with their password, bypassing MFA.","type":"boolean"}},"additionalProperties":true,"readOnly":true}}},{"$ref":"#/components/schemas/Timestamps"}]},"WorkstationBase":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/WorkstationId"},"last_ip_address_update":{"description":"The last time the workstation sent us an updated IP address.","type":"string","format":"date-time","nullable":true},"user_id":{"$ref":"#/components/schemas/UserId"},"user_identifier":{"type":"string"},"domain_name":{"type":"string","nullable":true},"name":{"type":"string","nullable":true},"workstation_username":{"type":"string","nullable":true},"os":{"type":"string","nullable":true,"example":"Windows"},"paired":{"type":"boolean"},"persistent":{"type":"boolean"},"status":{"$ref":"#/components/schemas/WorkstationStatus"},"abilities":{"type":"object","nullable":true,"description":"Record-level abilities, present when include_abilities=true.","additionalProperties":{"type":"boolean"}}},"required":["id"]},"WorkstationStatus":{"type":"string","enum":["paired","unpaired","revoked"]},"WorkstationMachine":{"type":"object","properties":{"machine_id":{"type":"string","nullable":true},"workstation_count":{"type":"integer"},"name":{"type":"string","nullable":true},"domain_name":{"type":"string","nullable":true},"os":{"type":"string","nullable":true},"last_used":{"type":"string","format":"date-time","nullable":true,"description":"Computed over the pairings sample returned inline in `workstations`, not over the machine's full pairing set."},"workstations":{"type":"array","items":{"$ref":"#/components/schemas/WorkstationBase"}}},"required":["machine_id","workstation_count","workstations"]},"AgentType":{"description":"The agent product this enrollment belongs to.","type":"string","enum":["presence_authority"]},"AgentConfiguration":{"description":"Everything an agent needs to enroll, and the settings its administrators chose. The per-agent document names the agent; the tenant-level one does not. The four top-level keys are fixed: deployed agents refuse a document carrying any other, so data added later travels in its own claim of the signed token, as `it_seed` does. Below the top level, ignore any field you don't recognize: later versions may add fields there.","type":"object","additionalProperties":false,"required":["agent_type","enrollment","settings"],"properties":{"agent_type":{"$ref":"#/components/schemas/AgentType"},"agent_id":{"type":"string","format":"uuid","description":"The agent this document was built for, as enrollment returned its `id`."},"enrollment":{"type":"object","additionalProperties":false,"required":["tenant","issuer","discovery_url","client_id","redirect_uri","oidc_scopes","scopes","enrollment_endpoint"],"properties":{"tenant":{"type":"string","description":"The tenant's slug, as it appears in API paths."},"issuer":{"type":"string","description":"The tenant's OIDC issuer, which signs the sign-in tokens and the JWT form of this document."},"discovery_url":{"type":"string","description":"The issuer's OpenID discovery document, for its authorization, token and JWKS endpoints."},"client_id":{"type":"string","description":"The tenant's Presence Authority OIDC client, which the agent signs in through."},"redirect_uri":{"type":"string","description":"The loopback redirect URI the client registers for the agent's browser sign-in."},"oidc_scopes":{"type":"array","description":"The OIDC scopes to request at sign-in.","items":{"type":"string"}},"scopes":{"type":"array","description":"The eGuardian API scopes to request at sign-in, for the enrollment call and later agent calls.","items":{"type":"string"}},"enrollment_endpoint":{"type":"string","description":"The URL the agent posts its enrollment to."}}},"settings":{"description":"Each flag's resolved value: the user override, else the organization value, else the default. Decimals are strings in plain notation. Unknown keys are to be ignored.","type":"object","additionalProperties":{"nullable":true,"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}}]}}}},"AgentSeedPublicKey":{"type":"string","description":"The desk's P-256 (`prime256v1`) public key for the IT disarm seed, as one PEM `PUBLIC KEY` (SubjectPublicKeyInfo) block of at most 1 KB. A compressed point is accepted and stored uncompressed. A private key, another curve or anything else is refused with `invalid_seed_public_key` before the request spends its token. Every enrollment replaces the stored key, and an enrollment without one clears it.\n"},"AgentSeedVersion":{"type":"integer","minimum":1,"description":"The version of the tenant's seed key. It goes into the seed derivation, so a desk holding an older version derives a different seed.\n"},"AgentSeedKeyRequest":{"type":"object","required":["seed_public_key"],"properties":{"seed_public_key":{"$ref":"#/components/schemas/AgentSeedPublicKey"}}},"AgentSeedKeyResponse":{"type":"object","required":["tenant_seed_public_key","seed_version"],"properties":{"tenant_seed_public_key":{"$ref":"#/components/schemas/AgentTenantSeedPublicKey"},"seed_version":{"$ref":"#/components/schemas/AgentSeedVersion"}}},"AgentTenantSeedPublicKey":{"type":"string","description":"The tenant's P-256 public key for the IT disarm seed, as one uncompressed PEM `PUBLIC KEY` block.\nThe desk and eGuardian derive the same seed without either sending it:\n\n```\nshared = ECDH-P256(own private key, other side's public key)    # 32-byte x-coordinate\ninfo   = \"pa-it-totp-v1\" || agent_id || uint32_be(seed_version)  # agent_id: 36 lowercase ASCII characters\nseed   = HKDF-SHA256(ikm = shared, salt = \"\", info, length = 20)\ncode   = TOTP(seed, SHA-1, 30-second step, 8 digits)\n```\n"},"AgentStatus":{"description":"The agent row's own state. Revoked was retired by an administrator; deregistered means the agent reported its local enrollment removed. Neither is terminal — re-enrolling returns an agent to active.","type":"string","enum":["active","revoked","deregistered"]},"Agent":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/AgentId"},"user_id":{"$ref":"#/components/schemas/UserId"},"user_identifier":{"description":"The email address of the user the agent enrolled under.","type":"string"},"agent_type":{"$ref":"#/components/schemas/AgentType"},"status":{"$ref":"#/components/schemas/AgentStatus"},"active":{"description":"Whether the agent's credential will pass verification right now: status active and the certificate unexpired. Read with status, this separates a live agent from one whose certificate simply lapsed.","type":"boolean"},"unique_workstation_id":{"description":"The machine identifier the agent reported at enrollment.","type":"string"},"unique_user_id":{"description":"The identifier of the account the agent enrolled under.","type":"string"},"not_after":{"description":"When the agent's current certificate expires.","type":"string","format":"date-time","nullable":true},"last_seen_at":{"description":"The last time the agent reached the API. Staleness is the reader's to judge; no threshold is implied.","type":"string","format":"date-time","nullable":true},"revoked_at":{"description":"When the agent was revoked, if it currently is.","type":"string","format":"date-time","nullable":true},"renewed_at":{"description":"When the agent last renewed its certificate.","type":"string","format":"date-time","nullable":true},"created_at":{"type":"string","format":"date-time"}},"required":["id","user_id","agent_type","status","active","unique_workstation_id","unique_user_id","created_at"]},"PasskeyMetadata":{"type":"object","nullable":true,"properties":{"aaguid":{"type":"string","description":"The authenticator's AAGUID","example":"cb69481e-8ff7-4039-93ec-0a2729a154a8"},"name":{"type":"string","nullable":true,"description":"Human-readable name of the authenticator","example":"YubiKey 5 Series"},"source":{"type":"string","enum":["custom","fido_mds","community"],"description":"Source of the metadata information:\n- custom: Custom passkey AAGUIDs (highest priority)\n- fido_mds: FIDO Metadata Service\n- community: Community passkey-authenticator-aaguids (lowest priority)\n","example":"fido_mds"},"attestation_types":{"type":"array","nullable":true,"items":{"type":"string"},"description":"List of supported attestation types"},"authentication_algorithms":{"type":"array","nullable":true,"items":{"type":"string"},"description":"List of supported authentication algorithms"},"crypto_strength":{"type":"integer","nullable":true,"description":"Cryptographic strength in bits"},"authenticator_version":{"type":"integer","nullable":true,"description":"Version of the authenticator"},"has_attestation_roots":{"type":"boolean","description":"True when the authenticator's FIDO MDS entry lists attestation root certificates, so its\nattestation can be verified. Always false for custom and community sources. Not included in a\nWebAuthn credential's metadata.\n"},"compromised":{"type":"boolean","description":"True when the authenticator's FIDO MDS entry carries a compromise status, such as REVOKED.\nAlways false for custom and community sources. Not included in a WebAuthn credential's metadata.\n"}}},"PasskeyGroupValueCount":{"type":"object","description":"One raw FIDO MDS value and how many authenticators (AAGUIDs) have it.","properties":{"value":{"oneOf":[{"type":"string"},{"type":"integer"},{"type":"boolean"}],"description":"The raw MDS value, unlabeled."},"count":{"type":"integer","minimum":1}},"required":["value","count"]},"PasskeyGroupFidoMetadataField":{"type":"object","description":"One FIDO MDS field a passkey group can match on. A `map` field lists its keys, each with its own values;\nevery other shape lists its values.\n","properties":{"field":{"type":"string","description":"The field's path in the MDS entry, as stored in a group entry.","example":"metadataStatement.keyProtection"},"label_key":{"type":"string","enum":["certification","key_protection","attachment","transport","user_verification_method","matcher_protection","attestation_type","crypto_strength","key_restricted","fresh_user_verification_required"],"description":"The field's key under `users_dashboard.policies.details.passkey.groups.fields`."},"shape":{"type":"string","enum":["list","map","single","boolean"]},"values":{"type":"array","items":{"$ref":"#/components/schemas/PasskeyGroupValueCount"}},"keys":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","example":"FIPS-CMVP-3"},"values":{"type":"array","items":{"$ref":"#/components/schemas/PasskeyGroupValueCount"}}},"required":["key","values"]}}},"required":["field","label_key","shape"]},"PasskeyGroupCount":{"type":"object","properties":{"count":{"type":"integer","minimum":0}},"required":["count"]},"PasskeyGroupCatalog":{"type":"object","properties":{"enabled":{"type":"boolean","description":"The organization's own value of the passkey AAGUID groups flag."},"fido_metadata":{"type":"array","description":"Every FIDO Metadata Service field with the values authenticators report. Empty while that data is unavailable.","items":{"$ref":"#/components/schemas/PasskeyGroupFidoMetadataField"}},"fido_certification_level":{"type":"array","description":"Each FIDO certification level authenticators hold, in level order.","items":{"$ref":"#/components/schemas/PasskeyGroupValueCount"}},"community":{"$ref":"#/components/schemas/PasskeyGroupCount"},"device_application":{"$ref":"#/components/schemas/PasskeyGroupCount"}},"required":["enabled","fido_metadata","fido_certification_level","community","device_application"]},"WorkstationInvitation":{"type":"object","properties":{"jwt":{"type":"string"},"pairing_uri":{"type":"string"}}},"WebAuthnCredential":{"type":"object","properties":{"webauthn_id":{"$ref":"#/components/schemas/WebAuthnId"},"name":{"type":"string"},"created_at":{"type":"string","format":"date-time","readOnly":true,"description":"When the credential was first created."},"aaguid":{"type":"string","nullable":true,"description":"Authenticator Attestation GUID.\nSee https://fidoalliance.org/specs/mds/fido-metadata-statement-v3.0-ps-20210518.html#authenticator-attestation-guid-aaguid-typedef\n","example":"1bfb3097-c263-7bf6-62b6-54ac4fed4ad3"},"public_key":{"type":"string","description":"The public key material for WebAuthn authentication. This is stored in COSE (CBOR Object Signing and Encryption) format,\nwhich is a binary representation of the cryptographic public key returned by the authenticator.\nThe key is encoded in CBOR (Concise Binary Object Representation) according to RFC 8152 and transmitted\nas a base64-encoded string.\nSee: https://www.w3.org/TR/webauthn/#sctn-public-key-easy\n","example":"pQECAyYgASFYIMFFj9rj3jTovRlQEcR4QKK6EtAUryR2tsQUTs3UJqxDIlggbdNCkgZ5FaGEQFHhwf66WYmv9s6NiQNZPuOIOmP480w"},"sign_count":{"type":"integer","format":"int64","description":"Number of times this credential has been used for authentication","example":1594165889},"last_used_at":{"type":"string","format":"date-time","nullable":true,"readOnly":true,"description":"When the credential was last used for a successful authentication. Null if it has not\nbeen used since this field was introduced (no historical backfill).\n","example":"2026-06-18T17:42:00Z"},"metadata":{"$ref":"#/components/schemas/PasskeyMetadata"}},"required":["webauthn_id","name","created_at","public_key","sign_count"]},"WebAuthnCredentialCreationOptions":{"type":"object","properties":{"challenge":{"type":"string","format":"byte"},"rp":{"description":"Relying Party","type":"object","properties":{"name":{"type":"string","example":"Arculix"},"id":{"type":"string","format":"domain","example":"arculix.com"}}},"user":{"type":"object","properties":{"name":{"type":"string"},"id":{"$ref":"#/components/schemas/WebAuthnId"},"displayName":{"type":"string"}}},"pubKeyCredParams":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["public-key"]},"alg":{"description":"@see https://www.iana.org/assignments/cose/cose.xhtml#algorithms\n","type":"integer","example":-7}}}},"authenticatorSelection":{"type":"object","properties":{"authenticatorAttachment":{"type":"string","enum":["cross-platform","platform"]},"residentKey":{"type":"string","enum":["discouraged","preferred","required"]},"requireResidentKey":{"type":"boolean","default":false,"deprecated":true},"userVerification":{"type":"string","enum":["required","preferred","discouraged"],"default":"preferred"}}},"timeout":{"description":"The number of milliseconds the user has to respond to the request before receiving an error.\n","type":"integer"},"attestation":{"type":"string","enum":["none","indirect","direct","enterprise"]},"excludeCredentials":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["public-key"]},"id":{"$ref":"#/components/schemas/WebAuthnId"}}}},"extensions":{"description":"Optional registration extension to request client credential data","type":"object"}}},"TenantProperties":{"type":"object","properties":{"branding":{"$ref":"#/components/schemas/TenantBranding"},"name":{"type":"string","minLength":1},"session_timeout":{"description":"Length of time (in seconds) that a session will be valid for","type":"integer","nullable":true},"slug":{"$ref":"#/components/schemas/TenantSlug"},"url":{"type":"string","format":"url","nullable":true,"minLength":1}}},"TenantDetails":{"type":"object","allOf":[{"$ref":"#/components/schemas/Timestamps"},{"$ref":"#/components/schemas/TenantProperties"},{"type":"object","properties":{"default_auth_directory_id":{"$ref":"#/components/schemas/UUIDNullable"},"id":{"type":"string","format":"uid","pattern":"^[0-9a-f]+$","minLength":1,"maxLength":255},"active":{"description":"Whether the tenant is currently enabled","type":"boolean","readOnly":true}},"required":["branding","created_at","id","name","session_timeout","slug","updated_at","url"]}]},"TenantDetailsWithSettings":{"type":"object","allOf":[{"$ref":"#/components/schemas/TenantDetails"},{"type":"object","properties":{"settings":{"type":"array","items":{"$ref":"#/components/schemas/Flag"}}},"required":["settings"]}]},"TenantCommonPayload":{"type":"object","allOf":[{"$ref":"#/components/schemas/TenantProperties"},{"type":"object","properties":{"branding":{"nullable":false},"session_timeout":{"nullable":false},"url":{"nullable":false}}}]},"TenantCreatePayload":{"type":"object","allOf":[{"$ref":"#/components/schemas/TenantCommonPayload"},{"type":"object","properties":{"settings":{"type":"array","items":{"$ref":"#/components/schemas/Flag"},"minItems":1}},"required":["name","slug","url"]}]},"TenantUpdatePayload":{"type":"object","allOf":[{"$ref":"#/components/schemas/TenantCommonPayload"},{"type":"object","properties":{"active":{"description":"Toggle tenant enabled/disabled state","type":"boolean"},"default_auth_directory_id":{"$ref":"#/components/schemas/UUID"}}}]},"DirectorySummary":{"type":"object","properties":{"domains":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"}}}},"id":{"$ref":"#/components/schemas/UUID"},"name":{"type":"string"},"type":{"$ref":"#/components/schemas/DirectoryType"}},"required":["domains","id","name","type"]},"DirectoryDetails":{"type":"object","allOf":[{"$ref":"#/components/schemas/DirectorySummary"},{"$ref":"#/components/schemas/Timestamps"},{"type":"object","properties":{"config":{"type":"object"},"mappings":{"$ref":"#/components/schemas/DirectoryMappings"},"last_synced_at":{"type":"string","format":"date-time","readOnly":true,"nullable":true},"saml_attribute_warnings":{"type":"array","readOnly":true,"description":"Active Directory only. The SAML applications that read attributes this directory's login leaves out. Their users get an empty value, or fail sign-in when the attribute is the issuer domain attribute or is read by a code getter.","items":{"type":"object","required":["application","attributes","unchecked"],"properties":{"application":{"type":"string","description":"The SAML application's name."},"attributes":{"type":"array","description":"Attributes the application reads that this directory does not fetch at login.","items":{"type":"string"}},"unchecked":{"type":"array","description":"Asserted attributes whose code getter cannot be checked against what this directory fetches.","items":{"type":"string"}}}}}},"required":["config","created_at","updated_at"]},{"type":"object","oneOf":[{"$ref":"#/components/schemas/DirectoryConfigActiveDirectory"},{"$ref":"#/components/schemas/DirectoryConfigArculix"},{"$ref":"#/components/schemas/DirectoryConfigAzureAdResponse"},{"$ref":"#/components/schemas/DirectoryConfigGoogleResponse"},{"$ref":"#/components/schemas/DirectoryConfigIdentityPoolResponse"}],"discriminator":{"propertyName":"type","mapping":{"ActiveDirectory":"#/components/schemas/DirectoryConfigActiveDirectory","Arculix":"#/components/schemas/DirectoryConfigArculix","AzureAd":"#/components/schemas/DirectoryConfigAzureAdResponse","Google":"#/components/schemas/DirectoryConfigGoogleResponse","IdentityPool":"#/components/schemas/DirectoryConfigIdentityPoolResponse"}}}]},"DirectoryConfigBase":{"type":"object","properties":{"config":{"type":"object","properties":{"attribute_sync":{"type":"boolean","description":"Enables attribute synchronization from the directory to the core system and vice versa. More refined control of what attributes are synced can be done in the 'mappings' property of the directory."},"inline_factor_provisioning":{"type":"boolean","description":"Enables automatic provisioning of authentication factors for users as they authenticate."},"inline_user_provisioning":{"type":"boolean","description":"Enables automatic provisioning of users as they authenticate."},"search_directory_for_groups":{"type":"boolean","description":"Enables searching the directory for groups when evaluating group membership for a user."},"group_value_format":{"$ref":"#/components/schemas/DirectoryGroupValueFormat"}}}}},"DirectoryGroupValueFormat":{"type":"string","enum":["name","uid","dn"],"default":"name","description":"What each value of the `groups` attribute or claim sent to applications holds: the group's name, its ID in the directory, or its distinguished name. Only Active Directory accepts `dn`. For Active Directory the ID is the group's Group Identifier Attribute; for the Arculix directory it is the role's UUID."},"DirectoryConfigActiveDirectory":{"title":"Active Directory","allOf":[{"$ref":"#/components/schemas/DirectoryConfigBase"},{"$ref":"#/components/schemas/DirectoryConfigHttpClientSettings"},{"type":"object","properties":{"config":{"type":"object","properties":{"agent_id":{"type":"string","nullable":true},"agent_secret_key":{"type":"string","nullable":true},"agent_server_host_override":{"type":"string","nullable":true},"agent_server_ssl_cert":{"type":"string","nullable":true},"agent_url":{"type":"string","nullable":true},"cache_enabled":{"type":"boolean"},"cache_ttl":{"type":"integer"},"fetch_mode":{"type":"string","description":"Which attributes a login fetches from Active Directory. `all` fetches the whole entry, then drops the mapped attributes whose `fetch_on_login` is off. `mapped` fetches only the mapped attributes whose `fetch_on_login` is on. A row without `fetch_on_login` is on, except for the photo. Either way, a login always fetches the attributes sign-in reads itself. `mapped` also fetches `memberOf` unless a mapping row turns it off. A directory that existed before this setting is on `all`; a new one starts on `mapped`.","enum":["all","mapped"]},"group_identifier_field":{"type":"string","enum":["objectGUID","objectSID"]},"heartbeat_timeout":{"type":"integer"},"login_username_field_names":{"type":"array","items":{"type":"string","minLength":1}},"nested_group_searching":{"type":"boolean"},"password_reset":{"type":"boolean","nullable":true},"password_change":{"type":"boolean","nullable":true},"user_identifier_field":{"type":"string"},"version":{"type":"integer","nullable":true}}}}}]},"DirectoryConfigArculix":{"title":"Workforce Authority Directory","allOf":[{"$ref":"#/components/schemas/DirectoryConfigBase"},{"type":"object","properties":{"config":{"type":"object","properties":{"allow_user_photo_upload":{"type":"boolean","default":true,"description":"Lets users add, replace and remove their own photo. When false, only administrators can."},"store_user_photos":{"type":"boolean","default":true,"description":"Stores and serves each user's photo. When false, no photo is stored or served."}}}}}]},"DirectoryConfigHttpClientSettings":{"type":"object","properties":{"config":{"type":"object","properties":{"circuit_breaker_enabled":{"type":"boolean","description":"If true, repeated timeout failures will \"open the circuit\", causing subsequent requests to fail fast for an interval of time\n"},"circuit_breaker_error_threshold":{"type":"integer","minimum":0,"description":"The error rate percentage that indicates the circuit should be opened. In other words, for any given time window, once the volume threshold is met, if at least this percentage of transactions resulted in timeouts, the circuit will open.\n"},"circuit_breaker_sleep_window":{"type":"integer","minimum":0,"description":"The amount of time (in seconds) the circuit will remain open after the circuit breaker is triggered.\n"},"circuit_breaker_time_window":{"type":"integer","minimum":0,"description":"The time window (in seconds) over which an error rate is calculated. When one time window ends, another starts with error rate variables (successes and failures) reset.\n"},"circuit_breaker_volume_threshold":{"type":"integer","minimum":0,"description":"An error rate is not calculated until this many successes or failures have been observed within a time window."},"host_override":{"type":"string","description":"Optional custom host URL to override the default directory service endpoint"},"timeout":{"type":"integer","minimum":0,"description":"Maximum time in milliseconds to wait for a response from the directory before timing out the request"}}}}},"DirectoryConfigAzureAdBase":{"allOf":[{"$ref":"#/components/schemas/DirectoryConfigBase"},{"$ref":"#/components/schemas/DirectoryConfigHttpClientSettings"},{"type":"object","properties":{"config":{"type":"object","properties":{"client_id":{"allOf":[{"$ref":"#/components/schemas/UUID"}],"description":"The application ID that the Azure app registration portal assigned to your app"},"password_reset":{"type":"boolean","nullable":true},"region":{"type":"string","description":"Azure Cloud deployment region"},"tenant_id":{"allOf":[{"$ref":"#/components/schemas/UUID"}],"description":"The GUID for the Azure tenant"},"user_identifier_field":{"type":"string","description":"Field name used to uniquely identify users (e.g., 'userPrincipalName', 'mail', 'employeeId')"}},"required":["client_id","tenant_id"]}},"required":["config"]}]},"DirectoryConfigAzureAdResponse":{"title":"Azure AD","type":"object","allOf":[{"$ref":"#/components/schemas/DirectoryConfigAzureAdBase"},{"type":"object","properties":{"config":{"type":"object","properties":{"client_secret":{"type":"boolean"}},"required":["client_secret"]}},"required":["config"]}]},"DirectoryConfigAzureAdRequest":{"title":"Azure AD","type":"object","allOf":[{"$ref":"#/components/schemas/DirectoryConfigAzureAdBase"},{"type":"object","properties":{"config":{"type":"object","properties":{"client_secret":{"type":"string","minLength":1,"description":"The client secret that you generated for your app in the Azure app registration portal"}},"required":["client_secret"]}},"required":["config"]}]},"DirectoryConfigGoogleBase":{"allOf":[{"$ref":"#/components/schemas/DirectoryConfigBase"},{"type":"object","properties":{"config":{"type":"object","properties":{"admin_email":{"type":"string","description":"The admin email address used for domain-wide delegation in Google Workspace."},"customer_id":{"type":"string","description":"The Google Workspace Customer ID. Use this to return groups from all domains associated with the account. Either customer_id or domain_name must be provided."},"domain_name":{"type":"string","description":"The domain name for your Google Workspace organization. Required if customer_id is not provided."},"user_identifier_field":{"type":"string","description":"Field name used to uniquely identify users (e.g., 'userPrincipalName', 'email')"}},"required":["admin_email"],"anyOf":[{"required":["domain_name"]},{"required":["customer_id"]}]}},"required":["config"]}]},"DirectoryConfigGoogleResponse":{"title":"Google Workspace","type":"object","allOf":[{"$ref":"#/components/schemas/DirectoryConfigGoogleBase"},{"type":"object","properties":{"config":{"type":"object","properties":{"service_account_json":{"type":"boolean"}},"required":["service_account_json"]}},"required":["config"]}]},"DirectoryConfigGoogleRequest":{"title":"Google Workspace","type":"object","allOf":[{"$ref":"#/components/schemas/DirectoryConfigGoogleBase"},{"type":"object","properties":{"config":{"type":"object","properties":{"service_account_json":{"type":"string","description":"The JSON content of the Google Cloud service account credentials file used for authentication."}},"required":["service_account_json"]}},"required":["config"]}]},"DirectoryConfigIdentityPoolBase":{"allOf":[{"$ref":"#/components/schemas/DirectoryConfigBase"},{"$ref":"#/components/schemas/DirectoryConfigHttpClientSettings"},{"type":"object","properties":{"config":{"type":"object","properties":{"client_id":{"type":"string","minLength":1},"pool_id":{"type":"string","minLength":1},"region":{"type":"string","enum":["au","eu","us"]},"tenant_id":{"type":"string","minLength":1},"timeout":{"type":"integer","minimum":0},"user_identifier_field":{"type":"string","enum":["email","external","mobile","uid"]}},"required":["client_id","pool_id","region","tenant_id"]}},"required":["config"]}]},"DirectoryConfigIdentityPoolResponse":{"title":"Identity Pool","type":"object","allOf":[{"$ref":"#/components/schemas/DirectoryConfigIdentityPoolBase"},{"type":"object","properties":{"config":{"type":"object","properties":{"client_secret":{"type":"boolean"},"credentials":{"type":"object","properties":{"access_token":{"type":"boolean"},"expires_at":{"type":"string","format":"date-time"},"scopes":{"type":"string"}}}},"required":["client_secret"]}},"required":["config"]}]},"DirectoryConfigIdentityPoolRequest":{"title":"Identity Pool","type":"object","allOf":[{"$ref":"#/components/schemas/DirectoryConfigIdentityPoolBase"},{"type":"object","properties":{"config":{"type":"object","properties":{"client_secret":{"type":"string","minLength":1}},"required":["client_secret"]}},"required":["config"]}]},"DirectoryBasePayload":{"type":"object","properties":{"config":{"type":"object"},"domain_ids":{"type":"array","items":{"type":"integer"}},"name":{"type":"string","minLength":1},"mappings":{"$ref":"#/components/schemas/DirectoryMappings"}}},"DirectoryCreatePayload":{"type":"object","allOf":[{"$ref":"#/components/schemas/DirectoryBasePayload"},{"type":"object","properties":{"type":{"$ref":"#/components/schemas/DirectoryType"}},"required":["name","type"]},{"type":"object","oneOf":[{"$ref":"#/components/schemas/DirectoryConfigActiveDirectory"},{"$ref":"#/components/schemas/DirectoryConfigArculix"},{"$ref":"#/components/schemas/DirectoryConfigAzureAdRequest"},{"$ref":"#/components/schemas/DirectoryConfigGoogleRequest"},{"$ref":"#/components/schemas/DirectoryConfigIdentityPoolRequest"}],"discriminator":{"propertyName":"type","mapping":{"ActiveDirectory":"#/components/schemas/DirectoryConfigActiveDirectory","Arculix":"#/components/schemas/DirectoryConfigArculix","AzureAd":"#/components/schemas/DirectoryConfigAzureAdRequest","Google":"#/components/schemas/DirectoryConfigGoogleRequest","IdentityPool":"#/components/schemas/DirectoryConfigIdentityPoolRequest"}}}]},"DirectoryUpdatePayload":{"allOf":[{"$ref":"#/components/schemas/DirectoryBasePayload"},{"type":"object","properties":{"config":{"type":"object","properties":{"group_value_format":{"$ref":"#/components/schemas/DirectoryGroupValueFormat"}}}}}]},"DirectoryStatus":{"type":"object","properties":{"connector_info":{"type":"object"},"directory_info":{"type":"object"},"error":{"type":"string","nullable":true},"status":{"type":"string","enum":["connector_healthy","connector_unhealthy","directory_healthy"]}},"required":["status"]},"PageToken":{"description":"Token used to fetch the next page of results.","type":"string"},"PageSize":{"description":"Number of items to include per page.","type":"integer","minimum":1,"maximum":1000,"default":100},"Page":{"description":"The page of records to be returned.","type":"integer","minimum":1,"default":1}},"securitySchemes":{"OAuth2":{"type":"oauth2","description":"In these URLs replace `OIDC_SERVER_URL` with the URL of the OIDC server and `TENANT` with the tenant slug for your tenant. You can find the exact URL by creating an OIDC application on your Workforce Authority admin panel and going to the well-known URL listed under OIDC provider configuration section of that application.\nAlternately, if you have an OAuth provider configured for your tenant, you can use tokens from your own OAuth server to call these APIs.\n","flows":{"authorizationCode":{"authorizationUrl":"https://OIDC_SERVER_URL/TENANT/oauth2/v1/auth","tokenUrl":"https://OIDC_SERVER_URL/TENANT/oauth2/v1/token","scopes":{"public":"Use the authenticated user's permissions","eG:v11:messaging:verifications":"Send, check, resend and list verification codes; enforced regardless of the tenant's v11 scope setting","eG:v11:all":"Full access to all v11 APIs; accepted on agent endpoints regardless of the tenant's v11 scope setting, and elsewhere when the tenant enforces v11 token scopes","eG:v11:messaging:templates:read":"Read SMS and voice templates and their approvals, and voice template settings; enforced regardless of the tenant's v11 scope setting","eG:v11:messaging:templates:write":"Create SMS and voice templates, their locales and versions, and disable templates; change a voice template's default locale and place voice test calls; enforced regardless of the tenant's v11 scope setting","eG:v11:messaging:templates:publish":"Publish an SMS or voice template version, or restore a removed language; choose the default voice template; enforced regardless of the tenant's v11 scope setting","eG:v11:agents:all":"Enroll and renew agents, upload agent events, and list registered agents; enforced regardless of the tenant's v11 scope setting","eG:v11:policies:all":"Read, create, update and delete the tenant's conditional policies; enforced regardless of the tenant's v11 scope setting","eG:v11:webhooks:all":"Manage the tenant's audit log webhooks; enforced regardless of the tenant's v11 scope setting, and eG:v11:all does not open them","eG:v11:passkeys:all":"Manage the authenticated user's passkeys (WebAuthn credentials) when the tenant enforces v11 token scopes","eG:v11:users:photo:read":"Read a user's directory photo; enforced regardless of the tenant's v11 scope setting","eG:v11:users:photo:write":"Upload and remove a user's reference photo in Workforce Authority Directory; enforced regardless of the tenant's v11 scope setting. Agent clients never receive it."}}}},"AgentCertificateAssertion":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"A short-lived JWT the agent mints and signs itself (ES256) with the private key of the\ncertificate it currently holds, carrying that certificate — and optionally its issuing CA\n— in the `x5c` header, as standard base64 DER per RFC 7515 4.1.6, leaf first. The header\nholds at most four certificates. No OIDC server is involved.\n\nRequired claims: `iss` (the agent id), `sub` (the user uuid in the certificate's SAN),\n`aud` (this tenant on an allowed API host), `jti` (a non-empty unique identifier), `iat`\nand `exp`, with `exp - iat` no greater than 300 seconds. The `scope` claim, which the\nagent asserts itself, must include `eG:v11:all` or `eG:v11:agents:all`.\n\n`aud` is `https://{host}/api/v11/{tenant_slug}`, with a trailing slash accepted; the host\nmust be an allowed API host for the tenant and the slug must name it.\n\n`sub` is the user uuid the certificate's subjectAltName carries, and `iss` the agent id.\nBoth are compared with the SAN exactly, case included, so copy them verbatim rather than\nre-formatting the UUIDs.\nThat SAN holds two URI entries, the agent first, which is the order it is emitted in:\n`https://{host}/api/v11/{tenant}/agents/{agent_id}` then\n`https://{host}/api/v11/{tenant}/users/{user_uuid}`.\n"}},"requestBodies":{"PolicyCreateRequest":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyCreateRequest"}}}},"PolicyUpdateRequest":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyWriteRequest"}}}},"RoleAssignmentRequest":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/RoleId"}},"required":["id"]}}}},"RoleCreateRequest":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleCreatePayload"}}}},"RoleUpdateRequest":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleUpdatePayload"}}}},"SyncRolesRequest":{"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"type":"array","items":{"$ref":"#/components/schemas/RoleId"}}},"required":["ids"]}}}},"TenantCreateRequest":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantCreatePayload"}}}},"TenantUpdateRequest":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantUpdatePayload"}}}},"DirectoryCreateRequest":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectoryCreatePayload"}}}},"DirectoryUpdateRequest":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectoryUpdatePayload"}}}}},"parameters":{"messaging_verification_id":{"in":"path","name":"verification_id","required":true,"description":"The verification's ID: the core system's own, as responses return it, or the messaging service's. Either works.","schema":{"type":"string","minLength":1,"maxLength":64}},"messaging_template_name":{"in":"path","name":"name","required":true,"description":"The template name.","schema":{"$ref":"#/components/schemas/MessagingTemplateName"}},"messaging_template_alias":{"in":"path","name":"alias","required":true,"description":"An old name the template kept when it was renamed.","schema":{"$ref":"#/components/schemas/MessagingTemplateName"}},"messaging_template_country":{"in":"path","name":"country","required":true,"description":"An upper-case ISO 3166-1 alpha-2 country code.","schema":{"$ref":"#/components/schemas/MessagingCountry"}},"messaging_template_locale":{"in":"query","name":"locale","required":true,"description":"The template locale to withdraw the country from.","schema":{"$ref":"#/components/schemas/MessagingLocale"}},"messaging_template_locale_path":{"in":"path","name":"locale","required":true,"description":"The template locale.","schema":{"$ref":"#/components/schemas/MessagingLocale"}},"idempotency_key":{"in":"header","name":"Idempotency-Key","required":false,"description":"Makes a send or resend safe to retry. A repeat with the same key answers the first verification and sends nothing. Once the core system has accepted the key, a repeat doesn't count against the send limits, so it never answers 429. A resend's repeat answers 409 `verification_not_pending` once the verification is no longer pending. A send's repeat compares the number and channel, not `code`, so a repeat with another code still answers the first send's verification. A key reused for a send to another number or by another channel, or for a resend of another verification, answers 422 `idempotency_key_reused`. A verification keeps only its latest resend's key: once a later resend replaces it, the old key counts as new. A key whose send or resend failed stays spent: try again with a new key. Without one, the core system generates a key, and either way the key comes back in the `Idempotency-Key` response header.","schema":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[!-~]+$"}},"messaging_status_filter":{"in":"query","name":"status","required":false,"description":"Only verifications with this status. A pending verification past its expiry counts as `expired`. `failed` is a verification that failed its checks (too many wrong codes). `send_failed` is a failed send; its `last_failure_reason` says why.","schema":{"type":"string","enum":["pending","approved","failed","send_failed","expired"]}},"messaging_created_after":{"in":"query","name":"created_after","required":false,"description":"Only verifications created at or after this time.","schema":{"type":"string","format":"date-time"}},"messaging_created_before":{"in":"query","name":"created_before","required":false,"description":"Only verifications created before this time.","schema":{"type":"string","format":"date-time"}},"messaging_client_reference_filter":{"in":"query","name":"client_reference","required":false,"description":"Only verifications whose send passed this `client_reference`, matched exactly. A value a send would refuse answers 400 `bad_request`.","schema":{"$ref":"#/components/schemas/MessagingClientReferenceFilter"}},"device_id":{"in":"path","name":"device_id","schema":{"$ref":"#/components/schemas/UUID"},"required":true,"description":"Unique identifier for the device pairing in the tenant."},"directory_id":{"in":"path","name":"directory_id","schema":{"$ref":"#/components/schemas/DirectoryId"},"required":true,"description":"Unique identifier for a User Directory"},"email_id":{"in":"path","name":"email_id","schema":{"$ref":"#/components/schemas/EmailAddressId"},"required":true,"description":"Unique identifier for the email."},"include_abilities":{"in":"query","name":"include_abilities","description":"A flag to indicate if record-level abilities for the authenticated entity should be included in the response.\nIf set to `true`, the response will include the `abilities` field with the record-level abilities in the format\nof `'{ \"action1\": true, \"action2\": false, ..., \"actionN\": true }'`.\n","schema":{"type":"boolean"}},"include_summary":{"in":"query","name":"include_summary","description":"Include visible entitlement counts, visible entitlement IDs, and directory source details on each role when set to `true`.\n","schema":{"type":"boolean"}},"role_id":{"in":"path","name":"role_id","schema":{"$ref":"#/components/schemas/RoleId"},"required":true,"description":"Unique identifier for the role."},"settings_groups":{"in":"query","name":"groups","schema":{"oneOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string","minLength":1}}]},"description":"A group or list of settings groups. If provided, only settings within the specified group(s) will be returned.\n"},"template_id":{"in":"path","name":"template_id","schema":{"$ref":"#/components/schemas/UUIDReadOnly"},"required":true,"description":"Unique identifier of the template."},"tenant_id":{"in":"path","name":"tenant_id","schema":{"type":"string","format":"^[a-z][a-z0-9-_]+$","example":"secureauth"},"required":true,"description":"Unique identifier of the tenant."},"user_id":{"in":"path","name":"user_id","schema":{"type":"string"},"required":true,"description":"Unique identifier for the user. Must be either the UUID or the username."},"workstation_id":{"name":"workstation_id","in":"path","description":"Unique ID for the workstation.","required":true,"schema":{"$ref":"#/components/schemas/WorkstationId"}},"application_id":{"in":"path","name":"application_id","schema":{"$ref":"#/components/schemas/ApplicationId"},"required":true,"description":"Unique identifier for the application"},"oauth_provider_id":{"in":"path","name":"oauth_provider_id","schema":{"$ref":"#/components/schemas/OAuthProviderId"},"required":true,"description":"Unique identifier for the OAuth provider"},"saml_provider_id":{"in":"path","name":"saml_provider_id","schema":{"$ref":"#/components/schemas/SamlProviderId"},"required":true,"description":"Unique identifier for the SAML provider"},"federated_idp_client_id":{"in":"path","name":"federated_idp_client_id","schema":{"$ref":"#/components/schemas/FederatedIdpClientId"},"required":true,"description":"Unique identifier for the Federated IdP Client"},"phone_id":{"in":"path","name":"phone_id","schema":{"$ref":"#/components/schemas/PhoneId"},"required":true,"description":"Unique identifier for the phone"},"policy_id":{"in":"path","name":"policy_id","schema":{"$ref":"#/components/schemas/PolicyId"},"required":true,"description":"Unique identifier for the policy"},"page_token":{"in":"query","name":"page_token","description":"A token used to fetch the previous or next page of results. This guarantees that you will get the results that\nlogically follow. If a `page_size` was provided, that information is included in this token and is not required\nto maintain the same page size.\n","schema":{"$ref":"#/components/schemas/PageToken"}},"page_size":{"description":"Number of records to return per page. Note: This is not required on subsequent pages when sending the\n`page_token` as that encodes the current `page_size` for ease of use.\n","in":"query","name":"page_size","required":false,"schema":{"$ref":"#/components/schemas/PageSize"}},"page":{"description":"The page of records to be returned.\n","in":"query","name":"page","required":false,"schema":{"$ref":"#/components/schemas/Page"}},"application_ids":{"name":"application_ids","in":"query","schema":{"type":"array","items":{"$ref":"#/components/schemas/ApplicationClientId"}},"required":false},"custom_field_filter":{"name":"custom_fields","in":"query","schema":{"type":"object","additionalProperties":true},"required":false},"directory_type_filter":{"description":"Filter directories by type.","name":"directory_type_filter","in":"query","schema":{"oneOf":[{"$ref":"#/components/schemas/DirectoryType"},{"type":"array","items":{"$ref":"#/components/schemas/DirectoryType"}}]}},"email_filter":{"description":"Filter on the email address of the user.","name":"email_contains","in":"query","schema":{"type":"string"},"required":false},"event_date_start":{"description":"Filter on the start of event date on audit logs.","name":"event_date_start","in":"query","schema":{"type":"string","format":"date-time"},"required":false},"event_date_end":{"description":"Filter on the end of event date on audit logs.","name":"event_date_end","in":"query","schema":{"type":"string","format":"date-time"},"required":false},"ip_address_filter":{"description":"IPv4 or IPv6 address.","name":"ip_address","in":"query","schema":{"$ref":"#/components/schemas/IpAddress"}},"log_type_filter":{"description":"Filter on the type of event on audit logs.","name":"log_type","in":"query","schema":{"oneOf":[{"$ref":"#/components/schemas/LogType"},{"type":"array","items":{"$ref":"#/components/schemas/LogType"}}]}},"workstation_user_filter":{"description":"Local username on the workstation.","name":"username","in":"query","schema":{"type":"string"}},"workstation_name_filter":{"description":"The name assigned to the workstation.","name":"name","in":"query","schema":{"type":"string"}},"owner_username_filter":{"description":"Username of the platform user who owns the pairing (users.username).","name":"owner_username","in":"query","schema":{"type":"string"}},"owner_username_match_filter":{"description":"Match mode for owner_username.","name":"owner_username_match","in":"query","schema":{"type":"string","enum":["exact","contains"],"default":"exact"}},"machine_id_filter":{"description":"The workstation's unique machine identifier.","name":"machine_id","in":"query","schema":{"type":"string"}},"machine_id_match_filter":{"description":"Match mode for machine_id.","name":"machine_id_match","in":"query","schema":{"type":"string","enum":["exact","prefix"],"default":"exact"}},"workstation_status_filter":{"description":"Pairing lifecycle status filter. Revoked pairings are excluded unless \"revoked\" is\nexplicitly requested.\n","name":"status","in":"query","schema":{"oneOf":[{"$ref":"#/components/schemas/WorkstationStatus"},{"type":"array","items":{"$ref":"#/components/schemas/WorkstationStatus"}}]}},"agent_id":{"name":"agent_id","in":"path","description":"Unique ID for the agent.","required":true,"schema":{"$ref":"#/components/schemas/AgentId"}},"domain_id":{"name":"domain_id","in":"path","description":"Unique ID for the domain.","required":true,"schema":{"type":"integer","minimum":0}},"webhook_delivery_status_filter":{"description":"Only return deliveries in these states. The next page's token keeps the filter.\n\nSend one state as `status=failed`, or several with brackets: `status[]=failed&status[]=dropped`. A repeated\n`status=` without brackets keeps only its last value. Sending `status` together with a `page_token` answers 400 with the\ncode `overridden_param`: the token already carries the filter.","name":"status","in":"query","required":false,"schema":{"oneOf":[{"$ref":"#/components/schemas/WebhookDeliveryStatus"},{"type":"array","items":{"$ref":"#/components/schemas/WebhookDeliveryStatus"}}]}},"webhook_id":{"name":"webhook_id","in":"path","description":"Unique ID for the webhook.","required":true,"schema":{"$ref":"#/components/schemas/UUID"}},"agent_type_filter":{"description":"Only return agents of this type.","name":"agent_type","in":"query","schema":{"$ref":"#/components/schemas/AgentType"}},"agent_type_required":{"description":"The agent product whose configuration to build.","name":"agent_type","in":"query","required":true,"schema":{"$ref":"#/components/schemas/AgentType"}},"agent_status_filter":{"description":"Only return agents in this state.","name":"status","in":"query","schema":{"$ref":"#/components/schemas/AgentStatus"}},"agent_user_filter":{"description":"Only return agents belonging to this user.","name":"user_id","in":"query","schema":{"$ref":"#/components/schemas/UserId"}},"agent_unique_workstation_id_filter":{"description":"Only return agents enrolled on this machine. Not scoped to a user, so one machine's agents come back across every user who enrolled on it.","name":"unique_workstation_id","in":"query","schema":{"type":"string"}},"agent_unique_user_id_filter":{"description":"Only return agents whose enrolling account carries this identifier.","name":"unique_user_id","in":"query","schema":{"type":"string"}},"agent_active_filter":{"description":"true returns only agents whose credential verifies right now (status active and certificate unexpired); false returns every other agent, including one whose certificate lapsed without being revoked. Status alone cannot express either.","name":"active","in":"query","schema":{"type":"boolean"}},"fingerprint_id":{"in":"path","name":"fingerprint_id","schema":{"$ref":"#/components/schemas/FingerprintId"},"required":true,"description":"Unique identifier for the fingerprint."}}},"security":[{"OAuth2":["public"]}],"servers":[{"url":"https://ARCULIX_SERVER"}],"tags":[{"name":"Agents","description":"Workstation agents and the certificates that identify them."},{"name":"Applications","description":"Applications of the system"},{"name":"Audit Logs","description":"Authentication and device status logs."},{"name":"Certificates","description":"X509 Certificates used for establishing trust with replying parties"},{"name":"Devices","description":"User devices."},{"name":"Domains","description":"Tenant domains."},{"name":"Emails","description":"User emails."},{"name":"Entitlements","description":"Entitlements for roles."},{"name":"FederatedIdpClients","description":"Third-party Identity Providers that can be used with Workforce Authority to authenticate users."},{"name":"Fingerprint","description":"Fingerprint factors registered to users."},{"name":"Invitations","description":"Invitation for a user to pair a new device"},{"name":"Messaging","description":"Verification codes sent by SMS or read out in a voice call, and the message templates that carry the texts.\n\nMessaging is enabled per tenant. While it is off, every operation returns 403 `messaging_not_enabled`.\n`channel` takes `sms` or `voice`. A call may name a voice template but takes no `params`. Calls are enabled per\ntenant too; while they are off, a call fails with `voice_not_enabled`. Sends and resends, calls included,\nshare a per-tenant limit counted in fixed one-second windows, and each phone number gets at most 3 sends in\n10 minutes; a 429 carries `Retry-After`.\n\nSends and resends are queued: each answers 202, and the verification carries the outcome. Retry a 503 on a send\nor resend with the same `Idempotency-Key`, never a new one: the same key never sends a second code, while a new\nkey can, as can a resend's key once a later resend of the verification replaces it. The key is in the\nresponse's `Idempotency-Key` header. Every send that passes the core system's own checks counts against the\nnumber's 3 sends in 10 minutes, a send the messaging service refuses included. A repeat of a key the core system\nhas already accepted doesn't count.\n"},{"name":"OAuthProviders","description":"OAuth server capable of generating an OAuth token that can be used with Workforce Authority"},{"name":"Passkeys","description":"Passkeys used for passwordless authentication."},{"name":"Passwords","description":"User password for password based authentication."},{"name":"Policies","description":"Conditional policies that decide what happens at each step of a sign-in."},{"name":"Roles","description":"Sets of permissions assigned to users for Role-Based Access Controls."},{"name":"SamlProviders","description":"Upstream SAML identity providers that Workforce Authority can federate with to authenticate users."},{"name":"Security Factors","description":"Factors used for securing access."},{"name":"Settings","description":"Configuration options."},{"name":"Settings Groups","description":"The groups of configuration options."},{"name":"Templates","description":"Model templates."},{"name":"Tenants","description":"Tenant management."},{"name":"TOTP","description":"Time-based One Time Passwords"},{"name":"User Directories","description":"Connected user directories."},{"name":"User Schema","description":"Schema for user attributes."},{"name":"Users","description":"Users of the system."},{"name":"WebAuthn","description":"WebAuthn credentials"},{"name":"Webhooks","description":"Webhooks that send the tenant's audit logs to a receiver as signed, batched POSTs.\n\nThe feature is enabled per tenant. While it is off, every operation returns 403\n`audit_log_webhooks_not_enabled`, reads and `DELETE` included.\n\nDisabled webhooks capture nothing. With `payload_format: splunk_hec`, a body is newline-separated\nHEC envelopes. `last_error` in the delivery log masks any webhook secret a receiver echoes back.\nEach body is described by the `WebhookPayload` schema.\n\n## Verifying deliveries\n\nEvery delivery carries a JWT. A webhook may also opt into Standard Webhooks signing. Verify either one.\n\n**JWT.** The `X-SecureAuth-Signature` header holds it.\n\n1. Configure your tenant's OIDC issuer URL once, ending `/<tenant slug>/oauth2/v1`. Never take it from the token.\n2. Fetch `<configured issuer>/jwks`. Reject a token whose `iss` differs from the configured issuer.\n3. Verify the signature with RS256. Require the header `typ: webhook+jwt`.\n4. Check that `endpoint_id` is your webhook's ID. The token's `webhook_id` claim is the delivery's ID, not the webhook's; it matches the `Webhook-Id` header.\n5. Compare `body_sha256` with the hex SHA-256 of the raw body, byte for byte.\n6. Reject a token whose `iat` is outside your window. Each attempt mints a new token, valid for 5 minutes.\n7. Upsert events on their `id`. A retry may repeat a batch.\n\n**Standard Webhooks.** Three headers: `Webhook-Id`, `Webhook-Timestamp` and\n`Webhook-Signature: v1,<base64>`. The signature is an HMAC-SHA256 over\n`<Webhook-Id>.<Webhook-Timestamp>.<raw body>`, Key: the secret without its `whsec_` prefix, base64-decoded. `Webhook-Timestamp` is Unix seconds.\nFor 24 hours after a secret rotation the header holds two space-separated signatures. Accept either.\n"},{"name":"Workstations","description":"Workstations with Desktop Trust installed.\nEvery operation returns 403 with code `endpoint_trust_not_enabled` when the tenant does not have Endpoint Trust.\n"}],"paths":{"/api/v11/{tenant_id}/messaging/verifications":{"parameters":[{"$ref":"#/components/parameters/tenant_id"}],"get":{"summary":"List the tenant's verifications.","operationId":"listMessagingVerifications","description":"Newest first, from the core system's stored records. Numbers come back masked.","security":[{"OAuth2":["eG:v11:messaging:verifications","eG:v11:all"]}],"parameters":[{"$ref":"#/components/parameters/messaging_status_filter"},{"$ref":"#/components/parameters/messaging_created_after"},{"$ref":"#/components/parameters/messaging_created_before"},{"$ref":"#/components/parameters/messaging_client_reference_filter"},{"$ref":"#/components/parameters/page_token"},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"}],"responses":{"200":{"description":"OK","headers":{"Link":{"$ref":"#/components/headers/LinkHeader"}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MessagingVerificationRecord"}}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/MessagingNotFound"},"429":{"$ref":"#/components/responses/MessagingTooManyRequests"},"503":{"$ref":"#/components/responses/MessagingUnavailable"}},"tags":["Messaging"]},"post":{"summary":"Send a verification code by text or by call.","operationId":"createMessagingVerification","description":"Queues a code to send by text or by a call that reads it. Once the core system's own checks pass, it answers\n202 with the verification's record: `status` `queued`, with `expires_at`, `country`, `attempts` and\n`max_attempts` null and `deliveries` empty until the code is sent. The messaging service is called\nafterwards. Read the outcome with `GET .../verifications/{verification_id}` or the list.\n\nThe core system answers its own refusals at once, and sends nothing: a request, number, channel, template,\n`code` or `client_reference` that breaks the rules below, the send limit (429), messaging off for the tenant\n(403), and an `Idempotency-Key` used for a send to another number or by another channel (422\n`idempotency_key_reused`).\n\nThe messaging service's refusals come later, on the verification: `status` `failed`,\n`last_failure_category` `send_failed`, and the error code in `last_failure_reason`. They prove no code went\nout: `malformed`, `idempotency_key_reused`, `rate_limited`, `invalid_phone`, `invalid_country`,\n`country_blocked`, `country_not_allowed`, `country_not_declared`, `country_rule_violation`,\n`premium_number_blocked`, `template_not_found`, `template_disabled`, `template_not_approved`,\n`template_params_invalid`, `template_too_long`, `locale_not_published`, `locale_removed`, `voice_not_enabled`\nand `customer_codes_not_enabled`. After any other error, one added later included, the code may have gone\nout. Today those are `provider_error`, `idempotency_key_in_progress` (the messaging service was still sending\nwhen the send window ran out), and the core system's own `send_stale` (the send window, 30 seconds from the\nrequest, ran out), `send_lost` (no answer was recorded), `messaging_unavailable`, `messaging_not_enabled`,\n`upstream_auth_failed` and `upstream_error`.\n\nThe code is a generated one or your own `code`, valid for the tenant's code lifetime either way. Check it\nwith `POST .../verifications/{verification_id}/check`. A call counts against the number's send limit like a\ntext.","security":[{"OAuth2":["eG:v11:messaging:verifications","eG:v11:all"]}],"parameters":[{"$ref":"#/components/parameters/idempotency_key"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingVerificationCreateRequest"}}}},"responses":{"202":{"description":"Queued.","headers":{"Idempotency-Key":{"$ref":"#/components/headers/IdempotencyKeyHeader"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingVerificationRecord"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/MessagingForbidden"},"404":{"$ref":"#/components/responses/MessagingNotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/MessagingUnprocessable"},"429":{"$ref":"#/components/responses/MessagingTooManyRequests"},"503":{"$ref":"#/components/responses/MessagingUnavailable"}},"tags":["Messaging"]}},"/api/v11/{tenant_id}/messaging/verifications/search":{"parameters":[{"$ref":"#/components/parameters/tenant_id"}],"post":{"summary":"Search the tenant's verifications by phone number.","operationId":"searchMessagingVerifications","description":"Newest first, from the core system's stored records. Numbers come back masked. The number goes in the body, never the URL, so no access log records it. For the next page, POST `{}` to the `next` link: its `page_token` carries the number and filters, encrypted.","security":[{"OAuth2":["eG:v11:messaging:verifications","eG:v11:all"]}],"parameters":[{"$ref":"#/components/parameters/page_token"},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingVerificationSearchRequest"}}}},"responses":{"200":{"description":"OK","headers":{"Link":{"$ref":"#/components/headers/LinkHeader"}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MessagingVerificationRecord"}}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/MessagingNotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/MessagingUnprocessable"},"429":{"$ref":"#/components/responses/MessagingTooManyRequests"},"503":{"$ref":"#/components/responses/MessagingUnavailable"}},"tags":["Messaging"]}},"/api/v11/{tenant_id}/messaging/verifications/check":{"parameters":[{"$ref":"#/components/parameters/tenant_id"}],"post":{"summary":"Check a code by your client_reference.","operationId":"checkMessagingVerificationByReference","description":"Checks the code against the tenant's newest verification sent with this `client_reference`, skipping failed sends (`last_failure_category: send_failed`), and answers as `POST .../verifications/{verification_id}/check` does for that verification, its `id` included. Prefer the check by ID: a reference can be sent more than once, and this check reaches only one verification. Any other match is checkable only by its ID. With only failed sends under the reference, it answers 409 `verification_not_pending`; no verification with the reference answers 404 `verification_not_found`. Both fields go in the body: one missing there answers 400 `bad_request`, and one in the query string too answers 422 `malformed`.","security":[{"OAuth2":["eG:v11:messaging:verifications","eG:v11:all"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingCheckByReferenceRequest"}}}},"responses":{"200":{"description":"Checked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingCheckResult"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/MessagingNotFound"},"409":{"$ref":"#/components/responses/MessagingConflict"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/MessagingUnprocessable"},"429":{"$ref":"#/components/responses/MessagingTooManyRequests"},"502":{"$ref":"#/components/responses/MessagingBadGateway"},"503":{"$ref":"#/components/responses/MessagingUnavailable"}},"tags":["Messaging"]}},"/api/v11/{tenant_id}/messaging/verifications/{verification_id}":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/messaging_verification_id"}],"get":{"summary":"Get a verification.","operationId":"getMessagingVerification","description":"Returns the live verification with each delivery's status. Returns the core system's stored record, with `live: false`, while the send is queued, after it failed, and once the messaging service has forgotten the verification, 15 minutes after the code expires.","security":[{"OAuth2":["eG:v11:messaging:verifications","eG:v11:all"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/MessagingVerification"},{"$ref":"#/components/schemas/MessagingVerificationRecord"}]}}}},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/MessagingNotFound"},"409":{"$ref":"#/components/responses/MessagingConflict"},"422":{"$ref":"#/components/responses/MessagingUnprocessable"},"429":{"$ref":"#/components/responses/MessagingTooManyRequests"},"502":{"$ref":"#/components/responses/MessagingBadGateway"},"503":{"$ref":"#/components/responses/MessagingUnavailable"}},"tags":["Messaging"]}},"/api/v11/{tenant_id}/messaging/verifications/{verification_id}/check":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/messaging_verification_id"}],"post":{"summary":"Check a code.","operationId":"checkMessagingVerification","description":"Answers 200 whether or not the code matched. Only `status: approved` is a success. This is the recommended check: the ID names exactly one verification. `POST .../verifications/check` checks by `client_reference` instead. The code goes in the body: one in the query string answers 422 `malformed`.","security":[{"OAuth2":["eG:v11:messaging:verifications","eG:v11:all"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingCheckRequest"}}}},"responses":{"200":{"description":"Checked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingCheckResult"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/MessagingNotFound"},"409":{"$ref":"#/components/responses/MessagingConflict"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/MessagingUnprocessable"},"429":{"$ref":"#/components/responses/MessagingTooManyRequests"},"502":{"$ref":"#/components/responses/MessagingBadGateway"},"503":{"$ref":"#/components/responses/MessagingUnavailable"}},"tags":["Messaging"]}},"/api/v11/{tenant_id}/messaging/verifications/{verification_id}/resend":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/messaging_verification_id"}],"post":{"summary":"Send the same code again.","operationId":"resendMessagingVerification","description":"Queues the same code to send again, on the verification's channel or the one the body names. It answers 202\nwith the verification as the core system holds it: `status` `pending`, `resend_status` `queued`. The\nmessaging service is called afterwards. Read the outcome with `GET .../verifications/{verification_id}` or\nthe list. Once the resend went out, `resend_status` is null, and the lookup's `deliveries` holds the new\ndelivery.\n\nA failed resend leaves the verification pending, so its code still checks. `resend_status` turns `failed`,\nwith the error code in `resend_failure_reason`. Each error means the same as on a send. A resend can also be\nrefused, with no code sent, by `voice_not_yet_available`, `voice_needs_numeric_code`, `resend_in_progress`,\n`verification_not_pending` or `verification_not_found`.\n\n`{\"channel\": \"voice\"}` on a text verification calls the number and reads the code. Every call after the first\nwaits for `voice_available_at`, a voice verification's own resends included. One resend is queued at a time\nper verification.","security":[{"OAuth2":["eG:v11:messaging:verifications","eG:v11:all"]}],"parameters":[{"$ref":"#/components/parameters/idempotency_key"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingResendRequest"}}}},"responses":{"202":{"description":"Queued.","headers":{"Idempotency-Key":{"$ref":"#/components/headers/IdempotencyKeyHeader"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingVerificationRecord"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/MessagingForbidden"},"404":{"$ref":"#/components/responses/MessagingNotFound"},"409":{"$ref":"#/components/responses/MessagingConflict"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/MessagingUnprocessable"},"429":{"$ref":"#/components/responses/MessagingTooManyRequests"},"503":{"$ref":"#/components/responses/MessagingUnavailable"}},"tags":["Messaging"]}},"/api/v11/{tenant_id}/messaging/countries":{"parameters":[{"$ref":"#/components/parameters/tenant_id"}],"get":{"summary":"List the SMS provider's country profiles.","operationId":"listMessagingCountries","description":"The country profiles of the SecureAuth SMS Provider. A regulated country needs its own approval before a template sends there, and a template never reaches it under Other countries. A country not listed is not regulated.","security":[{"OAuth2":["eG:v11:messaging:templates:read","eG:v11:all"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingCountryList"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/MessagingNotFound"},"429":{"$ref":"#/components/responses/MessagingTooManyRequests"},"502":{"$ref":"#/components/responses/MessagingBadGateway"},"503":{"$ref":"#/components/responses/MessagingUnavailable"}},"tags":["Messaging"]}},"/api/v11/{tenant_id}/messaging/templates":{"parameters":[{"$ref":"#/components/parameters/tenant_id"}],"get":{"summary":"List the tenant's SMS templates.","operationId":"listMessagingTemplates","description":"Every template, with its versions, approvals and the published version of each locale.","security":[{"OAuth2":["eG:v11:messaging:templates:read","eG:v11:all"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingTemplateList"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/MessagingNotFound"},"429":{"$ref":"#/components/responses/MessagingTooManyRequests"},"502":{"$ref":"#/components/responses/MessagingBadGateway"},"503":{"$ref":"#/components/responses/MessagingUnavailable"}},"tags":["Messaging"]},"post":{"summary":"Create an SMS template.","operationId":"createMessagingTemplate","description":"Creates version 1 of a template in one locale. A name that exists in another locale gains this locale. The version needs approval for each country before it sends there. 409 `locale_removed` means the language was removed; restore it, then create a version to change its text.","security":[{"OAuth2":["eG:v11:messaging:templates:write","eG:v11:all"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingTemplateCreateRequest"}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingTemplateVersion"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/MessagingNotFound"},"409":{"$ref":"#/components/responses/MessagingConflict"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/MessagingUnprocessable"},"429":{"$ref":"#/components/responses/MessagingTooManyRequests"},"502":{"$ref":"#/components/responses/MessagingBadGateway"},"503":{"$ref":"#/components/responses/MessagingUnavailable"}},"tags":["Messaging"]}},"/api/v11/{tenant_id}/messaging/templates/{name}":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/messaging_template_name"}],"get":{"summary":"Get an SMS template.","operationId":"getMessagingTemplate","description":"The template with its versions, approvals and the published version of each locale.","security":[{"OAuth2":["eG:v11:messaging:templates:read","eG:v11:all"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingTemplate"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/MessagingNotFound"},"429":{"$ref":"#/components/responses/MessagingTooManyRequests"},"502":{"$ref":"#/components/responses/MessagingBadGateway"},"503":{"$ref":"#/components/responses/MessagingUnavailable"}},"tags":["Messaging"]},"patch":{"summary":"Change the default language of an SMS template, or rename it.","operationId":"updateMessagingTemplateDefaultLocale","description":"`default_locale` sets the language that sends without a `locale` use, for every version of the template. The language needs a published version, otherwise 422 `locale_not_published`. Setting the current default again succeeds and changes nothing.\n`name` renames the template. The old name stays as an alias until released: sends and reads by it keep working, and reads, and the lookup of a send by it, carry a `template_renamed` warning, while writes by it answer 404 `template_not_found` with the current name in `details.renamed_to`. A name another template holds, as its name or an old name, answers 409 `template_exists`. Renaming to the current name succeeds and changes nothing. A rename takes up to a minute to reach every server, and meanwhile a send by the new name may fail with `template_not_found`.\n409 `template_disabled` means the template is disabled. Both need the publish entitlement and scope; a tenant's org admins hold the entitlement by default, and any other caller gets 403.","security":[{"OAuth2":["eG:v11:messaging:templates:publish","eG:v11:all"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingTemplateUpdateRequest"}}}},"responses":{"200":{"description":"Changed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingTemplate"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/MessagingNotFound"},"409":{"$ref":"#/components/responses/MessagingConflict"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/MessagingUnprocessable"},"429":{"$ref":"#/components/responses/MessagingTooManyRequests"},"502":{"$ref":"#/components/responses/MessagingBadGateway"},"503":{"$ref":"#/components/responses/MessagingUnavailable"}},"tags":["Messaging"]},"delete":{"summary":"Disable an SMS template.","operationId":"disableMessagingTemplate","description":"Disables every locale and version of the template. A disabled template cannot be enabled again, and its name stays taken.","security":[{"OAuth2":["eG:v11:messaging:templates:write","eG:v11:all"]}],"responses":{"204":{"description":"Disabled."},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/MessagingNotFound"},"409":{"$ref":"#/components/responses/MessagingConflict"},"422":{"$ref":"#/components/responses/MessagingUnprocessable"},"429":{"$ref":"#/components/responses/MessagingTooManyRequests"},"502":{"$ref":"#/components/responses/MessagingBadGateway"},"503":{"$ref":"#/components/responses/MessagingUnavailable"}},"tags":["Messaging"]}},"/api/v11/{tenant_id}/messaging/templates/{name}/versions":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/messaging_template_name"}],"post":{"summary":"Create the next version of a template locale.","operationId":"createMessagingTemplateVersion","description":"The new version needs approval again and is not published. Unless the request lists `countries`, it keeps the countries of the version before. 409 `locale_removed` means the language was removed; restore it first.","security":[{"OAuth2":["eG:v11:messaging:templates:write","eG:v11:all"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingTemplateVersionRequest"}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingTemplateVersion"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/MessagingNotFound"},"409":{"$ref":"#/components/responses/MessagingConflict"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/MessagingUnprocessable"},"429":{"$ref":"#/components/responses/MessagingTooManyRequests"},"502":{"$ref":"#/components/responses/MessagingBadGateway"},"503":{"$ref":"#/components/responses/MessagingUnavailable"}},"tags":["Messaging"]}},"/api/v11/{tenant_id}/messaging/templates/{name}/countries":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/messaging_template_name"}],"post":{"summary":"Add a country to a template locale.","operationId":"addMessagingTemplateCountry","description":"Adds the country, pending approval, to the published version of the locale and every newer version; with no published version, to the latest one. A version that already has the country keeps it as it is. Answers 201 when a version gained the country and 200 when none did. 409 `locale_removed` means the language was removed; restore it first. Adding a country changes where live text goes, so it needs the publish entitlement, which a tenant's org admins hold by default; any other caller gets 403.","security":[{"OAuth2":["eG:v11:messaging:templates:publish","eG:v11:all"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingTemplateCountryRequest"}}}},"responses":{"200":{"description":"Every version already had the country.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingTemplate"}}}},"201":{"description":"Added.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingTemplate"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/MessagingNotFound"},"409":{"$ref":"#/components/responses/MessagingConflict"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/MessagingUnprocessable"},"429":{"$ref":"#/components/responses/MessagingTooManyRequests"},"502":{"$ref":"#/components/responses/MessagingBadGateway"},"503":{"$ref":"#/components/responses/MessagingUnavailable"}},"tags":["Messaging"]}},"/api/v11/{tenant_id}/messaging/templates/{name}/countries/{country}":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/messaging_template_name"},{"$ref":"#/components/parameters/messaging_template_country"},{"$ref":"#/components/parameters/messaging_template_locale"}],"delete":{"summary":"Withdraw a country from a template locale.","operationId":"withdrawMessagingTemplateCountry","description":"Removes the country from every version of the locale. It works only while SecureAuth has not handled the country: 409 `country_decided` otherwise. 409 `locale_removed` means the language was removed; restore it first. 404 `country_not_declared` means the locale does not list the country. Needs the update or the publish entitlement; any other caller gets 403.","security":[{"OAuth2":["eG:v11:messaging:templates:write","eG:v11:messaging:templates:publish","eG:v11:all"]}],"responses":{"200":{"description":"Withdrawn.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingTemplate"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/MessagingNotFound"},"409":{"$ref":"#/components/responses/MessagingConflict"},"422":{"$ref":"#/components/responses/MessagingUnprocessable"},"429":{"$ref":"#/components/responses/MessagingTooManyRequests"},"502":{"$ref":"#/components/responses/MessagingBadGateway"},"503":{"$ref":"#/components/responses/MessagingUnavailable"}},"tags":["Messaging"]}},"/api/v11/{tenant_id}/messaging/templates/{name}/locales/{locale}":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/messaging_template_name"},{"$ref":"#/components/parameters/messaging_template_locale_path"}],"delete":{"summary":"Remove a language from a template.","operationId":"removeMessagingTemplateLocale","description":"Removes a language from the template. The language stops sending within a minute, and its countries awaiting approval leave SecureAuth's review queue. A send that asks for it goes out in a version for the recipient's country or in the default language, or is refused when neither can send. The default language can't be removed: 409 `locale_is_default`. Removing a removed language succeeds and changes nothing. A removed language comes back only with restore. Answers the template. Needs the destroy entitlement; any other caller gets 403.","security":[{"OAuth2":["eG:v11:messaging:templates:write","eG:v11:all"]}],"responses":{"200":{"description":"Removed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingTemplate"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/MessagingNotFound"},"409":{"$ref":"#/components/responses/MessagingConflict"},"422":{"$ref":"#/components/responses/MessagingUnprocessable"},"429":{"$ref":"#/components/responses/MessagingTooManyRequests"},"502":{"$ref":"#/components/responses/MessagingBadGateway"},"503":{"$ref":"#/components/responses/MessagingUnavailable"}},"tags":["Messaging"]}},"/api/v11/{tenant_id}/messaging/templates/{name}/locales/{locale}/restore":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/messaging_template_name"},{"$ref":"#/components/parameters/messaging_template_locale_path"}],"post":{"summary":"Restore a removed language of a template.","operationId":"restoreMessagingTemplateLocale","description":"Brings a removed language back, within a minute. It goes live again on the version that was live when it was removed, with no new approval; a country rejected meanwhile stays unsendable. If SecureAuth disabled that version meanwhile, the language comes back unpublished, and you publish a version to send in it. A language that was never published comes back as it was, unpublished. Its countries awaiting approval return to SecureAuth's review queue. Restoring a language that is not removed succeeds and changes nothing. Takes no request body and answers the template. Needs the publish entitlement, since it puts a version back live; any other caller gets 403.","security":[{"OAuth2":["eG:v11:messaging:templates:publish","eG:v11:all"]}],"responses":{"200":{"description":"Restored.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingTemplate"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/MessagingNotFound"},"409":{"$ref":"#/components/responses/MessagingConflict"},"422":{"$ref":"#/components/responses/MessagingUnprocessable"},"429":{"$ref":"#/components/responses/MessagingTooManyRequests"},"502":{"$ref":"#/components/responses/MessagingBadGateway"},"503":{"$ref":"#/components/responses/MessagingUnavailable"}},"tags":["Messaging"]}},"/api/v11/{tenant_id}/messaging/templates/{name}/aliases/{alias}":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/messaging_template_name"},{"$ref":"#/components/parameters/messaging_template_alias"}],"delete":{"summary":"Release an old name of an SMS template.","operationId":"releaseMessagingTemplateAlias","description":"Drops an old name the template kept when it was renamed. Reads by that name then answer 404 `template_not_found`, sends by it fail with `template_not_found`, and a new template may take it. A name that is not an old name of this template answers 404 `template_not_found`. Works on a disabled template too. Answers the template. Needs the publish entitlement and scope; any other caller gets 403.","security":[{"OAuth2":["eG:v11:messaging:templates:publish","eG:v11:all"]}],"responses":{"200":{"description":"Released.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingTemplate"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/MessagingNotFound"},"422":{"$ref":"#/components/responses/MessagingUnprocessable"},"429":{"$ref":"#/components/responses/MessagingTooManyRequests"},"502":{"$ref":"#/components/responses/MessagingBadGateway"},"503":{"$ref":"#/components/responses/MessagingUnavailable"}},"tags":["Messaging"]}},"/api/v11/{tenant_id}/messaging/templates/{name}/publish":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/messaging_template_name"}],"post":{"summary":"Publish a template version.","operationId":"publishMessagingTemplateVersion","description":"Makes the version the one sends use for its locale, or rolls back to an earlier one. The version must be approved in every country where the published version is; otherwise 422 `template_not_approved` names the first country missing. 409 `locale_removed` means the language was removed; restore it first. Publishing needs its own entitlement, which a tenant's org admins hold by default; any other caller gets 403.","security":[{"OAuth2":["eG:v11:messaging:templates:publish","eG:v11:all"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingTemplatePublishRequest"}}}},"responses":{"200":{"description":"Published.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingTemplatePublication"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/MessagingNotFound"},"409":{"$ref":"#/components/responses/MessagingConflict"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/MessagingUnprocessable"},"429":{"$ref":"#/components/responses/MessagingTooManyRequests"},"502":{"$ref":"#/components/responses/MessagingBadGateway"},"503":{"$ref":"#/components/responses/MessagingUnavailable"}},"tags":["Messaging"]}},"/api/v11/{tenant_id}/messaging/voice/templates":{"parameters":[{"$ref":"#/components/parameters/tenant_id"}],"get":{"summary":"List the tenant's voice templates.","operationId":"listMessagingVoiceTemplates","description":"Every voice template, with its locales, versions, approvals and the published version of each locale. A voice template is the text a verification call reads. SecureAuth writes a tenant's voice templates until it turns on `self_service` in the voice template settings.","security":[{"OAuth2":["eG:v11:messaging:templates:read","eG:v11:all"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingVoiceTemplateList"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/MessagingVoiceTemplatesForbidden"},"404":{"$ref":"#/components/responses/MessagingNotFound"},"429":{"$ref":"#/components/responses/MessagingTooManyRequests"},"502":{"$ref":"#/components/responses/MessagingBadGateway"},"503":{"$ref":"#/components/responses/MessagingUnavailable"}},"tags":["Messaging"]},"post":{"summary":"Create a voice template.","operationId":"createMessagingVoiceTemplate","description":"Creates version 1 of a voice template in one locale. A name that exists in another locale gains this locale. The version waits for SecureAuth's approval, which follows a timed test call, and is not published. The answer carries the SMS provider's duration estimate and its `warnings`. While SecureAuth writes the tenant's voice templates (`self_service` off in the voice template settings), every write answers 403 `voice_templates_self_service_off`.","security":[{"OAuth2":["eG:v11:messaging:templates:write","eG:v11:all"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingVoiceTemplateCreateRequest"}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingVoiceTemplateVersion"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/MessagingVoiceTemplatesForbidden"},"404":{"$ref":"#/components/responses/MessagingNotFound"},"409":{"$ref":"#/components/responses/MessagingConflict"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/MessagingUnprocessable"},"429":{"$ref":"#/components/responses/MessagingTooManyRequests"},"502":{"$ref":"#/components/responses/MessagingBadGateway"},"503":{"$ref":"#/components/responses/MessagingUnavailable"}},"tags":["Messaging"]}},"/api/v11/{tenant_id}/messaging/voice/templates/check":{"parameters":[{"$ref":"#/components/parameters/tenant_id"}],"post":{"summary":"Check a voice text without saving it.","operationId":"checkMessagingVoiceTemplate","description":"How the SMS provider reads a draft text: the text with a sample code, the provider's duration estimate and the rule it breaks. A broken rule is a result (`valid: false`), not an error, so a well-formed request answers 200. Creating a template, a locale or a version runs the same check and refuses what it reports as a violation. Nothing is saved or audited, and a check works while SecureAuth writes the tenant's voice templates. It takes the template read or write scope, with permission to read templates. A `GET` on this path reads the template named `check`.","security":[{"OAuth2":["eG:v11:messaging:templates:read"]},{"OAuth2":["eG:v11:messaging:templates:write"]},{"OAuth2":["eG:v11:all"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingVoiceTemplateTextRequest"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingVoiceTemplateCheckResult"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/MessagingVoiceTemplatesForbidden"},"404":{"$ref":"#/components/responses/MessagingNotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/MessagingUnprocessable"},"429":{"$ref":"#/components/responses/MessagingTooManyRequests"},"502":{"$ref":"#/components/responses/MessagingBadGateway"},"503":{"$ref":"#/components/responses/MessagingUnavailable"}},"tags":["Messaging"]}},"/api/v11/{tenant_id}/messaging/voice/templates/{name}":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/messaging_template_name"}],"get":{"summary":"Get a voice template.","operationId":"getMessagingVoiceTemplate","description":"The voice template with its locales, versions, approvals and the published version of each locale. A name the tenant doesn't have answers 404 `template_not_found`.","security":[{"OAuth2":["eG:v11:messaging:templates:read","eG:v11:all"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingVoiceTemplate"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/MessagingVoiceTemplatesForbidden"},"404":{"$ref":"#/components/responses/MessagingNotFound"},"429":{"$ref":"#/components/responses/MessagingTooManyRequests"},"502":{"$ref":"#/components/responses/MessagingBadGateway"},"503":{"$ref":"#/components/responses/MessagingUnavailable"}},"tags":["Messaging"]},"patch":{"summary":"Change the default locale of a voice template.","operationId":"updateMessagingVoiceTemplateDefaultLocale","description":"Sets the locale a call reads when its own locale has no live text, for every version of the template. The locale needs a live version, otherwise 422 `locale_not_published`. Setting the current default again succeeds and changes nothing. A disabled template answers 409 `template_disabled`. Calls read the new default within a minute. While SecureAuth writes the tenant's voice templates (`self_service` off in the voice template settings), every write answers 403 `voice_templates_self_service_off`.","security":[{"OAuth2":["eG:v11:messaging:templates:write","eG:v11:all"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingVoiceTemplateUpdateRequest"}}}},"responses":{"200":{"description":"Changed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingVoiceTemplate"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/MessagingVoiceTemplatesForbidden"},"404":{"$ref":"#/components/responses/MessagingNotFound"},"409":{"$ref":"#/components/responses/MessagingConflict"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/MessagingUnprocessable"},"429":{"$ref":"#/components/responses/MessagingTooManyRequests"},"502":{"$ref":"#/components/responses/MessagingBadGateway"},"503":{"$ref":"#/components/responses/MessagingUnavailable"}},"tags":["Messaging"]},"delete":{"summary":"Disable a voice template.","operationId":"disableMessagingVoiceTemplate","description":"Disables every locale and version of the voice template. Takes no request body. Calls that read it normally move to the next text within a minute, and within 15 minutes while the SMS provider can't reach its template store. A disabled default template stays named in the settings; calls skip it and read the call text SecureAuth manages for the tenant. A disabled template cannot be enabled again, and its name stays taken. While SecureAuth writes the tenant's voice templates (`self_service` off in the voice template settings), every write answers 403 `voice_templates_self_service_off`.","security":[{"OAuth2":["eG:v11:messaging:templates:write","eG:v11:all"]}],"responses":{"204":{"description":"Disabled."},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/MessagingVoiceTemplatesForbidden"},"404":{"$ref":"#/components/responses/MessagingNotFound"},"409":{"$ref":"#/components/responses/MessagingConflict"},"422":{"$ref":"#/components/responses/MessagingUnprocessable"},"429":{"$ref":"#/components/responses/MessagingTooManyRequests"},"502":{"$ref":"#/components/responses/MessagingBadGateway"},"503":{"$ref":"#/components/responses/MessagingUnavailable"}},"tags":["Messaging"]}},"/api/v11/{tenant_id}/messaging/voice/templates/{name}/locales":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/messaging_template_name"}],"post":{"summary":"Add a locale to a voice template.","operationId":"addMessagingVoiceTemplateLocale","description":"Creates version 1 of the voice template in a new locale, as creating the template with that name does, but a name the tenant doesn't have answers 404 `template_not_found`. While SecureAuth writes the tenant's voice templates (`self_service` off in the voice template settings), every write answers 403 `voice_templates_self_service_off`.","security":[{"OAuth2":["eG:v11:messaging:templates:write","eG:v11:all"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingVoiceTemplateTextRequest"}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingVoiceTemplateVersion"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/MessagingVoiceTemplatesForbidden"},"404":{"$ref":"#/components/responses/MessagingNotFound"},"409":{"$ref":"#/components/responses/MessagingConflict"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/MessagingUnprocessable"},"429":{"$ref":"#/components/responses/MessagingTooManyRequests"},"502":{"$ref":"#/components/responses/MessagingBadGateway"},"503":{"$ref":"#/components/responses/MessagingUnavailable"}},"tags":["Messaging"]}},"/api/v11/{tenant_id}/messaging/voice/templates/{name}/versions":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/messaging_template_name"}],"post":{"summary":"Create the next version of a voice template locale.","operationId":"createMessagingVoiceTemplateVersion","description":"The new version waits for SecureAuth's approval and is not published: calls keep reading the live one. It reads the support number set now, so a new version is how a text picks up a changed number. While SecureAuth writes the tenant's voice templates (`self_service` off in the voice template settings), every write answers 403 `voice_templates_self_service_off`.","security":[{"OAuth2":["eG:v11:messaging:templates:write","eG:v11:all"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingVoiceTemplateTextRequest"}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingVoiceTemplateVersion"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/MessagingVoiceTemplatesForbidden"},"404":{"$ref":"#/components/responses/MessagingNotFound"},"409":{"$ref":"#/components/responses/MessagingConflict"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/MessagingUnprocessable"},"429":{"$ref":"#/components/responses/MessagingTooManyRequests"},"502":{"$ref":"#/components/responses/MessagingBadGateway"},"503":{"$ref":"#/components/responses/MessagingUnavailable"}},"tags":["Messaging"]}},"/api/v11/{tenant_id}/messaging/voice/templates/{name}/publish":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/messaging_template_name"}],"post":{"summary":"Publish a voice template version.","operationId":"publishMessagingVoiceTemplateVersion","description":"Makes the version the one calls read for its locale, or rolls back to an earlier one. Only a version SecureAuth approved can be published; any other answers 422 `template_not_approved`. Calls normally read it within a minute. While the SMS provider can't reach its template store, calls may keep reading the previous text for up to 15 minutes. Publishing needs its own entitlement, which a tenant's org admins hold by default. While SecureAuth writes the tenant's voice templates (`self_service` off in the voice template settings), every write answers 403 `voice_templates_self_service_off`.","security":[{"OAuth2":["eG:v11:messaging:templates:publish","eG:v11:all"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingTemplatePublishRequest"}}}},"responses":{"200":{"description":"Published.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingTemplatePublication"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/MessagingVoiceTemplatesForbidden"},"404":{"$ref":"#/components/responses/MessagingNotFound"},"409":{"$ref":"#/components/responses/MessagingConflict"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/MessagingUnprocessable"},"429":{"$ref":"#/components/responses/MessagingTooManyRequests"},"502":{"$ref":"#/components/responses/MessagingBadGateway"},"503":{"$ref":"#/components/responses/MessagingUnavailable"}},"tags":["Messaging"]}},"/api/v11/{tenant_id}/messaging/voice/templates/{name}/test_calls":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/messaging_template_name"}],"post":{"summary":"Place a test call that reads a voice template version.","operationId":"createMessagingVoiceTemplateTestCall","description":"Calls one of the tenant's test numbers and reads the version with a sample code, as a verification call would. Any active version can be tested, approved or not; a test call approves nothing. SecureAuth adds a tenant's test numbers, and `test_number_id` names one: any other answers 404 `test_number_not_found`. The request never takes a phone number and the answer never returns one. An unknown locale or version answers 404 `template_not_found`, and a disabled version 409 `template_disabled`. A tenant without voice calls answers 403 `voice_not_enabled`, a number in a country the tenant can't call 422 `country_not_allowed`, and a premium-rate number 422 `premium_number_blocked`.\nThe SMS provider allows the tenant 5 test calls per 10 minutes, and `test_calls_per_day` (in the voice template settings) a day, a count that includes SecureAuth's own test calls. Past either, the call answers 429 `rate_limited` with `Retry-After` and `details.limit`: `test_calls_per_actor_10m` or `test_calls_per_customer_day`. A 503 can follow a call that still rings, when the SMS provider took too long to answer; wait for it before you try again. Test calls count toward none of the tenant's verification limits. While SecureAuth writes the tenant's voice templates (`self_service` off in the voice template settings), every write answers 403 `voice_templates_self_service_off`.","security":[{"OAuth2":["eG:v11:messaging:templates:write","eG:v11:all"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingVoiceTestCallRequest"}}}},"responses":{"201":{"description":"Placed, or `unknown` when the SMS provider's answer was lost.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingVoiceTestCall"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/MessagingVoiceTemplatesForbidden"},"404":{"$ref":"#/components/responses/MessagingNotFound"},"409":{"$ref":"#/components/responses/MessagingConflict"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/MessagingUnprocessable"},"429":{"$ref":"#/components/responses/MessagingTooManyRequests"},"502":{"$ref":"#/components/responses/MessagingBadGateway"},"503":{"$ref":"#/components/responses/MessagingUnavailable"}},"tags":["Messaging"]}},"/api/v11/{tenant_id}/messaging/voice/locales":{"parameters":[{"$ref":"#/components/parameters/tenant_id"}],"get":{"summary":"List the locales a voice template can use.","operationId":"listMessagingVoiceLocales","description":"The locales the SMS provider reads, with the time budget every text shares. Build a locale picker from this list; it can grow.","security":[{"OAuth2":["eG:v11:messaging:templates:read","eG:v11:all"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingVoiceLocaleList"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/MessagingVoiceTemplatesForbidden"},"404":{"$ref":"#/components/responses/MessagingNotFound"},"429":{"$ref":"#/components/responses/MessagingTooManyRequests"},"502":{"$ref":"#/components/responses/MessagingBadGateway"},"503":{"$ref":"#/components/responses/MessagingUnavailable"}},"tags":["Messaging"]}},"/api/v11/{tenant_id}/messaging/voice/settings":{"parameters":[{"$ref":"#/components/parameters/tenant_id"}],"get":{"summary":"Get the tenant's voice template settings.","operationId":"getMessagingVoiceTemplateSettings","description":"Whether the tenant writes its own voice templates, the template calls read when they name none, the support number texts read, and the daily test call allowance.","security":[{"OAuth2":["eG:v11:messaging:templates:read","eG:v11:all"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingVoiceTemplateSettings"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/MessagingVoiceTemplatesForbidden"},"404":{"$ref":"#/components/responses/MessagingNotFound"},"429":{"$ref":"#/components/responses/MessagingTooManyRequests"},"502":{"$ref":"#/components/responses/MessagingBadGateway"},"503":{"$ref":"#/components/responses/MessagingUnavailable"}},"tags":["Messaging"]},"patch":{"summary":"Choose the tenant's default voice template.","operationId":"updateMessagingVoiceTemplateSettings","description":"`default_template` names the template calls read when they name none; `null` clears it, and those calls then read the call text SecureAuth manages for the tenant. The template needs no live version yet: until one of its locales is live, calls skip it. Calls read the new default within a minute. A name the tenant doesn't have answers 404 `template_not_found`, and a disabled template 409 `template_disabled`. SecureAuth sets the other settings. Choosing the default needs the publish entitlement and scope; a tenant's org admins hold the entitlement by default. While SecureAuth writes the tenant's voice templates (`self_service` off), it answers 403 `voice_templates_self_service_off`.","security":[{"OAuth2":["eG:v11:messaging:templates:publish","eG:v11:all"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingVoiceTemplateSettingsUpdateRequest"}}}},"responses":{"200":{"description":"Changed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingVoiceTemplateSettings"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/MessagingVoiceTemplatesForbidden"},"404":{"$ref":"#/components/responses/MessagingNotFound"},"409":{"$ref":"#/components/responses/MessagingConflict"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/MessagingUnprocessable"},"429":{"$ref":"#/components/responses/MessagingTooManyRequests"},"502":{"$ref":"#/components/responses/MessagingBadGateway"},"503":{"$ref":"#/components/responses/MessagingUnavailable"}},"tags":["Messaging"]}},"/api/v11/{tenant_id}/messaging/voice/test_numbers":{"parameters":[{"$ref":"#/components/parameters/tenant_id"}],"get":{"summary":"List the tenant's voice test numbers.","operationId":"listMessagingVoiceTestNumbers","description":"The numbers a test call can ring, masked. SecureAuth adds and removes them, at most 5 per tenant. The full number is never returned.","security":[{"OAuth2":["eG:v11:messaging:templates:read"]},{"OAuth2":["eG:v11:all"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingVoiceTestNumberList"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/MessagingVoiceTemplatesForbidden"},"404":{"$ref":"#/components/responses/MessagingNotFound"},"429":{"$ref":"#/components/responses/MessagingTooManyRequests"},"502":{"$ref":"#/components/responses/MessagingBadGateway"},"503":{"$ref":"#/components/responses/MessagingUnavailable"}},"tags":["Messaging"]}},"/api/v11/tenants":{"post":{"summary":"Create a new tenant","operationId":"createTenant","requestBody":{"$ref":"#/components/requestBodies/TenantCreateRequest"},"responses":{"201":{"$ref":"#/components/responses/TenantCreateResponse"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Tenants"]}},"/api/v11/{tenant_id}":{"parameters":[{"$ref":"#/components/parameters/tenant_id"}],"get":{"summary":"Get tenant details","operationId":"getTenant","parameters":[{"$ref":"#/components/parameters/include_abilities"}],"responses":{"200":{"$ref":"#/components/responses/TenantDetailsResponse"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Tenants"]},"patch":{"summary":"Update a tenant","operationId":"updateTenant","requestBody":{"$ref":"#/components/requestBodies/TenantUpdateRequest"},"responses":{"200":{"$ref":"#/components/responses/TenantUpdateResponse"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Tenants"]}},"/api/v11/{tenant_id}/tenants":{"parameters":[{"$ref":"#/components/parameters/tenant_id"}],"post":{"summary":"Create a new sub-tenant","operationId":"createSubTenant","requestBody":{"$ref":"#/components/requestBodies/TenantCreateRequest"},"responses":{"201":{"$ref":"#/components/responses/TenantCreateResponse"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Tenants"]}},"/api/v11/{tenant_id}/applications/{application_id}/roles":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/application_id"}],"get":{"summary":"List the roles assigned to the application","operationId":"listApplicationRoles","parameters":[{"$ref":"#/components/parameters/page_token"},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"},{"$ref":"#/components/parameters/include_abilities"},{"$ref":"#/components/parameters/include_summary"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleList"}}},"headers":{"Link":{"$ref":"#/components/headers/LinkHeader"}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Applications","Roles"]},"post":{"summary":"Assign a role to the application","operationId":"assignApplicationRole","requestBody":{"$ref":"#/components/requestBodies/RoleAssignmentRequest"},"responses":{"201":{"description":"Created","headers":{"Location":{"$ref":"#/components/headers/LocationHeader"}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Applications","Roles"]}},"/api/v11/{tenant_id}/applications/{application_id}/roles/{role_id}":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/application_id"},{"$ref":"#/components/parameters/role_id"}],"delete":{"summary":"Revoke a role from the application","operationId":"revokeApplicationRole","responses":{"202":{"$ref":"#/components/responses/202-Accepted"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Users","Roles"]}},"/api/v11/{tenant_id}/agents":{"parameters":[{"$ref":"#/components/parameters/tenant_id"}],"get":{"operationId":"listAgents","summary":"List the agents enrolled in the tenant.","security":[{"OAuth2":["eG:v11:all"]},{"OAuth2":["eG:v11:agents:all"]}],"description":"The administrative view of the agent registry. Each row names the machine and the account it was enrolled under, so an operator can match it to their own inventory before retiring it.","parameters":[{"$ref":"#/components/parameters/page_token"},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"},{"$ref":"#/components/parameters/agent_type_filter"},{"$ref":"#/components/parameters/agent_status_filter"},{"$ref":"#/components/parameters/agent_user_filter"},{"$ref":"#/components/parameters/agent_unique_workstation_id_filter"},{"$ref":"#/components/parameters/agent_unique_user_id_filter"},{"$ref":"#/components/parameters/agent_active_filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Agent"}}}},"headers":{"Link":{"$ref":"#/components/headers/LinkHeader"}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Agents"]},"post":{"summary":"Enroll an agent and issue its first certificate","description":"The replay guard burns the token, and every outcome after that spends it: `invalid_csr`,\n`invalid_encoding`, `invalid`, `enrollment_conflict`, `certificate_authority_unavailable`,\n`user_not_eligible`, and success. Retry those with a newly minted token — presenting the\nsame one returns `jti_replay`, which itself means the token was already spent. A retry\nclears `user_not_eligible` only when the new token names an unlocked user of this tenant;\na locked account needs an administrator first.\n\nRefused before the burn, so the same token still works: `bad_request`, `invalid_parameter`,\n`invalid_seed_public_key`, `invalid_client`, `presence_authority_not_enabled`, any `404` or\n`429`, and a code-less `401` or `403` from the bearer itself.\n\n`replay_check_unavailable` leaves the burn in an unknown state: the cache may have recorded\nthe token before it stopped answering. Wait out `Retry-After` and retry with a newly minted\ntoken, since the same one can come back as `jti_replay`. `token_expired` needs a fresh\ntoken too, and says nothing about whether the expired one enrolled. `jti_missing` and\n`token_lifetime_too_long` are refused before the burn, but retrying is futile: any token\nfrom the same issuer reproduces them.\n\nEnrollment is idempotent on `unique_workstation_id` and `unique_user_id` for the token's\nsubject: a repeat returns the same `id`, issues a fresh certificate, and stops accepting\nthe previous one even though its `notAfter` has not passed. A revoked agent is returned\nto service.\n","operationId":"enrollAgent","security":[{"OAuth2":["eG:v11:all"]},{"OAuth2":["eG:v11:agents:all"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentEnrollmentRequest"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/AgentEnrollmentResponse"},{"$ref":"#/components/schemas/AgentSeedKeyResponse"}]}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"409":{"$ref":"#/components/responses/409-Conflict"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"},"503":{"$ref":"#/components/responses/503-ServiceUnavailable"}},"tags":["Agents"]}},"/api/v11/{tenant_id}/agents/renew":{"parameters":[{"$ref":"#/components/parameters/tenant_id"}],"post":{"summary":"Renew an agent's certificate","description":"Authenticated by the agent's own certificate rather than a bearer, and by a wider rule than\nthe other agent endpoints: a certificate expired by ninety days or less still authenticates,\nso an agent whose laptop sat closed can still renew. Renewal does not re-run the photo gate;\nwhether a tenant may require it to is an open product question, deliberately not built here.\n\nThe CSR must carry a rotated key, on P-256 and self-signed. Presenting the key the agent\nalready holds is refused with `key_not_rotated`, in any encoding; a CSR failing the other\nchecks with `invalid_csr`. Issuing evicts the previous certificate the moment it commits:\nthe old serial stops authenticating with no separate revocation step.\n\nEach assertion is single-use. The replay guard burns its `jti` before any work, so\n`invalid_csr`, `key_not_rotated`, `outside_renewal_window` and success all spend it — retry\nthose three failures with a newly minted assertion, plus a new keypair and CSR for\n`key_not_rotated`, since presenting the same assertion returns `jti_replay`. Everything else\nis refused before the burn and the same assertion still works: `bad_request`,\n`invalid_parameter`, `invalid_assertion` (bar the one case below), `invalid_client`,\n`presence_authority_not_enabled`, any `404` or `429`, and a code-less `403` for a token\nwhose scope claim carries neither accepted scope.\n\n`invalid_assertion` covers many causes. Two only re-enrollment clears, and the agent can\nrecognize both itself: its certificate expired more than ninety days ago, or the certificate\nis refused right after a renewal whose response never arrived. That renewal most likely\ncommitted, which superseded the serial, and the certificate it issued is stored nowhere to\nfetch again. In either case enroll again now rather than retrying. Any other\n`invalid_assertion` is worth one retry with a freshly minted assertion. Common causes\ninclude a missing or empty `jti`, a clock more than thirty seconds from the server's, and a\nserial superseded by a renewal or a re-enrollment whose response did arrive — the\ncertificate held is stale rather than revoked, and the retry succeeds only with the\ncertificate that issuance returned. A repeat is not proof the credential is finished, since\na clock fault, a misbuilt `aud` and an unusable tenant CA all repeat and none is cleared by\nenrolling again: log it, and enroll again only after it persists for hours. One\n`invalid_assertion` arrives after the burn instead: a concurrent renewal replaced the\ncertificate while this request was in flight, so retrying needs both a new assertion and the\ncertificate that renewal returned. A revoked or deregistered agent answers `device_revoked`,\nwhich only re-enrollment clears, so whether it spent the assertion does not matter.\n\n`outside_renewal_window` means the certificate is not yet close enough to expiry — the\ntenant sets that distance, thirty days by default — so the same request succeeds later.\n`invalid_client` and `presence_authority_not_enabled` mean the tenant's agent client is gone\nor unlicensed, and neither clears by retrying. `invalid` carries a 422 and is a validation\nfailure on the agent's own row rather than a fault in the request; the assertion is spent.\n\nBoth 503s are distinguished by their `code`. `replay_check_unavailable` is the burn itself\nfailing, so the assertion may or may not have been spent: wait out `Retry-After` and retry\nwith a newly minted one. `certificate_authority_unavailable` carries no `Retry-After` — the\ntenant's CA needs an operator and retrying will not clear it — and likewise leaves the spend\nunknown, being raised both while issuing and while verifying the assertion.\n","operationId":"renewAgentCertificate","security":[{"AgentCertificateAssertion":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRenewalRequest"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentEnrollmentResponse"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"description":"Refused by the credential: `invalid_assertion`, `device_revoked`, `invalid_client`\nor `presence_authority_not_enabled`.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Two shapes. `jti_replay` — the assertion was already spent — carries the body below. A\ntoken whose scope claim holds neither accepted scope is refused with no body at all, so\na client must not assume JSON on every 403.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"$ref":"#/components/responses/404-NotFound"},"409":{"description":"`outside_renewal_window`: the certificate is not yet close enough to expiry.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"},"503":{"$ref":"#/components/responses/503-ServiceUnavailable"}},"tags":["Agents"]}},"/api/v11/{tenant_id}/agents/events":{"parameters":[{"$ref":"#/components/parameters/tenant_id"}],"post":{"summary":"Upload a batch of agent events","description":"The agent authenticates with its own certificate token, not the enrollment bearer, and\nthe token's certificate is what names the agent — the batch cannot file events against\nanother agent, tenant or user by saying so in its body.\n\nPartial success is the normal outcome and still answers `200`: `accepted` counts what\nwas stored, `duplicate` what was already stored, and `rejected` itemizes the rest.\nOnly faults of the envelope itself refuse the whole batch — a body that is not an object\nwith an `events` array, or one carrying more than 500 events, answers `400`.\n\nUpload is idempotent on each event's `id`. Replaying a batch stores nothing and returns\nthe same events under `duplicate`, so an agent that did not see its response may retry\nthe batch unchanged rather than reconciling it. On a multi-region deployment this holds\nwithin the region that serves the request: a retry that reaches another region stores\nthe events again and counts them under `accepted`. The token is not spent by the upload;\neach retry still needs a freshly minted one, since tokens are short-lived.\n\n`device_revoked` means this agent, or the user it watches, may no longer report at all —\nrevocation, deregistration and a lapsed enrollment all answer it, and none clears by\nretrying.\n","operationId":"uploadAgentEvents","security":[{"AgentCertificateAssertion":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentEventBatchRequest"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentEventBatchResponse"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"},"503":{"$ref":"#/components/responses/503-ServiceUnavailable"}},"tags":["Agents"]}},"/api/v11/{tenant_id}/agents/installers":{"parameters":[{"$ref":"#/components/parameters/tenant_id"}],"get":{"summary":"List the newest Presence Authority installers","description":"The agent's update feed: for each platform, variant and arch the downloads bucket holds an\ninstaller for, the newest version of it. Only the newest is listed, so the feed stays small\nhowever many releases accumulate; an older one is still reachable by naming its version to\nthe download endpoint.\n\nAn empty `releases` list is a true answer, not an error: there is no installer to offer.\n\nEach assertion is single-use: mint a new one for every request, since presenting the same one\nagain, here or at any other agent endpoint that spends assertions, returns `403 jti_replay`.\nIt is spent once the request is authenticated, so a `503 installers_unavailable` spends it too;\nan authentication refusal, a `429` or a code-less `403` for a missing scope does not.\n\nThe three 503s are told apart by their `code`. `installers_unavailable` means the installer\nstore could not be read, and `certificate_authority_unavailable` that the tenant's agent CA is\nunusable. Neither carries `Retry-After`, since an operator has to fix it, and the CA fault\nanswers before the assertion is spent. `replay_check_unavailable` means the spend could not be\nrecorded: wait out `Retry-After` and retry with a newly minted assertion.\n","operationId":"listAgentInstallers","security":[{"AgentCertificateAssertion":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentInstallerFeedResponse"}}}},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"429":{"$ref":"#/components/responses/429-TooManyRequests"},"503":{"$ref":"#/components/responses/503-ServiceUnavailable"}},"tags":["Agents"]}},"/api/v11/{tenant_id}/agents/installers/download":{"parameters":[{"$ref":"#/components/parameters/tenant_id"}],"get":{"summary":"Get a download link for a Presence Authority installer","description":"A short-lived presigned link to the installer for one platform, variant and arch, at the\nnewest version or at the one named. The link needs no credential of its own and stops working\nafter `expires_in` seconds, so fetch a fresh one for each download rather than storing it.\n\n`404` with `installer_not_found` means the installer store holds no such installer, either\nfor that platform, variant and arch at all or at that version.\n\nThe assertion is single-use and spent as on the installer feed, so a `400` from an invalid\nquery leaves it unspent while a `404` or `503 installers_unavailable` spends it. The three\n503s read as they do there.\n","operationId":"getAgentInstallerDownload","security":[{"AgentCertificateAssertion":[]}],"parameters":[{"name":"platform","in":"query","required":true,"schema":{"$ref":"#/components/schemas/AgentInstallerPlatform"}},{"name":"variant","in":"query","required":true,"schema":{"$ref":"#/components/schemas/AgentInstallerVariant"}},{"name":"arch","in":"query","required":true,"schema":{"$ref":"#/components/schemas/AgentInstallerArch"}},{"name":"version","in":"query","required":false,"description":"The version to download, as `X.Y.Z`. Omit it for the newest.","schema":{"$ref":"#/components/schemas/AgentInstallerVersion"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentInstallerDownloadResponse"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"429":{"$ref":"#/components/responses/429-TooManyRequests"},"503":{"$ref":"#/components/responses/503-ServiceUnavailable"}},"tags":["Agents"]}},"/api/v11/{tenant_id}/agents/settings":{"parameters":[{"$ref":"#/components/parameters/tenant_id"}],"get":{"summary":"Get the tenant's agent configuration","description":"The organization-level configuration document for one agent type, for operators and\nautomation building a pre-enrollment config. Settings carry organization values and\ndefaults, never a user's override, and the document names no agent.\n\nNeeds the AgentConfiguration read entitlement at organization or global scope, besides\naccess to the tenant. A caller without it gets a `403` with no body.\n\nSend `Accept: application/jwt` for the document signed with the tenant's OIDC key\n(`typ: agent-config+jwt`, document under `agent_config`, `aud` of\n`urn:secureauth:agent:<agent_type>`, no `exp`). Anything else answers JSON.\n\nA tenant without Presence Authority answers `presence_authority_not_enabled`.\n`503 presence_authority_client_missing` means the tenant's Presence Authority client is\nmissing or unusable. `503 oidc_provider_config_missing` answers only a JWT request, when\nthe tenant has no signing key; the same request without `Accept: application/jwt` still\nanswers JSON. Neither 503 carries `Retry-After`: an operator has to fix the tenant.\n","operationId":"getTenantAgentConfiguration","security":[{"OAuth2":["eG:v11:all"]},{"OAuth2":["eG:v11:agents:all"]}],"parameters":[{"$ref":"#/components/parameters/agent_type_required"}],"responses":{"200":{"description":"OK","headers":{"ETag":{"schema":{"type":"string"}},"Vary":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentConfiguration"}},"application/jwt":{"schema":{"type":"string"}}}},"304":{"description":"Not modified since the ETag sent in `If-None-Match`.","headers":{"ETag":{"schema":{"type":"string"}},"Vary":{"schema":{"type":"string"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"429":{"$ref":"#/components/responses/429-TooManyRequests"},"503":{"$ref":"#/components/responses/503-ServiceUnavailable"}},"tags":["Agents"]}},"/api/v11/{tenant_id}/certificates":{"parameters":[{"$ref":"#/components/parameters/tenant_id"}],"get":{"summary":"List certificates","operationId":"listCertificates","parameters":[{"$ref":"#/components/parameters/page_token"},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CertificateResponse"}}}},"headers":{"Link":{"$ref":"#/components/headers/LinkHeader"}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Certificates"]},"post":{"summary":"Create a certificate","operationId":"createCertificate","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CertificateRequest"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CertificateResponse"}}},"headers":{"Location":{"$ref":"#/components/headers/LocationHeader"}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Certificates"]}},"/api/v11/{tenant_id}/certificates/{certificate_id}":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"in":"path","name":"certificate_id","description":"Unique identifier for the certificate","schema":{"$ref":"#/components/schemas/CertificateId"},"required":true}],"get":{"summary":"Get certificate details","operationId":"getCertificate","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CertificateResponse"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Certificates"]}},"/api/v11/{tenant_id}/directories":{"parameters":[{"$ref":"#/components/parameters/tenant_id"}],"get":{"summary":"List directories","operationId":"listDirectories","parameters":[{"$ref":"#/components/parameters/directory_type_filter"},{"$ref":"#/components/parameters/include_abilities"}],"responses":{"200":{"$ref":"#/components/responses/DirectoryListResponse"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["User Directories"]},"post":{"summary":"Create a directory","operationId":"createDirectory","requestBody":{"$ref":"#/components/requestBodies/DirectoryCreateRequest"},"responses":{"201":{"$ref":"#/components/responses/DirectoryCreateResponse"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["User Directories"]}},"/api/v11/{tenant_id}/directories/{directory_id}":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/directory_id"}],"get":{"summary":"Get directory details","operationId":"getDirectory","parameters":[{"$ref":"#/components/parameters/include_abilities"}],"responses":{"200":{"$ref":"#/components/responses/DirectoryDetailsResponse"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["User Directories"]},"put":{"summary":"Update a directory","operationId":"updateDirectory","requestBody":{"$ref":"#/components/requestBodies/DirectoryUpdateRequest"},"responses":{"201":{"$ref":"#/components/responses/DirectoryUpdateResponse"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["User Directories"]},"delete":{"summary":"Delete a directory","operationId":"deleteDirectory","responses":{"202":{"$ref":"#/components/responses/202-Accepted"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["User Directories"]}},"/api/v11/{tenant_id}/directories/{directory_id}/status":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/directory_id"}],"get":{"summary":"Get a directory's status","operationId":"getDirectoryStatus","responses":{"200":{"$ref":"#/components/responses/DirectoryStatusResponse"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["User Directories"]}},"/api/v11/{tenant_id}/directories/{directory_id}/status_all_clients":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/directory_id"}],"get":{"summary":"Get a directory's status per client","operationId":"getDirectoryStatusAllClients","responses":{"200":{"$ref":"#/components/responses/DirectoryStatusAllClientsResponse"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["User Directories"]}},"/api/v11/{tenant_id}/directories/{directory_id}/attributes":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/directory_id"}],"get":{"summary":"Get a directory's attributes","description":"Returns the list of attributes that can be mapped from the directory to user schema fields. For directories that support custom schemas (e.g., Google Workspace), this includes both static standard attributes and dynamically fetched custom schema attributes.\n","operationId":"getDirectoryAttributes","responses":{"200":{"description":"Successfully retrieved directory attributes","content":{"application/json":{"schema":{"type":"object","properties":{"attributes":{"type":"array","items":{"type":"string"},"description":"List of attribute names that can be used in directory mappings","example":["primary_email","name.family_name","name.given_name"]}}}}}},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["User Directories"]}},"/api/v11/{tenant_id}/domains":{"parameters":[{"$ref":"#/components/parameters/tenant_id"}],"get":{"summary":"List domains","operationId":"listDomains","parameters":[{"$ref":"#/components/parameters/include_abilities"},{"$ref":"#/components/parameters/page"},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page_token"}],"responses":{"200":{"$ref":"#/components/responses/DomainListResponse"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Domains"]}},"/api/v11/{tenant_id}/domains/{domain_id}/canonical_host_key":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/domain_id"}],"get":{"summary":"Read a vanity domain's canonical host key.","operationId":"getDomainCanonicalHostKey","description":"Returns the key CloudFlare must send in X-Canonical-Host-Key for this vanity domain. arculix generates it; the response is not cacheable. Requires the global Domain read_key entitlement (super_admin, admin), plus Organization and Domain read on the tenant. Returns 422 `domain_not_vanity` when the domain has no vanity usage, and 404 `canonical_host_key_not_found` when its key has not been generated yet.","responses":{"200":{"description":"The domain's canonical host key.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"canonical_host_key":{"type":"string","minLength":32}},"required":["canonical_host_key"]}}}},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Domains"]}},"/api/v11/{tenant_id}/entitlements":{"parameters":[{"$ref":"#/components/parameters/tenant_id"}],"get":{"summary":"List all entitlements","operationId":"listEntitlements","parameters":[{"$ref":"#/components/parameters/page_token"},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"},{"$ref":"#/components/parameters/include_abilities"}],"responses":{"200":{"$ref":"#/components/responses/EntitlementListResponse"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Entitlements"]}},"/api/v11/{tenant_id}/me/abilities":{"parameters":[{"$ref":"#/components/parameters/tenant_id"}],"get":{"summary":"Get authenticated entity abilities","operationId":"getAuthenticatedEntityAbilities","responses":{"200":{"$ref":"#/components/responses/AuthenticatedEntityAbilitiesResponse"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Applications","Roles","Users"]}},"/api/v11/{tenant_id}/oauth_providers":{"parameters":[{"$ref":"#/components/parameters/tenant_id"}],"get":{"summary":"List OAuth providers","operationId":"listOAuthProviders","parameters":[{"$ref":"#/components/parameters/page_token"},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","allOf":[{"$ref":"#/components/schemas/OAuthProviderSummary"},{"type":"object","properties":{"global":{"type":"boolean"}},"required":["global"]}]}}}},"headers":{"Link":{"$ref":"#/components/headers/LinkHeader"}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["OAuthProviders"]},"post":{"summary":"Create an OAuth provider","operationId":"createOAuthProvider","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthProviderCreateRequest"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthProviderDetails"}}},"headers":{"Location":{"$ref":"#/components/headers/LocationHeader"}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["OAuthProviders"]}},"/api/v11/{tenant_id}/oauth_providers/{oauth_provider_id}":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/oauth_provider_id"}],"get":{"summary":"Get OAuth provider details","operationId":"getOAuthProvider","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthProviderDetails"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["OAuthProviders"]},"patch":{"summary":"Update the specified OAuth provider.","operationId":"updateOAuthProvider","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthProviderEditRequest"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthProviderDetails"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["OAuthProviders"]},"delete":{"summary":"Delete the specified OAuth provider.","operationId":"deleteOAuthProvider","responses":{"202":{"$ref":"#/components/responses/202-Accepted"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["OAuthProviders"]}},"/api/v11/{tenant_id}/policies":{"parameters":[{"$ref":"#/components/parameters/tenant_id"}],"get":{"summary":"List policies","description":"Lists the tenant's conditional policies with their conditions, oldest first. Settings policies are left out.\n","operationId":"listPolicies","security":[{"OAuth2":["eG:v11:all"]},{"OAuth2":["eG:v11:policies:all"]}],"parameters":[{"$ref":"#/components/parameters/page_token"},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Policy"}}}},"headers":{"Link":{"$ref":"#/components/headers/LinkHeader"}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Policies"]},"post":{"summary":"Create a policy","description":"Creates a conditional policy with its applications and conditions. Settings policies cannot be created here.\n","operationId":"createPolicy","security":[{"OAuth2":["eG:v11:all"]},{"OAuth2":["eG:v11:policies:all"]}],"requestBody":{"$ref":"#/components/requestBodies/PolicyCreateRequest"},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Policy"}}},"headers":{"Location":{"$ref":"#/components/headers/LocationHeader"}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Policies"]}},"/api/v11/{tenant_id}/policies/{policy_id}":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/policy_id"}],"get":{"summary":"Get a policy","description":"Returns one conditional policy with its conditions. A settings policy answers 404 `policy_not_found`.\n","operationId":"getPolicy","security":[{"OAuth2":["eG:v11:all"]},{"OAuth2":["eG:v11:policies:all"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Policy"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Policies"]},"put":{"summary":"Update a policy","description":"Updates a conditional policy, as `PATCH` does. A field left out keeps its stored value: an omitted `conditions`\nor `application_uids` keeps the stored ones, and an empty list clears them. A settings policy answers 404\n`policy_not_found`.\n","operationId":"putPolicy","security":[{"OAuth2":["eG:v11:all"]},{"OAuth2":["eG:v11:policies:all"]}],"requestBody":{"$ref":"#/components/requestBodies/PolicyUpdateRequest"},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Policy"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Policies"]},"patch":{"summary":"Update a policy","description":"Updates a conditional policy. A field left out keeps its stored value: an omitted `conditions` or\n`application_uids` keeps the stored ones, and an empty list clears them. A settings policy answers 404\n`policy_not_found`.\n","operationId":"updatePolicy","security":[{"OAuth2":["eG:v11:all"]},{"OAuth2":["eG:v11:policies:all"]}],"requestBody":{"$ref":"#/components/requestBodies/PolicyUpdateRequest"},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Policy"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Policies"]},"delete":{"summary":"Delete a policy","description":"Deletes a conditional policy and its conditions. A settings policy answers 404 `policy_not_found`.\n","operationId":"deletePolicy","security":[{"OAuth2":["eG:v11:all"]},{"OAuth2":["eG:v11:policies:all"]}],"responses":{"202":{"$ref":"#/components/responses/202-Accepted"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Policies"]}},"/api/v11/{tenant_id}/saml_providers":{"parameters":[{"$ref":"#/components/parameters/tenant_id"}],"get":{"summary":"List SAML providers","operationId":"listSamlProviders","parameters":[{"$ref":"#/components/parameters/page_token"},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SamlProviderSummary"}}}},"headers":{"Link":{"$ref":"#/components/headers/LinkHeader"}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["SamlProviders"]},"post":{"summary":"Create a SAML provider","operationId":"createSamlProvider","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SamlProviderCreateRequest"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SamlProviderDetails"}}},"headers":{"Location":{"$ref":"#/components/headers/LocationHeader"}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["SamlProviders"]}},"/api/v11/{tenant_id}/saml_providers/parse_metadata":{"parameters":[{"$ref":"#/components/parameters/tenant_id"}],"post":{"summary":"Parse IdP metadata into SAML provider fields","description":"Reads an upstream IdP's SAML metadata document and returns the fields a SAML provider is\ncreated from. Nothing is persisted; the result is intended to prefill a create form.\n","operationId":"parseSamlProviderMetadata","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SamlProviderMetadataParseRequest"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SamlProviderMetadataPrefill"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["SamlProviders"]}},"/api/v11/{tenant_id}/saml_providers/{saml_provider_id}":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/saml_provider_id"}],"get":{"summary":"Get SAML provider details","operationId":"getSamlProvider","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SamlProviderDetails"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["SamlProviders"]},"patch":{"summary":"Update the specified SAML provider.","operationId":"updateSamlProvider","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SamlProviderEditRequest"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SamlProviderDetails"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["SamlProviders"]},"delete":{"summary":"Delete the specified SAML provider.","operationId":"deleteSamlProvider","responses":{"202":{"$ref":"#/components/responses/202-Accepted"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["SamlProviders"]}},"/api/v11/{tenant_id}/federated_idp_clients":{"parameters":[{"$ref":"#/components/parameters/tenant_id"}],"get":{"summary":"List Federated IdP Clients","operationId":"listFederatedIdpClients","parameters":[{"$ref":"#/components/parameters/page_token"},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/FederatedIdpClientSummary"},{"type":"object","properties":{"identity_provider":{"$ref":"#/components/schemas/FederatedIdpClientProvider"}},"required":["identity_provider"]}]}}}},"headers":{"Link":{"$ref":"#/components/headers/LinkHeader"}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["FederatedIdpClients"]},"post":{"summary":"Create a Federated IdP Client","operationId":"createFederatedIdpClient","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FederatedIdpClientCreateRequest"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FederatedIdpClientDetails"}}},"headers":{"Location":{"$ref":"#/components/headers/LocationHeader"}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["FederatedIdpClients"]}},"/api/v11/{tenant_id}/federated_idp_clients/{federated_idp_client_id}":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/federated_idp_client_id"}],"get":{"summary":"Get Federated IdP Client details","operationId":"getFederatedIdpClient","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FederatedIdpClientDetails"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["FederatedIdpClients"]},"patch":{"summary":"Update the specified Federated IdP Client.","operationId":"updateFederatedIdpClient","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FederatedIdpClientPatchRequest"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FederatedIdpClientDetails"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["FederatedIdpClients"]},"delete":{"summary":"Delete the specified Federated IdP Client.","operationId":"deleteFederatedIdpClient","responses":{"202":{"$ref":"#/components/responses/202-Accepted"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["FederatedIdpClients"]}},"/api/v11/{tenant_id}/webhooks":{"parameters":[{"$ref":"#/components/parameters/tenant_id"}],"get":{"summary":"List the tenant's webhooks and their delivery state per region.","operationId":"listWebhooks","description":"Never returns a webhook's URL or header values. The core system answers 403 with the code `audit_log_webhooks_not_enabled` while webhooks are not enabled for the tenant.","security":[{"OAuth2":["eG:v11:webhooks:all"]}],"parameters":[{"$ref":"#/components/parameters/page_token"},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Webhook"}}}},"headers":{"Link":{"$ref":"#/components/headers/LinkHeader"}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Webhooks"]},"post":{"summary":"Create a webhook.","operationId":"createWebhook","description":"A tenant has at most five webhooks; a sixth returns 409 `webhook_limit`. The core system answers 403 with the code `audit_log_webhooks_not_enabled` while webhooks are not enabled for the tenant, and with the code `webhook_audit_log_read_required` when the caller cannot read the tenant's audit logs, which a webhook exports.","security":[{"OAuth2":["eG:v11:webhooks:all"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookCreateRequest"}}}},"callbacks":{"deliverAuditLogs":{"{$request.body#/url}":{"post":{"summary":"A batch of audit logs, sent to the webhook's URL.","parameters":[{"name":"X-SecureAuth-Signature","in":"header","required":true,"description":"The JWT. See \"Verifying deliveries\" on the Webhooks tag.","schema":{"type":"string"}},{"name":"Webhook-Id","in":"header","required":true,"description":"The delivery ID. Stable across the batch's retries.","schema":{"type":"string","format":"uuid"}},{"name":"Webhook-Endpoint-Id","in":"header","required":true,"description":"The ID of the webhook this delivery is for.","schema":{"type":"string","format":"uuid"}},{"name":"Webhook-Timestamp","in":"header","required":false,"description":"Unix time in seconds, fresh on every attempt. Sent only when the webhook signs.","schema":{"type":"string"}},{"name":"Webhook-Signature","in":"header","required":false,"description":"One or more space-separated `v1,<base64>` signatures. Sent only when the webhook signs.","schema":{"type":"string"}}],"description":"See \"Verifying deliveries\" on the Webhooks tag for the signature headers.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayload"}}}},"responses":{"2XX":{"description":"Any 2xx marks the delivery succeeded."}}}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"409":{"$ref":"#/components/responses/409-Conflict"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Webhooks"]}},"/api/v11/{tenant_id}/webhooks/{webhook_id}":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/webhook_id"}],"get":{"summary":"Get a webhook and its delivery state per region.","operationId":"getWebhook","description":"The core system answers 403 with the code `audit_log_webhooks_not_enabled` while webhooks are not enabled for the tenant.","security":[{"OAuth2":["eG:v11:webhooks:all"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Webhooks"]},"patch":{"summary":"Update a webhook.","operationId":"updateWebhook","description":"A `url` on another host (scheme, host or port) must come with `headers`, since stored headers are never sent to a host they were not given for. Send the headers again, or an empty object to remove them; without either, the core system answers 422 with the code `webhook_headers_required`. A change of `url` or `log_types`, a disable and a re-enable each write a security event and email the tenant's admins, as create, delete and secret rotation do. Other changes, including the headers and turning signing on or off, do not. The core system answers 403 with the code `audit_log_webhooks_not_enabled` while webhooks are not enabled for the tenant, and with the code `webhook_audit_log_read_required` when the caller cannot read the tenant's audit logs, which a webhook exports.","security":[{"OAuth2":["eG:v11:webhooks:all"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookUpdateRequest"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Webhooks"]},"delete":{"summary":"Delete a webhook.","operationId":"deleteWebhook","description":"Deletion discards the webhook's credentials: the URL's path and query, the static headers and both signing secrets. The core system answers 403 with the code `audit_log_webhooks_not_enabled` while webhooks are not enabled for the tenant.","security":[{"OAuth2":["eG:v11:webhooks:all"]}],"responses":{"204":{"$ref":"#/components/responses/204-NoContent"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Webhooks"]}},"/api/v11/{tenant_id}/webhooks/{webhook_id}/rotate_secret":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/webhook_id"}],"post":{"summary":"Rotate the Standard Webhooks signing secret.","operationId":"rotateWebhookSecret","description":"Returns the new secret once. The previous secret keeps verifying for 24 hours. Returns 409 `webhook_signing_not_enabled` when the webhook does not sign. The core system answers 403 with the code `audit_log_webhooks_not_enabled` while webhooks are not enabled for the tenant.","security":[{"OAuth2":["eG:v11:webhooks:all"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"409":{"$ref":"#/components/responses/409-Conflict"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Webhooks"]}},"/api/v11/{tenant_id}/webhooks/{webhook_id}/test":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/webhook_id"}],"post":{"summary":"Send a test delivery to a webhook.","operationId":"testWebhook","description":"The body of a test delivery is an array of one event with `log_type` `WebhookTest`. It is not a real audit log. The core system answers 403 with the code `audit_log_webhooks_not_enabled` while webhooks are not enabled for the tenant, 429 with `webhook_test_in_progress` while another test of the tenant is unfinished, 429 with `webhook_tenant_busy` while the tenant's deliveries in this region already fill its concurrency cap (the usual rate limit also returns 429), and 503 with `webhook_delivery_disabled` while delivery is switched off.","security":[{"OAuth2":["eG:v11:webhooks:all"]}],"responses":{"202":{"description":"Accepted. The test is sent in the background; its result appears in the delivery log.","content":{"application/json":{"schema":{"type":"object","properties":{"delivery_id":{"type":"string","format":"uuid"}}}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"},"503":{"$ref":"#/components/responses/503-ServiceUnavailable"}},"tags":["Webhooks"]}},"/api/v11/{tenant_id}/webhooks/{webhook_id}/deliveries":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/webhook_id"}],"get":{"summary":"List recent deliveries to a webhook.","operationId":"listWebhookDeliveries","description":"Newest first, including deliveries written seconds ago in the region that answers. Follow the `next` link of the Link header for older rows: its `page_token` marks the last row returned, and the next page starts strictly after it, so paging never repeats a row. Each page holds at most `page_size` rows. The core system answers 403 with the code `audit_log_webhooks_not_enabled` while webhooks are not enabled for the tenant.","parameters":[{"$ref":"#/components/parameters/page_token"},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/webhook_delivery_status_filter"}],"security":[{"OAuth2":["eG:v11:webhooks:all"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WebhookDelivery"}}}},"headers":{"Link":{"$ref":"#/components/headers/LinkHeader"}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Webhooks"]}},"/api/v11/{tenant_id}/connectors":{"parameters":[{"$ref":"#/components/parameters/tenant_id"}],"get":{"deprecated":true,"summary":"List user directory connectors.","description":"This endpoint is deprecated. Use the \"List Directories\" endpoint instead (`GET /api/v11/{tenant_id}/directories`).\n","operationId":"listConnectors","parameters":[{"$ref":"#/components/parameters/page_token"},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Connector"}}}},"headers":{"Link":{"$ref":"#/components/headers/LinkHeader"}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["User Directories"]}},"/api/v11/{tenant_id}/connectors/{connector_id}/status":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"in":"path","name":"connector_id","schema":{"$ref":"#/components/schemas/ConnectorId"},"required":true}],"get":{"deprecated":true,"summary":"Get the status of the directory connector.","description":"This endpoint is deprecated. Use the \"Get a directory's status\" endpoint instead (`GET /api/v11/{tenant_id}/directories/{directory_id}/status`).\n","operationId":"getConnectorStatus","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorStatus"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["User Directories"]}},"/api/v11/{tenant_id}/devices":{"parameters":[{"$ref":"#/components/parameters/tenant_id"}],"get":{"summary":"List devices in the tenant.","operationId":"listDevices","parameters":[{"$ref":"#/components/parameters/page_token"},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeviceSummary"}}}},"headers":{"Link":{"$ref":"#/components/headers/LinkHeader"}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Devices"]}},"/api/v11/{tenant_id}/devices/{device_id}":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/device_id"}],"get":{"summary":"Get the device details.","operationId":"getDevice","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceDetails"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Devices"]}},"/api/v11/{tenant_id}/devices/{device_id}/unpair":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/device_id"}],"description":"Unpair a device.","put":{"summary":"Request to unpair the device.","operationId":"unpairDevice","responses":{"202":{"$ref":"#/components/responses/202-Accepted"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"409":{"$ref":"#/components/responses/409-Conflict"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Devices"]}},"/api/v11/{tenant_id}/logs":{"parameters":[{"$ref":"#/components/parameters/tenant_id"}],"get":{"summary":"List audit logs for the tenant.","operationId":"listAuditLogs","parameters":[{"$ref":"#/components/parameters/application_ids"},{"$ref":"#/components/parameters/email_filter"},{"$ref":"#/components/parameters/event_date_start"},{"$ref":"#/components/parameters/event_date_end"},{"$ref":"#/components/parameters/log_type_filter"},{"$ref":"#/components/parameters/page_token"},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AuditLogSummary"}}}},"headers":{"Link":{"$ref":"#/components/headers/LinkHeader"}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Audit Logs"]}},"/api/v11/{tenant_id}/logs/{log_id}":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"name":"log_id","in":"path","schema":{"$ref":"#/components/schemas/AuditLogId"},"required":true}],"get":{"summary":"Get Audit Log details.","operationId":"getAuditLog","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditLogDetails"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Audit Logs"]}},"/api/v11/{tenant_id}/factors/passkeys/metadata":{"parameters":[{"$ref":"#/components/parameters/tenant_id"}],"get":{"summary":"Search for passkeys given their AAGUIDs or name","operationId":"tenantFactorsPasskeys","security":[{"OAuth2":["public"]},{"OAuth2":["eG:v11:all"]},{"OAuth2":["eG:v11:passkeys:all"]}],"parameters":[{"in":"query","name":"aaguids","description":"A list of AAGUIDs to filter passkeys by. If provided, only passkeys with these AAGUIDs will be returned.\nMutually exclusive with `name_contains`. Required if `name_contains` is not provided.\n","schema":{"type":"array","items":{"$ref":"#/components/schemas/UUID"},"minItems":1}},{"in":"query","name":"name_contains","description":"A string used for searching Passkeys by name. At least three characters are required for the search.\nMutually exclusive with `aaguids`. Required if `aaguids` is not provided.\n","schema":{"type":"string","minLength":3}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"passkey_metadata":{"type":"array","items":{"$ref":"#/components/schemas/PasskeyMetadata"}}},"required":["passkey_metadata"]}}},"headers":{"Link":{"$ref":"#/components/headers/LinkHeader"}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Passkeys"]}},"/api/v11/{tenant_id}/factors/passkeys/groups":{"parameters":[{"$ref":"#/components/parameters/tenant_id"}],"get":{"summary":"List what passkey policy groups can target","description":"Returns the FIDO MDS fields with their values, the FIDO certification levels and the two fixed groups,\neach with how many authenticators it holds. Answers while the passkey AAGUID groups flag is off, so saved\ngroups can still be labeled. Requires read access to the tenant's conditional policies.\n","operationId":"listPasskeyGroups","security":[{"OAuth2":["eG:v11:all"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasskeyGroupCatalog"}}}},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Passkeys"]}},"/api/v11/{tenant_id}/factors/passkeys/groups/coverage":{"parameters":[{"$ref":"#/components/parameters/tenant_id"}],"post":{"summary":"List the authenticators a passkey group covers today","description":"Takes one group entry as a passkey policy stores it and returns the authenticators it covers. A read sent\nas a POST so the entry's typed values survive. An entry the server doesn't recognize covers nothing.\nResponds 403 while the organization's passkey AAGUID groups flag is off. Requires read access to the\ntenant's conditional policies.\n","operationId":"passkeyGroupCoverage","security":[{"OAuth2":["eG:v11:all"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"group":{"type":"object","description":"A group entry exactly as a passkey policy stores it.","additionalProperties":true,"example":{"source":"fido_metadata","field":"metadataStatement.authenticatorGetInfo.certifications","key":"FIPS-CMVP-3","value":2}}},"required":["group"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"passkey_metadata":{"type":"array","items":{"$ref":"#/components/schemas/PasskeyMetadata"}}},"required":["passkey_metadata"]}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Passkeys"]}},"/api/v11/{tenant_id}/roles":{"parameters":[{"$ref":"#/components/parameters/tenant_id"}],"get":{"summary":"List all roles for tenant.","operationId":"listRoles","parameters":[{"$ref":"#/components/parameters/page_token"},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"},{"$ref":"#/components/parameters/include_abilities"},{"$ref":"#/components/parameters/include_summary"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleList"}}},"headers":{"Link":{"$ref":"#/components/headers/LinkHeader"}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Roles"]},"post":{"summary":"Create a new role.","operationId":"createRole","requestBody":{"$ref":"#/components/requestBodies/RoleCreateRequest"},"responses":{"201":{"$ref":"#/components/responses/RoleCreateResponse"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Roles"]}},"/api/v11/{tenant_id}/roles/{role_id}":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/role_id"}],"get":{"summary":"Get role details","operationId":"getRole","parameters":[{"$ref":"#/components/parameters/include_abilities"}],"responses":{"200":{"$ref":"#/components/responses/RoleDetailsResponse"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Roles"]},"patch":{"summary":"Update a role.","operationId":"updateRole","requestBody":{"$ref":"#/components/requestBodies/RoleUpdateRequest"},"responses":{"200":{"$ref":"#/components/responses/RoleUpdateResponse"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Roles"]},"delete":{"summary":"Delete a role","operationId":"deleteRole","responses":{"202":{"$ref":"#/components/responses/202-Accepted"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Roles"]}},"/api/v11/{tenant_id}/roles/{role_id}/users":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/role_id"}],"get":{"summary":"List users in the tenant that have the given role.","operationId":"getUsersWithRole","parameters":[{"$ref":"#/components/parameters/page_token"},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserList"}}},"headers":{"Link":{"$ref":"#/components/headers/LinkHeader"}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Users","Roles"]}},"/api/v11/{tenant_id}/settings":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/settings_groups"}],"get":{"summary":"Get tenant settings.","operationId":"getSettings","responses":{"200":{"$ref":"#/components/responses/SettingsResponse"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Settings"]},"patch":{"summary":"Update settings.","operationId":"updateSettings","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Settings"}}}},"responses":{"200":{"description":"Saved, and some users' own values broke a rule the new organization values set, so they were removed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsUpdateResult"}}}},"204":{"$ref":"#/components/responses/204-NoContent"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Settings"]}},"/api/v11/{tenant_id}/settings/groups":{"parameters":[{"$ref":"#/components/parameters/tenant_id"}],"get":{"summary":"Get flag groups","operationId":"getSettingsGroups","responses":{"200":{"$ref":"#/components/responses/SettingsGroupsResponse"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Settings","Settings Groups"]}},"/api/v11/{tenant_id}/user_schema":{"parameters":[{"$ref":"#/components/parameters/tenant_id"}],"get":{"summary":"Get the user schema for the tenant.","operationId":"getUserSchema","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["schema","built_in_attributes"],"properties":{"schema":{"type":"object","nullable":true,"description":"The tenant's user schema, or null when none is stored."},"built_in_attributes":{"type":"array","description":"Keys of the attributes every tenant's schema includes by default.","items":{"type":"string"}},"directories":{"type":"array","description":"Directory configurations and the schema attributes their mappings fill. Present only when the caller may list directories.","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"type":{"type":"string"},"mappings":{"type":"object","description":"Directory attribute name to the schema attribute it maps to.","additionalProperties":{"type":"object","required":["field_name","sync_mode"],"properties":{"field_name":{"type":"string","description":"The schema attribute."},"sync_mode":{"type":"string","nullable":true,"description":"How the mapping syncs. A read_through mapping fetches on demand and stores nothing. Null when the stored mapping has none."}}}}}}}}}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["User Schema"]},"put":{"summary":"Updates the user schema.","operationId":"updateUserSchema","requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"204":{"$ref":"#/components/responses/204-NoContent"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["User Schema"]}},"/api/v11/{tenant_id}/templates":{"parameters":[{"$ref":"#/components/parameters/tenant_id"}],"get":{"summary":"List available model templates.","operationId":"listTemplates","parameters":[{"$ref":"#/components/parameters/page_token"},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"},{"name":"target_class_name","description":"Filter templates by target class name.","in":"query","schema":{"type":"string"},"required":false}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TemplateSummary"}}}},"headers":{"Link":{"$ref":"#/components/headers/LinkHeader"}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Templates"]}},"/api/v11/{tenant_id}/templates/{template_id}":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/template_id"}],"get":{"summary":"Get template details.","operationId":"getTemplateDetails","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateDetails"}}},"headers":{"Link":{"$ref":"#/components/headers/LinkHeader"}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Templates"]}},"/api/v11/{tenant_id}/users":{"parameters":[{"$ref":"#/components/parameters/tenant_id"}],"get":{"summary":"List users in the tenant.","operationId":"listUsers","parameters":[{"$ref":"#/components/parameters/page_token"},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"},{"$ref":"#/components/parameters/email_filter"},{"$ref":"#/components/parameters/custom_field_filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserList"}}},"headers":{"Link":{"$ref":"#/components/headers/LinkHeader"}}},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Users"]},"post":{"summary":"Create a new user.","operationId":"createUser","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUserRequest"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}},"headers":{"Location":{"$ref":"#/components/headers/LocationHeader"}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Users"]}},"/api/v11/{tenant_id}/users/{user_id}":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/user_id"}],"get":{"summary":"Get the specified user.","operationId":"getUser","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Users"]},"patch":{"summary":"Update a user.","operationId":"updateUser","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRequest"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"$ref":"#/components/schemas/UserResponse"}}}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Users"]},"delete":{"summary":"Offboard the user.","operationId":"offboardUser","description":"This will unpair the user's devices and workstations as well as soft-delete the user.\n","responses":{"202":{"description":"Accepted","headers":{"Location":{"$ref":"#/components/headers/LocationHeader"}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Users"]}},"/api/v11/{tenant_id}/users/{user_id}/photo":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/user_id"}],"get":{"summary":"Read the user's reference photograph from the tenant's directory or the core system's stored copy.","description":"Reading your own photograph needs only the token scope. Reading another user's needs the read_photo entitlement at organization or global scope. A 409 means the tenant's directory configuration cannot answer — no photo attribute is mapped, no directory matches, more than one does, the directory account recorded for the user is malformed, the directory type cannot serve photographs, the user schema cannot be read, or storage is unconfigured — and the error code says which. A `presence_authority_not_enabled` error means the caller's organization has not licensed Presence Authority; minting a new token will not clear it.\n","operationId":"getUserPhoto","security":[{"OAuth2":["eG:v11:all"]},{"OAuth2":["eG:v11:agents:all"]},{"OAuth2":["eG:v11:users:photo:read"]}],"parameters":[{"name":"max_age","in":"query","required":false,"description":"How stale a stored copy may be, in seconds. Omit it and the photograph is read from the directory: an agent that never learns this parameter exists still gets a live answer, which is what the enrollment gate depends on.\n","schema":{"type":"integer","minimum":0}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPhoto"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"409":{"$ref":"#/components/responses/409-Conflict"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"},"503":{"$ref":"#/components/responses/503-ServiceUnavailable"}},"tags":["Users"]},"put":{"summary":"Upload or replace the user's reference photograph in Workforce Authority Directory.","description":"Only for a user that Workforce Authority Directory serves, with photos turned on in its settings. Uploading another user's photograph needs the read_photo and manage_photo entitlements at organization or global scope. Users can upload their own when the directory allows self-upload. Agent clients are refused with 401 `invalid_client` whatever their scopes. A 409 means the directory cannot store the photograph: another directory serves the user (`directory_unsupported`), photos are off (`photo_not_configured`), or storage is unconfigured. A 422 means the body is not a JPEG or PNG, is over 8,192 pixels on a side or 16,777,216 in all, is a 16-bit PNG, has unreadable dimensions or ends before its image data (`photo_unusable`), or is over the upload limit (`photo_too_large`). A 503 (`directory_unreachable`) means storage failed or other uploads for the user kept landing first; retry later. Each upload that changes the photograph is written to the audit log by type, size and SHA-256.\n","operationId":"updateUserPhoto","security":[{"OAuth2":["eG:v11:all"]},{"OAuth2":["eG:v11:users:photo:write"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPhotoUpload"}}}},"responses":{"200":{"description":"The stored photograph.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPhoto"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"409":{"$ref":"#/components/responses/409-Conflict"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"},"503":{"$ref":"#/components/responses/503-ServiceUnavailable"}},"tags":["Users"]},"delete":{"summary":"Remove the user's reference photograph from Workforce Authority Directory.","description":"Needs the same scopes and permissions as an upload; agent clients are refused with 401 `invalid_client`. Answers 204 whether or not a photograph was stored. A removal is written to the audit log; nothing is logged when there was no photograph.\n","operationId":"deleteUserPhoto","security":[{"OAuth2":["eG:v11:all"]},{"OAuth2":["eG:v11:users:photo:write"]}],"responses":{"204":{"$ref":"#/components/responses/204-NoContent"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"409":{"$ref":"#/components/responses/409-Conflict"},"429":{"$ref":"#/components/responses/429-TooManyRequests"},"503":{"$ref":"#/components/responses/503-ServiceUnavailable"}},"tags":["Users"]}},"/api/v11/{tenant_id}/users/{user_id}/devices":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/user_id"}],"get":{"summary":"List the user's devices.","operationId":"listUserDevices","parameters":[{"$ref":"#/components/parameters/page_token"},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeviceSummary"}}}},"headers":{"Link":{"$ref":"#/components/headers/LinkHeader"}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Users","Devices"]}},"/api/v11/{tenant_id}/users/{user_id}/invitations":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/user_id"}],"post":{"summary":"Creates a new invitation for the user specified by the user_id param","operationId":"inviteUserById","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationCreationRequest"}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationDetails"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"409":{"$ref":"#/components/responses/409-Conflict"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Users","Invitations"]}},"/api/v11/{tenant_id}/users/{user_id}/factors/phone_numbers/{phone_id}/confirmation_code":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/user_id"},{"$ref":"#/components/parameters/phone_id"}],"post":{"summary":"Send confirmation code to the user's phone number","description":"This endpoint sends a confirmation code to the user's phone number.\nReturns `400` with code `phone_number_blank` (no number on file) or `phone_already_confirmed`.\n","operationId":"sendPhoneNumberConfirmationCode","responses":{"202":{"$ref":"#/components/responses/202-Accepted"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Users","Security Factors"]}},"/api/v11/{tenant_id}/users/{user_id}/factors/phone_numbers/{phone_id}/confirm":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/user_id"},{"$ref":"#/components/parameters/phone_id"}],"post":{"summary":"Confirm the user's phone number with the confirmation code","description":"Returns `400` (`phone_number_blank`, `phone_already_confirmed`) or `422` (`invalid_pin`).\n","operationId":"confirmPhoneNumber","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"confirmation_code":{"type":"string","example":"132232","minLength":1}},"required":["confirmation_code"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"success"}}}}}},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Users","Security Factors"]}},"/api/v11/{tenant_id}/users/{user_id}/factors/temporary_pin":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/user_id"}],"get":{"summary":"Get the specified user's Temporary PIN.","operationId":"showTemporaryPin","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemporaryPinResponse"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Users","Security Factors"]},"post":{"summary":"Generate a Temporary PIN for the specified user.","operationId":"generateTemporaryPin","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemporaryPinRequest"}}}},"responses":{"201":{"description":"Created","headers":{"Location":{"$ref":"#/components/headers/LocationHeader"}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Users","Security Factors"]},"delete":{"summary":"Revoke the specified user's Temporary PIN.","operationId":"revokeTemporaryPin","responses":{"202":{"$ref":"#/components/responses/202-Accepted"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Users","Security Factors"]}},"/api/v11/{tenant_id}/users/{user_id}/factors/webauthn":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/user_id"}],"get":{"summary":"List user's WebAuthn Credentials","operationId":"listUserWebAuthnCredentials","security":[{"OAuth2":["public"]},{"OAuth2":["eG:v11:all"]},{"OAuth2":["eG:v11:passkeys:all"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WebAuthnCredential"}}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Users","Security Factors","WebAuthn"]},"post":{"summary":"Create a new WebAuthn credential for the user","operationId":"createUserWebAuthnCredential","security":[{"OAuth2":["public"]},{"OAuth2":["eG:v11:all"]},{"OAuth2":["eG:v11:passkeys:all"]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"publicKeyCredential":{"type":"object","properties":{"id":{"type":"string","format":"byte"},"rawId":{"type":"string","format":"CBOR"},"response":{"type":"object","properties":{"clientDataJSON":{"type":"string","format":"JSON"},"attestationObject":{"type":"string","format":"CBOR"}}},"type":{"type":"string","enum":["public-key"]}}},"origin":{"type":"string","format":"url"}}}}}},"responses":{"201":{"description":"Created\n\nThe WebAuthn Credential was successfully created.\n","headers":{"Location":{"$ref":"#/components/headers/LocationHeader"}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Users","Security Factors","WebAuthn"]}},"/api/v11/{tenant_id}/users/{user_id}/factors/webauthn/new":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/user_id"}],"get":{"summary":"Start the process of registering a new WebAuthn credential","description":"When registering a new WebAuthn Credential, start by calling this endpoint. It returns the options needed to\ncreate a credential on the client side. These options are processed by the client and returned to the URL\nspecified in the `Location` header.\nSee https://webauthn.guide/#registration for details.\n","operationId":"newUserWebAuthnCredential","security":[{"OAuth2":["public"]},{"OAuth2":["eG:v11:all"]},{"OAuth2":["eG:v11:passkeys:all"]}],"parameters":[{"in":"query","name":"origin","schema":{"type":"string","format":"url"}},{"in":"query","name":"client_side_discoverable","schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK\n\nThe options needed to register a WebAuthn Credential. This can be passed directly to\n`navigator.credentials.create()`.\n","content":{"application/json":{"schema":{"type":"object","properties":{"options":{"$ref":"#/components/schemas/WebAuthnCredentialCreationOptions"}}}}},"headers":{"Location":{"$ref":"#/components/headers/LocationHeader"}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Users","Security Factors","WebAuthn"]}},"/api/v11/{tenant_id}/users/{user_id}/factors/webauthn/{webauthn_id}":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/user_id"},{"in":"path","name":"webauthn_id","schema":{"$ref":"#/components/schemas/WebAuthnId"},"required":true}],"delete":{"summary":"Delete the WebAuthn Credential from the user","operationId":"deleteUserWebAuthnCredential","security":[{"OAuth2":["public"]},{"OAuth2":["eG:v11:all"]},{"OAuth2":["eG:v11:passkeys:all"]}],"responses":{"205":{"$ref":"#/components/responses/205-ResetContent"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Users","Security Factors","WebAuthn"]},"get":{"summary":"Retrieves details for a WebAuthn Credential from the user","operationId":"getUserWebAuthnCredential","security":[{"OAuth2":["public"]},{"OAuth2":["eG:v11:all"]},{"OAuth2":["eG:v11:passkeys:all"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebAuthnCredential"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Users","Security Factors","WebAuthn"]}},"/api/v11/{tenant_id}/users/{user_id}/factors/totp":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/user_id"}],"get":{"summary":"Get the user's TOTP seed","operationId":"getUserTotpSeed","responses":{"200":{"$ref":"#/components/responses/TotpResetResponse"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Users","Security Factors","TOTP"]}},"/api/v11/{tenant_id}/users/{user_id}/factors/totp/reset":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/user_id"}],"put":{"summary":"Reset the user's TOTP seed","operationId":"resetUserTotpSeed","responses":{"200":{"$ref":"#/components/responses/TotpResetResponse"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Users","Security Factors","TOTP"]}},"/api/v11/{tenant_id}/users/{user_id}/factors/password/change":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/user_id"}],"put":{"summary":"Change user's password","operationId":"changeUserPassword","responses":{"204":{"$ref":"#/components/responses/204-NoContent"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordRequest"}}}},"tags":["Users","Security Factors","Passwords"]}},"/api/v11/{tenant_id}/users/{user_id}/factors/fingerprint":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/user_id"}],"delete":{"summary":"Delete all fingerprints belonging to this user","operationId":"deleteUserFingerprints","responses":{"202":{"$ref":"#/components/responses/202-Accepted"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Users","Security Factors","Fingerprint"]}},"/api/v11/{tenant_id}/users/{user_id}/factors/fingerprint/{fingerprint_id}":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/user_id"},{"$ref":"#/components/parameters/fingerprint_id"}],"delete":{"summary":"Delete a fingerprint belonging to this user","operationId":"deleteUserFingerprint","responses":{"202":{"$ref":"#/components/responses/202-Accepted"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Users","Security Factors","Fingerprint"]}},"/api/v11/{tenant_id}/users/{user_id}/lock":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/user_id"}],"put":{"summary":"Lock the user.","operationId":"lockUser","responses":{"205":{"$ref":"#/components/responses/205-ResetContent"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Users"]}},"/api/v11/{tenant_id}/users/{user_id}/logs":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/user_id"}],"get":{"summary":"List audit logs for a specific user.","operationId":"listUserAuditLogs","parameters":[{"$ref":"#/components/parameters/application_ids"},{"$ref":"#/components/parameters/event_date_start"},{"$ref":"#/components/parameters/event_date_end"},{"$ref":"#/components/parameters/log_type_filter"},{"$ref":"#/components/parameters/page_token"},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AuditLogSummary"}}}},"headers":{"Link":{"$ref":"#/components/headers/LinkHeader"}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Audit Logs","Users"]}},"/api/v11/{tenant_id}/users/{user_id}/roles":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/user_id"}],"get":{"summary":"List the roles assigned to the user.","operationId":"listUserRoles","parameters":[{"$ref":"#/components/parameters/page_token"},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"},{"$ref":"#/components/parameters/include_abilities"},{"$ref":"#/components/parameters/include_summary"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleList"}}},"headers":{"Link":{"$ref":"#/components/headers/LinkHeader"}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Users","Roles"]},"post":{"summary":"Adds a new role to a user. Will return an error if the user already has the role","operationId":"assignUserRole","requestBody":{"$ref":"#/components/requestBodies/RoleAssignmentRequest"},"responses":{"201":{"description":"Created","headers":{"Location":{"$ref":"#/components/headers/LocationHeader"}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Users","Roles"]},"put":{"summary":"Assigns the provided roles to the user, removing any roles not present in the provided array","operationId":"syncUserRoles","requestBody":{"$ref":"#/components/requestBodies/SyncRolesRequest"},"responses":{"202":{"$ref":"#/components/responses/202-Accepted"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Users","Roles"]}},"/api/v11/{tenant_id}/users/{user_id}/roles/{role_id}":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/user_id"},{"$ref":"#/components/parameters/role_id"}],"delete":{"summary":"Revoke a role from the user.","operationId":"revokeUserRole","responses":{"202":{"$ref":"#/components/responses/202-Accepted"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Users","Roles"]}},"/api/v11/{tenant_id}/users/{user_id}/unlock":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/user_id"}],"put":{"summary":"Unlock the user.","operationId":"unlockUser","responses":{"205":{"$ref":"#/components/responses/205-ResetContent"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Users"]}},"/api/v11/{tenant_id}/users/{user_id}/workstations":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/user_id"}],"get":{"summary":"List the user's workstations.","operationId":"listUserWorkstations","parameters":[{"$ref":"#/components/parameters/page_token"},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"},{"$ref":"#/components/parameters/workstation_name_filter"},{"$ref":"#/components/parameters/workstation_user_filter"},{"$ref":"#/components/parameters/ip_address_filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkstationBase"}}}},"headers":{"Link":{"$ref":"#/components/headers/LinkHeader"}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Users","Workstations"]}},"/api/v11/{tenant_id}/users/{user_id}/factors/emails":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/user_id"}],"get":{"summary":"List the user's emails.","operationId":"listUserEmails","parameters":[{"$ref":"#/components/parameters/page_token"},{"$ref":"#/components/parameters/page"},{"$ref":"#/components/parameters/page_size"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EmailResponse"}}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Users","Emails"]},"post":{"summary":"Create email","operationId":"createEmailAddress","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailRequest"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailResponse"}}},"headers":{"Link":{"$ref":"#/components/headers/LinkHeader"}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Users","Emails"]}},"/api/v11/{tenant_id}/users/{user_id}/factors/emails/{email_id}":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/user_id"},{"$ref":"#/components/parameters/email_id"}],"get":{"summary":"Get the specified email.","operationId":"getEmailAddress","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailResponse"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Users","Emails"]},"delete":{"summary":"Delete the specified email.","operationId":"deleteEmailAddress","responses":{"202":{"$ref":"#/components/responses/202-Accepted"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Users","Emails"]}},"/api/v11/{tenant_id}/users/{user_id}/factors/emails/{email_id}/confirm":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/user_id"},{"$ref":"#/components/parameters/email_id"}],"put":{"summary":"Confirm the specified email address","operationId":"confirmEmailAddress","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailResponse"}}}},"202":{"$ref":"#/components/responses/202-Accepted"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Users","Emails"]}},"/api/v11/{tenant_id}/workstations":{"parameters":[{"$ref":"#/components/parameters/tenant_id"}],"get":{"operationId":"listWorkstations","summary":"List workstations in the tenant.","parameters":[{"$ref":"#/components/parameters/page_token"},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"},{"$ref":"#/components/parameters/workstation_name_filter"},{"$ref":"#/components/parameters/workstation_user_filter"},{"$ref":"#/components/parameters/ip_address_filter"},{"$ref":"#/components/parameters/include_abilities"},{"$ref":"#/components/parameters/owner_username_filter"},{"$ref":"#/components/parameters/owner_username_match_filter"},{"$ref":"#/components/parameters/machine_id_filter"},{"$ref":"#/components/parameters/machine_id_match_filter"},{"$ref":"#/components/parameters/workstation_status_filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkstationBase"}}}},"headers":{"Link":{"$ref":"#/components/headers/LinkHeader"}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Workstations"]}},"/api/v11/{tenant_id}/workstations/machines":{"parameters":[{"$ref":"#/components/parameters/tenant_id"}],"get":{"operationId":"listWorkstationMachines","summary":"List the tenant's workstations rolled up by machine, most-paired first.","parameters":[{"$ref":"#/components/parameters/page_token"},{"$ref":"#/components/parameters/page_size"},{"$ref":"#/components/parameters/page"},{"$ref":"#/components/parameters/include_abilities"},{"$ref":"#/components/parameters/owner_username_filter"},{"$ref":"#/components/parameters/owner_username_match_filter"},{"$ref":"#/components/parameters/machine_id_filter"},{"$ref":"#/components/parameters/machine_id_match_filter"},{"$ref":"#/components/parameters/workstation_status_filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkstationMachine"}}}},"headers":{"Link":{"$ref":"#/components/headers/LinkHeader"}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Workstations"]}},"/api/v11/{tenant_id}/agents/{agent_id}/revoke":{"delete":{"summary":"Revoke an agent's access.","description":"Retires the agent's credential. The agent's next request is refused; no token lifetime elapses first. Revoking does not prevent the user from enrolling the machine again, which returns the same agent to active with a fresh certificate.","operationId":"revokeAgent","security":[{"OAuth2":["eG:v11:all"]},{"OAuth2":["eG:v11:agents:all"]}],"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/agent_id"}],"responses":{"204":{"$ref":"#/components/responses/204-NoContent"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Agents"]}},"/api/v11/{tenant_id}/agents/{agent_id}/seed-key":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/agent_id"}],"put":{"summary":"Register an agent's seed public key","description":"For an agent enrolled before it sent a `seed_public_key`, so it need not enroll again.\nReplaces any key the agent registered before and answers the tenant's seed key, which the\nsigned settings token also carries in its `it_seed` claim.\n\nThe path must name the calling agent: another agent's id answers `enrolled_agent_not_found`.\nThat, `invalid_seed_public_key` and an id that isn't a UUID leave the assertion unspent.\nEach assertion is otherwise single-use, and presenting the same one again returns\n`403 jti_replay`. `503 replay_check_unavailable` means the spend could not be recorded:\nwait out `Retry-After` and retry with a newly minted assertion.\n","operationId":"registerAgentSeedKey","security":[{"AgentCertificateAssertion":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSeedKeyRequest"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSeedKeyResponse"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"},"503":{"$ref":"#/components/responses/503-ServiceUnavailable"}},"tags":["Agents"]}},"/api/v11/{tenant_id}/agents/{agent_id}/settings":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/agent_id"}],"get":{"summary":"Get an agent's configuration","description":"The calling agent's own configuration document: enrollment details and its settings,\nresolved with its user's overrides. The path must name the calling agent: another agent's\nid answers `enrolled_agent_not_found`, and an id that isn't a UUID answers `400`. Neither\nspends the assertion. Each assertion is otherwise single-use: mint a new one for every\npoll, since presenting the same one again returns `403 jti_replay`.\n`503 replay_check_unavailable` means the spend could not be recorded: wait out\n`Retry-After` and retry with a newly minted assertion.\n\nSend `Accept: application/jwt` for the document signed with the tenant's OIDC key\n(`typ: agent-config+jwt`, document under `agent_config`, `sub` the agent id, `aud` of\n`urn:secureauth:agent:<agent_type>:<agent_id>`, no `exp`). Anything else answers JSON.\nOnce the tenant has a seed key, the JWT also carries an `it_seed` claim beside `agent_config`,\nshaped as `AgentSeedKeyResponse`: the tenant's seed public key and `seed_version`, signed with\nthe document. The JSON form never carries it.\nAn `Accept: application/jwt` request answers `503 oidc_provider_config_missing`, with no\n`Retry-After`, when the tenant has no signing key.\n`503 presence_authority_client_missing`, also with no `Retry-After`, means the tenant's\nPresence Authority client is missing or unusable.\nSend the returned ETag in `If-None-Match` to get `304` while nothing changed.\n","operationId":"getAgentConfiguration","security":[{"AgentCertificateAssertion":[]}],"responses":{"200":{"description":"OK","headers":{"ETag":{"schema":{"type":"string"}},"Vary":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentConfiguration"}},"application/jwt":{"schema":{"type":"string"}}}},"304":{"description":"Not modified since the ETag sent in `If-None-Match`.","headers":{"ETag":{"schema":{"type":"string"}},"Vary":{"schema":{"type":"string"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"429":{"$ref":"#/components/responses/429-TooManyRequests"},"503":{"$ref":"#/components/responses/503-ServiceUnavailable"}},"tags":["Agents"]}},"/api/v11/{tenant_id}/workstations/{workstation_id}":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/workstation_id"}],"get":{"summary":"Retrieve the details for a workstation.","operationId":"getWorkstation","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Workstation"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Workstations"]}},"/api/v11/{tenant_id}/workstations/{workstation_id}/unpair":{"put":{"summary":"Unpair a user's workstation.","operationId":"unpairWorkstation","parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/workstation_id"}],"responses":{"202":{"$ref":"#/components/responses/202-Accepted"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Workstations"]}},"/api/v11/{tenant_id}/workstations/{workstation_id}/revoke":{"delete":{"summary":"Revoke the user's ownership of the workstation.","operationId":"revokeWorkstation","parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/workstation_id"}],"responses":{"202":{"$ref":"#/components/responses/202-Accepted"},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"422":{"$ref":"#/components/responses/422-UnprocessableEntity"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Workstations"]}},"/api/v11/{tenant_id}/users/{user_id}/workstations/invite":{"parameters":[{"$ref":"#/components/parameters/tenant_id"},{"$ref":"#/components/parameters/user_id"}],"post":{"operationId":"inviteWorkstation","summary":"Create a workstation invitation JWT for the specified user","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkstationInvitation"}}}},"400":{"$ref":"#/components/responses/400-BadRequest"},"401":{"$ref":"#/components/responses/401-NotAuthorized"},"403":{"$ref":"#/components/responses/403-Forbidden"},"404":{"$ref":"#/components/responses/404-NotFound"},"415":{"$ref":"#/components/responses/415-UnsupportedMediaType"},"429":{"$ref":"#/components/responses/429-TooManyRequests"}},"tags":["Workstations"]}}}}