openapi: 3.1.0 info: title: 'solidpixels API documentation' description: 'Core orchestration API for the Solidpixels platform.' version: 1.0.0 servers: - url: 'https://solidpixels.app.solidpixels.com' tags: - name: '[auth] Authentication' description: 'Account registration and authentication.' - name: '[auth] Password Reset' description: 'Password recovery and reset endpoints.' - name: '[auth] Security setup' description: 'Complete required account security with a separate opaque credential.' - name: '[auth] JWT Tokens' description: 'JWT token generation and public key endpoints.' - name: '[auth] Personal Access Tokens' description: 'Manage API tokens for programmatic access.' - name: '[auth] SSO' description: 'Single Sign-On for cross-service authentication.' - name: '[auth] Website gate' description: 'Approve browser-bound website access with a Console refresh session.' - name: '[auth] Impersonation' description: 'Console account impersonation using first-party login refresh credentials.' - name: '[auth] OAuth Clients' description: 'OAuth2 client application management.' - name: '[auth] OAuth Grants' description: 'OAuth2 grant management.' - name: '[auth] OAuth Protocol' description: 'OAuth2 authorization protocol endpoints.' - name: '[account] Accounts' description: 'Admin CRUD operations for accounts.' - name: '[account] Current Account' description: 'Manage the authenticated account profile.' - name: '[account] Current Account Settings' description: 'Manage the authenticated account settings (key-value preferences).' - name: '[account] Account Settings' description: 'Account configuration settings.' - name: '[account] Account Admin Settings' description: 'Admin-managed configuration settings for an account.' - name: '[media] Pictures' description: 'Account and Team pictures stored by the Files component.' - name: '[team] Teams' description: 'Team management.' - name: '[team] Accounts' description: 'Team member management.' - name: '[team] Invitations' description: 'Invite accounts to an accepted Team membership.' - name: '[team] Roles' description: 'Team role management.' - name: '[team] Settings' description: 'Team configuration settings and account security requirements.' - name: '[team] Websites' description: 'List website affiliation without inherited website access.' - name: '[website] Websites' description: 'CRUD operations for websites.' - name: '[website] Administration' description: 'Website administration endpoints.' - name: '[website] Domains' description: 'Website domain management.' - name: '[website] Accounts' description: 'Website account membership endpoints.' - name: '[website] Roles' description: 'Website role management endpoints.' - name: '[website] Invitations' description: 'Website access invitations.' - name: '[website] Redirects' description: 'URL redirect management.' - name: '[website] Headers' description: 'Response header management.' - name: '[website] Languages' description: 'Language management for websites.' - name: '[website] Backups' description: 'Per-website backup management.' - name: '[website] Language Settings' description: 'Language-specific website configuration settings.' - name: '[website] Settings' description: 'Website configuration settings.' - name: '[website] Entitlements' description: 'Website entitlement read endpoints.' - name: '[billing] Profiles' description: 'Account-scoped billing profiles.' - name: '[billing] Website Billing' description: 'Website subscription, prices, checkout, and invoices.' - name: '[billing] Website Pricing' description: 'Admin-set negotiated price for a single website.' - name: '[billing] Stripe Webhooks' description: 'Stripe billing event ingestion.' - name: '[billing] Transfer Notifications' description: 'Authenticated invoice-provider signals.' - name: '[feedback] Reports' description: 'User feedback submission endpoints.' - name: '[library] Libraries' description: 'Library management.' - name: '[library] Ownership' description: 'Library ownership operations.' - name: '[library] Accounts' description: 'Library member management.' - name: '[library] Invitations' description: 'Library access invitations.' - name: '[library] Folders' description: 'Library folder management.' - name: '[library] Items' description: 'Library item management.' - name: '[library] Website Libraries' description: 'Manage library-website bindings.' - name: '[library] Website Content' description: 'Read-only library content via website scope.' - name: '[platform] Administration' description: 'Platform administration operations.' - name: '[admin] Websites' description: 'Admin website operations.' - name: '[admin] Administration' description: 'Administrative endpoints (console admin).' - name: '[tag] Tags' description: 'Attach and detach tags on accounts.' components: securitySchemes: default: type: http scheme: bearer description: 'Use the bearer credential documented for each endpoint. Setup start requires a current first-party login refresh token. Other setup routes require the separate opaque setup credential. Account impersonation start and return require the original first-party login refresh token. Website impersonation requires a first-party account JWT. Public endpoints do not require authentication.' SecuritySetupCredential: type: http scheme: bearer bearerFormat: 'Opaque setup credential' description: 'Five-minute account-bound setup only. Normal access JWTs and refresh credentials are not accepted.' LoginRefreshCredential: type: http scheme: bearer bearerFormat: 'Login refresh PAT' description: 'Current first-party login refresh credential with verified server-owned proof.' schemas: Account: type: object properties: id: type: string name: type: string surname: type: string username: type: string email: type: string status: type: string roles: type: array items: type: string permissions: type: array items: type: string websites_count: type: integer websites: type: - string - 'null' tags: type: array items: type: object properties: id: type: string name: type: string color: type: string icon: type: string created_at: type: string updated_at: type: string avatar_file_id: type: - string - 'null' avatar_url: type: - string - 'null' team: oneOf: - type: object additionalProperties: false required: - id - name - actions properties: id: type: string pattern: '^team_[A-Za-z0-9]{32}$' name: type: string actions: type: array items: type: string enum: - show uniqueItems: true - type: 'null' AccountAdminSetting: type: object properties: key: type: string value: type: boolean AccountAdminSettingResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/AccountAdminSetting' message: type: string required: - success - data AccountImpersonation: type: object properties: token_type: type: string const: Bearer access_token: type: string refresh_token: type: string expires_in: type: integer account: type: string pattern: '^acc_[A-Za-z0-9]{32}$' session_id: type: string pattern: '^pat_[A-Za-z0-9]{32}$' required: - token_type - access_token - refresh_token - expires_in - account - session_id AccountImpersonationResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/AccountImpersonation' message: type: string required: - success - data AccountInvitation: type: object properties: id: type: string description: 'Prefixed invitation ID (winv_, linv_ or tinv_).' type: type: string enum: - website - library - team status: type: string enum: - pending - accepted - declined - expired - revoked target: type: object properties: id: type: string name: type: string required: - id - name roles: type: array items: type: object properties: id: type: string pattern: '^role_[A-Za-z0-9]{32}$' name: type: string required: - id - name invited_by: type: object properties: id: type: string name: type: string required: - id - name expires_at: type: string format: date-time created_at: type: string format: date-time required: - id - type - status - target - roles - invited_by - expires_at - created_at AccountInvitationPaginatedResponse: type: object properties: success: const: true data: type: array items: $ref: '#/components/schemas/AccountInvitation' message: type: string meta: $ref: '#/components/schemas/PaginationMeta' required: - success - data - meta AccountInvitationResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/AccountInvitation' message: type: string required: - success - data AccountPaginatedResponse: type: object properties: success: const: true data: type: array items: $ref: '#/components/schemas/Account' message: type: string meta: $ref: '#/components/schemas/PaginationMeta' required: - success - data - meta AccountResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/Account' message: type: string required: - success - data AccountSecurityStatus: type: object additionalProperties: false required: - required_steps - policy - reauthentication_required - available_factor_types properties: required_steps: type: array items: type: string enum: - verify_password - change_password - enroll_factor - recover_factor policy: type: object additionalProperties: false required: - require_two_factor - minimum_password_length - password_rotation_days - allow_email_factor properties: require_two_factor: type: boolean allow_email_factor: type: boolean minimum_password_length: type: integer minimum: 8 maximum: 128 password_rotation_days: type: integer minimum: 0 maximum: 2147483647 reauthentication_required: type: boolean available_factor_types: type: array items: type: string enum: - totp - passkey - email AccountSecurityStatusResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/AccountSecurityStatus' message: type: string required: - success - data AccountSetting: type: object required: - id - group - type - key - value - created_at - updated_at properties: id: type: string group: type: string key: type: string type: type: string enum: - bool - text - int - json - file value: description: 'The typed setting value. File settings contain a scalar Files ID or an empty string.' created_at: type: string format: date-time updated_at: type: string format: date-time AccountSettingPaginatedResponse: type: object properties: success: const: true data: type: array items: $ref: '#/components/schemas/AccountSetting' message: type: string meta: $ref: '#/components/schemas/PaginationMeta' required: - success - data - meta AccountSettingResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/AccountSetting' message: type: string required: - success - data ApproveWebsiteLoginRequest: type: object properties: request_id: type: string description: 'Opaque website login request.' required: - request_id AssignWebsiteAccountRequest: type: object properties: account_id: type: string description: 'Prefixed account ID to assign.' required: - account_id AttachLibraryToWebsiteRequest: type: object properties: library_id: type: string description: 'Library prefixed ID to attach.' required: - library_id AttachTagsRequest: type: object properties: tag_ids: type: array description: 'Prefixed tag IDs to attach.' items: type: string required: - tag_ids AuthToken: type: object properties: token_type: type: string access_token: type: string refresh_token: type: string expires_in: type: integer account: type: string AuthTokenResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/AuthToken' message: type: string required: - success - data AuthorizeInfo: type: object properties: client_id: type: string client_name: type: string scopes: type: array items: type: object properties: role: type: string required: - role roles_requiring_resource_selection: type: array items: type: string redirect_uri: type: string state: type: - string - 'null' required: - client_id - client_name - scopes - roles_requiring_resource_selection - redirect_uri - state AuthorizeInfoResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/AuthorizeInfo' message: type: string required: - success - data BatchAccountSettingsRequest: type: object properties: store: type: array description: 'Settings to create.' items: type: object update: type: array description: 'Settings to update; each item includes its prefixed id.' items: type: object destroy: type: array description: 'Prefixed IDs to delete.' items: type: string BatchAccountsRequest: type: object properties: store: type: array description: 'Accounts to create.' items: type: object update: type: array description: 'Accounts to update.' items: type: object destroy: type: array description: 'Prefixed account IDs to delete.' items: type: string enable: type: array description: 'Prefixed account IDs to enable.' items: type: string disable: type: array description: 'Prefixed account IDs to disable.' items: type: string BatchLibrariesRequest: type: object properties: store: type: array description: 'Libraries to create.' items: type: object update: type: array description: 'Libraries to update; each item includes its prefixed id.' items: type: object destroy: type: array description: 'Prefixed IDs to delete.' items: type: string BatchLibraryFoldersRequest: type: object properties: store: type: array description: 'Folders to create.' items: type: object update: type: array description: 'Folders to update; each item includes its prefixed id.' items: type: object destroy: type: array description: 'Prefixed IDs to delete.' items: type: string BatchLibraryItemsRequest: type: object properties: store: type: array description: 'Items to create (name, content, folder_id).' items: type: object update: type: array description: 'Items to update (id required, plus fields).' items: type: object destroy: type: array description: 'Item prefixed IDs to delete.' items: type: string BatchOAuthClientsRequest: type: object properties: update: type: array description: 'Clients to update; each item includes its prefixed id.' items: type: object destroy: type: array description: 'Prefixed IDs to delete.' items: type: string BatchTeamSettingsRequest: type: object additionalProperties: false minProperties: 1 properties: store: type: array items: $ref: '#/components/schemas/CreateTeamSettingRequest' update: type: array items: allOf: - $ref: '#/components/schemas/UpdateTeamSettingRequest' - type: object required: - id properties: id: type: string pattern: '^tset_[A-Za-z0-9]{32}$' destroy: type: array items: type: string pattern: '^tset_[A-Za-z0-9]{32}$' BatchWebsiteHeadersRequest: type: object properties: store: type: array description: 'Headers to create.' items: type: object update: type: array description: 'Headers to update; each item includes its prefixed id.' items: type: object destroy: type: array description: 'Prefixed IDs to delete.' items: type: string BatchWebsiteLanguageSettingsRequest: type: object properties: store: type: array description: 'Language settings to create.' items: type: object update: type: array description: 'Language settings to update; each item includes its prefixed id.' items: type: object destroy: type: array description: 'Prefixed IDs to delete.' items: type: string BatchWebsiteLanguagesRequest: type: object properties: store: type: array description: 'Languages to create.' items: type: object update: type: array description: 'Languages to update; each item includes its prefixed id.' items: type: object destroy: type: array description: 'Prefixed IDs to delete.' items: type: string BatchWebsiteRedirectsRequest: type: object properties: store: type: array description: 'Redirects to create.' items: type: object update: type: array description: 'Redirects to update; each item includes its prefixed id.' items: type: object destroy: type: array description: 'Prefixed IDs to delete.' items: type: string BatchWebsiteSettingsRequest: type: object properties: store: type: array description: 'Settings to create.' items: type: object update: type: array description: 'Settings to update; each item includes its prefixed id.' items: type: object destroy: type: array description: 'Prefixed IDs to delete.' items: type: string BatchWebsitesRequest: type: object properties: store: type: array description: 'Websites to create.' items: type: object update: type: array description: 'Websites to update; each item includes its prefixed id.' items: type: object destroy: type: array description: 'Prefixed IDs to delete.' items: type: string BillingInvoice: type: object properties: id: type: string number: type: string status: type: string currency: type: string amount_due_minor: type: integer amount_paid_minor: type: integer period_start: type: string period_end: type: string invoice_number: type: string invoice_url: type: string created_at: type: string document_type: type: - string - 'null' due_date: type: - string - 'null' order_id: type: - string - 'null' processing_state: type: - string - 'null' delivery_state: type: - string - 'null' error_code: type: - string - 'null' edit_tax: type: boolean BillingInvoicePaginatedResponse: type: object properties: success: const: true data: type: array items: $ref: '#/components/schemas/BillingInvoice' message: type: string meta: $ref: '#/components/schemas/PaginationMeta' required: - success - data - meta BillingPortalSession: type: object properties: portal_url: type: string BillingPortalSessionResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/BillingPortalSession' message: type: string required: - success - data BillingPrice: type: object properties: id: type: string code: type: string kind: type: string label: type: string currency: type: string interval: type: string amount_minor: type: integer is_custom: type: boolean BillingPriceResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/BillingPrice' message: type: string required: - success - data BillingProfile: type: object properties: id: type: string label: type: string is_default: type: boolean billing_email: type: string phone: type: string name: type: string company: type: string street: type: string city: type: string postal_code: type: string country: type: string currency: type: string company_identification_number: type: string company_vatin: type: string has_stripe_customer: type: boolean created_at: type: string updated_at: type: string BillingProfilePaginatedResponse: type: object properties: success: const: true data: type: array items: $ref: '#/components/schemas/BillingProfile' message: type: string meta: $ref: '#/components/schemas/PaginationMeta' required: - success - data - meta BillingProfileResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/BillingProfile' message: type: string required: - success - data ChangeAccountPasswordRequest: type: object properties: new_password: type: string description: 'New password with at least 8 characters.' new_password_confirmation: type: string description: 'New password confirmation.' required: - new_password - new_password_confirmation ChangeSecuritySetupPasswordRequest: type: object required: - current_password - new_password - new_password_confirmation properties: current_password: type: string new_password: type: string minLength: 8 new_password_confirmation: type: string CheckPermissionsRequest: type: object properties: permissions: type: array minItems: 1 maxItems: 100 uniqueItems: true items: type: string maxLength: 130 pattern: '^[a-z][a-z0-9._:-]*$' description: 'Unique permission names.' required: - permissions CheckoutSession: oneOf: - type: object properties: checkout_url: type: string format: uri required: - checkout_url - type: object properties: order_id: type: string pattern: '^bord_[A-Za-z0-9]{32}$' state: type: string enum: - preparing - awaiting_payment - applied - manual_review invoice_id: type: string billing_email: type: string format: email required: - order_id - state - invoice_id - billing_email CheckoutSessionResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/CheckoutSession' message: type: string required: - success - data ConfirmEmailEnrollmentRequest: type: object properties: token: type: string description: 'E-mail code enrollment challenge token.' code: type: string description: 'Six-digit code received by e-mail.' required: - token - code ConfirmPasskeyEnrollmentRequest: type: object properties: token: type: string description: 'Passkey enrollment challenge token.' attestation: type: object description: 'Structured WebAuthn registration response.' properties: {} name: type: string description: 'Passkey label.' required: - token - attestation - name ConfirmSecuritySetupEmailRequest: type: object properties: token: type: string description: 'Session-bound enrollment challenge.' code: type: string description: 'Six-digit email code.' required: - token - code ConfirmSecuritySetupPasskeyRequest: type: object required: - token - attestation - name properties: token: type: string minLength: 64 maxLength: 64 attestation: type: object additionalProperties: true description: 'Structured WebAuthn registration response.' name: type: string description: 'Passkey label.' ConfirmSecuritySetupTotpRequest: type: object properties: token: type: string description: 'Session-bound enrollment challenge.' code: type: string description: 'Six-digit TOTP code.' required: - token - code ConfirmTotpEnrollmentRequest: type: object properties: token: type: string description: 'TOTP enrollment challenge token.' code: type: string description: 'Six-digit TOTP code.' required: - token - code CopyLibraryItemRequest: type: object properties: library_id: type: string description: 'Target library prefixed ID.' required: - library_id CreateAccountRequest: type: object properties: name: type: string maxLength: 50 description: 'First name.' surname: type: string maxLength: 50 description: 'Last name.' email: type: string format: email maxLength: 254 description: 'Unique email address.' password: type: string minLength: 8 description: Password. password_confirmation: type: string description: 'Password confirmation.' roles: type: array minItems: 1 items: type: string description: 'Console roles.' status: type: string enum: - enabled - disabled description: 'Account status.' required: - name - surname - email CreateAccountSettingRequest: type: object properties: group: type: string maxLength: 50 description: 'Setting group.' key: type: string maxLength: 100 description: 'Setting key.' value: description: 'Setting value. File settings require a scalar Files ID or an empty string.' type: type: string enum: - bool - text - int - json - file default: text description: 'Setting value type.' required: - group - key - value CreateBillingProfileRequest: type: object properties: label: type: string maxLength: 100 billing_email: type: string format: email maxLength: 254 is_default: type: boolean phone: type: string nullable: true maxLength: 50 name: type: string nullable: true maxLength: 110 company: type: string nullable: true maxLength: 100 street: type: string nullable: true maxLength: 200 city: type: string nullable: true maxLength: 100 postal_code: type: string nullable: true maxLength: 20 country: type: string nullable: true maxLength: 2 currency: type: string enum: - CZK - EUR company_identification_number: type: string nullable: true maxLength: 50 company_vatin: type: string nullable: true maxLength: 50 required: - label - billing_email CreateFeedbackRequest: type: object properties: text: type: string description: 'Feedback text.' context: type: object description: 'Console route and environment context.' properties: {} images: type: array description: 'Attached image references.' items: type: string required: - text CreateLibraryFolderRequest: type: object properties: name: type: string maxLength: 100 description: 'Folder name.' parent_id: type: string nullable: true description: 'Parent folder prefixed ID. The new folder goes last among its siblings.' required: - name CreateLibraryInvitationRequest: type: object properties: email: type: string format: email maxLength: 254 description: 'Email address to invite.' roles: type: array minItems: 1 uniqueItems: true items: type: string pattern: '^role_[A-Za-z0-9]{32}$' description: 'Role IDs to assign.' required: - email - roles CreateLibraryItemRequest: type: object properties: name: type: string maxLength: 100 description: 'Item name.' content: type: object additionalProperties: true description: 'Item content.' folder_id: type: string nullable: true description: 'Folder prefixed ID.' required: - name - content CreateLibraryRequest: type: object properties: name: type: string maxLength: 100 description: 'Library name.' required: - name CreateOAuthClientRequest: type: object properties: name: type: string maxLength: 100 description: 'Client name.' type: type: string enum: - confidential - public description: 'OAuth client type.' redirect_uris: type: array items: type: string maxLength: 2048 description: 'HTTPS callbacks, HTTP loopback callbacks, or private-use native callbacks.' component: type: string nullable: true maxLength: 64 description: 'Confidential client service component.' required: - name - type - redirect_uris CreatePersonalAccessTokenRequest: type: object properties: name: type: string maxLength: 100 description: 'Token name for identification.' abilities: type: array nullable: true items: type: string description: 'Token abilities.' expires_at: type: string nullable: true description: 'Optional expiration timestamp.' required: - name CreateSSOCodeRequest: type: object properties: access_token: type: string description: 'Current JWT access token to transfer.' required: - access_token CreateSlackFeedbackRequest: type: object properties: text: type: string description: 'Feedback text.' user_name: type: string description: 'Slack user name.' user_id: type: string description: 'Slack user ID.' required: - text CreateTagRequest: type: object properties: name: type: string description: 'Tag name. Lowercased and trimmed; matches /^[a-z0-9][a-z0-9. _-]*$/ and up to 50 characters.' color: type: string description: 'Optional #RRGGBB color.' icon: type: string description: 'Optional icon name.' enum: - hash - star - crown - globe - server - users - folder - heart - bookmark - shield entity_type: type: string description: 'Optional entity type restriction.' enum: - website - account - library required: - name CreateTeamInvitationRequest: type: object additionalProperties: false required: - email - roles properties: email: type: string format: email maxLength: 254 roles: type: array minItems: 1 uniqueItems: true items: type: string pattern: '^role_[A-Za-z0-9]{32}$' CreateTeamRequest: type: object additionalProperties: false required: - name properties: name: type: string maxLength: 100 CreateTeamRoleRequest: type: object additionalProperties: false required: - name - permissions properties: name: type: string maxLength: 45 pattern: '^[a-z0-9]+(?:-[a-z0-9]+)*$' permissions: type: array minItems: 1 uniqueItems: true items: type: string CreateTeamSettingRequest: type: object required: - group - key - value properties: group: type: string maxLength: 50 key: type: string maxLength: 100 type: type: string enum: - bool - text - int - json - file value: description: 'File settings require a scalar Files ID or an empty string. Security keys require their declared group, type, and value format.' CreateWebsiteBackupRequest: type: object properties: label: type: string maxLength: 20 pattern: '^[a-z0-9]+$' description: 'Unique website backup label matching ^[a-z0-9]+$.' required: - label CreateWebsiteDomainRequest: type: object properties: domain: type: string maxLength: 253 description: 'Domain to add.' role: type: string enum: - default - alias - redirect description: 'Domain role.' required: - domain CreateWebsiteHeaderRequest: type: object properties: name: type: string maxLength: 100 pattern: '^[A-Za-z][A-Za-z0-9\-]*$' description: 'Header name.' value: type: string maxLength: 8000 pattern: '^[^\x00-\x1f\x7f]*$' description: 'Header value.' required: - name - value CreateWebsiteInvitationRequest: type: object properties: email: type: string format: email maxLength: 254 roles: type: array items: type: string pattern: '^role_[A-Za-z0-9]{32}$' minItems: 1 uniqueItems: true required: - email - roles CreateWebsiteLanguageRequest: type: object properties: code: type: string maxLength: 100 description: 'Supported BCP 47 language tag.' slug: type: string maxLength: 100 pattern: '^[a-z0-9]+(-[a-z0-9]+)*$' description: 'URL-safe slug.' required: - code CreateWebsiteLanguageSettingRequest: type: object properties: group: type: string maxLength: 50 description: 'Setting group.' key: type: string maxLength: 100 description: 'Setting key.' value: description: 'Setting value.' required: - group - key - value CreateWebsiteRedirectRequest: type: object properties: source_path: type: string maxLength: 1000 pattern: '^/[^?#]*$' description: 'Source URL path.' destination_url: type: string maxLength: 2000 description: 'Target URL path.' type: type: string enum: - '301' - '302' - '303' - '307' - '308' - alias description: 'Redirect type.' is_active: type: boolean description: 'Whether the redirect is active.' is_source_case_sensitive: type: boolean description: 'Whether source path matching is case-sensitive.' is_destination_case_sensitive: type: boolean description: 'Whether the destination preserves case.' required: - source_path - destination_url - type CreateWebsiteRequest: type: object properties: name: type: string maxLength: 100 description: 'Website name.' domain: type: string nullable: true maxLength: 253 description: 'Website domain.' required: - name CreateWebsiteRoleRequest: type: object properties: name: type: string maxLength: 42 pattern: '^[a-z0-9]+(?:-[a-z0-9]+)*$' description: 'Role slug. The API prefixes it with website:.' permissions: type: array items: type: string minItems: 1 uniqueItems: true required: - name - permissions additionalProperties: false CreateWebsiteSettingRequest: type: object properties: group: type: string maxLength: 50 description: 'Setting group.' key: type: string maxLength: 100 description: 'Setting key.' value: description: 'Setting value. general.favicon and seo.og_image require type file with a scalar Files ID or an empty string.' type: type: string enum: - bool - text - int - json - file default: text description: 'Setting value type.' required: - group - key - value DenyOAuthAuthorizationRequest: type: object properties: client_id: type: string description: 'Active client ID: cli_ plus 32 alphanumeric characters, exactly 36 bytes.' minLength: 36 maxLength: 36 pattern: '^cli_[A-Za-z0-9]{32}$' redirect_uri: type: string description: 'Exact registered callback, including native schemes. Maximum 2,048 characters and bytes.' maxLength: 2048 state: type: - string - 'null' description: 'State returned unchanged. Maximum 500 characters and bytes.' maxLength: 500 required: - client_id - redirect_uri DisablePasswordlessRequest: type: object properties: current_password: type: string description: 'Current account password.' proof: type: - object - 'null' additionalProperties: true required: - current_password EmailFactorEnrollmentStarted: type: object properties: token: type: string resend_in_seconds: type: integer EmailFactorEnrollmentStartedResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/EmailFactorEnrollmentStarted' message: type: string required: - success - data EmailFactorSent: type: object properties: resend_in_seconds: type: integer EmailFactorSentResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/EmailFactorSent' message: type: string required: - success - data EnablePasswordlessRequest: type: object properties: current_password: type: string description: 'Current account password.' token: type: string description: 'Account-bound enablement challenge.' assertion: type: object additionalProperties: true required: - current_password - token - assertion EndAccountImpersonationRequest: type: object properties: session_id: type: string pattern: '^pat_[A-Za-z0-9]{32}$' required: - session_id Error: type: object properties: success: type: boolean message: type: string errors: type: object required: - success - message ExchangeSSOCodeRequest: type: object properties: code: type: string description: 'One-time SSO code from create-code endpoint.' required: - code ExportLibraryRequest: type: object properties: ids: type: array description: 'Prefixed library IDs to export.' items: type: string required: - ids FactorActivation: type: object properties: factor: type: object properties: id: type: string type: type: string name: type: string last_used_at: type: - string - 'null' recovery_codes: type: array items: type: string FactorActivationResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/FactorActivation' message: type: string required: - success - data FakturoidTransferNotificationRequest: type: object additionalProperties: true ForgotPasswordRequest: type: object properties: email: type: string format: email maxLength: 254 description: 'The email address of the account.' required: - email FreshLoginRequired: type: object additionalProperties: false required: - fresh_login_required properties: fresh_login_required: type: boolean const: true FreshLoginRequiredResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/FreshLoginRequired' message: type: string required: - success - data GetLoginPasskeyOptionsRequest: type: object properties: token: type: string description: 'Login challenge token.' required: - token GetManagementAssertionOptionsRequest: type: object properties: current_password: type: string description: 'Current account password.' required: - current_password ImportLibraryRequest: type: object properties: version: type: integer description: 'Export format version.' resource_type: type: string description: 'Resource type of the payload; must match the import target.' data: type: array description: 'Exported records to import.' items: type: object required: - version - resource_type - data InvoiceTaxCorrectionPreview: type: object properties: edit_token: type: string currency: type: string net_minor: type: integer vat_basis_points: type: integer tax_treatment: type: string vat_minor: type: integer gross_minor: type: integer lines: type: array version: type: integer InvoiceTaxCorrectionPreviewResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/InvoiceTaxCorrectionPreview' message: type: string required: - success - data Library: type: object properties: id: type: string name: type: string is_system: type: boolean is_website_library: type: boolean items_count: type: integer websites_count: type: integer owner_account_id: type: string owner: type: object properties: firstname: type: string lastname: type: string email: type: string roles: type: array items: type: string tags: type: array items: type: object properties: id: type: string name: type: string color: type: string icon: type: string created_at: type: string updated_at: type: string LibraryAccount: type: object properties: account: type: object properties: id: type: string name: type: string surname: type: string username: type: string email: type: string status: type: string roles: type: array items: type: object properties: name: type: string is_owner: type: boolean is_default: type: boolean joined_at: type: string LibraryAccountPaginatedResponse: type: object properties: success: const: true data: type: array items: $ref: '#/components/schemas/LibraryAccount' message: type: string meta: $ref: '#/components/schemas/PaginationMeta' required: - success - data - meta LibraryAccountResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/LibraryAccount' message: type: string required: - success - data LibraryCollectionResponse: type: object properties: success: const: true data: type: array items: $ref: '#/components/schemas/Library' message: type: string required: - success - data LibraryFolder: type: object properties: id: type: string library_id: type: string parent_id: type: - string - 'null' name: type: string tree_position: type: integer created_at: type: string updated_at: type: string LibraryFolderCollectionResponse: type: object properties: success: const: true data: type: array items: $ref: '#/components/schemas/LibraryFolder' message: type: string required: - success - data LibraryFolderPaginatedResponse: type: object properties: success: const: true data: type: array items: $ref: '#/components/schemas/LibraryFolder' message: type: string meta: $ref: '#/components/schemas/PaginationMeta' required: - success - data - meta LibraryFolderResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/LibraryFolder' message: type: string required: - success - data LibraryInvitation: type: object properties: id: type: string email: type: string token: type: string roles: type: array items: type: object properties: id: type: string name: type: string status: type: string invited_by: type: object properties: id: type: string name: type: string expires_at: type: string accepted_at: type: - string - 'null' is_expired: type: boolean created_at: type: string LibraryInvitationDetails: type: object properties: email: type: string roles: type: array items: type: object properties: name: type: string status: type: string library_name: type: string invited_by: type: string expires_at: type: string is_expired: type: boolean requires_registration: type: boolean LibraryInvitationDetailsResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/LibraryInvitationDetails' message: type: string required: - success - data LibraryInvitationPaginatedResponse: type: object properties: success: const: true data: type: array items: $ref: '#/components/schemas/LibraryInvitation' message: type: string meta: $ref: '#/components/schemas/PaginationMeta' required: - success - data - meta LibraryInvitationResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/LibraryInvitation' message: type: string required: - success - data LibraryItem: type: object properties: id: type: string library_id: type: string name: type: string folder_id: type: - string - 'null' content: type: object properties: blocks: type: array thumbnail_url: type: - string - 'null' created_at: type: string updated_at: type: string LibraryItemPaginatedResponse: type: object properties: success: const: true data: type: array items: $ref: '#/components/schemas/LibraryItem' message: type: string meta: $ref: '#/components/schemas/PaginationMeta' required: - success - data - meta LibraryItemResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/LibraryItem' message: type: string required: - success - data LibraryPaginatedResponse: type: object properties: success: const: true data: type: array items: $ref: '#/components/schemas/Library' message: type: string meta: $ref: '#/components/schemas/PaginationMeta' required: - success - data - meta LibraryPermissionCheck: type: object properties: type: type: string enum: - account - website - library id: type: string permissions: type: object additionalProperties: type: boolean required: - type - id - permissions LibraryPermissionCheckResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/LibraryPermissionCheck' message: type: string required: - success - data LibraryPermissionList: type: object properties: type: type: string enum: - account - website - library id: type: string permissions: type: array items: type: string required: - type - id - permissions LibraryPermissionListResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/LibraryPermissionList' message: type: string required: - success - data LibraryResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/Library' message: type: string required: - success - data LibraryRole: type: object properties: id: type: string pattern: '^role_[A-Za-z0-9]{32}$' name: type: string required: - id - name LibraryRolePaginatedResponse: type: object properties: success: const: true data: type: array items: $ref: '#/components/schemas/LibraryRole' message: type: string meta: $ref: '#/components/schemas/PaginationMeta' required: - success - data - meta ListAccountFactors: type: object properties: factors: type: array items: type: object properties: id: type: string type: type: string name: type: string last_used_at: type: - string - 'null' recovery_codes_remaining: type: integer available_types: type: array items: type: string passwordless_enabled: type: boolean ListAccountFactorsResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/ListAccountFactors' message: type: string required: - success - data LoginChallenge: type: object additionalProperties: false required: - token - expires_at - factors properties: token: type: string minLength: 64 maxLength: 64 expires_at: type: string format: date-time factors: type: array items: type: string enum: - totp - passkey - email - recovery_code LoginChallengeResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/LoginChallenge' message: type: string required: - success - data LoginRequest: type: object properties: email: type: string description: 'Account email address.' password: type: string description: 'Account password.' required: - email - password LoginResult: oneOf: - type: object additionalProperties: false required: - token_type - access_token - refresh_token - expires_in - account properties: token_type: type: string enum: - Bearer access_token: type: string refresh_token: type: - string - 'null' expires_in: type: integer account: type: - string - 'null' - type: object additionalProperties: false required: - challenge properties: challenge: type: object additionalProperties: false required: - token - expires_at - factors properties: token: type: string minLength: 64 maxLength: 64 expires_at: type: string format: date-time factors: type: array items: type: string enum: - totp - passkey - email - recovery_code - type: object additionalProperties: false required: - security_setup properties: security_setup: type: object additionalProperties: false required: - token - expires_at - required_steps - policy - available_factor_types properties: token: type: string minLength: 64 maxLength: 64 expires_at: type: string format: date-time required_steps: type: array items: type: string enum: - verify_password - change_password - enroll_factor - recover_factor policy: type: object additionalProperties: false required: - require_two_factor - minimum_password_length - password_rotation_days - allow_email_factor properties: require_two_factor: type: boolean allow_email_factor: type: boolean minimum_password_length: type: integer minimum: 8 maximum: 128 password_rotation_days: type: integer minimum: 0 maximum: 2147483647 available_factor_types: type: array items: type: string enum: - totp - passkey - email LoginResultResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/LoginResult' message: type: string required: - success - data LogoutRequest: type: object properties: access_token: type: string description: 'Current access token (JWT). Optional; revocation uses the bearer refresh token.' MaintenanceState: type: object properties: enabled: type: boolean html: type: - string - 'null' MaintenanceStateRequest: type: object properties: enabled: type: boolean description: '' html: type: - string - 'null' description: '' required: - enabled MaintenanceStateResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/MaintenanceState' message: type: string required: - success - data ManagementAssertionOptions: type: object properties: token: type: string options: type: object properties: challenge: type: string rpId: type: string allowCredentials: type: array items: type: object properties: type: type: string id: type: string userVerification: type: string timeout: type: integer ManagementAssertionOptionsResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/ManagementAssertionOptions' message: type: string required: - success - data MintAccountTokenRequest: type: object properties: account: type: string description: 'Prefixed account ID of the PAT owner.' website: type: string description: 'Optional prefixed website ID visible to the owner.' required: - account MintToken: type: object properties: token_type: type: string access_token: type: string expires_in: type: integer MintTokenResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/MintToken' message: type: string required: - success - data MoveLibraryFolderRequest: type: object properties: parent_id: type: - string - 'null' description: 'New parent ID. Null or omitted selects the top level.' position: type: integer minimum: 1 description: '1-based position among the new siblings. A position past the last sibling moves the item last.' required: - position MoveLibraryItemRequest: type: object properties: library_id: type: string description: 'Target library prefixed ID.' required: - library_id OauthClient: type: object properties: id: type: string name: type: string type: type: string redirect_uris: type: array items: type: string is_active: type: boolean component: type: string created_at: type: string updated_at: type: string OauthClientCollectionResponse: type: object properties: success: const: true data: type: array items: $ref: '#/components/schemas/OauthClient' message: type: string required: - success - data OauthClientCreated: type: object properties: id: type: string name: type: string type: type: string client_secret: type: string redirect_uris: type: array items: type: string is_active: type: boolean component: type: string created_at: type: string OauthClientCreatedResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/OauthClientCreated' message: type: string required: - success - data OauthClientResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/OauthClient' message: type: string required: - success - data OauthGrant: type: object properties: id: type: string client_id: type: string client_name: type: string scopes: type: array items: type: object properties: role: type: string created_at: type: string OauthGrantCollectionResponse: type: object properties: success: const: true data: type: array items: $ref: '#/components/schemas/OauthGrant' message: type: string required: - success - data OauthRedirect: type: object properties: redirect_uri: type: string required: - redirect_uri OauthRedirectResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/OauthRedirect' message: type: string required: - success - data PaginationMeta: type: object properties: current_page: type: integer last_page: type: integer per_page: type: integer total: type: integer required: - current_page - last_page - per_page - total PasskeyAssertionOptions: type: object properties: challenge: type: string rpId: type: string allowCredentials: type: array items: type: object properties: type: type: string id: type: string userVerification: type: string timeout: type: integer PasskeyAssertionOptionsResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/PasskeyAssertionOptions' message: type: string required: - success - data PasskeyEnrollmentOptions: type: object properties: token: type: string options: type: object properties: challenge: type: string rp: type: object properties: name: type: string id: type: string user: type: object properties: id: type: string name: type: string displayName: type: string pubKeyCredParams: type: array items: type: object properties: type: type: string alg: type: integer attestation: type: string excludeCredentials: type: array PasskeyEnrollmentOptionsResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/PasskeyEnrollmentOptions' message: type: string required: - success - data PasswordResetUrl: type: object properties: url: type: string PasswordResetUrlResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/PasswordResetUrl' message: type: string required: - success - data PasswordlessOptions: type: object properties: token: type: string expires_at: type: string options: type: object properties: challenge: type: string rpId: type: string userVerification: type: string timeout: type: integer PasswordlessOptionsResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/PasswordlessOptions' message: type: string required: - success - data PasswordlessStatus: type: object properties: passwordless_enabled: type: boolean PasswordlessStatusResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/PasswordlessStatus' message: type: string required: - success - data PermissionCheck: type: object properties: type: type: string enum: - account - website - library id: type: string permissions: type: object additionalProperties: type: boolean required: - type - id - permissions PermissionCheckResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/PermissionCheck' message: type: string required: - success - data PermissionList: type: object properties: type: type: string enum: - account - website - library id: type: string permissions: type: array items: type: string required: - type - id - permissions PermissionListPaginatedResponse: type: object properties: success: const: true data: type: array items: $ref: '#/components/schemas/PermissionList' message: type: string meta: $ref: '#/components/schemas/PaginationMeta' required: - success - data - meta PermissionListResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/PermissionList' message: type: string required: - success - data PersonalAccessToken: type: object properties: id: type: string name: type: string abilities: type: array items: type: string created_at: type: string expires_at: type: string last_used_at: type: - string - 'null' PersonalAccessTokenCreated: type: object properties: token: type: string id: type: string PersonalAccessTokenCreatedResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/PersonalAccessTokenCreated' message: type: string required: - success - data PersonalAccessTokenPaginatedResponse: type: object properties: success: const: true data: type: array items: $ref: '#/components/schemas/PersonalAccessToken' message: type: string meta: $ref: '#/components/schemas/PaginationMeta' required: - success - data - meta Picture: type: object properties: avatar_file_id: type: string pattern: '^fi_[A-Za-z0-9]{32}$' avatar_url: type: string maxLength: 2000 additionalProperties: false required: - avatar_file_id - avatar_url PictureResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/Picture' message: type: string required: - success - data PlatformComponentLimits: type: object properties: services: type: object properties: data: type: object properties: default: type: integer overrides: type: array components: type: array items: type: string values: type: array items: type: integer PlatformComponentLimitsResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/PlatformComponentLimits' message: type: string required: - success - data PlatformIdentifiers: type: object properties: library: type: object properties: library_id: type: string account_id: type: string account_email: type: string website_id: type: string PlatformIdentifiersResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/PlatformIdentifiers' message: type: string required: - success - data PreviewTransferCheckoutRequest: type: object properties: billing_price_id: type: string maxLength: 40 billing_profile_id: type: string maxLength: 40 feature_price_ids: type: array maxItems: 100 items: type: string required: - billing_price_id - billing_profile_id PublicTeamInvitation: type: object properties: team_name: type: string status: type: string enum: - pending - accepted - declined - expired - revoked expires_at: type: string format: date-time policy: type: object additionalProperties: false required: - require_two_factor - minimum_password_length - password_rotation_days - allow_email_factor properties: require_two_factor: type: boolean allow_email_factor: type: boolean minimum_password_length: type: integer minimum: 8 maximum: 128 password_rotation_days: type: integer minimum: 0 maximum: 2147483647 avatar_url: type: - string - 'null' maxLength: 2000 additionalProperties: false required: - team_name - status - expires_at - policy - avatar_url PublicTeamInvitationResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/PublicTeamInvitation' message: type: string required: - success - data RecoveryCodes: type: object properties: recovery_codes: type: array items: type: string RecoveryCodesResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/RecoveryCodes' message: type: string required: - success - data RegenerateRecoveryCodesRequest: type: object properties: current_password: type: string description: 'Current account password.' proof: type: object description: 'Management proof.' properties: {} required: - current_password RegisterRequest: type: object properties: name: type: string maxLength: 50 description: 'First name of the account holder.' surname: type: string nullable: true maxLength: 50 description: 'Last name of the account holder.' email: type: string format: email maxLength: 254 description: 'Unique email address.' password: type: string minLength: 8 description: Password. password_confirmation: type: string description: 'Password confirmation.' required: - name - email - password - password_confirmation RegisteredAccount: type: object properties: id: type: string email: type: string RegisteredAccountResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/RegisteredAccount' message: type: string required: - success - data RemoveAccountFactorRequest: type: object properties: current_password: type: string description: 'Current account password.' proof: type: object description: 'Management proof.' properties: {} required: - current_password RemoveLibraryAccountRequest: type: object properties: account_id: type: string description: 'Prefixed account ID to remove.' required: - account_id RemoveWebsiteAccountRequest: type: object properties: account_id: type: string description: 'Prefixed account ID to remove.' required: - account_id ReplaceAccountRolesRequest: type: object properties: roles: type: array description: 'Unique Console roles. Must include console:account.' items: type: string required: - roles ReplaceTeamAccountRolesRequest: type: object additionalProperties: false required: - roles properties: roles: type: array minItems: 1 uniqueItems: true items: type: string pattern: '^role_[A-Za-z0-9]{32}$' ReplaceWebsiteAccountRolesRequest: type: object additionalProperties: false properties: console_roles: type: array items: type: string minItems: 1 uniqueItems: true description: 'Console role names. When supplied, values must be unique and include console:account.' website_roles: type: array items: type: string pattern: '^role_[A-Za-z0-9]{32}$' minItems: 1 uniqueItems: true description: 'Assignable website role IDs for the route website.' allOf: - anyOf: - type: object properties: console_roles: type: array items: type: string required: - console_roles - type: object properties: website_roles: type: array items: type: string pattern: '^role_[A-Za-z0-9]{32}$' required: - website_roles ReplaceWebsiteTeamRequest: type: object additionalProperties: false required: - team_id - expected_team_id properties: team_id: type: - string - 'null' pattern: '^team_[A-Za-z0-9]{32}$' expected_team_id: type: - string - 'null' pattern: '^team_[A-Za-z0-9]{32}$' ResendEmailEnrollmentRequest: type: object properties: token: type: string description: 'E-mail code enrollment challenge token.' required: - token ResetPasswordRequest: type: object properties: token: type: string description: 'The password reset token from the email link (contains encoded email).' password: type: string description: 'The new password must meet the current account policy.' password_confirmation: type: string description: 'Password confirmation (must match password).' required: - token - password - password_confirmation RunTaskRequest: type: object properties: params: type: object description: 'Task parameter values keyed by parameter name.' properties: {} SSOCode: type: object properties: code: type: string expires_in: type: integer SSOCodeResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/SSOCode' message: type: string required: - success - data SecuritySetup: type: object additionalProperties: false required: - token - expires_at - required_steps - policy - available_factor_types properties: token: type: string minLength: 64 maxLength: 64 expires_at: type: string format: date-time required_steps: type: array items: type: string enum: - verify_password - change_password - enroll_factor - recover_factor policy: type: object additionalProperties: false required: - require_two_factor - minimum_password_length - password_rotation_days - allow_email_factor properties: require_two_factor: type: boolean allow_email_factor: type: boolean minimum_password_length: type: integer minimum: 8 maximum: 128 password_rotation_days: type: integer minimum: 0 maximum: 2147483647 available_factor_types: type: array items: type: string enum: - totp - passkey - email SecuritySetupResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/SecuritySetup' message: type: string required: - success - data SendEmailFactorRequest: type: object properties: token: type: string description: 'Login challenge token.' required: - token SendSecuritySetupEmailRequest: type: object properties: token: type: string description: 'Session-bound enrollment challenge.' required: - token SetWebsitePriceRequest: type: object properties: code: type: string maxLength: 50 description: 'Product code.' currency: type: string enum: - CZK - EUR description: 'Billing currency.' interval: type: string enum: - monthly - yearly description: 'Billing interval.' amount_minor: type: integer minimum: 1 description: 'Amount in minor units.' required: - code - currency - interval - amount_minor StartEmailEnrollmentRequest: type: object properties: current_password: type: string description: 'Current account password.' proof: type: object description: 'Management proof when a factor exists.' properties: {} required: - current_password StartFactorRecoveryRequest: type: object properties: email: type: string description: 'Account email address.' required: - email StartPasskeyEnrollmentRequest: type: object properties: current_password: type: string description: 'Current account password.' proof: type: object description: 'Management proof when a factor exists.' properties: {} required: - current_password StartSecuritySetupFactorRequest: type: object required: - current_password properties: current_password: type: string proof: type: - object - 'null' additionalProperties: true StartTotpEnrollmentRequest: type: object properties: current_password: type: string description: 'Current account password.' proof: type: object description: 'Management proof when a factor exists.' properties: {} required: - current_password StartWebsiteCheckoutRequest: type: object properties: billing_price_id: type: string description: '' billing_profile_id: type: string description: '' payment_method: type: string description: '' required: - billing_price_id - billing_profile_id StripeWebhookEventRequest: type: object additionalProperties: true Tag: type: object properties: id: type: string name: type: string color: type: string icon: type: string entity_type: type: string usage_count: type: integer created_at: type: string updated_at: type: string TagCollectionResponse: type: object properties: success: const: true data: type: array items: $ref: '#/components/schemas/Tag' message: type: string required: - success - data TagResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/Tag' message: type: string required: - success - data Task: type: object properties: id: type: string key: type: string name: type: string description: type: string command: type: string category: type: string parameters: type: array items: type: object properties: name: type: string label: type: string type: type: string required: type: boolean default: type: - string - 'null' status: type: string current_output: type: string last_run_at: type: string last_run_status: type: string last_exit_code: type: integer last_triggered_by: type: string created_at: type: string updated_at: type: string TaskResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/Task' message: type: string required: - success - data Team: type: object properties: id: type: string pattern: '^team_[A-Za-z0-9]{32}$' name: type: string maxLength: 100 owner_account_id: type: - string - 'null' pattern: '^acc_[A-Za-z0-9]{32}$' roles: type: array items: type: string uniqueItems: true created_at: type: string format: date-time updated_at: type: string format: date-time actions: type: array items: type: string enum: - show - update - delete - transfer - list-account - assign-account - remove-account - list-invitation - create-invitation - revoke-invitation - list-role - create-role - update-role - delete-role - list-setting - show-setting - create-setting - update-setting - delete-setting - list-website - assign-website - remove-website uniqueItems: true avatar_file_id: type: - string - 'null' pattern: '^fi_[A-Za-z0-9]{32}$' maxLength: 35 avatar_url: type: - string - 'null' maxLength: 2000 additionalProperties: false required: - id - name - owner_account_id - roles - created_at - updated_at - actions - avatar_file_id - avatar_url TeamAccount: type: object properties: account: type: object additionalProperties: false required: - id - name - surname - email - status properties: id: type: string pattern: '^acc_[A-Za-z0-9]{32}$' name: type: string surname: type: string email: type: string format: email status: type: string enum: - enabled - disabled roles: type: array items: type: object additionalProperties: false required: - id - name properties: id: type: string pattern: '^role_[A-Za-z0-9]{32}$' name: type: string is_owner: type: boolean joined_at: type: - string - 'null' format: date-time relationship_actions: type: array items: type: string enum: - remove-membership - change-roles - transfer-ownership uniqueItems: true additionalProperties: false required: - account - roles - is_owner - joined_at - relationship_actions TeamAccountPaginatedResponse: type: object properties: success: const: true data: type: array items: $ref: '#/components/schemas/TeamAccount' message: type: string meta: $ref: '#/components/schemas/PaginationMeta' required: - success - data - meta TeamAccountResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/TeamAccount' message: type: string required: - success - data TeamInvitation: type: object properties: id: type: string pattern: '^tinv_[A-Za-z0-9]{32}$' email: type: string format: email status: type: string enum: - pending - accepted - declined - expired - revoked expires_at: type: string format: date-time roles: type: array items: type: object additionalProperties: false required: - id - name properties: id: type: string pattern: '^role_[A-Za-z0-9]{32}$' name: type: string additionalProperties: false required: - id - email - status - expires_at - roles TeamInvitationPaginatedResponse: type: object properties: success: const: true data: type: array items: $ref: '#/components/schemas/TeamInvitation' message: type: string meta: $ref: '#/components/schemas/PaginationMeta' required: - success - data - meta TeamInvitationResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/TeamInvitation' message: type: string required: - success - data TeamPaginatedResponse: type: object properties: success: const: true data: type: array items: $ref: '#/components/schemas/Team' message: type: string meta: $ref: '#/components/schemas/PaginationMeta' required: - success - data - meta TeamPermissionCheck: type: object properties: type: type: string enum: - team id: type: string pattern: '^team_[A-Za-z0-9]{32}$' permissions: type: object additionalProperties: type: boolean additionalProperties: false required: - type - id - permissions TeamPermissionCheckResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/TeamPermissionCheck' message: type: string required: - success - data TeamPermissionList: type: object properties: type: type: string enum: - team id: type: string pattern: '^team_[A-Za-z0-9]{32}$' permissions: type: array items: type: string uniqueItems: true additionalProperties: false required: - type - id - permissions TeamPermissionListResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/TeamPermissionList' message: type: string required: - success - data TeamResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/Team' message: type: string required: - success - data TeamRole: type: object properties: id: type: string pattern: '^role_[A-Za-z0-9]{32}$' name: type: string type: type: string enum: - built-in - custom permissions: type: array items: type: string uniqueItems: true assignable: type: boolean actions: type: array items: type: string enum: - update - delete uniqueItems: true additionalProperties: false required: - id - name - type - permissions - assignable - actions TeamRoleCollectionResponse: type: object properties: success: const: true data: type: array items: $ref: '#/components/schemas/TeamRole' message: type: string required: - success - data TeamRolePermissionGroup: type: object properties: group: type: string permissions: type: array items: type: string uniqueItems: true additionalProperties: false required: - group - permissions TeamRolePermissionGroupCollectionResponse: type: object properties: success: const: true data: type: array items: $ref: '#/components/schemas/TeamRolePermissionGroup' message: type: string required: - success - data TeamRoleResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/TeamRole' message: type: string required: - success - data TeamSetting: type: object properties: id: type: string pattern: '^tset_[a-z0-9]{32}$' team_id: type: string pattern: '^team_[a-z0-9]{32}$' group: type: string key: type: string type: type: string enum: - bool - text - int - json - file value: description: 'The typed setting value. File settings contain a scalar Files ID or an empty string.' created_at: type: string format: date-time updated_at: type: string format: date-time required: - id - team_id - group - type - key - value - created_at - updated_at TeamSettingPaginatedResponse: type: object properties: success: const: true data: type: array items: $ref: '#/components/schemas/TeamSetting' message: type: string meta: $ref: '#/components/schemas/PaginationMeta' required: - success - data - meta TeamSettingResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/TeamSetting' message: type: string required: - success - data TeamWebsite: type: object properties: id: type: string pattern: '^web_[A-Za-z0-9]{32}$' name: type: string actions: type: array items: type: string enum: - show uniqueItems: true additionalProperties: false required: - id - name - actions TeamWebsitePaginatedResponse: type: object properties: success: const: true data: type: array items: $ref: '#/components/schemas/TeamWebsite' message: type: string meta: $ref: '#/components/schemas/PaginationMeta' required: - success - data - meta TotpEnrollment: type: object properties: token: type: string otpauth_uri: type: string TotpEnrollmentResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/TotpEnrollment' message: type: string required: - success - data TransferCheckoutPreview: type: object properties: confirmation_token: type: string billing_email: type: string currency: type: string document_type: type: string vat_basis_points: type: integer tax_treatment: type: string net_minor: type: integer vat_minor: type: integer gross_minor: type: integer lines: type: array TransferCheckoutPreviewResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/TransferCheckoutPreview' message: type: string required: - success - data TransferLibraryOwnershipRequest: type: object properties: account_id: type: string description: 'Prefixed account ID of new owner.' required: - account_id TransferTeamOwnershipRequest: type: object additionalProperties: false required: - account_id properties: account_id: type: string pattern: '^acc_[A-Za-z0-9]{32}$' TransferWebsiteOwnershipRequest: type: object properties: account_id: type: string description: 'Prefixed account ID of new owner.' confirm_subscription_cancellation: type: boolean description: 'Must be true when the website has a live paid subscription; transfer cancels it at period end.' required: - account_id UpdateAccountRequest: type: object properties: name: type: string maxLength: 50 description: 'First name.' surname: type: string maxLength: 50 description: 'Last name.' email: type: string format: email maxLength: 254 description: 'Unique email address.' username: type: string maxLength: 30 description: 'Unique username.' UpdateAccountSettingRequest: type: object required: - value properties: value: description: 'Setting value. File settings require a scalar Files ID or an empty string.' type: type: string enum: - bool - text - int - json - file description: 'Omit to preserve the current type.' UpdateBillingProfileRequest: type: object properties: label: type: string maxLength: 100 billing_email: type: string format: email maxLength: 254 is_default: type: boolean phone: type: string nullable: true maxLength: 50 name: type: string nullable: true maxLength: 110 company: type: string nullable: true maxLength: 100 street: type: string nullable: true maxLength: 200 city: type: string nullable: true maxLength: 100 postal_code: type: string nullable: true maxLength: 20 country: type: string nullable: true maxLength: 2 currency: type: string enum: - CZK - EUR company_identification_number: type: string nullable: true maxLength: 50 company_vatin: type: string nullable: true maxLength: 50 UpdateComponentLimitsRequest: type: object properties: services: type: object description: 'Map of component to { default, overrides }.' properties: {} required: - services UpdateCurrentAccountRequest: type: object properties: name: type: string maxLength: 50 description: 'First name.' surname: type: string maxLength: 50 description: 'Last name.' username: type: string minLength: 3 maxLength: 30 pattern: '^[a-zA-Z0-9_-]+$' description: 'Unique username.' current_password: type: string description: 'Current password when changing the password.' new_password: type: string minLength: 8 description: 'New password that meets the current account policy.' new_password_confirmation: type: string description: 'New password confirmation.' UpdateCurrentAccountSettingsRequest: type: object properties: keys: type: array description: 'Must not be greater than 100 characters.' items: type: string UpdateInvoiceTaxCorrectionRequest: type: object properties: edit_token: type: string maxLength: 64000 vat_basis_points: type: integer minimum: 0 maximum: 10000 tax_treatment: type: string enum: - cz_standard - eu_reverse_charge - outside_eu_business - outside_eu_consumer - legacy_fixed note: type: string nullable: true maxLength: 500 required: - edit_token - vat_basis_points - tax_treatment UpdateLibraryAccountRequest: type: object properties: is_default: type: boolean description: 'Whether the library is a default for this account.' required: - is_default UpdateLibraryFolderRequest: type: object properties: name: type: string maxLength: 100 description: 'Folder name.' UpdateLibraryItemRequest: type: object properties: name: type: string maxLength: 100 description: 'Item name.' content: type: object additionalProperties: true description: 'Item content.' folder_id: type: string nullable: true description: 'Folder prefixed ID.' UpdateLibraryRequest: type: object properties: name: type: string maxLength: 100 description: 'Library name.' UpdateOAuthClientRequest: type: object properties: name: type: string nullable: true maxLength: 100 description: 'Client name.' redirect_uris: type: array nullable: true items: type: string maxLength: 2048 description: 'HTTPS callbacks, HTTP loopback callbacks, or private-use native callbacks.' is_active: type: boolean nullable: true description: 'Whether the client is active.' component: type: string nullable: true maxLength: 64 description: 'Confidential client service component.' UpdateTagRequest: type: object properties: name: type: string description: 'Tag name. Lowercased and trimmed; matches /^[a-z0-9][a-z0-9. _-]*$/ and up to 50 characters.' color: type: string description: 'Optional #RRGGBB color.' icon: type: string description: 'Optional icon name.' enum: - hash - star - crown - globe - server - users - folder - heart - bookmark - shield entity_type: type: string description: 'Optional entity type restriction.' enum: - website - account - library UpdateTeamRequest: type: object additionalProperties: false required: - name properties: name: type: string maxLength: 100 UpdateTeamRoleRequest: type: object additionalProperties: false required: - permissions properties: permissions: type: array minItems: 1 uniqueItems: true items: type: string UpdateTeamSettingRequest: type: object required: - value properties: value: description: 'The typed setting value. File settings require a scalar Files ID or an empty string.' type: type: string enum: - bool - text - int - json - file UpdateWebsiteAdminSettingRequest: type: object required: - value additionalProperties: false properties: value: type: - string - integer - 'null' description: 'YYYY-MM-DD for date settings, the option value for select settings, or null to clear a clearable setting.' UpdateWebsiteDomainRequest: type: object properties: role: type: string description: 'New role: default, alias or redirect.' required: - role UpdateWebsiteHeaderCspRequest: type: object required: - presets - sources properties: presets: type: array items: type: string description: 'Enabled preset keys.' sources: type: array maxItems: 50 items: type: object required: - directive - source properties: directive: type: string description: 'One of the directives that can be extended.' source: type: string maxLength: 255 UpdateWebsiteHeaderRequest: type: object properties: name: type: string maxLength: 100 pattern: '^[A-Za-z][A-Za-z0-9\-]*$' description: 'Header name.' value: type: string maxLength: 8000 pattern: '^[^\x00-\x1f\x7f]*$' description: 'Header value.' UpdateWebsiteLanguageRequest: type: object properties: slug: type: string nullable: true maxLength: 100 pattern: '^[a-z0-9]+(-[a-z0-9]+)*$' description: 'URL-safe slug.' is_default: type: boolean nullable: true description: 'Whether to promote this language to default.' UpdateWebsiteLanguageSettingRequest: type: object properties: value: description: 'Setting value.' required: - value UpdateWebsitePaymentSettingsRequest: type: object properties: payment_methods: type: array minItems: 1 maxItems: 2 uniqueItems: true items: type: string enum: - card - bank_transfer transfer_document_type: type: string enum: - proforma - invoice required: - payment_methods - transfer_document_type UpdateWebsiteRedirectRequest: type: object properties: source_path: type: string maxLength: 1000 pattern: '^/[^?#]*$' description: 'Source URL path.' destination_url: type: string maxLength: 2000 description: 'Target URL path.' type: type: string enum: - '301' - '302' - '303' - '307' - '308' - alias description: 'Redirect type.' is_active: type: boolean description: 'Whether the redirect is active.' is_source_case_sensitive: type: boolean description: 'Whether source path matching is case-sensitive.' is_destination_case_sensitive: type: boolean description: 'Whether the destination preserves case.' UpdateWebsiteRequest: type: object properties: name: type: string maxLength: 100 description: 'Website name.' UpdateWebsiteRoleRequest: type: object properties: permissions: type: array items: type: string minItems: 1 uniqueItems: true required: - permissions additionalProperties: false UpdateWebsiteSettingRequest: type: object required: - value properties: value: description: 'Setting value. File settings require a scalar Files ID or an empty string.' type: type: string enum: - bool - text - int - json - file description: 'Omit to preserve the current type.' UploadPictureRequest: type: object properties: image: type: string format: binary description: 'Picture file.' required: - image UpsertAccountAdminSettingRequest: type: object properties: key: type: string maxLength: 100 pattern: '^[a-z0-9_.]+$' enum: - factors.email.enabled description: 'Registered admin setting key.' value: type: boolean description: 'Setting value.' required: - key - value ValidationError: type: object properties: success: type: boolean message: type: string errors: type: object required: - success - message - errors VerifyLoginFactorRequest: type: object properties: token: type: string description: 'Login challenge token.' type: type: string description: 'Factor type.' enum: - totp - passkey - recovery_code - email code: type: string description: 'TOTP, e-mail, or recovery code.' assertion: type: object description: 'Structured WebAuthn assertion response.' properties: {} required: - token - type VerifyPasswordlessLoginRequest: type: object properties: token: type: string description: 'Passwordless challenge token.' assertion: type: object additionalProperties: true required: - token - assertion VerifySecuritySetupPasswordRequest: type: object required: - current_password properties: current_password: type: string Website: type: object properties: id: type: string code: type: string name: type: string domain: type: string status: type: string plan: type: string paid_until: type: string active_until: type: string deletes_on: type: string owner: type: object properties: id: type: string firstname: type: string lastname: type: string email: type: string provisioning: type: object properties: id: type: string status: type: string progress: type: object properties: ready: type: integer total: type: integer started_at: type: string deadline_at: type: string completed_at: type: - string - 'null' maintenance: type: boolean maintenance_html: type: - string - 'null' thumbnail_url: type: string roles: type: array items: type: string tags: type: array items: type: object properties: id: type: string name: type: string color: type: string icon: type: string created_at: type: string updated_at: type: string team: oneOf: - type: object additionalProperties: false required: - id - name properties: id: type: string pattern: '^team_[A-Za-z0-9]{32}$' name: type: string - type: 'null' actions: type: array items: type: string enum: - show - open-builder - update - clone - transfer - assign-account - remove-account - impersonate - delete - ai - domain - billing - maintenance - regenerate-thumbnail - library - list-library - list-role - create-role - list-setting - create-setting - update-setting - delete-setting - list-header - create-header - update-header - delete-header - protected-header - list-redirect - create-redirect - update-redirect - delete-redirect - toggle-redirect - list-language - create-language - update-language - delete-language - list-language-setting - create-language-setting - update-language-setting - delete-language-setting - 'backup:create' - 'backup:restore' - assign-team - remove-team uniqueItems: true description: 'Unique available actions in the documented enum order.' WebsiteAccount: type: object properties: account: type: object properties: id: type: string name: type: string surname: type: string username: type: string email: type: string format: email status: type: string actions: type: array items: type: string enum: - show - impersonate - update - enable - disable - set-password - change-roles - delete uniqueItems: true description: 'Unique available actions in the documented enum order.' required: - id - name - surname - username - email - status - actions roles: type: array items: type: object properties: id: type: string pattern: '^role_[A-Za-z0-9]{32}$' name: type: string required: - id - name console_roles: type: array items: type: string uniqueItems: true description: 'Unique null-scope Console role names sorted lexicographically. Omitted when the actor cannot change the account roles.' is_owner: type: boolean joined_at: type: - string - 'null' format: date-time relationship_actions: type: array items: type: string enum: - open-builder - remove-membership - change-roles uniqueItems: true required: - account - roles - is_owner - joined_at - relationship_actions WebsiteAccountPaginatedResponse: type: object properties: success: const: true data: type: array items: $ref: '#/components/schemas/WebsiteAccount' message: type: string meta: $ref: '#/components/schemas/PaginationMeta' required: - success - data - meta WebsiteAccountRoles: type: object properties: console_roles: type: - array - 'null' items: type: string uniqueItems: true description: 'Unique Console role names sorted lexicographically, or null when the request section was not supplied.' website_roles: type: - array - 'null' items: $ref: '#/components/schemas/WebsiteRole' uniqueItems: true description: 'Website roles in creation order, or null when the request section was not supplied.' required: - console_roles - website_roles WebsiteAccountRolesResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/WebsiteAccountRoles' message: type: string required: - success - data - message WebsiteAdminSetting: type: object required: - key - label - type - value - options - clearable - editable - help - locked_reason properties: key: type: string label: type: string type: type: string enum: - date - select value: type: - string - integer - 'null' description: 'YYYY-MM-DD for date settings or the option value for select settings.' options: type: array items: type: object required: - value - label properties: value: type: - string - integer label: type: string clearable: type: boolean editable: type: boolean help: type: - string - 'null' locked_reason: type: - string - 'null' WebsiteAdminSettingCollectionResponse: type: object properties: success: const: true data: type: array items: $ref: '#/components/schemas/WebsiteAdminSetting' message: type: string required: - success - data WebsiteAdminSettingResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/WebsiteAdminSetting' message: type: string required: - success - data WebsiteBackup: type: object properties: id: type: string website_id: type: string label: type: string provisioning: type: object properties: id: type: string status: type: string progress: type: object properties: ready: type: integer total: type: integer started_at: type: string deadline_at: type: string completed_at: type: - string - 'null' restoration: type: object properties: id: type: string status: type: string progress: type: object properties: ready: type: integer total: type: integer started_at: type: string deadline_at: type: string completed_at: type: - string - 'null' created_at: type: string updated_at: type: string type: type: string backup_at: type: string expires_at: type: string restorable: type: boolean WebsiteBackupPaginatedResponse: type: object properties: success: const: true data: type: array items: $ref: '#/components/schemas/WebsiteBackup' message: type: string meta: $ref: '#/components/schemas/PaginationMeta' required: - success - data - meta WebsiteBackupResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/WebsiteBackup' message: type: string required: - success - data WebsiteBilling: type: object properties: plan: type: string paid_until: type: string active_until: type: string deletes_on: type: string subscription: type: object properties: id: type: string status: type: string status_label: type: string is_live: type: boolean current_period_start: type: string current_period_end: type: string cancel_at_period_end: type: boolean payment_warning_at: type: - string - 'null' price: type: object properties: id: type: string code: type: string kind: type: string label: type: string currency: type: string interval: type: string amount_minor: type: integer is_custom: type: boolean billing_profile_id: type: string billing_profile_label: type: string payment_method: type: string renews: type: boolean prices: type: array items: type: object properties: id: type: string code: type: string kind: type: string label: type: string currency: type: string interval: type: string amount_minor: type: integer is_custom: type: boolean feature_prices: type: array items: type: object properties: id: type: string code: type: string kind: type: string label: type: string currency: type: string interval: type: string amount_minor: type: integer is_custom: type: boolean entitlements: type: array items: type: string profiles: type: array items: type: object properties: id: type: string label: type: string is_default: type: boolean billing_email: type: string phone: type: string name: type: string company: type: string street: type: string city: type: string postal_code: type: string country: type: string currency: type: string company_identification_number: type: string company_vatin: type: string has_stripe_customer: type: boolean created_at: type: string updated_at: type: string invoices: type: array items: type: object properties: id: type: string number: type: string status: type: string currency: type: string amount_due_minor: type: integer amount_paid_minor: type: integer period_start: type: string period_end: type: string invoice_number: type: string invoice_url: type: string created_at: type: string document_type: type: - string - 'null' due_date: type: - string - 'null' order_id: type: - string - 'null' processing_state: type: - string - 'null' delivery_state: type: - string - 'null' error_code: type: - string - 'null' edit_tax: type: boolean transfer_available: type: boolean payment_methods: type: array items: type: string transfer_document_type: type: string manage_payments: type: boolean WebsiteBillingResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/WebsiteBilling' message: type: string required: - success - data WebsiteCollectionResponse: type: object properties: success: const: true data: type: array items: $ref: '#/components/schemas/Website' message: type: string required: - success - data WebsiteDomain: type: object properties: id: type: string domain: type: string kind: type: string role: type: string is_apex: type: boolean cname_target: type: - string - 'null' dcv: type: - string - 'null' cf_status: type: - string - 'null' created_at: type: string updated_at: type: string WebsiteDomainPaginatedResponse: type: object properties: success: const: true data: type: array items: $ref: '#/components/schemas/WebsiteDomain' message: type: string meta: $ref: '#/components/schemas/PaginationMeta' required: - success - data - meta WebsiteDomainResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/WebsiteDomain' message: type: string required: - success - data WebsiteEntitlements: type: object properties: website_id: type: string features: type: array items: type: string resolved_at: type: string WebsiteEntitlementsResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/WebsiteEntitlements' message: type: string required: - success - data WebsiteHeader: type: object properties: id: type: string website_id: type: string name: type: string value: type: string protected: type: boolean blocked: type: boolean created_at: type: string updated_at: type: string WebsiteHeaderCsp: type: object required: - directives - presets - sources - override_headers properties: directives: type: array items: type: string description: 'Directives that can be extended.' presets: type: array description: 'Every configured preset in config order.' items: type: object required: - key - label - help - sources - enabled properties: key: type: string label: type: string help: type: string sources: type: object additionalProperties: type: array items: type: string enabled: type: boolean sources: type: array description: 'Custom sources in saved order.' items: type: object required: - directive - source properties: directive: type: string source: type: string override_headers: type: array items: type: string description: 'Website header names that replace the default CSP. The additions do not apply to them.' WebsiteHeaderCspResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/WebsiteHeaderCsp' message: type: string required: - success - data WebsiteHeaderPaginatedResponse: type: object properties: success: const: true data: type: array items: $ref: '#/components/schemas/WebsiteHeader' message: type: string meta: $ref: '#/components/schemas/PaginationMeta' required: - success - data - meta WebsiteHeaderResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/WebsiteHeader' message: type: string required: - success - data WebsiteImpersonation: type: object properties: code: type: string expires_in: type: integer url: type: string WebsiteImpersonationAccount: type: object properties: id: type: string pattern: '^acc_[A-Za-z0-9]{32}$' name: type: string surname: type: string email: type: string format: email roles: type: array items: type: object properties: id: type: string pattern: '^role_[A-Za-z0-9]{32}$' name: type: string required: - id - name is_owner: type: boolean required: - id - name - surname - email - roles - is_owner WebsiteImpersonationAccountPaginatedResponse: type: object properties: success: const: true data: type: array items: $ref: '#/components/schemas/WebsiteImpersonationAccount' message: type: string meta: $ref: '#/components/schemas/PaginationMeta' required: - success - data - meta WebsiteImpersonationResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/WebsiteImpersonation' message: type: string required: - success - data WebsiteInvitation: type: object properties: id: type: string email: type: string format: email token: type: string roles: type: - array - 'null' items: $ref: '#/components/schemas/WebsiteRole' status: type: string enum: - pending - accepted - declined - expired - revoked invited_by: type: - object - 'null' properties: id: type: string name: type: string required: - id - name expires_at: type: - string - 'null' format: date-time accepted_at: type: - string - 'null' format: date-time is_expired: type: boolean created_at: type: string format: date-time required: - id - email - token - roles - status - invited_by - expires_at - accepted_at - is_expired - created_at WebsiteInvitationDetails: type: object properties: email: type: string roles: type: array items: type: object properties: name: type: string status: type: string website_name: type: string website_domain: type: string invited_by: type: string expires_at: type: string is_expired: type: boolean requires_registration: type: boolean WebsiteInvitationDetailsResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/WebsiteInvitationDetails' message: type: string required: - success - data WebsiteInvitationPaginatedResponse: type: object properties: success: const: true data: type: array items: $ref: '#/components/schemas/WebsiteInvitation' message: type: string meta: $ref: '#/components/schemas/PaginationMeta' required: - success - data - meta WebsiteInvitationResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/WebsiteInvitation' message: type: string required: - success - data WebsiteLanguage: type: object properties: id: type: string website_id: type: string code: type: string slug: type: string is_default: type: boolean provisioning: type: object properties: id: type: string status: type: string progress: type: object properties: ready: type: integer total: type: integer started_at: type: string deadline_at: type: string completed_at: type: - string - 'null' created_at: type: string updated_at: type: string WebsiteLanguagePaginatedResponse: type: object properties: success: const: true data: type: array items: $ref: '#/components/schemas/WebsiteLanguage' message: type: string meta: $ref: '#/components/schemas/PaginationMeta' required: - success - data - meta WebsiteLanguageResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/WebsiteLanguage' message: type: string required: - success - data WebsiteLanguageSetting: type: object properties: id: type: string website_id: type: string website_language_id: type: string group: type: string key: type: string value: type: object properties: text: type: string created_at: type: string updated_at: type: string WebsiteLanguageSettingPaginatedResponse: type: object properties: success: const: true data: type: array items: $ref: '#/components/schemas/WebsiteLanguageSetting' message: type: string meta: $ref: '#/components/schemas/PaginationMeta' required: - success - data - meta WebsiteLanguageSettingResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/WebsiteLanguageSetting' message: type: string required: - success - data WebsiteLoginApproval: type: object properties: callback_url: type: string WebsiteLoginApprovalResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/WebsiteLoginApproval' message: type: string required: - success - data WebsitePaginatedResponse: type: object properties: success: const: true data: type: array items: $ref: '#/components/schemas/Website' message: type: string meta: $ref: '#/components/schemas/PaginationMeta' required: - success - data - meta WebsiteRedirect: type: object properties: id: type: string website_id: type: string source_path: type: string destination_url: type: string type: type: string is_active: type: boolean is_source_case_sensitive: type: boolean is_destination_case_sensitive: type: boolean created_at: type: string updated_at: type: string WebsiteRedirectPaginatedResponse: type: object properties: success: const: true data: type: array items: $ref: '#/components/schemas/WebsiteRedirect' message: type: string meta: $ref: '#/components/schemas/PaginationMeta' required: - success - data - meta WebsiteRedirectResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/WebsiteRedirect' message: type: string required: - success - data WebsiteResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/Website' message: type: string required: - success - data WebsiteRole: type: object properties: id: type: string pattern: '^role_[A-Za-z0-9]{32}$' name: type: string type: type: string enum: - built-in - custom permissions: type: array items: type: string uniqueItems: true description: 'Unique permission names sorted lexicographically.' assignable: type: boolean actions: type: array items: type: string enum: - update - delete uniqueItems: true description: 'Unique lifecycle actions in update, delete order.' required: - id - name - type - permissions - assignable - actions WebsiteRoleCollectionResponse: type: object properties: success: const: true data: type: array items: $ref: '#/components/schemas/WebsiteRole' message: type: string required: - success - data WebsiteRolePaginatedResponse: type: object properties: success: const: true data: type: array items: $ref: '#/components/schemas/WebsiteRole' message: type: string meta: $ref: '#/components/schemas/PaginationMeta' required: - success - data - meta WebsiteRolePermissionGroup: type: object additionalProperties: false properties: group: type: string minLength: 1 permissions: type: array items: type: string uniqueItems: true description: 'Unique permission names sorted lexicographically.' required: - group - permissions WebsiteRolePermissionGroupCollectionResponse: type: object properties: success: const: true data: type: array items: $ref: '#/components/schemas/WebsiteRolePermissionGroup' description: 'Groups use stable configured order.' message: type: string required: - success - data - message additionalProperties: false WebsiteRoleResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/WebsiteRole' message: type: string required: - success - data WebsiteSetting: type: object required: - id - website_id - group - type - key - value - created_at - updated_at properties: id: type: string website_id: type: string group: type: string key: type: string type: type: string enum: - bool - text - int - json - file value: description: 'The typed setting value. File settings contain a scalar Files ID or an empty string.' created_at: type: string format: date-time updated_at: type: string format: date-time WebsiteSettingPaginatedResponse: type: object properties: success: const: true data: type: array items: $ref: '#/components/schemas/WebsiteSetting' message: type: string meta: $ref: '#/components/schemas/PaginationMeta' required: - success - data - meta WebsiteSettingResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/WebsiteSetting' message: type: string required: - success - data WebsiteSubscription: type: object properties: id: type: string status: type: string status_label: type: string is_live: type: boolean current_period_start: type: string current_period_end: type: string cancel_at_period_end: type: boolean payment_warning_at: type: - string - 'null' price: type: object properties: id: type: string code: type: string kind: type: string label: type: string currency: type: string interval: type: string amount_minor: type: integer is_custom: type: boolean billing_profile_id: type: string billing_profile_label: type: string payment_method: type: string renews: type: boolean WebsiteSubscriptionResponse: type: object properties: success: const: true data: $ref: '#/components/schemas/WebsiteSubscription' message: type: string required: - success - data TeamSettingBatchResponse: type: object additionalProperties: false required: - success - data properties: success: type: boolean data: type: object additionalProperties: false properties: store: type: array items: type: object required: - success properties: success: type: boolean id: type: string pattern: '^tset_[A-Za-z0-9]{32}$' error: oneOf: - type: string - type: object additionalProperties: type: array items: type: string data: $ref: '#/components/schemas/TeamSetting' update: type: array items: type: object required: - success properties: success: type: boolean id: type: string pattern: '^tset_[A-Za-z0-9]{32}$' error: oneOf: - type: string - type: object additionalProperties: type: array items: type: string data: $ref: '#/components/schemas/TeamSetting' destroy: type: array items: type: object required: - success properties: success: type: boolean id: type: string pattern: '^tset_[A-Za-z0-9]{32}$' error: oneOf: - type: string - type: object additionalProperties: type: array items: type: string AccountSecurityRequiredError: type: object additionalProperties: false required: - success - message - meta properties: success: type: boolean const: false message: type: string meta: type: object additionalProperties: false required: - code - required_steps - policy properties: code: type: string enum: - account_security_required - reauthentication_required required_steps: type: array items: type: string enum: - verify_password - change_password - enroll_factor - recover_factor policy: type: object additionalProperties: false required: - require_two_factor - minimum_password_length - password_rotation_days - allow_email_factor properties: require_two_factor: type: boolean allow_email_factor: type: boolean minimum_password_length: type: integer minimum: 8 maximum: 128 password_rotation_days: type: integer minimum: 0 maximum: 2147483647 NetworkAccessDeniedError: type: object additionalProperties: false required: - success - message - meta properties: success: type: boolean const: false message: type: string meta: type: object additionalProperties: false required: - code properties: code: type: string const: network_access_denied responses: Forbidden: description: Forbidden. content: application/json: schema: $ref: '#/components/schemas/Error' InternalServerError: description: 'Internal server error.' content: application/json: schema: $ref: '#/components/schemas/Error' NotFound: description: 'Not found.' content: application/json: schema: $ref: '#/components/schemas/Error' Unauthenticated: description: Unauthenticated. content: application/json: schema: $ref: '#/components/schemas/Error' ValidationFailed: description: 'Validation failed.' content: application/json: schema: $ref: '#/components/schemas/ValidationError' security: - default: [] paths: /api/v1/auth/register: post: summary: Register operationId: postApiV1AuthRegister description: "Create an account and its false-default 's library." parameters: [] responses: 201: description: '' content: application/json: schema: $ref: '#/components/schemas/RegisteredAccountResponse' example: success: true data: id: acc_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 email: jennings.orn@example.net message: 'Account registered successfully' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] Authentication' security: [] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/RegisterRequest' /api/v1/auth/login: post: summary: Login operationId: postApiV1AuthLogin description: 'Authenticate with email and password. Factor accounts receive a login challenge instead of tokens.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/LoginResultResponse' example: success: true data: token_type: Bearer access_token: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.YBCLu1qW1Xp1suAI9VcUADH4NzoFBhqWJYMK6nKqmjMynaPox92mZ8wTM3FtC9BLT5HPWvfFW5n0AF6wx7bEuXcl8PtnBn6DTnDM refresh_token: 1|X92mxzpThc43WsrjNAZfjO58aDL4WbFbwYoCQRMC expires_in: 3600 account: acc_03gb9a796thtl6untrsf4893vczmp53b message: 'Logged in successfully' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' 403: description: 'Account authority or network policy denied issuance.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/NetworkAccessDeniedError' tags: - '[auth] Authentication' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/LoginRequest' security: [] /api/v1/auth/passkey/options: post: summary: 'Get Passwordless Passkey Options' operationId: postApiV1AuthPasskeyOptions description: 'Start passkey sign-in without an account identifier.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/PasswordlessOptionsResponse' example: success: true data: token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx expires_at: '2026-09-30T12:05:00+00:00' options: challenge: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA rpId: solidapp.cz userVerification: required timeout: 60000 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] Authentication' security: [] /api/v1/auth/passkey/verify: post: summary: 'Verify Passwordless Passkey' operationId: postApiV1AuthPasskeyVerify description: 'Sign in with a discoverable, user-verified passkey.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/LoginResultResponse' example: success: true data: token_type: Bearer access_token: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.YBCLu1qW1Xp1suAI9VcUADH4NzoFBhqWJYMK6nKqmjMynaPox92mZ8wTM3FtC9BLT5HPWvfFW5n0AF6wx7bEuXcl8PtnBn6DTnDM refresh_token: 1|X92mxzpThc43WsrjNAZfjO58aDL4WbFbwYoCQRMC expires_in: 3600 account: acc_03gb9a796thtl6untrsf4893vczmp53b message: 'Logged in successfully' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' 403: description: 'Account authority or network policy denied issuance.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/NetworkAccessDeniedError' tags: - '[auth] Authentication' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/VerifyPasswordlessLoginRequest' security: [] /api/v1/auth/factor/passkey/options: post: summary: 'Get Login Passkey Options' operationId: postApiV1AuthFactorPasskeyOptions description: 'Create WebAuthn assertion options for an active login challenge.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/PasskeyAssertionOptionsResponse' example: success: true data: challenge: yxIXA-o4hxl7Ac8CtngOiVlI1PuzlvCGBw_6yZ8yiXg rpId: solid.test allowCredentials: - type: public-key id: jqBvy0hGaZCRt5EbF1TJtpQjJlQ5jgM3aEfL3yYr_hKfhP7pSr575EO1G5LgqD7fLhGKlESp1rKBjZKruS1R6C userVerification: preferred timeout: 60000 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] Authentication' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/GetLoginPasskeyOptionsRequest' security: [] /api/v1/auth/factor/email/send: post: summary: 'Send E-mail Code' operationId: postApiV1AuthFactorEmailSend description: 'Send a one-time code to the account e-mail for an active login challenge.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/EmailFactorSentResponse' example: success: true data: resend_in_seconds: 60 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] Authentication' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/SendEmailFactorRequest' security: [] /api/v1/auth/factor/status: post: summary: 'Get Login Challenge Status' operationId: postApiV1AuthFactorStatus description: 'Read current permitted methods without renewing or changing the active login challenge.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/LoginChallengeResponse' example: success: true data: token: ybclU1Qw1xP1SUai9vCuadh4nZOfbHQwjymk6NkQMJmYNApOX92Mz8Wtm3fTc9bl expires_at: '2026-01-01T00:05:00+00:00' factors: - passkey - totp 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] Authentication' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/SendEmailFactorRequest' security: [] /api/v1/auth/factor/verify: post: summary: 'Verify Login Factor' operationId: postApiV1AuthFactorVerify description: 'Complete a login challenge with TOTP, a passkey, an e-mail code, or a recovery code.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/LoginResultResponse' example: success: true data: token_type: Bearer access_token: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.YBCLu1qW1Xp1suAI9VcUADH4NzoFBhqWJYMK6nKqmjMynaPox92mZ8wTM3FtC9BLT5HPWvfFW5n0AF6wx7bEuXcl8PtnBn6DTnDM refresh_token: 1|X92mxzpThc43WsrjNAZfjO58aDL4WbFbwYoCQRMC expires_in: 3600 account: acc_03gb9a796thtl6untrsf4893vczmp53b message: 'Logged in successfully' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' 403: description: 'Account authority or network policy denied issuance.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/NetworkAccessDeniedError' tags: - '[auth] Authentication' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/VerifyLoginFactorRequest' security: [] /api/v1/auth/factor/recovery: post: summary: 'Start Factor Recovery' operationId: postApiV1AuthFactorRecovery description: 'Request recovery guidance without revealing whether the account exists.' parameters: [] responses: 200: description: '' content: application/json: schema: type: object properties: success: type: boolean examples: - true message: type: string examples: - 'If the account exists, recovery instructions will be sent.' examples: - success: true message: 'If the account exists, recovery instructions will be sent.' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] Authentication' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/StartFactorRecoveryRequest' security: [] /api/v1/auth/logout: post: summary: Logout operationId: postApiV1AuthLogout description: 'Revoke current refresh token and invalidate session.' parameters: [] responses: 204: description: 'Logout completed without a response body.' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] Authentication' requestBody: required: false content: application/json: schema: $ref: '#/components/schemas/LogoutRequest' /api/v1/auth/password/forgot: post: summary: 'Forgot Password' operationId: postApiV1AuthPasswordForgot description: 'Request a password reset link. Always returns success to prevent account enumeration.' parameters: [] responses: 200: description: 'Password reset link sent (or email not found - same response for security).' content: application/json: schema: type: object properties: data: type: - string - 'null' examples: - null success: type: boolean examples: - true message: type: string examples: - 'If an account exists with this email, a password reset link has been sent.' examples: - data: null success: true message: 'If an account exists with this email, a password reset link has been sent.' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] Password Reset' security: [] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ForgotPasswordRequest' /api/v1/auth/password/reset: post: summary: 'Reset Password' operationId: postApiV1AuthPasswordReset description: 'Reset password using a valid token received via email.' parameters: [] responses: 200: description: 'Password reset successfully.' content: application/json: schema: type: object properties: data: type: - string - 'null' examples: - null success: type: boolean examples: - true message: type: string examples: - 'Password has been reset successfully.' examples: - data: null success: true message: 'Password has been reset successfully.' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] Password Reset' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ResetPasswordRequest' security: [] /api/v1/auth/security-setup/start: post: summary: 'Start security setup' operationId: postApiV1AuthSecuritySetupStart description: 'Use a current first-party login refresh credential to start permitted remediation.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/SecuritySetupResponse' example: success: true data: token: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa expires_at: '2026-01-01T00:05:00+00:00' required_steps: - verify_password - enroll_factor policy: require_two_factor: true minimum_password_length: 15 password_rotation_days: 0 allow_email_factor: false available_factor_types: - totp - passkey 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Account authority or network policy denied issuance.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/NetworkAccessDeniedError' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] Security setup' security: - LoginRefreshCredential: [] /api/v1/auth/security-setup/status: get: summary: 'Get security setup status' operationId: getApiV1AuthSecuritySetupStatus description: 'Use the opaque setup credential to read required steps and current policy.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/AccountSecurityStatusResponse' example: success: true data: required_steps: - verify_password - enroll_factor policy: require_two_factor: true minimum_password_length: 15 password_rotation_days: 0 allow_email_factor: false reauthentication_required: false available_factor_types: - totp - passkey 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] Security setup' security: - SecuritySetupCredential: [] /api/v1/auth/security-setup: delete: summary: 'Cancel security setup' operationId: deleteApiV1AuthSecuritySetup description: 'Cancel the account-bound opaque setup credential.' parameters: [] responses: 200: description: '' content: application/json: schema: type: object properties: success: type: boolean examples: - true examples: - success: true 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] Security setup' security: - SecuritySetupCredential: [] /api/v1/auth/security-setup/complete: post: summary: 'Complete security setup' operationId: postApiV1AuthSecuritySetupComplete description: 'Consume satisfied opaque setup and require fresh login without issuing normal credentials.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/FreshLoginRequiredResponse' example: success: true data: fresh_login_required: true 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] Security setup' security: - SecuritySetupCredential: [] /api/v1/auth/security-setup/verify-password: post: summary: 'Verify setup password' operationId: postApiV1AuthSecuritySetupVerifyPassword description: 'Use opaque setup to establish actual password length without changing password age.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/AccountSecurityStatusResponse' example: success: true data: required_steps: - verify_password - enroll_factor policy: require_two_factor: true minimum_password_length: 15 password_rotation_days: 0 allow_email_factor: false reauthentication_required: false available_factor_types: - totp - passkey 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] Security setup' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/VerifySecuritySetupPasswordRequest' security: - SecuritySetupCredential: [] /api/v1/auth/security-setup/password: post: summary: 'Change setup password' operationId: postApiV1AuthSecuritySetupPassword description: 'Use opaque setup and current password proof for a required change. Current Team minimum applies.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/FreshLoginRequiredResponse' example: success: true data: fresh_login_required: true 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] Security setup' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ChangeSecuritySetupPasswordRequest' security: - SecuritySetupCredential: [] /api/v1/auth/security-setup/factors/assertion-options: post: summary: 'Get setup factor proof options' operationId: postApiV1AuthSecuritySetupFactorsAssertionOptions description: 'Use opaque setup and current password proof to start a management passkey assertion.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/ManagementAssertionOptionsResponse' example: success: true data: token: ybclU1Qw1xP1SUai9vCuadh4nZOfbHQwjymk6NkQMJmYNApOX92Mz8Wtm3fTc9bl options: challenge: pQjJlQ5jgM3aEfL3yYr_hKfhP7pSr575EO1G5LgqD7f rpId: solid.test allowCredentials: - type: public-key id: credential-id userVerification: preferred timeout: 60000 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] Security setup' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/VerifySecuritySetupPasswordRequest' security: - SecuritySetupCredential: [] /api/v1/auth/security-setup/factors/totp: post: summary: 'Start setup TOTP enrollment' operationId: postApiV1AuthSecuritySetupFactorsTotp description: 'Use opaque setup and required current management proof to enroll an eligible factor.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/TotpEnrollmentResponse' example: success: true data: token: ybclU1Qw1xP1SUai9vCuadh4nZOfbHQwjymk6NkQMJmYNApOX92Mz8Wtm3fTc9bl otpauth_uri: 'otpauth://totp/Solidpixels%3Auser%40example.com?secret=ABC&issuer=Solidpixels' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] Security setup' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/StartSecuritySetupFactorRequest' security: - SecuritySetupCredential: [] /api/v1/auth/security-setup/factors/totp/confirm: post: summary: 'Confirm setup TOTP enrollment' operationId: postApiV1AuthSecuritySetupFactorsTotpConfirm description: 'Confirm the opaque-session-bound challenge. Successful factor setup requires fresh login.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/FactorActivationResponse' example: success: true data: factor: id: fac_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 type: passkey name: Laptop last_used_at: null recovery_codes: - srpoh2mn-gtokcck2tfqkdhbazymhvb-fqwyp6injwfrsls 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] Security setup' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ConfirmSecuritySetupTotpRequest' security: - SecuritySetupCredential: [] /api/v1/auth/security-setup/factors/email: post: summary: 'Start setup email enrollment' operationId: postApiV1AuthSecuritySetupFactorsEmail description: 'Use opaque setup and current management proof to enroll permitted email.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/EmailFactorEnrollmentStartedResponse' example: success: true data: token: ybclU1Qw1xP1SUai9vCuadh4nZOfbHQwjymk6NkQMJmYNApOX92Mz8Wtm3fTc9bl resend_in_seconds: 60 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] Security setup' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/StartSecuritySetupFactorRequest' security: - SecuritySetupCredential: [] /api/v1/auth/security-setup/factors/email/send: post: summary: 'Resend setup email code' operationId: postApiV1AuthSecuritySetupFactorsEmailSend description: 'Resend a permitted code for this opaque-session-bound enrollment challenge.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/EmailFactorSentResponse' example: success: true data: resend_in_seconds: 60 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] Security setup' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/SendSecuritySetupEmailRequest' security: - SecuritySetupCredential: [] /api/v1/auth/security-setup/factors/email/confirm: post: summary: 'Confirm setup email enrollment' operationId: postApiV1AuthSecuritySetupFactorsEmailConfirm description: 'Confirm current email permission and the session-bound code. Successful setup requires fresh login.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/FactorActivationResponse' example: success: true data: factor: id: fac_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 type: passkey name: Laptop last_used_at: null recovery_codes: - srpoh2mn-gtokcck2tfqkdhbazymhvb-fqwyp6injwfrsls 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] Security setup' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ConfirmSecuritySetupEmailRequest' security: - SecuritySetupCredential: [] /api/v1/auth/security-setup/factors/passkey/options: post: summary: 'Start setup passkey enrollment' operationId: postApiV1AuthSecuritySetupFactorsPasskeyOptions description: 'Use opaque setup and required current management proof to create passkey registration options.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/PasskeyEnrollmentOptionsResponse' example: success: true data: token: ybclU1Qw1xP1SUai9vCuadh4nZOfbHQwjymk6NkQMJmYNApOX92Mz8Wtm3fTc9bl options: challenge: pQjJlQ5jgM3aEfL3yYr_hKfhP7pSr575EO1G5LgqD7f rp: name: Solidpixels id: solid.test user: id: account-id name: user@example.com displayName: User pubKeyCredParams: - type: public-key alg: -7 attestation: none excludeCredentials: [] 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] Security setup' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/StartSecuritySetupFactorRequest' security: - SecuritySetupCredential: [] /api/v1/auth/security-setup/factors/passkey: post: summary: 'Confirm setup passkey enrollment' operationId: postApiV1AuthSecuritySetupFactorsPasskey description: 'Confirm the opaque-session-bound registration. Successful factor setup requires fresh login.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/FactorActivationResponse' example: success: true data: factor: id: fac_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 type: passkey name: Laptop last_used_at: null recovery_codes: - srpoh2mn-gtokcck2tfqkdhbazymhvb-fqwyp6injwfrsls 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] Security setup' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ConfirmSecuritySetupPasskeyRequest' security: - SecuritySetupCredential: [] /api/v1/auth/token: post: summary: 'Mint Account Token' operationId: postApiV1AuthToken description: 'Mint a first-party account JWT. Requires a personal access token with the jwt:mint ability. The account must be the PAT owner.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/MintTokenResponse' example: success: true data: token_type: Bearer access_token: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.YBCLu1qW1Xp1suAI9VcUADH4NzoFBhqWJYMK6nKqmjMynaPox92mZ8wTM3FtC9BLT5HPWvfFW5n0AF6wx7bEuXcl8PtnBn6DTnDM expires_in: 3600 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Account authority or network policy denied issuance.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string - $ref: '#/components/schemas/NetworkAccessDeniedError' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] JWT Tokens' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/MintAccountTokenRequest' '/api/v1/auth/permissions/team/{team}': get: summary: 'List Team permissions' operationId: getApiV1AuthPermissionsTeamByTeam description: 'Return current permissions for one accepted Team context.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/TeamPermissionListResponse' example: success: true data: type: team id: team_0123456789abcdefghijklmnopqrstuv permissions: - 'team:list' - 'team:show' 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] JWT Tokens' parameters: - in: path name: team description: 'Prefixed Team ID.' required: true schema: type: string examples: - team_0123456789abcdefghijklmnopqrstuv pattern: '^team_[A-Za-z0-9]{32}$' example: team_0123456789abcdefghijklmnopqrstuv '/api/v1/auth/permissions/check/team/{team}': post: summary: 'Check Team permissions' operationId: postApiV1AuthPermissionsCheckTeamByTeam description: 'Check permission names in one current Team context.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/TeamPermissionCheckResponse' example: success: true data: type: team id: team_0123456789abcdefghijklmnopqrstuv permissions: 'team:show': true 'team:delete': false 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] JWT Tokens' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CheckPermissionsRequest' parameters: - in: path name: team description: 'Prefixed Team ID.' required: true schema: type: string examples: - team_0123456789abcdefghijklmnopqrstuv pattern: '^team_[A-Za-z0-9]{32}$' example: team_0123456789abcdefghijklmnopqrstuv /api/v1/auth/permissions: get: summary: 'List permissions' operationId: getApiV1AuthPermissions description: 'Returns the effective permissions granted by the current account token.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/PermissionListResponse' example: success: true data: type: website id: web_0123456789abcdefghijklmnopqrstuv permissions: - 'ai:use' - 'website:show' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] JWT Tokens' /api/v1/auth/permissions/check: post: summary: 'Check permissions' operationId: postApiV1AuthPermissionsCheck description: 'Maps each requested permission name to whether the current account token grants it.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/PermissionCheckResponse' example: success: true data: type: website id: web_0123456789abcdefghijklmnopqrstuv permissions: 'ai:use': true 'website:delete': false 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] JWT Tokens' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CheckPermissionsRequest' '/api/v1/auth/permissions/website/{website}': get: summary: 'List website permissions' operationId: getApiV1AuthPermissionsWebsiteByWebsite description: 'Returns effective permissions for one website.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/PermissionListResponse' example: success: true data: type: website id: web_0123456789abcdefghijklmnopqrstuv permissions: - 'ai:use' - 'website:show' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] JWT Tokens' parameters: - in: path name: website description: 'Prefixed website ID.' required: true schema: type: string examples: - web_0123456789abcdefghijklmnopqrstuv '/api/v1/auth/permissions/library/{library}': get: summary: 'List library permissions' operationId: getApiV1AuthPermissionsLibraryByLibrary description: 'Returns effective permissions for one library.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/LibraryPermissionListResponse' example: success: true data: type: library id: lib_0123456789abcdefghijklmnopqrstuv permissions: - 'ai:use' - 'library:show' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] JWT Tokens' parameters: - in: path name: library description: 'Prefixed library ID.' required: true schema: type: string examples: - lib_0123456789abcdefghijklmnopqrstuv '/api/v1/auth/permissions/check/website/{website}': post: summary: 'Check website permissions' operationId: postApiV1AuthPermissionsCheckWebsiteByWebsite description: 'Checks permission names for one website.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/PermissionCheckResponse' example: success: true data: type: website id: web_0123456789abcdefghijklmnopqrstuv permissions: 'ai:use': true 'website:delete': false 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] JWT Tokens' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CheckPermissionsRequest' parameters: - in: path name: website description: 'Prefixed website ID.' required: true schema: type: string examples: - web_0123456789abcdefghijklmnopqrstuv '/api/v1/auth/permissions/check/library/{library}': post: summary: 'Check library permissions' operationId: postApiV1AuthPermissionsCheckLibraryByLibrary description: 'Checks permission names for one library.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/LibraryPermissionCheckResponse' example: success: true data: type: library id: lib_0123456789abcdefghijklmnopqrstuv permissions: 'ai:use': true 'library:delete': false 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] JWT Tokens' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CheckPermissionsRequest' parameters: - in: path name: library description: 'Prefixed library ID.' required: true schema: type: string examples: - lib_0123456789abcdefghijklmnopqrstuv /api/v1/auth/permissions/resources: get: summary: 'List permission resources' operationId: getApiV1AuthPermissionsResources description: 'Returns discoverable website and library permission contexts.' parameters: - in: query name: 'page[number]' description: 'Page number.' required: false schema: type: integer description: 'Page number.' examples: - 1 - in: query name: 'page[size]' description: 'Items per page (max 100).' required: false schema: type: integer description: 'Items per page (max 100).' examples: - 15 responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/PermissionListPaginatedResponse' example: success: true data: - type: website id: web_0123456789abcdefghijklmnopqrstuv permissions: - 'ai:use' - 'website:show' - type: website id: web_0123456789abcdefghijklmnopqrstuv permissions: - 'ai:use' - 'website:show' meta: current_page: 1 last_page: 5 per_page: 15 total: 73 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] JWT Tokens' /api/v1/auth/token/jwks: get: summary: 'Get JWKS' operationId: getApiV1AuthTokenJwks description: 'Get JWT public key in JWKS (JSON Web Key Set) format for token verification.' parameters: [] responses: 200: description: 'JWKS returned.' content: application/json: schema: type: object properties: keys: type: array items: type: object properties: kty: type: string examples: - RSA 'n': type: string examples: - '...' e: type: string examples: - AQAB alg: type: string examples: - RS256 use: type: string examples: - sig examples: - - kty: RSA 'n': '...' e: AQAB alg: RS256 use: sig examples: - keys: - kty: RSA 'n': '...' e: AQAB alg: RS256 use: sig 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] JWT Tokens' security: [] /api/v1/auth/token/public-key: get: summary: 'Get Public Key' operationId: getApiV1AuthTokenPublicKey description: 'Get JWT public key in PEM format for token verification.' parameters: [] responses: 200: description: 'PEM public key returned.' content: text/plain: schema: type: string examples: - '-----BEGIN PUBLIC KEY-----\nMIIBI...' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] JWT Tokens' security: [] /api/v1/me/tokens: get: summary: 'List Tokens' operationId: getApiV1MeTokens description: 'Get all personal access tokens for the authenticated account.' parameters: - in: query name: search description: 'Search term (searches name).' required: false schema: type: string description: 'Search term (searches name).' examples: - aspernatur - in: query name: sort description: 'Sort field, prefix with - for descending.' required: false schema: type: string description: 'Sort field, prefix with - for descending.' examples: - '-created_at' - in: query name: 'page[number]' description: 'Page number.' required: false schema: type: integer description: 'Page number.' examples: - 1 - in: query name: 'page[size]' description: 'Items per page (max 100).' required: false schema: type: integer description: 'Items per page (max 100).' examples: - 15 responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/PersonalAccessTokenPaginatedResponse' example: success: true data: - id: pat_YBCLu1qW1Xp1suAI9VcUADH4NzoFBhqW name: api-token abilities: - '*' created_at: '2026-01-01T00:00:00+00:00' expires_at: '2026-02-01T00:00:00+00:00' last_used_at: null - id: pat_YBCLu1qW1Xp1suAI9VcUADH4NzoFBhqW name: api-token abilities: - '*' created_at: '2026-01-01T00:00:00+00:00' expires_at: '2026-02-01T00:00:00+00:00' last_used_at: null meta: current_page: 1 last_page: 5 per_page: 15 total: 73 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] Personal Access Tokens' post: summary: 'Create Token' operationId: postApiV1MeTokens description: 'Create a new personal access token.' parameters: [] responses: 201: description: '' content: application/json: schema: $ref: '#/components/schemas/PersonalAccessTokenCreatedResponse' example: success: true data: token: 1|YBCLu1qW1Xp1suAI9VcUADH4NzoFBhqWJYMK6nKq id: pat_ynaPox92mZ8wTM3FtC9BLT5HPWvfFW5n message: 'Token created successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] Personal Access Tokens' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreatePersonalAccessTokenRequest' '/api/v1/me/tokens/{id}': delete: summary: 'Delete Token' operationId: deleteApiV1MeTokensById description: 'Revoke and delete a personal access token.' parameters: [] responses: 204: description: 'Token deleted.' content: text/plain: schema: type: string examples: - '' 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] Personal Access Tokens' parameters: - in: path name: id description: 'Public token ID to delete.' required: true schema: type: string examples: - pat_0123456789abcdef0123456789abcdef /api/v1/auth/sso/create-code: post: summary: 'Create SSO Code' operationId: postApiV1AuthSsoCreateCode description: 'Create a one-time code for SSO redirect to another frontend service.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/SSOCodeResponse' example: success: true data: code: YBCLu1qW1Xp1suAI9VcUADH4NzoFBhqW expires_in: 60 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Account authority or network policy denied issuance.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string - $ref: '#/components/schemas/NetworkAccessDeniedError' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] SSO' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateSSOCodeRequest' /api/v1/auth/sso/exchange: post: summary: 'Exchange SSO Code' operationId: postApiV1AuthSsoExchange description: 'Exchange a one-time SSO code for access and refresh tokens.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/AuthTokenResponse' example: success: true data: token_type: Bearer access_token: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.YBCLu1qW1Xp1suAI9VcUADH4NzoFBhqWJYMK6nKqmjMynaPox92mZ8wTM3FtC9BLT5HPWvfFW5n0AF6wx7bEuXcl8PtnBn6DTnDM refresh_token: 1|X92mxzpThc43WsrjNAZfjO58aDL4WbFbwYoCQRMC expires_in: 3600 account: acc_03gb9a796thtl6untrsf4893vczmp53b 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string tags: - '[auth] SSO' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ExchangeSSOCodeRequest' security: [] /api/v1/auth/website-login/authorize: post: summary: 'Approve website login' operationId: postApiV1AuthWebsiteLoginAuthorize description: 'Return a server-constructed one-time callback URL.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/WebsiteLoginApprovalResponse' example: success: true data: callback_url: 'https://website.example/.solidpixels/auth/callback?request_id=rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr&code=cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc' 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] Website gate' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ApproveWebsiteLoginRequest' /api/v1/auth/impersonation/end: post: summary: 'End Account Impersonation' operationId: postApiV1AuthImpersonationEnd description: 'Use the original staff login refresh token. Returns a fresh staff JWT and retains the original refresh credential.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/LoginResultResponse' example: success: true data: token_type: Bearer access_token: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.YBCLu1qW1Xp1suAI9VcUADH4NzoFBhqWJYMK6nKqmjMynaPox92mZ8wTM3FtC9BLT5HPWvfFW5n0AF6wx7bEuXcl8PtnBn6DTnDM refresh_token: 1|X92mxzpThc43WsrjNAZfjO58aDL4WbFbwYoCQRMC expires_in: 3600 account: acc_03gb9a796thtl6untrsf4893vczmp53b 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Account authority or network policy denied issuance.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string - $ref: '#/components/schemas/NetworkAccessDeniedError' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] Impersonation' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/EndAccountImpersonationRequest' '/api/v1/accounts/{account}/impersonate': post: summary: 'Start Account Impersonation' operationId: postApiV1AccountsByAccountImpersonate description: 'Requires the original staff login refresh token and current account impersonation authority.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/AccountImpersonationResponse' example: success: true data: token_type: Bearer access_token: eyJhbGciOiJSUzI1NiJ9.example.signature refresh_token: 1|YBCLu1qW1Xp1suAI9VcUADH4NzoFBhqWJYMK6nKq expires_in: 3600 account: acc_ynaPox92mZ8wTM3FtC9BLT5HPWvfFW5n session_id: pat_6wx7bEuXcl8PtnBn6DTnDMCNYX92mxzp 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Account authority or network policy denied issuance.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string - $ref: '#/components/schemas/NetworkAccessDeniedError' 404: $ref: '#/components/responses/NotFound' 409: description: '' content: application/json: schema: type: object properties: success: type: boolean examples: - false message: type: string examples: - 'Account impersonation is already active' meta: type: object properties: session_id: type: string examples: - pat_0123456789abcdef0123456789abcdef examples: - success: false message: 'Account impersonation is already active' meta: session_id: pat_0123456789abcdef0123456789abcdef 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] Impersonation' parameters: - in: path name: account description: 'Target public account ID.' required: true schema: type: string examples: - acc_0123456789abcdef0123456789abcdef /api/v1/oauth/clients: get: summary: 'List Clients' operationId: getApiV1OauthClients description: 'Get all OAuth clients owned by the authenticated account.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/OauthClientCollectionResponse' example: success: true data: - id: cli_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 name: 'Rowe-Runolfsdottir App' type: confidential redirect_uris: - 'https://example.com/callback' is_active: true component: files created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' - id: cli_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 name: 'Rowe-Runolfsdottir App' type: confidential redirect_uris: - 'https://example.com/callback' is_active: true component: files created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] OAuth Clients' post: summary: 'Create Client' operationId: postApiV1OauthClients description: 'Register a new OAuth client.' parameters: [] responses: 201: description: '' content: application/json: schema: $ref: '#/components/schemas/OauthClientCreatedResponse' example: success: true data: id: cli_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 name: 'Rowe-Runolfsdottir App' type: confidential client_secret: KqmjMynaPox92mZ8wTM3FtC9BLT5HPWvfFW5n0AF6wx7bEuXcl8PtnBn6DTnDMCN redirect_uris: - 'https://example.com/callback' is_active: true component: files created_at: '2026-01-01T00:00:00+00:00' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] OAuth Clients' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateOAuthClientRequest' /api/v1/oauth/clients/batch: post: summary: 'Batch Clients' operationId: postApiV1OauthClientsBatch description: 'Update and delete OAuth clients in a single request.' parameters: [] responses: 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] OAuth Clients' requestBody: required: false content: application/json: schema: $ref: '#/components/schemas/BatchOAuthClientsRequest' '/api/v1/oauth/clients/{oauth_client}': get: summary: 'Get Client' operationId: getApiV1OauthClientsByOauthClient description: 'Get details of a specific OAuth client.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/OauthClientResponse' example: success: true data: id: cli_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 name: 'Rowe-Runolfsdottir App' type: confidential redirect_uris: - 'https://example.com/callback' is_active: true component: files created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] OAuth Clients' put: summary: 'Update Client' operationId: putApiV1OauthClientsByOauthClient description: 'Update an existing OAuth client.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/OauthClientResponse' example: success: true data: id: cli_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 name: 'Rowe-Runolfsdottir App' type: confidential redirect_uris: - 'https://example.com/callback' is_active: true component: files created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] OAuth Clients' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateOAuthClientRequest' delete: summary: 'Delete Client' operationId: deleteApiV1OauthClientsByOauthClient description: 'Delete an OAuth client and revoke all associated grants.' parameters: [] responses: 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] OAuth Clients' parameters: - in: path name: oauth_client description: '' required: true schema: type: string examples: - cli_ybclU1Qw1xP1SUai9vCuadh4nZOfbHQw '/api/v1/oauth/clients/{oauth_client}/rotate-secret': post: summary: 'Rotate Secret' operationId: postApiV1OauthClientsByOauthClientRotateSecret description: 'Generate a new client secret. Previous secret is invalidated.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/OauthClientCreatedResponse' example: success: true data: id: cli_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 name: 'Rowe-Runolfsdottir App' type: confidential client_secret: KqmjMynaPox92mZ8wTM3FtC9BLT5HPWvfFW5n0AF6wx7bEuXcl8PtnBn6DTnDMCN redirect_uris: - 'https://example.com/callback' is_active: true component: files created_at: '2026-01-01T00:00:00+00:00' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] OAuth Clients' parameters: - in: path name: oauth_client description: '' required: true schema: type: string examples: - cli_ybclU1Qw1xP1SUai9vCuadh4nZOfbHQw /api/v1/oauth/grants: get: summary: 'List Authorized Apps' operationId: getApiV1OauthGrants description: 'Get all OAuth apps the authenticated user has authorized.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/OauthGrantCollectionResponse' example: success: true data: - id: grt_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 client_id: cli_4oju80peu12xkf9k6n0wbsnzve1jb1b3 client_name: 'Flatley, Schultz and Haag App' scopes: - role: 'console:account' created_at: '2026-01-01T00:00:00+00:00' - id: grt_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 client_id: cli_4oju80peu12xkf9k6n0wbsnzve1jb1b3 client_name: 'Flatley, Schultz and Haag App' scopes: - role: 'console:account' created_at: '2026-01-01T00:00:00+00:00' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] OAuth Grants' '/api/v1/oauth/grants/{grant}': delete: summary: 'Revoke Grant' operationId: deleteApiV1OauthGrantsByGrant description: 'Revoke an OAuth app authorization, its authorization codes, and refresh tokens. Existing access JWTs remain valid until expiry.' parameters: [] responses: 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] OAuth Grants' parameters: - in: path name: grant description: 'The grant.' required: true schema: type: string examples: - grt_ybclU1Qw1xP1SUai9vCuadh4nZOfbHQw /oauth/authorize: get: summary: 'Authorization Info' operationId: getOauthAuthorize description: 'Validate authorization request and return info for consent screen.' parameters: - in: query name: client_id description: '' required: true schema: type: string description: '' examples: - aspernatur - in: query name: redirect_uri description: '' required: true schema: type: string description: '' examples: - aspernatur - in: query name: response_type description: '' required: true schema: type: string description: '' examples: - code - in: query name: scope description: '' required: true schema: type: string description: '' examples: - aspernatur - in: query name: state description: '' required: false schema: type: string description: '' examples: - aspernatur - in: query name: code_challenge description: 'Required for public clients.' required: false schema: type: string description: 'Required for public clients.' examples: - aspernatur - in: query name: code_challenge_method description: 'Required when code_challenge is supplied.' required: false schema: type: string description: 'Required when code_challenge is supplied.' examples: - S256 responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/AuthorizeInfoResponse' example: success: true data: client_id: cli_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 client_name: 'Rowe-Runolfsdottir App' scopes: - role: 'console:account' roles_requiring_resource_selection: [] redirect_uri: 'https://example.com/callback' state: KqmjMynaPox92mZ8wTM3FtC9BLT5HPWv 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] OAuth Protocol' post: summary: 'Approve Authorization' operationId: postOauthAuthorize description: 'User approves the authorization request. Returns redirect with code.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/OauthRedirectResponse' example: success: true data: redirect_uri: 'com.example.app:/callback?tenant=one' 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] OAuth Protocol' delete: summary: 'Deny Authorization' operationId: deleteOauthAuthorize description: 'Deny authorization for an active client and its exact registered callback. Invalid clients or callbacks return 422 without a redirect destination.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/OauthRedirectResponse' example: success: true data: redirect_uri: 'com.example.app:/callback?tenant=one' 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[auth] OAuth Protocol' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/DenyOAuthAuthorizationRequest' /api/v1/accounts: get: summary: 'List Accounts' operationId: getApiV1Accounts description: 'Get accounts with pagination. Internal component tokens have read-only access.' parameters: - in: query name: search description: 'Search term (searches name, surname, email).' required: false schema: type: string description: 'Search term (searches name, surname, email).' examples: - aspernatur - in: query name: sort description: 'Sort field, prefix with - for descending.' required: false schema: type: string description: 'Sort field, prefix with - for descending.' examples: - '-created_at' - in: query name: 'page[number]' description: 'Page number.' required: false schema: type: integer description: 'Page number.' examples: - 1 - in: query name: 'page[size]' description: 'Items per page (max 100).' required: false schema: type: integer description: 'Items per page (max 100).' examples: - 15 - in: query name: include description: 'Comma-separated relations to include.' required: false schema: type: string description: 'Comma-separated relations to include.' examples: - 'websites,settings' responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/AccountPaginatedResponse' example: success: true data: - id: acc_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 name: Aisha surname: Runolfsdottir username: grady16 email: green16@example.net status: enabled roles: - 'console:account' permissions: - 'ai:use' websites_count: 3 websites: null tags: - id: tag_kf9k6n0wbsnzve1jb1b3retjvy35a2x0 name: internal color: '#ff0000' icon: hash created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' avatar_file_id: null avatar_url: null team: null - id: acc_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 name: Aisha surname: Runolfsdottir username: grady16 email: green16@example.net status: enabled roles: - 'console:account' permissions: - 'ai:use' websites_count: 3 websites: null tags: - id: tag_kf9k6n0wbsnzve1jb1b3retjvy35a2x0 name: internal color: '#ff0000' icon: hash created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' avatar_file_id: null avatar_url: null team: null meta: current_page: 1 last_page: 5 per_page: 15 total: 73 message: 'Accounts retrieved successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Accounts' post: summary: 'Create Account' operationId: postApiV1Accounts description: "Create an account and its false-default 's library." parameters: [] responses: 201: description: '' content: application/json: schema: $ref: '#/components/schemas/AccountResponse' example: success: true data: id: acc_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 name: Aisha surname: Runolfsdottir username: grady16 email: green16@example.net status: enabled roles: - 'console:account' permissions: - 'ai:use' websites_count: 3 websites: null tags: - id: tag_kf9k6n0wbsnzve1jb1b3retjvy35a2x0 name: internal color: '#ff0000' icon: hash created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' avatar_file_id: null avatar_url: null team: null message: 'Account created successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Accounts' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateAccountRequest' '/api/v1/accounts/{account}': get: summary: 'Get Account' operationId: getApiV1AccountsByAccount description: 'Get an account by ID. Internal component reads include target global permissions and no mutation actions.' parameters: - in: query name: include description: 'Comma-separated relations to include (websites, settings).' required: false schema: type: string description: 'Comma-separated relations to include (websites, settings).' examples: - 'websites,settings' responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/AccountResponse' example: success: true data: id: acc_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 name: Aisha surname: Runolfsdottir username: grady16 email: green16@example.net status: enabled roles: - 'console:account' permissions: - 'ai:use' websites_count: 3 websites: null tags: - id: tag_kf9k6n0wbsnzve1jb1b3retjvy35a2x0 name: internal color: '#ff0000' icon: hash created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' avatar_file_id: null avatar_url: null team: null message: 'Account retrieved successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Accounts' put: summary: 'Update Account' operationId: putApiV1AccountsByAccount description: 'Update an existing account.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/AccountResponse' example: success: true data: id: acc_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 name: Aisha surname: Runolfsdottir username: grady16 email: green16@example.net status: enabled roles: - 'console:account' permissions: - 'ai:use' websites_count: 3 websites: null tags: - id: tag_kf9k6n0wbsnzve1jb1b3retjvy35a2x0 name: internal color: '#ff0000' icon: hash created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' avatar_file_id: null avatar_url: null team: null message: 'Account updated successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Accounts' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateAccountRequest' patch: summary: 'Update Account' operationId: patchApiV1AccountsByAccount description: 'Update an existing account.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/AccountResponse' example: success: true data: id: acc_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 name: Aisha surname: Runolfsdottir username: grady16 email: green16@example.net status: enabled roles: - 'console:account' permissions: - 'ai:use' websites_count: 3 websites: null tags: - id: tag_kf9k6n0wbsnzve1jb1b3retjvy35a2x0 name: internal color: '#ff0000' icon: hash created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' avatar_file_id: null avatar_url: null team: null message: 'Account updated successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Accounts' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateAccountRequest' delete: summary: 'Delete Account' operationId: deleteApiV1AccountsByAccount description: 'Delete an account.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/AccountResponse' example: success: true data: id: acc_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 name: Aisha surname: Runolfsdottir username: grady16 email: green16@example.net status: enabled roles: - 'console:account' permissions: - 'ai:use' websites_count: 3 websites: null tags: - id: tag_kf9k6n0wbsnzve1jb1b3retjvy35a2x0 name: internal color: '#ff0000' icon: hash created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' avatar_file_id: null avatar_url: null team: null message: 'Account deleted successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Accounts' parameters: - in: path name: account description: 'Prefixed account ID.' required: true schema: type: string examples: - acc_abc123 /api/v1/accounts/batch: post: summary: 'Batch Accounts' operationId: postApiV1AccountsBatch description: 'Create, update, and delete accounts in a single request.' parameters: [] responses: 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Accounts' requestBody: required: false content: application/json: schema: $ref: '#/components/schemas/BatchAccountsRequest' '/api/v1/accounts/{account}/owned': get: summary: 'Get Account Ownership Blockers' operationId: getApiV1AccountsByAccountOwned description: 'List the websites and standalone libraries an account owns.' parameters: [] responses: 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Accounts' parameters: - in: path name: account description: 'Prefixed account ID.' required: true schema: type: string examples: - acc_abc123 '/api/v1/accounts/{account}/roles': put: summary: 'Replace Account Roles' operationId: putApiV1AccountsByAccountRoles description: 'Replace global Console roles for an account. Website and Library roles are unchanged.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/AccountResponse' example: success: true data: id: acc_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 name: Aisha surname: Runolfsdottir username: grady16 email: green16@example.net status: enabled roles: - 'console:account' permissions: - 'ai:use' websites_count: 3 websites: null tags: - id: tag_kf9k6n0wbsnzve1jb1b3retjvy35a2x0 name: internal color: '#ff0000' icon: hash created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' avatar_file_id: null avatar_url: null team: null message: 'Account roles replaced successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Accounts' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ReplaceAccountRolesRequest' parameters: - in: path name: account description: 'Prefixed account ID.' required: true schema: type: string examples: - acc_abc123 '/api/v1/accounts/{account}/websites': get: summary: 'List Account Websites' operationId: getApiV1AccountsByAccountWebsites description: 'Search and list websites attached to an account, with optional pagination.' parameters: - in: query name: search description: 'Search term (searches name and domain).' required: false schema: type: string description: 'Search term (searches name and domain).' examples: - aspernatur - in: query name: sort description: 'Sort field, prefix with - for descending.' required: false schema: type: string description: 'Sort field, prefix with - for descending.' examples: - '-created_at' - in: query name: 'page[number]' description: 'Page number. Supplying this enables pagination.' required: false schema: type: integer description: 'Page number. Supplying this enables pagination.' examples: - 1 - in: query name: 'page[size]' description: 'Items per page (max 100). Supplying this enables pagination.' required: false schema: type: integer description: 'Items per page (max 100). Supplying this enables pagination.' examples: - 15 responses: 200: description: 'Website collection. Paginated requests also include pagination metadata.' content: application/json: schema: $ref: '#/components/schemas/WebsiteCollectionResponse' example: success: true data: - id: web_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 code: myro name: Fisher-Gerhold domain: parisian.com status: active plan: basic paid_until: '2027-01-01' active_until: '2027-01-15' deletes_on: '2027-02-16' owner: id: acc_kf9k6n0wbsnzve1jb1b3retjvy35a2x0 firstname: Izaiah lastname: Walker email: kenneth78@yahoo.com provisioning: id: ecf_953c5353e8f035a4d595b04fec3f54bd status: pending progress: ready: 2 total: 4 started_at: '2026-01-01T00:00:00+00:00' deadline_at: '2026-01-01T00:02:00+00:00' completed_at: null maintenance: false maintenance_html: null thumbnail_url: 'https://cdn.example.com/solidpixels/thumbnail-web_xyz789.webp' roles: - 'website:admin' tags: - id: tag_kojfwg3n3koga2340faf03gb9a796tht name: internal color: '#ff0000' icon: hash created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' team: null - id: web_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 code: myro name: Fisher-Gerhold domain: parisian.com status: active plan: basic paid_until: '2027-01-01' active_until: '2027-01-15' deletes_on: '2027-02-16' owner: id: acc_kf9k6n0wbsnzve1jb1b3retjvy35a2x0 firstname: Izaiah lastname: Walker email: kenneth78@yahoo.com provisioning: id: ecf_953c5353e8f035a4d595b04fec3f54bd status: pending progress: ready: 2 total: 4 started_at: '2026-01-01T00:00:00+00:00' deadline_at: '2026-01-01T00:02:00+00:00' completed_at: null maintenance: false maintenance_html: null thumbnail_url: 'https://cdn.example.com/solidpixels/thumbnail-web_xyz789.webp' roles: - 'website:admin' tags: - id: tag_kojfwg3n3koga2340faf03gb9a796tht name: internal color: '#ff0000' icon: hash created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' team: null message: 'Websites retrieved successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Accounts' parameters: - in: path name: account description: 'Account prefixed ID.' required: true schema: type: string examples: - acc_abc123 '/api/v1/accounts/{account}/libraries': get: summary: 'List Account Libraries' operationId: getApiV1AccountsByAccountLibraries description: 'List libraries attached to an account.' parameters: - in: query name: search description: 'Search term (searches name).' required: false schema: type: string description: 'Search term (searches name).' examples: - aspernatur - in: query name: sort description: 'Sort field, prefix with - for descending.' required: false schema: type: string description: 'Sort field, prefix with - for descending.' examples: - '-created_at' - in: query name: 'page[number]' description: 'Page number.' required: false schema: type: integer description: 'Page number.' examples: - 1 - in: query name: 'page[size]' description: 'Items per page (max 100).' required: false schema: type: integer description: 'Items per page (max 100).' examples: - 25 responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/LibraryPaginatedResponse' example: success: true data: - id: lib_cb21a922bbf5a66c71a8cff2f98df9c0 name: 'reprehenderit qui' is_system: false is_website_library: false items_count: 25 websites_count: 7 owner_account_id: acc_cc1ae9ad4b9ceb043cb73e5ffd373ad3 owner: firstname: Susana lastname: Grimes email: upton.marcelina@gmail.com roles: - 'library:owner' tags: - id: tag_w6pgb8pnh17o5r1byozkr5qglt1l740z name: internal color: '#ff0000' icon: hash created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' - id: lib_cb21a922bbf5a66c71a8cff2f98df9c0 name: 'reprehenderit qui' is_system: false is_website_library: false items_count: 25 websites_count: 7 owner_account_id: acc_cc1ae9ad4b9ceb043cb73e5ffd373ad3 owner: firstname: Susana lastname: Grimes email: upton.marcelina@gmail.com roles: - 'library:owner' tags: - id: tag_w6pgb8pnh17o5r1byozkr5qglt1l740z name: internal color: '#ff0000' icon: hash created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' meta: current_page: 1 last_page: 5 per_page: 15 total: 73 message: 'Libraries retrieved successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Accounts' parameters: - in: path name: account description: 'Account prefixed ID.' required: true schema: type: string examples: - acc_abc123 '/api/v1/accounts/{account}/enable': post: summary: 'Enable Account' operationId: postApiV1AccountsByAccountEnable description: 'Enable a disabled account.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/AccountResponse' example: success: true data: id: acc_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 name: Aisha surname: Runolfsdottir username: grady16 email: green16@example.net status: enabled roles: - 'console:account' permissions: - 'ai:use' websites_count: 3 websites: null tags: - id: tag_kf9k6n0wbsnzve1jb1b3retjvy35a2x0 name: internal color: '#ff0000' icon: hash created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' avatar_file_id: null avatar_url: null team: null message: 'Account enabled successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Accounts' parameters: - in: path name: account description: 'Prefixed account ID.' required: true schema: type: string examples: - acc_abc123 '/api/v1/accounts/{account}/disable': post: summary: 'Disable Account' operationId: postApiV1AccountsByAccountDisable description: 'Disable an enabled account.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/AccountResponse' example: success: true data: id: acc_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 name: Aisha surname: Runolfsdottir username: grady16 email: green16@example.net status: enabled roles: - 'console:account' permissions: - 'ai:use' websites_count: 3 websites: null tags: - id: tag_kf9k6n0wbsnzve1jb1b3retjvy35a2x0 name: internal color: '#ff0000' icon: hash created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' avatar_file_id: null avatar_url: null team: null message: 'Account disabled successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Accounts' parameters: - in: path name: account description: 'Prefixed account ID.' required: true schema: type: string examples: - acc_abc123 '/api/v1/accounts/{account}/change-password': post: summary: 'Change Password' operationId: postApiV1AccountsByAccountChangePassword description: 'Force-set a new password for an account. No current password required (admin action). Revokes all active sessions.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/AccountResponse' example: success: true data: id: acc_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 name: Aisha surname: Runolfsdottir username: grady16 email: green16@example.net status: enabled roles: - 'console:account' permissions: - 'ai:use' websites_count: 3 websites: null tags: - id: tag_kf9k6n0wbsnzve1jb1b3retjvy35a2x0 name: internal color: '#ff0000' icon: hash created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' avatar_file_id: null avatar_url: null team: null message: 'Password changed successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Accounts' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ChangeAccountPasswordRequest' parameters: - in: path name: account description: 'Prefixed account ID.' required: true schema: type: string examples: - acc_abc123 '/api/v1/accounts/{account}/password-reset': post: summary: 'Password Reset Email' operationId: postApiV1AccountsByAccountPasswordReset description: 'Send a password reset email for an account and return the generated URL.' parameters: [] responses: 200: description: 'Password reset email sent.' content: application/json: schema: $ref: '#/components/schemas/PasswordResetUrlResponse' example: success: true data: url: 'https://console.app.solidpixels.com/auth/reset-password/wIy1Ar7VCGBw9n7mOybi9=.pOX92Mz8Wtm3fTc9blt5hpw' message: 'Password reset email sent' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Accounts' parameters: - in: path name: account description: 'Prefixed account ID.' required: true schema: type: string examples: - acc_abc123 '/api/v1/accounts/{account}/password-reset-link': post: summary: 'Password Reset Link' operationId: postApiV1AccountsByAccountPasswordResetLink description: 'Generate a password reset URL for an account without sending an email.' parameters: [] responses: 200: description: 'Password reset link generated.' content: application/json: schema: $ref: '#/components/schemas/PasswordResetUrlResponse' example: success: true data: url: 'https://console.app.solidpixels.com/auth/reset-password/wIy1Ar7VCGBw9n7mOybi9=.pOX92Mz8Wtm3fTc9blt5hpw' message: 'Password reset link generated' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Accounts' parameters: - in: path name: account description: 'Prefixed account ID.' required: true schema: type: string examples: - acc_abc123 /api/v1/me: get: summary: 'Get Profile' operationId: getApiV1Me description: 'Get the authenticated account profile.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/AccountResponse' example: success: true data: id: acc_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 name: Aisha surname: Runolfsdottir username: grady16 email: green16@example.net status: enabled roles: - 'console:account' permissions: - 'ai:use' websites_count: 3 websites: null tags: - id: tag_kf9k6n0wbsnzve1jb1b3retjvy35a2x0 name: internal color: '#ff0000' icon: hash created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' avatar_file_id: null avatar_url: null team: null message: 'Account retrieved successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Current Account' put: summary: 'Update Profile' operationId: putApiV1Me description: 'Update the authenticated account profile.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/AccountResponse' example: success: true data: id: acc_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 name: Aisha surname: Runolfsdottir username: grady16 email: green16@example.net status: enabled roles: - 'console:account' permissions: - 'ai:use' websites_count: 3 websites: null tags: - id: tag_kf9k6n0wbsnzve1jb1b3retjvy35a2x0 name: internal color: '#ff0000' icon: hash created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' avatar_file_id: null avatar_url: null team: null message: 'Account updated successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Current Account' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateCurrentAccountRequest' /api/v1/me/factors: get: summary: 'List Two-Factor Methods' operationId: getApiV1MeFactors description: 'List the current account factors and unused recovery-code count.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/ListAccountFactorsResponse' example: success: true data: factors: - id: fac_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 type: passkey name: Laptop last_used_at: null recovery_codes_remaining: 10 available_types: - totp - passkey passwordless_enabled: false 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Current Account' /api/v1/me/factors/passwordless/options: post: summary: 'Get Passkey Sign-In Enablement Options' operationId: postApiV1MeFactorsPasswordlessOptions description: 'Check a discoverable passkey before enabling passwordless sign-in.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/PasswordlessOptionsResponse' example: success: true data: token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx expires_at: '2026-09-30T12:05:00+00:00' options: challenge: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA rpId: solidapp.cz userVerification: required timeout: 60000 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Current Account' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/GetManagementAssertionOptionsRequest' /api/v1/me/factors/passwordless/enable: post: summary: 'Enable Passkey Sign-In' operationId: postApiV1MeFactorsPasswordlessEnable description: 'Enable passwordless sign-in after device user verification.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/PasswordlessStatusResponse' example: success: true data: passwordless_enabled: true 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Current Account' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/EnablePasswordlessRequest' /api/v1/me/factors/passwordless/disable: post: summary: 'Disable Passkey Sign-In' operationId: postApiV1MeFactorsPasswordlessDisable description: 'Disable passwordless sign-in using a management proof.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/PasswordlessStatusResponse' example: success: true data: passwordless_enabled: true 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Current Account' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/DisablePasswordlessRequest' /api/v1/me/factors/assertion-options: post: summary: 'Get Management Assertion Options' operationId: postApiV1MeFactorsAssertionOptions description: 'Create passkey assertion options for a management proof.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/ManagementAssertionOptionsResponse' example: success: true data: token: ybclU1Qw1xP1SUai9vCuadh4nZOfbHQwjymk6NkQMJmYNApOX92Mz8Wtm3fTc9bl options: challenge: pQjJlQ5jgM3aEfL3yYr_hKfhP7pSr575EO1G5LgqD7f rpId: solid.test allowCredentials: - type: public-key id: credential-id userVerification: preferred timeout: 60000 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Current Account' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/GetManagementAssertionOptionsRequest' /api/v1/me/factors/totp: post: summary: 'Start TOTP Enrollment' operationId: postApiV1MeFactorsTotp description: 'Create a pending TOTP enrollment challenge.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/TotpEnrollmentResponse' example: success: true data: token: ybclU1Qw1xP1SUai9vCuadh4nZOfbHQwjymk6NkQMJmYNApOX92Mz8Wtm3fTc9bl otpauth_uri: 'otpauth://totp/Solidpixels%3Auser%40example.com?secret=ABC&issuer=Solidpixels' 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Current Account' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/StartTotpEnrollmentRequest' /api/v1/me/factors/totp/confirm: post: summary: 'Confirm TOTP Enrollment' operationId: postApiV1MeFactorsTotpConfirm description: 'Activate a pending TOTP enrollment.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/FactorActivationResponse' example: success: true data: factor: id: fac_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 type: passkey name: Laptop last_used_at: null recovery_codes: - srpoh2mn-gtokcck2tfqkdhbazymhvb-fqwyp6injwfrsls 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Current Account' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ConfirmTotpEnrollmentRequest' /api/v1/me/factors/passkey/options: post: summary: 'Start Passkey Enrollment' operationId: postApiV1MeFactorsPasskeyOptions description: 'Create WebAuthn options for a pending passkey enrollment.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/PasskeyEnrollmentOptionsResponse' example: success: true data: token: ybclU1Qw1xP1SUai9vCuadh4nZOfbHQwjymk6NkQMJmYNApOX92Mz8Wtm3fTc9bl options: challenge: pQjJlQ5jgM3aEfL3yYr_hKfhP7pSr575EO1G5LgqD7f rp: name: Solidpixels id: solid.test user: id: account-id name: user@example.com displayName: User pubKeyCredParams: - type: public-key alg: -7 attestation: none excludeCredentials: [] 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Current Account' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/StartPasskeyEnrollmentRequest' /api/v1/me/factors/passkey: post: summary: 'Confirm Passkey Enrollment' operationId: postApiV1MeFactorsPasskey description: 'Activate a pending passkey enrollment.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/FactorActivationResponse' example: success: true data: factor: id: fac_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 type: passkey name: Laptop last_used_at: null recovery_codes: - srpoh2mn-gtokcck2tfqkdhbazymhvb-fqwyp6injwfrsls 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Current Account' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ConfirmPasskeyEnrollmentRequest' /api/v1/me/factors/email: post: summary: 'Start E-mail Code Enrollment' operationId: postApiV1MeFactorsEmail description: 'Create a pending e-mail code enrollment challenge and send the code.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/EmailFactorEnrollmentStartedResponse' example: success: true data: token: ybclU1Qw1xP1SUai9vCuadh4nZOfbHQwjymk6NkQMJmYNApOX92Mz8Wtm3fTc9bl resend_in_seconds: 60 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Current Account' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/StartEmailEnrollmentRequest' /api/v1/me/factors/email/confirm: post: summary: 'Confirm E-mail Code Enrollment' operationId: postApiV1MeFactorsEmailConfirm description: 'Activate a pending e-mail code enrollment.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/FactorActivationResponse' example: success: true data: factor: id: fac_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 type: passkey name: Laptop last_used_at: null recovery_codes: - srpoh2mn-gtokcck2tfqkdhbazymhvb-fqwyp6injwfrsls 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Current Account' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ConfirmEmailEnrollmentRequest' /api/v1/me/factors/email/send: post: summary: 'Resend E-mail Code' operationId: postApiV1MeFactorsEmailSend description: 'Resend the enrollment code for a pending e-mail code challenge.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/EmailFactorSentResponse' example: success: true data: resend_in_seconds: 60 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Current Account' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ResendEmailEnrollmentRequest' '/api/v1/me/factors/{id}/remove': post: summary: 'Remove Two-Factor Method' operationId: postApiV1MeFactorsByIdRemove description: 'Remove an account-owned factor.' parameters: [] responses: 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Current Account' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/RemoveAccountFactorRequest' parameters: - in: path name: id description: 'Factor prefixed ID.' required: true schema: type: string examples: - fac_example /api/v1/me/recovery-codes: post: summary: 'Regenerate Recovery Codes' operationId: postApiV1MeRecoveryCodes description: 'Replace all recovery codes and return the new codes once.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/RecoveryCodesResponse' example: success: true data: recovery_codes: - abcde-fghij-klmno-pqrst-uvwxy-23456-72345-abcde - abcde-fghij-klmno-pqrst-uvwxy-23456-72345-abcde - abcde-fghij-klmno-pqrst-uvwxy-23456-72345-abcde - abcde-fghij-klmno-pqrst-uvwxy-23456-72345-abcde - abcde-fghij-klmno-pqrst-uvwxy-23456-72345-abcde - abcde-fghij-klmno-pqrst-uvwxy-23456-72345-abcde - abcde-fghij-klmno-pqrst-uvwxy-23456-72345-abcde - abcde-fghij-klmno-pqrst-uvwxy-23456-72345-abcde - abcde-fghij-klmno-pqrst-uvwxy-23456-72345-abcde - abcde-fghij-klmno-pqrst-uvwxy-23456-72345-abcde 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Current Account' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/RegenerateRecoveryCodesRequest' /api/v1/me/invitations: get: summary: 'List Account Invitations' operationId: getApiV1MeInvitations description: 'List the pending, unexpired website, library and Team invitations sent to the account email, newest first.' parameters: - in: query name: 'page[number]' description: 'Page number.' required: false schema: type: integer description: 'Page number.' examples: - 1 - in: query name: 'page[size]' description: 'Items per page (max 100).' required: false schema: type: integer description: 'Items per page (max 100).' examples: - 15 responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/AccountInvitationPaginatedResponse' example: success: true data: - id: winv_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 type: website status: pending target: id: web_4oju80peu12xkf9k6n0wbsnzve1jb1b3 name: 'Example Website' roles: - id: role_jvy35a2x0a9dpw6pgb8pnh17o5r1byoz name: 'website:viewer' invited_by: id: acc_qglt1l740z603v5gzx7wlkojfwg3n3ko name: 'Mr. Edison Durgan' expires_at: '2026-01-08T00:00:00+00:00' created_at: '2026-01-01T00:00:00+00:00' - id: winv_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 type: website status: pending target: id: web_4oju80peu12xkf9k6n0wbsnzve1jb1b3 name: 'Example Website' roles: - id: role_jvy35a2x0a9dpw6pgb8pnh17o5r1byoz name: 'website:viewer' invited_by: id: acc_qglt1l740z603v5gzx7wlkojfwg3n3ko name: 'Mr. Edison Durgan' expires_at: '2026-01-08T00:00:00+00:00' created_at: '2026-01-01T00:00:00+00:00' meta: current_page: 1 last_page: 5 per_page: 15 total: 73 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Current Account' '/api/v1/me/invitations/{invitation}/accept': post: summary: 'Accept Account Invitation' operationId: postApiV1MeInvitationsByInvitationAccept description: 'Accept a pending invitation sent to the account email. The type-specific acceptance rules apply.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/AccountInvitationResponse' example: success: true data: id: winv_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 type: website status: pending target: id: web_4oju80peu12xkf9k6n0wbsnzve1jb1b3 name: 'Example Website' roles: - id: role_jvy35a2x0a9dpw6pgb8pnh17o5r1byoz name: 'website:viewer' invited_by: id: acc_qglt1l740z603v5gzx7wlkojfwg3n3ko name: 'Mr. Edison Durgan' expires_at: '2026-01-08T00:00:00+00:00' created_at: '2026-01-01T00:00:00+00:00' 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 404: $ref: '#/components/responses/NotFound' 409: description: 'When a Team recipient already belongs to any Team, including this one.' content: application/json: schema: type: object properties: success: type: boolean examples: - false message: type: string examples: - 'The account already belongs to a Team.' examples: - success: false message: 'The account already belongs to a Team.' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Current Account' parameters: - in: path name: invitation description: 'Prefixed website (winv_), library (linv_) or Team (tinv_) invitation ID.' required: true schema: type: string examples: - winv_0123456789abcdef0123456789abcdef '/api/v1/me/invitations/{invitation}/decline': post: summary: 'Decline Account Invitation' operationId: postApiV1MeInvitationsByInvitationDecline description: 'Decline a pending invitation sent to the account email. No membership changes.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/AccountInvitationResponse' example: success: true data: id: winv_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 type: website status: pending target: id: web_4oju80peu12xkf9k6n0wbsnzve1jb1b3 name: 'Example Website' roles: - id: role_jvy35a2x0a9dpw6pgb8pnh17o5r1byoz name: 'website:viewer' invited_by: id: acc_qglt1l740z603v5gzx7wlkojfwg3n3ko name: 'Mr. Edison Durgan' expires_at: '2026-01-08T00:00:00+00:00' created_at: '2026-01-01T00:00:00+00:00' 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Current Account' parameters: - in: path name: invitation description: 'Prefixed website (winv_), library (linv_) or Team (tinv_) invitation ID.' required: true schema: type: string examples: - winv_0123456789abcdef0123456789abcdef /api/v1/me/settings: get: summary: 'Get Settings' operationId: getApiV1MeSettings description: 'Get all settings for the authenticated account as a flat key-value map.' parameters: [] responses: 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Current Account Settings' put: summary: 'Update Settings' operationId: putApiV1MeSettings description: 'Upsert settings for the authenticated account. Accepts a partial flat object.' parameters: [] responses: 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Current Account Settings' requestBody: required: false content: application/json: schema: $ref: '#/components/schemas/UpdateCurrentAccountSettingsRequest' '/api/v1/accounts/{account}/settings': get: summary: 'List Account Settings' operationId: getApiV1AccountsByAccountSettings description: 'List configuration settings for an account.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/AccountSettingPaginatedResponse' example: success: true data: - id: aset_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 group: default type: text key: theme value: dark created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' - id: aset_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 group: default type: text key: theme value: dark created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' meta: current_page: 1 last_page: 5 per_page: 15 total: 73 message: 'Account settings retrieved successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Account Settings' post: summary: 'Create Account Setting' operationId: postApiV1AccountsByAccountSettings description: 'Create a configuration setting for an account.' parameters: [] responses: 201: description: '' content: application/json: schema: $ref: '#/components/schemas/AccountSettingResponse' example: success: true data: id: aset_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 group: default type: text key: theme value: dark created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' message: 'Account setting created successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Account Settings' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateAccountSettingRequest' parameters: - in: path name: account description: 'Prefixed account ID.' required: true schema: type: string examples: - acc_abc123 '/api/v1/accounts/{account}/settings/{account_setting}': get: summary: 'Get Account Setting' operationId: getApiV1AccountsByAccountSettingsByAccountSetting description: 'Get a specific account setting.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/AccountSettingResponse' example: success: true data: id: aset_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 group: default type: text key: theme value: dark created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' message: 'Account setting retrieved successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Account Settings' put: summary: 'Update Account Setting' operationId: putApiV1AccountsByAccountSettingsByAccountSetting description: 'Update an account setting value.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/AccountSettingResponse' example: success: true data: id: aset_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 group: default type: text key: theme value: dark created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' message: 'Account setting updated successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Account Settings' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateAccountSettingRequest' delete: summary: 'Delete Account Setting' operationId: deleteApiV1AccountsByAccountSettingsByAccountSetting description: 'Delete an account setting.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/AccountSettingResponse' example: success: true data: id: aset_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 group: default type: text key: theme value: dark created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' message: 'Account setting deleted successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Account Settings' parameters: - in: path name: account description: 'Prefixed account ID.' required: true schema: type: string examples: - acc_abc123 - in: path name: account_setting description: 'Prefixed account setting ID.' required: true schema: type: string examples: - aset_abc123 '/api/v1/accounts/{account}/settings/batch': post: summary: 'Batch Account Settings' operationId: postApiV1AccountsByAccountSettingsBatch description: 'Create, update, and delete account settings in a single request.' parameters: [] responses: 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Account Settings' requestBody: required: false content: application/json: schema: $ref: '#/components/schemas/BatchAccountSettingsRequest' parameters: - in: path name: account description: 'Prefixed account ID.' required: true schema: type: string examples: - acc_abc123 '/api/v1/accounts/{account}/admin-settings': get: summary: 'List Account Admin Settings' operationId: getApiV1AccountsByAccountAdminSettings description: 'List the admin-managed configuration settings for an account.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/AccountAdminSettingResponse' example: success: true data: key: factors.email.enabled value: true message: 'Admin settings retrieved successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Account Admin Settings' put: summary: 'Upsert Account Admin Setting' operationId: putApiV1AccountsByAccountAdminSettings description: 'Set the value of one registered admin setting for an account.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/AccountAdminSettingResponse' example: success: true data: key: factors.email.enabled value: true message: 'Admin setting updated successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Account Admin Settings' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpsertAccountAdminSettingRequest' parameters: - in: path name: account description: 'Account prefixed ID.' required: true schema: type: string examples: - acc_abc123 '/api/v1/accounts/{account}/admin-settings/{key}': delete: summary: 'Delete Account Admin Setting' operationId: deleteApiV1AccountsByAccountAdminSettingsByKey description: 'Remove one registered admin setting for an account.' parameters: [] responses: 204: description: 'Admin setting deleted.' content: application/json: schema: type: - object - 'null' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[account] Account Admin Settings' parameters: - in: path name: account description: 'Account prefixed ID.' required: true schema: type: string examples: - acc_abc123 - in: path name: key description: 'Registered admin setting key.' required: true schema: type: string examples: - factors.email.enabled '/api/v1/teams/{team}/picture': post: summary: 'Upload Team Picture' operationId: postApiV1TeamsByTeamPicture description: 'Update the picture using current Team update authority.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/PictureResponse' example: success: true data: avatar_file_id: fi_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa avatar_url: 'https://assets.example.com/picture.webp' 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[media] Pictures' requestBody: required: true content: multipart/form-data: schema: $ref: '#/components/schemas/UploadPictureRequest' parameters: - in: path name: team description: 'Team public ID.' required: true schema: type: string examples: - aspernatur pattern: '^team_[A-Za-z0-9]{32}$' example: team_0123456789abcdefghijklmnopqrstuv /api/v1/me/picture: post: summary: 'Upload My Picture' operationId: postApiV1MePicture description: 'Upload a JPEG, PNG, or WebP up to 2 MiB.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/PictureResponse' example: success: true data: avatar_file_id: fi_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa avatar_url: 'https://assets.example.com/picture.webp' 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[media] Pictures' requestBody: required: true content: multipart/form-data: schema: $ref: '#/components/schemas/UploadPictureRequest' '/api/v1/accounts/{account}/picture': post: summary: 'Upload Account Picture' operationId: postApiV1AccountsByAccountPicture description: 'Update the picture using current account update authority.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/PictureResponse' example: success: true data: avatar_file_id: fi_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa avatar_url: 'https://assets.example.com/picture.webp' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[media] Pictures' requestBody: required: true content: multipart/form-data: schema: $ref: '#/components/schemas/UploadPictureRequest' parameters: - in: path name: account description: 'Account public ID.' required: true schema: type: string examples: - aspernatur /api/v1/teams: get: summary: 'List Teams' operationId: getApiV1Teams description: 'List Teams visible to the current account.' parameters: - in: query name: search description: 'Search Team names or public IDs.' required: false schema: type: string description: 'Search Team names or public IDs.' examples: - aspernatur - in: query name: sort description: 'Sort field. Prefix with - for descending order.' required: false schema: type: string description: 'Sort field. Prefix with - for descending order.' examples: - aspernatur - in: query name: 'page[number]' description: 'Page number.' required: false schema: type: integer description: 'Page number.' examples: - 1 - in: query name: 'page[size]' description: 'Items per page, maximum 100.' required: false schema: type: integer description: 'Items per page, maximum 100.' examples: - 15 responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/TeamPaginatedResponse' example: success: true data: - id: team_cb21a922bbf5a66c71a8cff2f98df9c0 name: 'Example Team' owner_account_id: acc_4c36cc1ae9ad4b9ceb043cb73e5ffd37 roles: - 'team:owner' created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' avatar_file_id: null avatar_url: null actions: - show - update - list-account - id: team_cb21a922bbf5a66c71a8cff2f98df9c0 name: 'Example Team' owner_account_id: acc_4c36cc1ae9ad4b9ceb043cb73e5ffd37 roles: - 'team:owner' created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' avatar_file_id: null avatar_url: null actions: - show - update - list-account meta: current_page: 1 last_page: 5 per_page: 15 total: 73 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 500: $ref: '#/components/responses/InternalServerError' tags: - '[team] Teams' post: summary: 'Create Team' operationId: postApiV1Teams description: 'Create a Team and assign its creator as owner.' parameters: [] responses: 201: description: '' content: application/json: schema: $ref: '#/components/schemas/TeamResponse' example: success: true data: id: team_cb21a922bbf5a66c71a8cff2f98df9c0 name: 'Example Team' owner_account_id: acc_4c36cc1ae9ad4b9ceb043cb73e5ffd37 roles: - 'team:owner' created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' avatar_file_id: null avatar_url: null actions: - show - update - list-account 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 409: description: '' content: application/json: schema: type: object properties: success: type: boolean examples: - false message: type: string examples: - 'The account already belongs to a Team.' examples: - success: false message: 'The account already belongs to a Team.' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[team] Teams' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateTeamRequest' '/api/v1/teams/{team}': get: summary: 'Get Team' operationId: getApiV1TeamsByTeam description: 'Read a Team summary.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/TeamResponse' example: success: true data: id: team_cb21a922bbf5a66c71a8cff2f98df9c0 name: 'Example Team' owner_account_id: acc_4c36cc1ae9ad4b9ceb043cb73e5ffd37 roles: - 'team:owner' created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' avatar_file_id: null avatar_url: null actions: - show - update - list-account 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[team] Teams' put: summary: 'Update Team' operationId: putApiV1TeamsByTeam description: 'Rename a Team.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/TeamResponse' example: success: true data: id: team_cb21a922bbf5a66c71a8cff2f98df9c0 name: 'Example Team' owner_account_id: acc_4c36cc1ae9ad4b9ceb043cb73e5ffd37 roles: - 'team:owner' created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' avatar_file_id: null avatar_url: null actions: - show - update - list-account 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[team] Teams' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateTeamRequest' delete: summary: 'Delete Team' operationId: deleteApiV1TeamsByTeam description: 'Delete Team data after detaching websites. Preserve accounts and independent resources.' parameters: [] responses: 200: description: '' content: application/json: schema: type: object properties: success: type: boolean examples: - true message: type: string examples: - 'Team deleted' examples: - success: true message: 'Team deleted' 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 404: $ref: '#/components/responses/NotFound' 409: description: '' content: application/json: schema: type: object properties: success: type: boolean examples: - false message: type: string examples: - 'Detach affiliated websites before deleting the Team.' examples: - success: false message: 'Detach affiliated websites before deleting the Team.' 500: $ref: '#/components/responses/InternalServerError' tags: - '[team] Teams' parameters: - in: path name: team description: 'Team public ID.' required: true schema: type: string examples: - aspernatur pattern: '^team_[A-Za-z0-9]{32}$' example: team_0123456789abcdefghijklmnopqrstuv '/api/v1/teams/{team}/accounts': get: summary: 'List Team members' operationId: getApiV1TeamsByTeamAccounts description: 'Return limited member identities and scoped role cards without general account authority.' parameters: - in: query name: search description: 'Search member identity fields.' required: false schema: type: string description: 'Search member identity fields.' examples: - aspernatur - in: query name: sort description: 'Sort field.' required: false schema: type: string description: 'Sort field.' examples: - aspernatur - in: query name: 'page[number]' description: 'Page number.' required: false schema: type: integer description: 'Page number.' examples: - 1 - in: query name: 'page[size]' description: 'Items per page, maximum 100.' required: false schema: type: integer description: 'Items per page, maximum 100.' examples: - 15 responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/TeamAccountPaginatedResponse' example: success: true data: - account: id: acc_cb21a922bbf5a66c71a8cff2f98df9c0 name: Example surname: Member email: member@example.com status: enabled roles: - id: role_4oju80peu12xkf9k6n0wbsnzve1jb1b3 name: 'team:viewer' is_owner: false joined_at: '2026-01-01T00:00:00+00:00' relationship_actions: [] - account: id: acc_cb21a922bbf5a66c71a8cff2f98df9c0 name: Example surname: Member email: member@example.com status: enabled roles: - id: role_4oju80peu12xkf9k6n0wbsnzve1jb1b3 name: 'team:viewer' is_owner: false joined_at: '2026-01-01T00:00:00+00:00' relationship_actions: [] meta: current_page: 1 last_page: 5 per_page: 15 total: 73 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[team] Accounts' parameters: - in: path name: team description: 'Team public ID.' required: true schema: type: string examples: - aspernatur pattern: '^team_[A-Za-z0-9]{32}$' example: team_0123456789abcdefghijklmnopqrstuv '/api/v1/teams/{team}/accounts/{account}/roles': put: summary: 'Replace Team member roles' operationId: putApiV1TeamsByTeamAccountsByAccountRoles description: 'Replace one complete nonempty role set. Owner roles require ownership transfer.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/TeamAccountResponse' example: success: true data: account: id: acc_cb21a922bbf5a66c71a8cff2f98df9c0 name: Example surname: Member email: member@example.com status: enabled roles: - id: role_4oju80peu12xkf9k6n0wbsnzve1jb1b3 name: 'team:viewer' is_owner: false joined_at: '2026-01-01T00:00:00+00:00' relationship_actions: [] 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 404: $ref: '#/components/responses/NotFound' 409: description: '' content: application/json: schema: type: object properties: success: type: boolean examples: - false message: type: string examples: - 'Transfer Team ownership before changing the owner roles.' examples: - success: false message: 'Transfer Team ownership before changing the owner roles.' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[team] Accounts' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ReplaceTeamAccountRolesRequest' parameters: - in: path name: team description: 'Team public ID.' required: true schema: type: string examples: - aspernatur pattern: '^team_[A-Za-z0-9]{32}$' example: team_0123456789abcdefghijklmnopqrstuv - in: path name: account description: 'Accepted member public ID.' required: true schema: type: string examples: - aspernatur pattern: '^acc_[A-Za-z0-9]{32}$' example: acc_0123456789abcdefghijklmnopqrstuv '/api/v1/teams/{team}/accounts/{account}': delete: summary: 'Remove Team member' operationId: deleteApiV1TeamsByTeamAccountsByAccount description: 'Remove managed membership and Team roles. Preserve independent resource access.' parameters: [] responses: 200: description: '' content: application/json: schema: type: object properties: success: type: boolean examples: - true message: type: string examples: - 'Team membership removed' examples: - success: true message: 'Team membership removed' 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 404: $ref: '#/components/responses/NotFound' 409: description: '' content: application/json: schema: type: object properties: success: type: boolean examples: - false message: type: string examples: - 'Transfer Team ownership before removing the owner.' examples: - success: false message: 'Transfer Team ownership before removing the owner.' 500: $ref: '#/components/responses/InternalServerError' tags: - '[team] Accounts' parameters: - in: path name: team description: 'Team public ID.' required: true schema: type: string examples: - aspernatur pattern: '^team_[A-Za-z0-9]{32}$' example: team_0123456789abcdefghijklmnopqrstuv - in: path name: account description: 'Accepted member public ID.' required: true schema: type: string examples: - aspernatur pattern: '^acc_[A-Za-z0-9]{32}$' example: acc_0123456789abcdefghijklmnopqrstuv '/api/v1/teams/{team}/transfer': post: summary: 'Transfer Team ownership' operationId: postApiV1TeamsByTeamTransfer description: 'Transfer ownership to an enabled accepted member. The previous owner becomes Admin.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/TeamResponse' example: success: true data: id: team_cb21a922bbf5a66c71a8cff2f98df9c0 name: 'Example Team' owner_account_id: acc_4c36cc1ae9ad4b9ceb043cb73e5ffd37 roles: - 'team:owner' created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' avatar_file_id: null avatar_url: null actions: - show - update - list-account 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 404: $ref: '#/components/responses/NotFound' 409: description: '' content: application/json: schema: type: object properties: success: type: boolean examples: - false message: type: string examples: - 'The account already owns this Team.' examples: - success: false message: 'The account already owns this Team.' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[team] Accounts' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/TransferTeamOwnershipRequest' parameters: - in: path name: team description: 'Team public ID.' required: true schema: type: string examples: - aspernatur pattern: '^team_[A-Za-z0-9]{32}$' example: team_0123456789abcdefghijklmnopqrstuv '/api/v1/teams/{team}/invitations': get: summary: 'List Team invitations' operationId: getApiV1TeamsByTeamInvitations description: 'List pending invitations with management IDs and scoped role cards.' parameters: - in: query name: search description: 'Search invitation email.' required: false schema: type: string description: 'Search invitation email.' examples: - aspernatur - in: query name: sort description: 'Sort field.' required: false schema: type: string description: 'Sort field.' examples: - aspernatur - in: query name: 'page[number]' description: 'Page number.' required: false schema: type: integer description: 'Page number.' examples: - 1 - in: query name: 'page[size]' description: 'Items per page, maximum 100.' required: false schema: type: integer description: 'Items per page, maximum 100.' examples: - 15 responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/TeamInvitationPaginatedResponse' example: success: true data: - id: tinv_cb21a922bbf5a66c71a8cff2f98df9c0 email: member@example.com status: pending expires_at: '2026-01-08T00:00:00+00:00' roles: - id: role_4oju80peu12xkf9k6n0wbsnzve1jb1b3 name: 'team:viewer' - id: tinv_cb21a922bbf5a66c71a8cff2f98df9c0 email: member@example.com status: pending expires_at: '2026-01-08T00:00:00+00:00' roles: - id: role_4oju80peu12xkf9k6n0wbsnzve1jb1b3 name: 'team:viewer' meta: current_page: 1 last_page: 5 per_page: 15 total: 73 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[team] Invitations' post: summary: 'Create Team invitation' operationId: postApiV1TeamsByTeamInvitations description: 'Invite a normalized email for seven days with a complete assignable role set.' parameters: [] responses: 201: description: '' content: application/json: schema: $ref: '#/components/schemas/TeamInvitationResponse' example: success: true data: id: tinv_cb21a922bbf5a66c71a8cff2f98df9c0 email: member@example.com status: pending expires_at: '2026-01-08T00:00:00+00:00' roles: - id: role_4oju80peu12xkf9k6n0wbsnzve1jb1b3 name: 'team:viewer' message: 'Team invitation created' 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 404: $ref: '#/components/responses/NotFound' 409: description: '' content: application/json: schema: type: object properties: success: type: boolean examples: - false message: type: string examples: - 'A pending invitation already exists for this email.' examples: - success: false message: 'A pending invitation already exists for this email.' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[team] Invitations' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateTeamInvitationRequest' parameters: - in: path name: team description: 'Team public ID.' required: true schema: type: string examples: - aspernatur pattern: '^team_[A-Za-z0-9]{32}$' example: team_0123456789abcdefghijklmnopqrstuv '/api/v1/teams/{team}/invitations/{team_invitation}': delete: summary: 'Revoke Team invitation' operationId: deleteApiV1TeamsByTeamInvitationsByTeamInvitation description: 'Revoke one effective pending invitation by its management ID.' parameters: [] responses: 200: description: '' content: application/json: schema: type: object properties: success: type: boolean examples: - true message: type: string examples: - 'Team invitation revoked' examples: - success: true message: 'Team invitation revoked' 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 404: $ref: '#/components/responses/NotFound' 409: description: '' content: application/json: schema: type: object properties: success: type: boolean examples: - false message: type: string examples: - 'The invitation is no longer pending.' examples: - success: false message: 'The invitation is no longer pending.' 500: $ref: '#/components/responses/InternalServerError' tags: - '[team] Invitations' parameters: - in: path name: team description: 'Team public ID.' required: true schema: type: string examples: - aspernatur pattern: '^team_[A-Za-z0-9]{32}$' example: team_0123456789abcdefghijklmnopqrstuv - in: path name: team_invitation description: 'Invitation management ID, distinct from its acceptance credential.' required: true schema: type: string examples: - aspernatur pattern: '^tinv_[A-Za-z0-9]{32}$' example: tinv_0123456789abcdefghijklmnopqrstuv '/api/v1/team-invitations/{token}/accept': post: summary: 'Accept Team invitation' operationId: postApiV1TeamInvitationsByTokenAccept description: 'Accept with a matching enabled account. Current Team policy applies after the membership commits.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/TeamResponse' example: success: true data: id: team_cb21a922bbf5a66c71a8cff2f98df9c0 name: 'Example Team' owner_account_id: acc_4c36cc1ae9ad4b9ceb043cb73e5ffd37 roles: - 'team:owner' created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' avatar_file_id: null avatar_url: null actions: - show - update - list-account 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 409: description: '' content: application/json: schema: type: object properties: success: type: boolean examples: - false message: type: string examples: - 'The account already belongs to a Team.' examples: - success: false message: 'The account already belongs to a Team.' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[team] Invitations' parameters: - in: path name: token description: 'Opaque acceptance credential.' required: true schema: type: string pattern: '^[A-Za-z0-9]{64}$' minLength: 64 maxLength: 64 example: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa '/api/v1/team-invitations/{token}': get: summary: 'Get public Team invitation' operationId: getApiV1TeamInvitationsByToken description: 'Read only Team name, status, expiry, and current policy before acceptance.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/PublicTeamInvitationResponse' example: success: true data: team_name: 'Example Team' status: pending expires_at: '2026-01-08T00:00:00+00:00' policy: require_two_factor: true minimum_password_length: 15 password_rotation_days: 0 allow_email_factor: false avatar_url: null 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[team] Invitations' security: [] parameters: - in: path name: token description: 'Opaque acceptance credential, distinct from the management ID.' required: true schema: type: string pattern: '^[A-Za-z0-9]{64}$' minLength: 64 maxLength: 64 example: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa '/api/v1/teams/{team}/roles': get: summary: 'List Team roles' operationId: getApiV1TeamsByTeamRoles description: 'Return scoped role options with role-list or account-assignment authority. Role editing requires its separate returned actions.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/TeamRoleCollectionResponse' example: success: true data: - id: role_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 name: 'team:reviewer' type: custom permissions: - 'team:show' assignable: true grantable: true actions: - update - delete - id: role_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 name: 'team:reviewer' type: custom permissions: - 'team:show' assignable: true grantable: true actions: - update - delete 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[team] Roles' post: summary: 'Create Team role' operationId: postApiV1TeamsByTeamRoles description: 'Create a Team-local role with a complete grantable permission set.' parameters: [] responses: 201: description: '' content: application/json: schema: $ref: '#/components/schemas/TeamRoleResponse' example: success: true data: id: role_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 name: 'team:reviewer' type: custom permissions: - 'team:show' assignable: true grantable: true actions: - update - delete message: 'Team role created' 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[team] Roles' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateTeamRoleRequest' parameters: - in: path name: team description: 'Team public ID.' required: true schema: type: string examples: - aspernatur pattern: '^team_[A-Za-z0-9]{32}$' example: team_0123456789abcdefghijklmnopqrstuv '/api/v1/teams/{team}/roles/permissions': get: summary: 'List grantable Team permissions' operationId: getApiV1TeamsByTeamRolesPermissions description: 'Return ordered owner-baseline groups intersected with the current actor grants.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/TeamRolePermissionGroupCollectionResponse' example: success: true data: - group: team.operations permissions: - 'team:show' - 'team:update' - group: team.operations permissions: - 'team:show' - 'team:update' 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[team] Roles' parameters: - in: path name: team description: 'Team public ID.' required: true schema: type: string examples: - aspernatur pattern: '^team_[A-Za-z0-9]{32}$' example: team_0123456789abcdefghijklmnopqrstuv '/api/v1/teams/{team}/roles/{role}': put: summary: 'Update Team role' operationId: putApiV1TeamsByTeamRolesByRole description: 'Replace a custom role permission set without changing its name.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/TeamRoleResponse' example: success: true data: id: role_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 name: 'team:reviewer' type: custom permissions: - 'team:show' assignable: true grantable: true actions: - update - delete 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[team] Roles' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateTeamRoleRequest' delete: summary: 'Delete Team role' operationId: deleteApiV1TeamsByTeamRolesByRole description: 'Delete an unused custom role. Current members or pending invitations block deletion.' parameters: [] responses: 200: description: '' content: application/json: schema: type: object properties: success: type: boolean examples: - true message: type: string examples: - 'Team role deleted' examples: - success: true message: 'Team role deleted' 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 404: $ref: '#/components/responses/NotFound' 409: description: '' content: application/json: schema: type: object properties: success: type: boolean examples: - false message: type: string examples: - 'The role is used by a member or pending invitation.' examples: - success: false message: 'The role is used by a member or pending invitation.' 500: $ref: '#/components/responses/InternalServerError' tags: - '[team] Roles' parameters: - in: path name: team description: 'Team public ID.' required: true schema: type: string examples: - aspernatur pattern: '^team_[A-Za-z0-9]{32}$' example: team_0123456789abcdefghijklmnopqrstuv - in: path name: role description: 'Team-local custom role ID.' required: true schema: type: string examples: - role_0123456789abcdef0123456789abcdef '/api/v1/teams/{team}/settings': get: summary: 'List Team settings' operationId: getApiV1TeamsByTeamSettings description: 'List configuration settings for a Team.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/TeamSettingPaginatedResponse' example: success: true data: - id: tset_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 team_id: team_4oju80peu12xkf9k6n0wbsnzve1jb1b3 group: security type: int key: password_rotation_days value: 0 created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' - id: tset_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 team_id: team_4oju80peu12xkf9k6n0wbsnzve1jb1b3 group: security type: int key: password_rotation_days value: 0 created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' meta: current_page: 1 last_page: 5 per_page: 15 total: 73 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[team] Settings' post: summary: 'Create Team setting' operationId: postApiV1TeamsByTeamSettings description: 'Create a typed configuration setting.' parameters: [] responses: 201: description: '' content: application/json: schema: $ref: '#/components/schemas/TeamSettingResponse' example: success: true data: id: tset_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 team_id: team_4oju80peu12xkf9k6n0wbsnzve1jb1b3 group: security type: int key: password_rotation_days value: 0 created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[team] Settings' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateTeamSettingRequest' parameters: - in: path name: team description: 'Team public ID.' required: true schema: type: string examples: - aspernatur pattern: '^team_[A-Za-z0-9]{32}$' example: team_0123456789abcdefghijklmnopqrstuv '/api/v1/teams/{team}/settings/{team_setting}': get: summary: 'Get Team setting' operationId: getApiV1TeamsByTeamSettingsByTeamSetting description: 'Get a typed Team setting.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/TeamSettingResponse' example: success: true data: id: tset_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 team_id: team_4oju80peu12xkf9k6n0wbsnzve1jb1b3 group: security type: int key: password_rotation_days value: 0 created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[team] Settings' put: summary: 'Update Team setting' operationId: putApiV1TeamsByTeamSettingsByTeamSetting description: 'Update the value and optionally its type. Zero disables password rotation.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/TeamSettingResponse' example: success: true data: id: tset_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 team_id: team_4oju80peu12xkf9k6n0wbsnzve1jb1b3 group: security type: int key: password_rotation_days value: 0 created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[team] Settings' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateTeamSettingRequest' delete: summary: 'Delete Team setting' operationId: deleteApiV1TeamsByTeamSettingsByTeamSetting description: 'Delete a setting. Known security keys use their configured default after deletion.' parameters: [] responses: 200: description: '' content: application/json: schema: type: object additionalProperties: false required: - success - message properties: success: type: boolean const: true message: type: string 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[team] Settings' parameters: - in: path name: team description: 'Team public ID.' required: true schema: type: string examples: - aspernatur pattern: '^team_[A-Za-z0-9]{32}$' example: team_0123456789abcdefghijklmnopqrstuv - in: path name: team_setting description: 'Team setting public ID.' required: true schema: type: string examples: - aspernatur pattern: '^tset_[A-Za-z0-9]{32}$' example: tset_0123456789abcdefghijklmnopqrstuv '/api/v1/teams/{team}/settings/batch': post: summary: 'Batch Team settings' operationId: postApiV1TeamsByTeamSettingsBatch description: 'Create, update, and delete Team settings in one request.' parameters: [] responses: 200: description: 'All requested operations succeeded.' content: application/json: schema: $ref: '#/components/schemas/TeamSettingBatchResponse' 207: description: 'One or more operations failed.' content: application/json: schema: $ref: '#/components/schemas/TeamSettingBatchResponse' 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[team] Settings' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/BatchTeamSettingsRequest' parameters: - in: path name: team description: 'Team public ID.' required: true schema: type: string examples: - aspernatur pattern: '^team_[A-Za-z0-9]{32}$' example: team_0123456789abcdefghijklmnopqrstuv '/api/v1/teams/{team}/websites': get: summary: 'List Team websites' operationId: getApiV1TeamsByTeamWebsites description: 'Return affiliation IDs and names. Website navigation requires separate website authority.' parameters: - in: query name: search description: 'Search website names.' required: false schema: type: string description: 'Search website names.' examples: - aspernatur - in: query name: sort description: 'Sort field.' required: false schema: type: string description: 'Sort field.' examples: - aspernatur - in: query name: 'page[number]' description: 'Page number.' required: false schema: type: integer description: 'Page number.' examples: - 1 - in: query name: 'page[size]' description: 'Items per page, maximum 100.' required: false schema: type: integer description: 'Items per page, maximum 100.' examples: - 15 responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/TeamWebsitePaginatedResponse' example: success: true data: - id: web_cb21a922bbf5a66c71a8cff2f98df9c0 name: 'Example Website' actions: [] - id: web_cb21a922bbf5a66c71a8cff2f98df9c0 name: 'Example Website' actions: [] meta: current_page: 1 last_page: 5 per_page: 15 total: 73 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[team] Websites' parameters: - in: path name: team description: 'Team public ID.' required: true schema: type: string examples: - aspernatur pattern: '^team_[A-Za-z0-9]{32}$' example: team_0123456789abcdefghijklmnopqrstuv /api/v1/websites: get: summary: 'List Websites' operationId: getApiV1Websites description: 'Get all websites for the authenticated account.' parameters: - in: query name: search description: 'Search term (searches name, domain).' required: false schema: type: string description: 'Search term (searches name, domain).' examples: - aspernatur - in: query name: 'filter[domain_kind]' description: 'Filter by the default domain kind. Custom means own domain. Hosted means temporary domain. Omit for all domains. Invalid values return 422.' required: false schema: type: string description: 'Filter by the default domain kind. Custom means own domain. Hosted means temporary domain. Omit for all domains. Invalid values return 422.' enum: - hosted - custom examples: - custom - in: query name: 'filter[plan]' description: 'Filter by trial, basic, advanced, or enterprise. Also accepts comma-separated plans. Filters combine with tags and search using AND.' required: false schema: type: string description: 'Filter by trial, basic, advanced, or enterprise. Also accepts comma-separated plans. Filters combine with tags and search using AND.' examples: - basic - in: query name: 'filter[plan][]' description: 'Alternative array form for multiple plans, combined with OR.' required: false schema: type: array description: 'Alternative array form for multiple plans, combined with OR.' items: type: string enum: - trial - basic - advanced - enterprise examples: - - basic - advanced - in: query name: 'filter[status]' description: 'Filter by one stored status. Invalid values and lists return 422.' required: false schema: type: string description: 'Filter by one stored status. Invalid values and lists return 422.' enum: - active - expired - disabled - pending_deletion examples: - expired - in: query name: sort description: 'Sort field, prefix with - for descending. Plan order is Trial, Basic, Advanced, Enterprise. Use -plan to reverse it. Equal values use the primary key ascending. Unsupported fields return 422.' required: false schema: type: string description: 'Sort field, prefix with - for descending. Plan order is Trial, Basic, Advanced, Enterprise. Use -plan to reverse it. Equal values use the primary key ascending. Unsupported fields return 422.' examples: - '-created_at' - in: query name: 'page[number]' description: 'Page number.' required: false schema: type: integer description: 'Page number.' examples: - 1 - in: query name: 'page[size]' description: 'Items per page (max 100).' required: false schema: type: integer description: 'Items per page (max 100).' examples: - 15 responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/WebsitePaginatedResponse' example: success: true data: - id: web_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 code: myro name: Fisher-Gerhold domain: parisian.com status: active plan: basic paid_until: '2027-01-01' active_until: '2027-01-15' deletes_on: '2027-02-16' owner: id: acc_kf9k6n0wbsnzve1jb1b3retjvy35a2x0 firstname: Izaiah lastname: Walker email: kenneth78@yahoo.com provisioning: id: ecf_953c5353e8f035a4d595b04fec3f54bd status: pending progress: ready: 2 total: 4 started_at: '2026-01-01T00:00:00+00:00' deadline_at: '2026-01-01T00:02:00+00:00' completed_at: null maintenance: false maintenance_html: null thumbnail_url: 'https://cdn.example.com/solidpixels/thumbnail-web_xyz789.webp' roles: - 'website:admin' tags: - id: tag_kojfwg3n3koga2340faf03gb9a796tht name: internal color: '#ff0000' icon: hash created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' team: null - id: web_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 code: myro name: Fisher-Gerhold domain: parisian.com status: active plan: basic paid_until: '2027-01-01' active_until: '2027-01-15' deletes_on: '2027-02-16' owner: id: acc_kf9k6n0wbsnzve1jb1b3retjvy35a2x0 firstname: Izaiah lastname: Walker email: kenneth78@yahoo.com provisioning: id: ecf_953c5353e8f035a4d595b04fec3f54bd status: pending progress: ready: 2 total: 4 started_at: '2026-01-01T00:00:00+00:00' deadline_at: '2026-01-01T00:02:00+00:00' completed_at: null maintenance: false maintenance_html: null thumbnail_url: 'https://cdn.example.com/solidpixels/thumbnail-web_xyz789.webp' roles: - 'website:admin' tags: - id: tag_kojfwg3n3koga2340faf03gb9a796tht name: internal color: '#ff0000' icon: hash created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' team: null meta: current_page: 1 last_page: 5 per_page: 15 total: 73 message: 'Websites retrieved successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Websites' post: summary: 'Create Website' operationId: postApiV1Websites description: "Create a website with its own empty library, all system libraries, and the creator's selected defaults." parameters: [] responses: 201: description: '' content: application/json: schema: $ref: '#/components/schemas/WebsiteResponse' example: success: true data: id: web_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 code: myro name: Fisher-Gerhold domain: parisian.com status: active plan: basic paid_until: '2027-01-01' active_until: '2027-01-15' deletes_on: '2027-02-16' owner: id: acc_kf9k6n0wbsnzve1jb1b3retjvy35a2x0 firstname: Izaiah lastname: Walker email: kenneth78@yahoo.com provisioning: id: ecf_953c5353e8f035a4d595b04fec3f54bd status: pending progress: ready: 2 total: 4 started_at: '2026-01-01T00:00:00+00:00' deadline_at: '2026-01-01T00:02:00+00:00' completed_at: null maintenance: false maintenance_html: null thumbnail_url: 'https://cdn.example.com/solidpixels/thumbnail-web_xyz789.webp' roles: - 'website:admin' tags: - id: tag_kojfwg3n3koga2340faf03gb9a796tht name: internal color: '#ff0000' icon: hash created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' team: null message: 'Website created successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Websites' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateWebsiteRequest' /api/v1/websites/batch: post: summary: 'Batch Websites' operationId: postApiV1WebsitesBatch description: 'Create, update, and delete websites in a single request.' parameters: [] responses: 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 409: description: 'A provisioning operation conflicts with this request.' content: application/json: schema: type: object properties: message: type: string examples: - 'A conflicting operation is in progress.' meta: type: object properties: confirmation_id: type: string examples: - ecf_0123456789abcdef0123456789abcdef entity_type: type: string examples: - backup entity_id: type: string examples: - bak_0123456789abcdef0123456789abcdef operation_key: type: string examples: - restoration status: type: string examples: - pending examples: - message: 'A conflicting operation is in progress.' meta: confirmation_id: ecf_0123456789abcdef0123456789abcdef entity_type: backup entity_id: bak_0123456789abcdef0123456789abcdef operation_key: restoration status: pending 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Websites' requestBody: required: false content: application/json: schema: $ref: '#/components/schemas/BatchWebsitesRequest' '/api/v1/websites/{website}/team': put: summary: 'Replace website Team affiliation' operationId: putApiV1WebsitesByWebsiteTeam description: 'Compare expected affiliation before replacing it. Null detaches. Preserve ownership, billing, and independent access.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/WebsiteResponse' example: success: true data: id: web_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 code: myro name: Fisher-Gerhold domain: parisian.com status: active plan: basic paid_until: '2027-01-01' active_until: '2027-01-15' deletes_on: '2027-02-16' owner: id: acc_kf9k6n0wbsnzve1jb1b3retjvy35a2x0 firstname: Izaiah lastname: Walker email: kenneth78@yahoo.com provisioning: id: ecf_953c5353e8f035a4d595b04fec3f54bd status: pending progress: ready: 2 total: 4 started_at: '2026-01-01T00:00:00+00:00' deadline_at: '2026-01-01T00:02:00+00:00' completed_at: null maintenance: false maintenance_html: null thumbnail_url: 'https://cdn.example.com/solidpixels/thumbnail-web_xyz789.webp' roles: - 'website:admin' tags: - id: tag_kojfwg3n3koga2340faf03gb9a796tht name: internal color: '#ff0000' icon: hash created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' team: null 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Permission denial or required account security remediation.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/AccountSecurityRequiredError' - type: object additionalProperties: false required: - success - message properties: success: type: boolean const: false message: type: string 404: $ref: '#/components/responses/NotFound' 409: description: '' content: application/json: schema: type: object properties: success: type: boolean examples: - false message: type: string examples: - 'The website affiliation changed. Reload and retry.' examples: - success: false message: 'The website affiliation changed. Reload and retry.' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Websites' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ReplaceWebsiteTeamRequest' parameters: - in: path name: website description: 'Website public ID.' required: true schema: type: string examples: - aspernatur pattern: '^web_[A-Za-z0-9]{32}$' example: web_0123456789abcdefghijklmnopqrstuv '/api/v1/websites/{website}': get: summary: 'Get Website' operationId: getApiV1WebsitesByWebsite description: 'Get a specific website by ID.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/WebsiteResponse' example: success: true data: id: web_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 code: myro name: Fisher-Gerhold domain: parisian.com status: active plan: basic paid_until: '2027-01-01' active_until: '2027-01-15' deletes_on: '2027-02-16' owner: id: acc_kf9k6n0wbsnzve1jb1b3retjvy35a2x0 firstname: Izaiah lastname: Walker email: kenneth78@yahoo.com provisioning: id: ecf_953c5353e8f035a4d595b04fec3f54bd status: pending progress: ready: 2 total: 4 started_at: '2026-01-01T00:00:00+00:00' deadline_at: '2026-01-01T00:02:00+00:00' completed_at: null maintenance: false maintenance_html: null thumbnail_url: 'https://cdn.example.com/solidpixels/thumbnail-web_xyz789.webp' roles: - 'website:admin' tags: - id: tag_kojfwg3n3koga2340faf03gb9a796tht name: internal color: '#ff0000' icon: hash created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' team: null message: 'Website retrieved successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Websites' put: summary: 'Update Website' operationId: putApiV1WebsitesByWebsite description: 'Update an existing website.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/WebsiteResponse' example: success: true data: id: web_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 code: myro name: Fisher-Gerhold domain: parisian.com status: active plan: basic paid_until: '2027-01-01' active_until: '2027-01-15' deletes_on: '2027-02-16' owner: id: acc_kf9k6n0wbsnzve1jb1b3retjvy35a2x0 firstname: Izaiah lastname: Walker email: kenneth78@yahoo.com provisioning: id: ecf_953c5353e8f035a4d595b04fec3f54bd status: pending progress: ready: 2 total: 4 started_at: '2026-01-01T00:00:00+00:00' deadline_at: '2026-01-01T00:02:00+00:00' completed_at: null maintenance: false maintenance_html: null thumbnail_url: 'https://cdn.example.com/solidpixels/thumbnail-web_xyz789.webp' roles: - 'website:admin' tags: - id: tag_kojfwg3n3koga2340faf03gb9a796tht name: internal color: '#ff0000' icon: hash created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' team: null message: 'Website updated successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Websites' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateWebsiteRequest' delete: summary: 'Delete Website' operationId: deleteApiV1WebsitesByWebsite description: 'Delete a website.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/WebsiteResponse' example: success: true data: id: web_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 code: myro name: Fisher-Gerhold domain: parisian.com status: active plan: basic paid_until: '2027-01-01' active_until: '2027-01-15' deletes_on: '2027-02-16' owner: id: acc_kf9k6n0wbsnzve1jb1b3retjvy35a2x0 firstname: Izaiah lastname: Walker email: kenneth78@yahoo.com provisioning: id: ecf_953c5353e8f035a4d595b04fec3f54bd status: pending progress: ready: 2 total: 4 started_at: '2026-01-01T00:00:00+00:00' deadline_at: '2026-01-01T00:02:00+00:00' completed_at: null maintenance: false maintenance_html: null thumbnail_url: 'https://cdn.example.com/solidpixels/thumbnail-web_xyz789.webp' roles: - 'website:admin' tags: - id: tag_kojfwg3n3koga2340faf03gb9a796tht name: internal color: '#ff0000' icon: hash created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' team: null message: 'Website deleted successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 409: description: 'A provisioning operation conflicts with this request.' content: application/json: schema: type: object properties: message: type: string examples: - 'A conflicting operation is in progress.' meta: type: object properties: confirmation_id: type: string examples: - ecf_0123456789abcdef0123456789abcdef entity_type: type: string examples: - backup entity_id: type: string examples: - bak_0123456789abcdef0123456789abcdef operation_key: type: string examples: - restoration status: type: string examples: - pending examples: - message: 'A conflicting operation is in progress.' meta: confirmation_id: ecf_0123456789abcdef0123456789abcdef entity_type: backup entity_id: bak_0123456789abcdef0123456789abcdef operation_key: restoration status: pending 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Websites' parameters: - in: path name: website description: 'Prefixed website ID.' required: true schema: type: string examples: - web_xyz789 '/api/v1/websites/{website}/impersonation-accounts': get: summary: 'List Builder Impersonation Accounts' operationId: getApiV1WebsitesByWebsiteImpersonationAccounts description: 'Use a first-party account JWT with current global website:impersonate authority. List eligible members with the owner first, then name and public account ID. Recovery, OAuth, and nested impersonation are rejected.' parameters: - in: query name: search description: 'Search member names and email addresses.' required: false schema: type: string description: 'Search member names and email addresses.' examples: - aspernatur - in: query name: 'page[number]' description: 'Page number.' required: false schema: type: integer description: 'Page number.' examples: - 1 - in: query name: 'page[size]' description: 'Page size, default 25 and maximum 100.' required: false schema: type: integer description: 'Page size, default 25 and maximum 100.' examples: - 25 responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/WebsiteImpersonationAccountPaginatedResponse' example: success: true data: - id: acc_ybclU1Qw1xP1SUai9vCuadh4nZOfbHQw name: Aisha surname: Runolfsdottir email: grady16@example.org roles: - id: role_u12xkf9k6n0wbsnzve1jb1b3retjvy35 name: 'website:owner' is_owner: true - id: acc_ybclU1Qw1xP1SUai9vCuadh4nZOfbHQw name: Aisha surname: Runolfsdottir email: grady16@example.org roles: - id: role_u12xkf9k6n0wbsnzve1jb1b3retjvy35 name: 'website:owner' is_owner: true meta: current_page: 1 last_page: 5 per_page: 15 total: 73 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 409: description: 'A provisioning operation conflicts with this request.' content: application/json: schema: type: object properties: message: type: string examples: - 'A conflicting operation is in progress.' meta: type: object properties: confirmation_id: type: string examples: - ecf_0123456789abcdef0123456789abcdef entity_type: type: string examples: - backup entity_id: type: string examples: - bak_0123456789abcdef0123456789abcdef operation_key: type: string examples: - restoration status: type: string examples: - pending examples: - message: 'A conflicting operation is in progress.' meta: confirmation_id: ecf_0123456789abcdef0123456789abcdef entity_type: backup entity_id: bak_0123456789abcdef0123456789abcdef operation_key: restoration status: pending 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Administration' parameters: - in: path name: website description: 'Public website ID.' required: true schema: type: string examples: - web_0123456789abcdef0123456789abcdef '/api/v1/websites/{website}/clone': post: summary: 'Clone Website' operationId: postApiV1WebsitesByWebsiteClone description: 'Copy website-owned state and create a fresh empty website-owned library. Reuse source library attachments only when the library is not website-owned. No library folders or items are copied.' parameters: [] responses: 201: description: '' content: application/json: schema: $ref: '#/components/schemas/WebsiteResponse' example: success: true data: id: web_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 code: myro name: Fisher-Gerhold domain: parisian.com status: active plan: basic paid_until: '2027-01-01' active_until: '2027-01-15' deletes_on: '2027-02-16' owner: id: acc_kf9k6n0wbsnzve1jb1b3retjvy35a2x0 firstname: Izaiah lastname: Walker email: kenneth78@yahoo.com provisioning: id: ecf_953c5353e8f035a4d595b04fec3f54bd status: pending progress: ready: 2 total: 4 started_at: '2026-01-01T00:00:00+00:00' deadline_at: '2026-01-01T00:02:00+00:00' completed_at: null maintenance: false maintenance_html: null thumbnail_url: 'https://cdn.example.com/solidpixels/thumbnail-web_xyz789.webp' roles: - 'website:admin' tags: - id: tag_kojfwg3n3koga2340faf03gb9a796tht name: internal color: '#ff0000' icon: hash created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' team: null message: 'Website cloned successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 409: description: 'A provisioning operation conflicts with this request.' content: application/json: schema: type: object properties: message: type: string examples: - 'A conflicting operation is in progress.' meta: type: object properties: confirmation_id: type: string examples: - ecf_0123456789abcdef0123456789abcdef entity_type: type: string examples: - backup entity_id: type: string examples: - bak_0123456789abcdef0123456789abcdef operation_key: type: string examples: - restoration status: type: string examples: - pending examples: - message: 'A conflicting operation is in progress.' meta: confirmation_id: ecf_0123456789abcdef0123456789abcdef entity_type: backup entity_id: bak_0123456789abcdef0123456789abcdef operation_key: restoration status: pending 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Administration' parameters: - in: path name: website description: 'Source prefixed website ID.' required: true schema: type: string examples: - web_xyz789 '/api/v1/websites/{website}/transfer': post: summary: 'Transfer Ownership' operationId: postApiV1WebsitesByWebsiteTransfer description: 'Transfer website ownership to another account.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/WebsiteResponse' example: success: true data: id: web_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 code: myro name: Fisher-Gerhold domain: parisian.com status: active plan: basic paid_until: '2027-01-01' active_until: '2027-01-15' deletes_on: '2027-02-16' owner: id: acc_kf9k6n0wbsnzve1jb1b3retjvy35a2x0 firstname: Izaiah lastname: Walker email: kenneth78@yahoo.com provisioning: id: ecf_953c5353e8f035a4d595b04fec3f54bd status: pending progress: ready: 2 total: 4 started_at: '2026-01-01T00:00:00+00:00' deadline_at: '2026-01-01T00:02:00+00:00' completed_at: null maintenance: false maintenance_html: null thumbnail_url: 'https://cdn.example.com/solidpixels/thumbnail-web_xyz789.webp' roles: - 'website:admin' tags: - id: tag_kojfwg3n3koga2340faf03gb9a796tht name: internal color: '#ff0000' icon: hash created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' team: null message: 'Website ownership transferred successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Administration' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/TransferWebsiteOwnershipRequest' parameters: - in: path name: website description: 'Prefixed website ID.' required: true schema: type: string examples: - web_xyz789 '/api/v1/websites/{website}/maintenance': put: summary: 'Toggle Website Maintenance' operationId: putApiV1WebsitesByWebsiteMaintenance description: 'Enable or disable maintenance mode for a website.' parameters: [] responses: 200: description: 'Maintenance mode updated.' content: application/json: schema: $ref: '#/components/schemas/MaintenanceStateResponse' example: success: true data: enabled: false html: '

