{"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, messaging is off for the tenant (`messaging_not_enabled`), a call was asked for while voice is off for the tenant (`voice_not_enabled`), or a send passed its own `code` while SecureAuth hasn't turned that on for the tenant (`customer_codes_not_enabled`)."},"MessagingNotFound":{"description":"The tenant or the verification or template was 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, such as a verification that is no longer pending. `details.status` carries its status when known. `idempotency_key_in_progress`: the first send with this key is still running; wait at least 10 seconds, then retry with the key from the `Idempotency-Key` header, never a new one. `resend_in_progress`: another resend of this verification is still sending and nothing was sent; retry after `Retry-After` seconds. Each retry counts against the number's 3 sends in 10 minutes. `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.","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 is not a string of 4 to 10 digits), `channel_unsupported`, `template_required` (an `sms` send without a template), `template_not_allowed` (a `voice` send with a template or params), `template_not_approved`, `template_params_invalid`, `country_blocked`, `country_not_allowed`, `premium_number_blocked` or, on a new template or version whose text has no `{{code}}`, `code_placeholder_missing`. `details` names the country, variable or value 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, or `voice_not_yet_available`: a call was asked for before `voice_available_at`. Wait `Retry-After` seconds.","headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfterSecondsHeader"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingError"}}}},"MessagingBadGateway":{"description":"`provider_error`: the provider refused the send; retry with the same `Idempotency-Key`, since a new one can send a second code. `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, or the rate limits could not be checked. Retry later with the same `Idempotency-Key`. 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"}}}},"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"}}}}},"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; every other variable must be declared in `variables` (a list of values) or in `variable_formats` (a number or a time), never both. 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; 1 to 20 values each, each value 1 to 32 characters. 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) or `time` (a time of day written `HH:MM`). 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` refuses `pattern`, `source` and `time_zone`; `time` refuses `min_length` and `max_length`.","properties":{"type":{"type":"string","enum":["digits","time"]},"min_length":{"type":"integer","minimum":1,"maximum":3,"description":"With `digits`. Defaults to 1."},"max_length":{"type":"integer","minimum":1,"maximum":3,"description":"Required with `digits`."},"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 three kinds: declared values (listed in `variables`), digits, or time. A digits or time 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), and `23:59` for time.","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"}}},"MessagingTemplateDefaultLocaleRequest":{"type":"object","additionalProperties":false,"required":["default_locale"],"properties":{"default_locale":{"$ref":"#/components/schemas/MessagingLocale"}}},"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"}}},"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` or `time`, or a length above 3, 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"}}}},"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","locales"],"properties":{"name":{"type":"string"},"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"}}}}}}},"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; a tenant without voice answers 403 `voice_not_enabled`. Any other value answers 422 `channel_unsupported`.","example":"sms"},"template":{"allOf":[{"$ref":"#/components/schemas/MessagingTemplateName"}],"description":"The template name. Its text must include `{{code}}`. Required with `sms` (422 `template_required`); refused with `voice` (422 `template_not_allowed`)."},"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`. Refused with `voice` (422 `template_not_allowed`). A digits or time value is checked against the template's variable format, and a send-time variable is never sent: both answer 422 `template_params_invalid` with `details.variable`.","additionalProperties":{"type":"string","maxLength":32}},"code":{"description":"Your own code to send instead of a generated one, as a string of 4 to 10 digits, such as `\"012345\"`, in the JSON body; 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. It lasts the tenant's code lifetime, not your generator's window. Resends repeat it, and the check endpoint accepts it. A retry must repeat it: the same `Idempotency-Key` with another code answers 422 `idempotency_key_reused`. SecureAuth turns this on per tenant; until then a well-formed code answers 403 `customer_codes_not_enabled`, and a malformed one still answers 422 `invalid_code`.","example":"012345"}}},"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`.","enum":["pending","approved","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."}}},"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`. `sms` on a `voice` verification answers 422 `malformed`, since it has no 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 10 digits."}}},"MessagingDelivery":{"type":"object","additionalProperties":false,"required":["n","channel","message_id","call_id","status","failure_category","failure_reason","sent_at","delivered_at"],"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."}}},"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"],"properties":{"id":{"type":"string","example":"v_z6bomicwwxpvkffuycur5z5gzm"},"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":"Null for a verification started by voice."},"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 call asked for earlier answers 429 `voice_not_yet_available`, on a text or a voice verification. 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."}}},"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"},"status":{"type":"string","description":"`pending`, `approved`, `failed` or `expired`. 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},"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},"last_failure_reason":{"type":"string","nullable":true},"last_delivered_at":{"type":"string","format":"date-time","nullable":true,"description":"The last delivery's `delivered_at`, as in `MessagingDelivery`, late receipts included."},"expires_at":{"type":"string","format":"date-time","nullable":true},"created_at":{"type":"string","format":"date-time"},"live":{"type":"boolean","description":"Always false. A live verification comes back in the `MessagingVerification` shape."},"refreshed_at":{"type":"string","format":"date-time","nullable":true}}},"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 string defining a color","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 name of the Out-of-Band method used to resolve this transaction. Values include:\n- push\n- totp\n- sms\n- email\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"}},"required":["content_type","image_b64","sha256","source"]},"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","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` and `not`.","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","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"]}]},"RoleList":{"type":"array","items":{"type":"object","allOf":[{"$ref":"#/components/schemas/RoleSummary"},{"$ref":"#/components/schemas/RecordAbilities"}]}},"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"}}}},"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"}}},"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. Ignore any field you don't recognize, anywhere in the document: later versions may add fields.","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":{}}]}}}},"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"}}},"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."}}}}},"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"}]},"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":{"$ref":"#/components/schemas/DirectoryBasePayload"},"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 templates and their approvals; enforced regardless of the tenant's v11 scope setting","eG:v11:messaging:templates:write":"Create SMS templates and versions, and disable templates; enforced regardless of the tenant's v11 scope setting","eG:v11:messaging:templates:publish":"Publish an SMS template version, or restore a removed language; 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"}}}},"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, as `POST /messaging/verifications` returned it.","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_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 returns the first result instead of sending another code. 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`.","schema":{"type":"string","enum":["pending","approved","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"}},"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"}},"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 reads the code itself, so it takes no template. Calls are enabled per\ntenant too; while they are off, a call returns 403 `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\nRetry a 502 `provider_error`, a 503 or a 409 `idempotency_key_in_progress` with the same `Idempotency-Key`,\nnever a new one: if a send did go out, the same key returns that verification and sends nothing, while a new\nkey sends a second code. After that 409, wait at least 10 seconds first; the key is in the response's\n`Idempotency-Key` header. Every send that passes the core system's own checks counts against the number's 3 sends\nin 10 minutes, retries and sends the messaging service refuses included.\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, which carry masked numbers only.","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/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":"Sends a code by text or by a call that reads it, and returns the verification. The code is a generated one or your own `code`, valid for the tenant's code lifetime either way. Check the code with `POST .../verifications/{verification_id}/check`. A call counts against the number's send limit like a text.","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":{"201":{"description":"Sent.","headers":{"Idempotency-Key":{"$ref":"#/components/headers/IdempotencyKeyHeader"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingVerification"}}}},"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"},"502":{"$ref":"#/components/responses/MessagingBadGateway"},"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, which carry masked numbers only. 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/{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. Once the messaging service has forgotten it, 15 minutes after the code expires, returns the core system's stored record with `live: false`.","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.","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":"Sends the same code again, on the verification's channel or the one the body names. `{\"channel\": \"voice\"}` on a text verification calls the number and reads the code. Every call after the first waits for `voice_available_at`, a voice verification's own resends included. One resend runs at a time per 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":{"200":{"description":"Sent again.","headers":{"Idempotency-Key":{"$ref":"#/components/headers/IdempotencyKeyHeader"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingVerification"}}}},"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"},"502":{"$ref":"#/components/responses/MessagingBadGateway"},"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.","operationId":"updateMessagingTemplateDefaultLocale","description":"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`. 409 `template_disabled` means the template is disabled. Setting the current default again succeeds and changes nothing. 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/MessagingTemplateDefaultLocaleRequest"}}}},"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"},"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}/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/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"}],"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_client`, `presence_authority_not_enabled`, any `404` or `429`, and a code-less\n`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":{"$ref":"#/components/schemas/AgentEnrollmentResponse"}}}},"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"}],"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":{"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"]}},"/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"}],"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}/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.\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"]}}}}