Maintenance

' message: 'Maintenance mode updated successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Administration' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/MaintenanceStateRequest' parameters: - in: path name: website description: 'Prefixed website ID.' required: true schema: type: string examples: - web_xyz789 '/api/v1/websites/{website}/thumbnail': post: summary: 'Regenerate Website Thumbnail' operationId: postApiV1WebsitesByWebsiteThumbnail description: 'Queue a new screenshot thumbnail for the website.' parameters: [] responses: 202: description: 'Thumbnail generation queued.' content: application/json: schema: type: object properties: success: type: boolean examples: - true data: type: - string - 'null' examples: - null message: type: string examples: - 'Thumbnail generation queued' examples: - success: true data: null message: 'Thumbnail generation queued' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 409: description: 'The website is not active or is in maintenance.' content: application/json: schema: type: object properties: success: type: boolean examples: - false message: type: string examples: - 'Website thumbnail cannot be generated while the website is inactive or in maintenance' examples: - success: false message: 'Website thumbnail cannot be generated while the website is inactive or in maintenance' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Administration' parameters: - in: path name: website description: 'Prefixed website ID.' required: true schema: type: string examples: - web_xyz789 '/api/v1/admin/impersonate/{account}/{website}': post: summary: 'Impersonate Website Account' operationId: postApiV1AdminImpersonateByAccountByWebsite description: 'Use a first-party account JWT with current global website:impersonate authority. Create a website-scoped CMS SSO session as the selected assigned account. Self-selection uses normal SSO. Recovery, OAuth, and nested impersonation are rejected.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/WebsiteImpersonationResponse' example: success: true data: code: example-code expires_in: 60 url: 'https://cms.example.test/auth/sso?code=example-code' 401: $ref: '#/components/responses/Unauthenticated' 403: description: 'Account authority or network policy denied issuance.' content: application/json: schema: oneOf: - $ref: '#/components/schemas/NetworkAccessDeniedError' 404: $ref: '#/components/responses/NotFound' 409: description: 'A provisioning operation conflicts with this request.' content: application/json: schema: type: object properties: message: type: string examples: - 'A conflicting operation is in progress.' meta: type: object properties: confirmation_id: type: string examples: - ecf_0123456789abcdef0123456789abcdef entity_type: type: string examples: - backup entity_id: type: string examples: - bak_0123456789abcdef0123456789abcdef operation_key: type: string examples: - restoration status: type: string examples: - pending examples: - message: 'A conflicting operation is in progress.' meta: confirmation_id: ecf_0123456789abcdef0123456789abcdef entity_type: backup entity_id: bak_0123456789abcdef0123456789abcdef operation_key: restoration status: pending 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Administration' parameters: - in: path name: account description: 'Prefixed target account ID.' required: true schema: type: string examples: - acc_abc123 - in: path name: website description: 'Prefixed website ID.' required: true schema: type: string examples: - web_xyz789 '/api/v1/websites/{website}/domains': get: summary: 'List Domains' operationId: getApiV1WebsitesByWebsiteDomains description: 'List the domains of a website (paginated).' parameters: - in: query name: search description: 'Search term (matches the domain).' required: false schema: type: string description: 'Search term (matches the domain).' examples: - aspernatur - in: query name: sort description: 'Sort field, prefix with - for descending.' required: false schema: type: string description: 'Sort field, prefix with - for descending.' examples: - '-created_at' - in: query name: 'page[number]' description: 'Page number.' required: false schema: type: integer description: 'Page number.' examples: - 1 - in: query name: 'page[size]' description: 'Items per page (max 100).' required: false schema: type: integer description: 'Items per page (max 100).' examples: - 15 responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/WebsiteDomainPaginatedResponse' example: success: true data: - id: wd_cb21a922bbf5a66c71a8cff2f98df9c0 domain: abshire.com kind: custom role: alias is_apex: false cname_target: null dcv: null cf_status: null created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' - id: wd_cb21a922bbf5a66c71a8cff2f98df9c0 domain: abshire.com kind: custom role: alias is_apex: false cname_target: null dcv: null cf_status: null created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' meta: current_page: 1 last_page: 5 per_page: 15 total: 73 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Domains' post: summary: 'Add Domain' operationId: postApiV1WebsitesByWebsiteDomains description: 'Add a domain; custom domains are registered with Cloudflare and start pending.' parameters: [] responses: 201: description: '' content: application/json: schema: $ref: '#/components/schemas/WebsiteDomainResponse' example: success: true data: id: wd_cb21a922bbf5a66c71a8cff2f98df9c0 domain: abshire.com kind: custom role: alias is_apex: false cname_target: null dcv: null cf_status: null created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' message: 'Domain added' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Domains' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateWebsiteDomainRequest' parameters: - in: path name: website description: 'Prefixed website ID.' required: true schema: type: string examples: - web_xyz789 '/api/v1/websites/{website}/domains/{domain}': get: summary: 'Check Domain' operationId: getApiV1WebsitesByWebsiteDomainsByDomain description: 'Live Cloudflare status refresh with DNS diagnostics; resets the polling window.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/WebsiteDomainResponse' example: success: true data: id: wd_cb21a922bbf5a66c71a8cff2f98df9c0 domain: abshire.com kind: custom role: alias is_apex: false cname_target: null dcv: null cf_status: null created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Domains' patch: summary: 'Update Domain Role' operationId: patchApiV1WebsitesByWebsiteDomainsByDomain description: 'Change a domain role; promoting to default requires an active domain.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/WebsiteDomainResponse' example: success: true data: id: wd_cb21a922bbf5a66c71a8cff2f98df9c0 domain: abshire.com kind: custom role: alias is_apex: false cname_target: null dcv: null cf_status: null created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' message: 'Domain updated' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Domains' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateWebsiteDomainRequest' delete: summary: 'Remove Domain' operationId: deleteApiV1WebsitesByWebsiteDomainsByDomain description: 'Remove a non-primary domain and its Cloudflare hostname.' parameters: [] responses: 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Domains' parameters: - in: path name: website description: 'Prefixed website ID.' required: true schema: type: string examples: - web_xyz789 - in: path name: domain description: 'Prefixed domain ID.' required: true schema: type: string examples: - wd_abc123 '/api/v1/websites/{website}/domains/{domain}/pair': post: summary: 'Pair Domain' operationId: postApiV1WebsitesByWebsiteDomainsByDomainPair description: 'Register an unpaired legacy custom domain with Cloudflare.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/WebsiteDomainResponse' example: success: true data: id: wd_cb21a922bbf5a66c71a8cff2f98df9c0 domain: abshire.com kind: custom role: alias is_apex: false cname_target: null dcv: null cf_status: null created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' message: 'Domain pairing started' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Domains' parameters: - in: path name: website description: 'Prefixed website ID.' required: true schema: type: string examples: - web_xyz789 - in: path name: domain description: 'Prefixed domain ID.' required: true schema: type: string examples: - wd_abc123 '/api/v1/websites/{website}/assign-account': post: summary: 'Assign Account' operationId: postApiV1WebsitesByWebsiteAssignAccount description: 'Assign an account to the website.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/WebsiteResponse' example: success: true data: id: web_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 code: myro name: Fisher-Gerhold domain: parisian.com status: active plan: basic paid_until: '2027-01-01' active_until: '2027-01-15' deletes_on: '2027-02-16' owner: id: acc_kf9k6n0wbsnzve1jb1b3retjvy35a2x0 firstname: Izaiah lastname: Walker email: kenneth78@yahoo.com provisioning: id: ecf_953c5353e8f035a4d595b04fec3f54bd status: pending progress: ready: 2 total: 4 started_at: '2026-01-01T00:00:00+00:00' deadline_at: '2026-01-01T00:02:00+00:00' completed_at: null maintenance: false maintenance_html: null thumbnail_url: 'https://cdn.example.com/solidpixels/thumbnail-web_xyz789.webp' roles: - 'website:admin' tags: - id: tag_kojfwg3n3koga2340faf03gb9a796tht name: internal color: '#ff0000' icon: hash created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' team: null message: 'Account assigned to website successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Accounts' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AssignWebsiteAccountRequest' parameters: - in: path name: website description: 'Prefixed website ID.' required: true schema: type: string examples: - web_xyz789 '/api/v1/websites/{website}/remove-account': post: summary: 'Remove Account' operationId: postApiV1WebsitesByWebsiteRemoveAccount description: 'Remove an account from the website.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/WebsiteResponse' example: success: true data: id: web_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 code: myro name: Fisher-Gerhold domain: parisian.com status: active plan: basic paid_until: '2027-01-01' active_until: '2027-01-15' deletes_on: '2027-02-16' owner: id: acc_kf9k6n0wbsnzve1jb1b3retjvy35a2x0 firstname: Izaiah lastname: Walker email: kenneth78@yahoo.com provisioning: id: ecf_953c5353e8f035a4d595b04fec3f54bd status: pending progress: ready: 2 total: 4 started_at: '2026-01-01T00:00:00+00:00' deadline_at: '2026-01-01T00:02:00+00:00' completed_at: null maintenance: false maintenance_html: null thumbnail_url: 'https://cdn.example.com/solidpixels/thumbnail-web_xyz789.webp' roles: - 'website:admin' tags: - id: tag_kojfwg3n3koga2340faf03gb9a796tht name: internal color: '#ff0000' icon: hash created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' team: null message: 'Account removed from website successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Accounts' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/RemoveWebsiteAccountRequest' parameters: - in: path name: website description: 'Prefixed website ID.' required: true schema: type: string examples: - web_xyz789 '/api/v1/websites/{website}/accounts': get: summary: 'List Accounts' operationId: getApiV1WebsitesByWebsiteAccounts description: 'List all accounts with access to the website and their roles.' parameters: - in: query name: search description: 'Search term (searches name, surname, email).' required: false schema: type: string description: 'Search term (searches name, surname, email).' examples: - aspernatur - in: query name: sort description: 'Sort field, prefix with - for descending.' required: false schema: type: string description: 'Sort field, prefix with - for descending.' examples: - '-created_at' - in: query name: 'page[number]' description: 'Page number.' required: false schema: type: integer description: 'Page number.' examples: - 1 - in: query name: 'page[size]' description: 'Items per page (max 100).' required: false schema: type: integer description: 'Items per page (max 100).' examples: - 15 responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/WebsiteAccountPaginatedResponse' example: success: true data: - account: id: acc_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 name: Aisha surname: Runolfsdottir username: grady16 email: green16@example.net status: enabled actions: [] roles: - id: role_kf9k6n0wbsnzve1jb1b3retjvy35a2x0 name: 'website:owner' is_owner: true joined_at: '2026-01-01T00:00:00+00:00' relationship_actions: [] - account: id: acc_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 name: Aisha surname: Runolfsdottir username: grady16 email: green16@example.net status: enabled actions: [] roles: - id: role_kf9k6n0wbsnzve1jb1b3retjvy35a2x0 name: 'website:owner' is_owner: true joined_at: '2026-01-01T00:00:00+00:00' relationship_actions: [] meta: current_page: 1 last_page: 5 per_page: 15 total: 73 message: 'Accounts retrieved successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Accounts' parameters: - in: path name: website description: 'Prefixed website ID.' required: true schema: type: string examples: - web_xyz789 '/api/v1/websites/{website}/accounts/{account}/roles': put: summary: 'Replace Account Roles' operationId: putApiV1WebsitesByWebsiteAccountsByAccountRoles description: 'Replace supplied Console and website role sections for a member.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/WebsiteAccountRolesResponse' example: success: true data: console_roles: - 'console:account' website_roles: - id: role_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 name: 'website:publisher' type: custom permissions: - 'website:page:list' assignable: true actions: - update - delete message: 'Account roles updated successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' description: 'When the actor cannot change a supplied role section.' 404: $ref: '#/components/responses/NotFound' description: 'When the website is inaccessible or the target membership does not exist.' 422: $ref: '#/components/responses/ValidationFailed' description: 'When the request body, target invariant, or section validation fails.' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Accounts' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ReplaceWebsiteAccountRolesRequest' parameters: - in: path name: website description: 'Prefixed website ID.' required: true schema: type: string examples: - web_xyz789 - in: path name: account description: 'Prefixed account ID.' required: true schema: type: string examples: - acc_abc123 '/api/v1/websites/{website}/accounts/{account_id}': delete: summary: 'Remove Account' operationId: deleteApiV1WebsitesByWebsiteAccountsByAccountId description: 'Remove an account from the website.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/WebsiteResponse' example: success: true data: id: web_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 code: myro name: Fisher-Gerhold domain: parisian.com status: active plan: basic paid_until: '2027-01-01' active_until: '2027-01-15' deletes_on: '2027-02-16' owner: id: acc_kf9k6n0wbsnzve1jb1b3retjvy35a2x0 firstname: Izaiah lastname: Walker email: kenneth78@yahoo.com provisioning: id: ecf_953c5353e8f035a4d595b04fec3f54bd status: pending progress: ready: 2 total: 4 started_at: '2026-01-01T00:00:00+00:00' deadline_at: '2026-01-01T00:02:00+00:00' completed_at: null maintenance: false maintenance_html: null thumbnail_url: 'https://cdn.example.com/solidpixels/thumbnail-web_xyz789.webp' roles: - 'website:admin' tags: - id: tag_kojfwg3n3koga2340faf03gb9a796tht name: internal color: '#ff0000' icon: hash created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' team: null message: 'Account removed from website successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Accounts' parameters: - in: path name: website description: 'Prefixed website ID.' required: true schema: type: string examples: - web_xyz789 - in: path name: account_id description: 'Prefixed account ID to remove.' required: true schema: type: string examples: - acc_abc123 '/api/v1/websites/{website}/roles': get: summary: 'List Roles' operationId: getApiV1WebsitesByWebsiteRoles description: 'List built-in and custom roles available in the website.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/WebsiteRoleCollectionResponse' example: success: true data: - id: role_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 name: 'website:publisher' type: custom permissions: - 'website:page:list' assignable: true actions: - update - delete - id: role_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 name: 'website:publisher' type: custom permissions: - 'website:page:list' assignable: true actions: - update - delete message: 'Roles retrieved successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Roles' post: summary: 'Create Role' operationId: postApiV1WebsitesByWebsiteRoles description: 'Create a custom role in the website.' parameters: [] responses: 201: description: '' content: application/json: schema: $ref: '#/components/schemas/WebsiteRoleResponse' example: success: true data: id: role_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 name: 'website:publisher' type: custom permissions: - 'website:page:list' assignable: true actions: - update - delete message: 'Role created successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Roles' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateWebsiteRoleRequest' parameters: - in: path name: website description: 'Prefixed website ID.' required: true schema: type: string examples: - web_xyz789 '/api/v1/websites/{website}/roles/permissions': get: summary: 'List Grantable Permissions' operationId: getApiV1WebsitesByWebsiteRolesPermissions description: 'List permission groups that the current account can grant to a custom role.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/WebsiteRolePermissionGroupCollectionResponse' example: success: true data: - group: website.pages permissions: - 'website:page:create' - 'website:page:list' - group: website.pages permissions: - 'website:page:create' - 'website:page:list' message: 'Grantable permissions retrieved successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Roles' parameters: - in: path name: website description: 'Prefixed website ID.' required: true schema: type: string examples: - web_xyz789 '/api/v1/websites/{website}/roles/{role}': put: summary: 'Update Role' operationId: putApiV1WebsitesByWebsiteRolesByRole description: 'Replace all permissions on a custom website role.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/WebsiteRoleResponse' example: success: true data: id: role_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 name: 'website:publisher' type: custom permissions: - 'website:page:list' assignable: true actions: - update - delete message: 'Role updated successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Roles' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateWebsiteRoleRequest' delete: summary: 'Delete Role' operationId: deleteApiV1WebsitesByWebsiteRolesByRole description: 'Delete an unused custom website role.' parameters: [] responses: 200: description: 'Role deleted successfully.' content: application/json: schema: type: object properties: success: type: boolean const: true data: type: 'null' message: type: string const: 'Role deleted successfully' required: - success - data - message 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 409: description: 'The role is still in use.' content: application/json: schema: type: object properties: success: type: boolean examples: - false message: type: string examples: - 'The role is assigned to a member or pending invitation and cannot be deleted.' examples: - success: false message: 'The role is assigned to a member or pending invitation and cannot be deleted.' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Roles' parameters: - in: path name: website description: 'Prefixed website ID.' required: true schema: type: string examples: - web_xyz789 - in: path name: role description: 'Custom role ID.' required: true schema: type: string examples: - role_0123456789abcdef0123456789abcdef '/api/v1/websites/{website}/invitations/roles': get: summary: 'List Assignable Roles' operationId: getApiV1WebsitesByWebsiteInvitationsRoles description: 'List roles that can be assigned via invitation.' parameters: - in: query name: search description: 'Search term (searches name).' required: false schema: type: string description: 'Search term (searches name).' examples: - aspernatur - in: query name: sort description: 'Sort field, prefix with - for descending.' required: false schema: type: string description: 'Sort field, prefix with - for descending.' examples: - name - in: query name: 'page[number]' description: 'Page number.' required: false schema: type: integer description: 'Page number.' examples: - 1 - in: query name: 'page[size]' description: 'Items per page (max 100).' required: false schema: type: integer description: 'Items per page (max 100).' examples: - 15 responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/WebsiteRolePaginatedResponse' example: success: true data: - id: role_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 name: 'website:publisher' type: custom permissions: - 'website:page:list' assignable: true actions: - update - delete - id: role_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 name: 'website:publisher' type: custom permissions: - 'website:page:list' assignable: true actions: - update - delete meta: current_page: 1 last_page: 5 per_page: 15 total: 73 message: 'Assignable roles retrieved successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Invitations' parameters: - in: path name: website description: 'Prefixed website ID.' required: true schema: type: string examples: - web_0123456789abcdef0123456789abcdef '/api/v1/websites/{website}/invitations': get: summary: 'List Invitations' operationId: getApiV1WebsitesByWebsiteInvitations description: 'List invitations for a website.' parameters: - in: query name: 'page[number]' description: 'Page number.' required: false schema: type: integer description: 'Page number.' examples: - 1 - in: query name: 'page[size]' description: 'Items per page (max 100).' required: false schema: type: integer description: 'Items per page (max 100).' examples: - 15 responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/WebsiteInvitationPaginatedResponse' example: success: true data: - id: winv_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 email: runolfsdottir.jeffrey@gmail.com token: peu12xkf9k6n0wbsnzve1jb1b3retjvy35a2x0a9dpw6pgb8pnh17o5r1byozkr5 roles: - id: role_t1l740z603v5gzx7wlkojfwg3n3koga2 name: 'website:publisher' type: custom permissions: - 'website:page:list' assignable: true actions: - update - delete status: pending invited_by: id: acc_faf03gb9a796thtl6untrsf4893vczmp name: 'Bethel Moen' expires_at: '2026-01-08T00:00:00+00:00' accepted_at: null is_expired: false created_at: '2026-01-01T00:00:00+00:00' - id: winv_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 email: runolfsdottir.jeffrey@gmail.com token: peu12xkf9k6n0wbsnzve1jb1b3retjvy35a2x0a9dpw6pgb8pnh17o5r1byozkr5 roles: - id: role_t1l740z603v5gzx7wlkojfwg3n3koga2 name: 'website:publisher' type: custom permissions: - 'website:page:list' assignable: true actions: - update - delete status: pending invited_by: id: acc_faf03gb9a796thtl6untrsf4893vczmp name: 'Bethel Moen' expires_at: '2026-01-08T00:00:00+00:00' accepted_at: null is_expired: false created_at: '2026-01-01T00:00:00+00:00' meta: current_page: 1 last_page: 5 per_page: 15 total: 73 message: 'Invitations retrieved successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Invitations' post: summary: 'Create Invitation' operationId: postApiV1WebsitesByWebsiteInvitations description: 'Create a new invitation to grant website access with specified roles.' parameters: [] responses: 201: description: '' content: application/json: schema: $ref: '#/components/schemas/WebsiteInvitationResponse' example: success: true data: id: winv_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 email: runolfsdottir.jeffrey@gmail.com token: peu12xkf9k6n0wbsnzve1jb1b3retjvy35a2x0a9dpw6pgb8pnh17o5r1byozkr5 roles: - id: role_t1l740z603v5gzx7wlkojfwg3n3koga2 name: 'website:publisher' type: custom permissions: - 'website:page:list' assignable: true actions: - update - delete status: pending invited_by: id: acc_faf03gb9a796thtl6untrsf4893vczmp name: 'Bethel Moen' expires_at: '2026-01-08T00:00:00+00:00' accepted_at: null is_expired: false created_at: '2026-01-01T00:00:00+00:00' message: 'Invitation sent successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Invitations' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateWebsiteInvitationRequest' parameters: - in: path name: website description: 'Prefixed website ID.' required: true schema: type: string examples: - web_0123456789abcdef0123456789abcdef '/api/v1/websites/{website}/invitations/{website_invitation}': delete: summary: 'Revoke Invitation' operationId: deleteApiV1WebsitesByWebsiteInvitationsByWebsiteInvitation description: 'Revoke a pending invitation.' parameters: [] responses: 200: description: 'Invitation revoked successfully.' content: application/json: schema: type: object properties: success: type: boolean examples: - true message: type: string examples: - 'Invitation revoked successfully' examples: - success: true message: 'Invitation revoked successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Invitations' parameters: - in: path name: website description: 'Prefixed website ID.' required: true schema: type: string examples: - web_0123456789abcdef0123456789abcdef - in: path name: website_invitation description: 'Prefixed invitation ID.' required: true schema: type: string examples: - winv_0123456789abcdef0123456789abcdef '/api/v1/invitations/{token}': get: summary: 'Get Invitation by Token' operationId: getApiV1InvitationsByToken description: 'Get invitation details by token. Public endpoint for displaying invitation info before accepting.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/WebsiteInvitationDetailsResponse' example: success: true data: email: cortez69@hotmail.com roles: - name: 'website:admin' status: pending website_name: 'Wisozk Ltd' website_domain: fahey.com invited_by: 'Emmett Windler' expires_at: '2026-01-08T00:00:00+00:00' is_expired: false requires_registration: true message: 'Invitation details retrieved successfully' 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Invitations' security: [] parameters: - in: path name: token description: 'Invitation token.' required: true schema: type: string examples: - abc123... '/api/v1/invitations/{token}/accept': post: summary: 'Accept Invitation' operationId: postApiV1InvitationsByTokenAccept description: 'Accept an invitation. Requires authenticated user with matching email.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/WebsiteInvitationResponse' example: success: true data: id: winv_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 email: runolfsdottir.jeffrey@gmail.com token: peu12xkf9k6n0wbsnzve1jb1b3retjvy35a2x0a9dpw6pgb8pnh17o5r1byozkr5 roles: - id: role_t1l740z603v5gzx7wlkojfwg3n3koga2 name: 'website:publisher' type: custom permissions: - 'website:page:list' assignable: true actions: - update - delete status: pending invited_by: id: acc_faf03gb9a796thtl6untrsf4893vczmp name: 'Bethel Moen' expires_at: '2026-01-08T00:00:00+00:00' accepted_at: null is_expired: false created_at: '2026-01-01T00:00:00+00:00' message: 'Invitation accepted successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Invitations' parameters: - in: path name: token description: 'Invitation token.' required: true schema: type: string examples: - abc123... '/api/v1/websites/{website}/redirects': get: summary: 'List Redirects' operationId: getApiV1WebsitesByWebsiteRedirects description: 'Get all redirects for a website.' parameters: - in: query name: search description: 'Search term (searches source_path, destination_url).' required: false schema: type: string description: 'Search term (searches source_path, destination_url).' examples: - aspernatur - in: query name: sort description: 'Sort field, prefix with - for descending.' required: false schema: type: string description: 'Sort field, prefix with - for descending.' examples: - '-created_at' - in: query name: 'page[number]' description: 'Page number.' required: false schema: type: integer description: 'Page number.' examples: - 1 - in: query name: 'page[size]' description: 'Items per page (max 100).' required: false schema: type: integer description: 'Items per page (max 100).' examples: - 15 responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/WebsiteRedirectPaginatedResponse' example: success: true data: - id: wred_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 website_id: web_4oju80peu12xkf9k6n0wbsnzve1jb1b3 source_path: /old-page destination_url: /new-page type: '301' is_active: true is_source_case_sensitive: false is_destination_case_sensitive: false created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' - id: wred_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 website_id: web_4oju80peu12xkf9k6n0wbsnzve1jb1b3 source_path: /old-page destination_url: /new-page type: '301' is_active: true is_source_case_sensitive: false is_destination_case_sensitive: false created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' meta: current_page: 1 last_page: 5 per_page: 15 total: 73 message: 'Website redirects retrieved successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Redirects' post: summary: 'Create Redirect' operationId: postApiV1WebsitesByWebsiteRedirects description: 'Create a new redirect for a website.' parameters: [] responses: 201: description: '' content: application/json: schema: $ref: '#/components/schemas/WebsiteRedirectResponse' example: success: true data: id: wred_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 website_id: web_4oju80peu12xkf9k6n0wbsnzve1jb1b3 source_path: /old-page destination_url: /new-page type: '301' is_active: true is_source_case_sensitive: false is_destination_case_sensitive: false created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' message: 'Website redirect created successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Redirects' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateWebsiteRedirectRequest' parameters: - in: path name: website description: 'Prefixed website ID.' required: true schema: type: string examples: - web_xyz789 '/api/v1/websites/{website}/redirects/batch': post: summary: 'Batch Redirects' operationId: postApiV1WebsitesByWebsiteRedirectsBatch description: 'Create, update, and delete redirects in a single request.' parameters: [] responses: 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Redirects' requestBody: required: false content: application/json: schema: $ref: '#/components/schemas/BatchWebsiteRedirectsRequest' parameters: - in: path name: website description: 'Prefixed website ID.' required: true schema: type: string examples: - web_xyz789 '/api/v1/websites/{website}/redirects/{website_redirect}': get: summary: 'Get Redirect' operationId: getApiV1WebsitesByWebsiteRedirectsByWebsiteRedirect description: 'Get a specific redirect for a website.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/WebsiteRedirectResponse' example: success: true data: id: wred_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 website_id: web_4oju80peu12xkf9k6n0wbsnzve1jb1b3 source_path: /old-page destination_url: /new-page type: '301' is_active: true is_source_case_sensitive: false is_destination_case_sensitive: false created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' message: 'Website redirect retrieved successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Redirects' put: summary: 'Update Redirect' operationId: putApiV1WebsitesByWebsiteRedirectsByWebsiteRedirect description: 'Update a specific redirect for a website.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/WebsiteRedirectResponse' example: success: true data: id: wred_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 website_id: web_4oju80peu12xkf9k6n0wbsnzve1jb1b3 source_path: /old-page destination_url: /new-page type: '301' is_active: true is_source_case_sensitive: false is_destination_case_sensitive: false created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' message: 'Website redirect updated successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Redirects' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateWebsiteRedirectRequest' delete: summary: 'Delete Redirect' operationId: deleteApiV1WebsitesByWebsiteRedirectsByWebsiteRedirect description: 'Delete a specific redirect for a website.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/WebsiteRedirectResponse' example: success: true data: id: wred_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 website_id: web_4oju80peu12xkf9k6n0wbsnzve1jb1b3 source_path: /old-page destination_url: /new-page type: '301' is_active: true is_source_case_sensitive: false is_destination_case_sensitive: false created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' message: 'Website redirect deleted successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Redirects' parameters: - in: path name: website description: 'Prefixed website ID.' required: true schema: type: string examples: - web_xyz789 - in: path name: website_redirect description: 'Prefixed redirect ID.' required: true schema: type: string examples: - rdr_abc123 '/api/v1/websites/{website}/redirects/{website_redirect}/activate': post: summary: 'Activate Redirect' operationId: postApiV1WebsitesByWebsiteRedirectsByWebsiteRedirectActivate description: 'Activate a specific redirect.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/WebsiteRedirectResponse' example: success: true data: id: wred_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 website_id: web_4oju80peu12xkf9k6n0wbsnzve1jb1b3 source_path: /old-page destination_url: /new-page type: '301' is_active: true is_source_case_sensitive: false is_destination_case_sensitive: false created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' message: 'Website redirect activated successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Redirects' parameters: - in: path name: website description: 'Prefixed website ID.' required: true schema: type: string examples: - web_xyz789 - in: path name: website_redirect description: 'Prefixed redirect ID.' required: true schema: type: string examples: - rdr_abc123 '/api/v1/websites/{website}/redirects/{website_redirect}/deactivate': post: summary: 'Deactivate Redirect' operationId: postApiV1WebsitesByWebsiteRedirectsByWebsiteRedirectDeactivate description: 'Deactivate a specific redirect.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/WebsiteRedirectResponse' example: success: true data: id: wred_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 website_id: web_4oju80peu12xkf9k6n0wbsnzve1jb1b3 source_path: /old-page destination_url: /new-page type: '301' is_active: true is_source_case_sensitive: false is_destination_case_sensitive: false created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' message: 'Website redirect deactivated successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Redirects' parameters: - in: path name: website description: 'Prefixed website ID.' required: true schema: type: string examples: - web_xyz789 - in: path name: website_redirect description: 'Prefixed redirect ID.' required: true schema: type: string examples: - rdr_abc123 '/api/v1/websites/{website}/redirects/{website_redirect}/toggle': post: summary: 'Toggle Redirect' operationId: postApiV1WebsitesByWebsiteRedirectsByWebsiteRedirectToggle description: 'Toggle active state of a specific redirect.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/WebsiteRedirectResponse' example: success: true data: id: wred_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 website_id: web_4oju80peu12xkf9k6n0wbsnzve1jb1b3 source_path: /old-page destination_url: /new-page type: '301' is_active: true is_source_case_sensitive: false is_destination_case_sensitive: false created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' message: 'Website redirect toggled successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Redirects' parameters: - in: path name: website description: 'Prefixed website ID.' required: true schema: type: string examples: - web_xyz789 - in: path name: website_redirect description: 'Prefixed redirect ID.' required: true schema: type: string examples: - rdr_abc123 '/api/v1/websites/{website}/headers': get: summary: 'List Headers' operationId: getApiV1WebsitesByWebsiteHeaders description: 'Get all response headers for a website.' parameters: - in: query name: search description: 'Search term (searches name).' required: false schema: type: string description: 'Search term (searches name).' examples: - aspernatur - in: query name: sort description: 'Sort field, prefix with - for descending.' required: false schema: type: string description: 'Sort field, prefix with - for descending.' examples: - '-created_at' - in: query name: 'page[number]' description: 'Page number.' required: false schema: type: integer description: 'Page number.' examples: - 1 - in: query name: 'page[size]' description: 'Items per page (max 100).' required: false schema: type: integer description: 'Items per page (max 100).' examples: - 15 responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/WebsiteHeaderPaginatedResponse' example: success: true data: - id: wh_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 website_id: web_4oju80peu12xkf9k6n0wbsnzve1jb1b3 name: X-Custom-Header value: custom-value protected: false blocked: false created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' - id: wh_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 website_id: web_4oju80peu12xkf9k6n0wbsnzve1jb1b3 name: X-Custom-Header value: custom-value protected: false blocked: false created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' meta: current_page: 1 last_page: 5 per_page: 15 total: 73 message: 'Website headers retrieved successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Headers' post: summary: 'Create Header' operationId: postApiV1WebsitesByWebsiteHeaders description: 'Create a new response header for a website.' parameters: [] responses: 201: description: '' content: application/json: schema: $ref: '#/components/schemas/WebsiteHeaderResponse' example: success: true data: id: wh_gzu16lymnbzhqmyw7hikcnvqf9kxfd84 website_id: web_4oju80peu12xkf9k6n0wbsnzve1jb1b3 name: X-Custom-Header value: custom-value protected: false blocked: false created_at: '2026-01-01T00:00:00+00:00' updated_at: '2026-01-01T00:00:00+00:00' message: 'Website header created successfully' 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Headers' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateWebsiteHeaderRequest' parameters: - in: path name: website description: 'Prefixed website ID.' required: true schema: type: string examples: - web_xyz789 '/api/v1/websites/{website}/headers/batch': post: summary: 'Batch Headers' operationId: postApiV1WebsitesByWebsiteHeadersBatch description: 'Create, update, and delete headers in a single request.' parameters: [] responses: 401: $ref: '#/components/responses/Unauthenticated' 403: $ref: '#/components/responses/Forbidden' 404: $ref: '#/components/responses/NotFound' 422: $ref: '#/components/responses/ValidationFailed' 500: $ref: '#/components/responses/InternalServerError' tags: - '[website] Headers' requestBody: required: false content: application/json: schema: $ref: '#/components/schemas/BatchWebsiteHeadersRequest' parameters: - in: path name: website description: 'Prefixed website ID.' required: true schema: type: string examples: - web_xyz789 '/api/v1/websites/{website}/headers/csp': get: summary: 'Get CSP Additions' operationId: getApiV1WebsitesByWebsiteHeadersCsp description: 'Get the CSP presets, custom sources, and website headers that replace the default policy. Ingress adds these sources to the default Content Security Policy.' parameters: [] responses: 200: description: '' content: application/json: schema: $ref: '#/components/schemas/WebsiteHeaderCspResponse' example: success: true data: directives: - script-src - style-src - img-src - font-src - media-src - connect-src - frame-src presets: - key: inline-js label: 'Inline JavaScript' help: 'Allows