{"openapi":"3.0.3","info":{"title":"Clerk Platform API","x-logo":{"url":"https://clerk.com/_next/image?url=%2Fimages%2Fclerk-logo.svg&w=96&q=75","altText":"Clerk docs","href":"https://clerk.com/docs"},"contact":{"email":"support@clerk.com","name":"Clerk Platform Team","url":"https://clerk.com/support"},"description":"The Clerk REST Platform API, for programmatic management of resources of a workspace.\n\n> [!note]\n> This API is currently in private beta. If you'd like access for your workspace, please fill out and submit our [request form](https://clerkdev.notion.site/2df2b9ab44fe803f9031e9f3185c5e19).","version":"BETA","termsOfService":"https://clerk.com/terms","license":{"name":"MIT","url":"https://github.com/clerk/openapi-specs/blob/main/LICENSE"}},"servers":[{"url":"https://api.clerk.com/v1"}],"security":[{"platform_api_access_token":[]}],"tags":[{"name":"Applications","description":"An object representing a Clerk application. Each `application` can have multiple `instances`, typically one for development and one for production, each with distinct user pools."},{"name":"Principal","description":"The credential that authenticated a request, and what it is allowed to do."},{"name":"Domains","description":"An object representing a domain associated with a Clerk application. In development `instances`, a domain is provided by Clerk. Production `instances` require additional configuration to be set up."},{"name":"Domain Intents","description":"An object representing the intent to create a Clerk domain.\nThe high-level for domain intent consumption:\n1. Create a domain intent, and receive the DNS records for the future domain to function. 2. Create a domain, supplying the intent ID."},{"name":"Application Transfers","description":"An object representing a transfer request for an application between workspaces.\n\nThe high-level flow for application transfer:\n\n1. The initial workspace can create an application transfer. A single-use `code` will be generated which may be distributed to any end-user of Clerk.\n2. The code must be claimed through the clerk dashboard: https://dashboard.clerk.com/apps/transfer?code=<...>\n\nNote that once a transfer is claimed, the original workspace will no longer have access to the application."},{"name":"Users","description":"Operations for managing users within an application instance."},{"name":"Instance Organizations","description":"Organizations belonging to a customer application instance, rather than Clerk workspaces."},{"name":"JWT Templates","description":"Operations for managing JWT templates within an application instance."},{"name":"Redirect URLs","description":"Operations for managing redirect URLs within an application instance."},{"name":"Native Applications","description":"Operations for configuring Native API support and registering native applications with an application instance."},{"name":"OAuth","description":"Operations for the OAuth authorization server an instance runs: the protected resources registered on it, including MCP servers, and its instance-wide settings."},{"name":"Config","description":"Operations for managing instance configuration. The config API provides a unified interface for reading and updating instance settings, including authentication methods, SSO connections, and other instance-level configuration options."}],"externalDocs":{"url":"https://clerk.com/docs"},"paths":{"/platform/applications/{applicationID}/instances/{envOrInsID}/logs":{"get":{"operationId":"PlatformListInstanceLogs","tags":["Application Logs"],"summary":"List grouped application logs","description":"Returns groups and standalone events, newest first. Groups sort by their start time. Event filters retain groups and restrict their event previews; first_event can be outside those filters. Status is null until the flow concludes or, for a sign-in or sign-up, its abandon deadline passes. An empty page with next_page_status=unknown can be continued using cursor.starting_after. Group filters exclude standalone events. Only forward pagination is supported. Requires `application_logs:read`. Payload fields, payload filtering, and full event payloads are not supported. `user_id` and `identifier` cannot be combined with each other or with `actor` or `subject`.","security":[{"platform_api_access_token":[]}],"parameters":[{"$ref":"#/components/parameters/applicationID"},{"$ref":"#/components/parameters/envOrInsID"},{"$ref":"#/components/parameters/user_id"},{"$ref":"#/components/parameters/identifier"},{"$ref":"#/components/parameters/type"},{"$ref":"#/components/parameters/actor"},{"$ref":"#/components/parameters/subject"},{"$ref":"#/components/parameters/trace_id"},{"$ref":"#/components/parameters/session_id"},{"$ref":"#/components/parameters/client_id"},{"$ref":"#/components/parameters/impersonator_user_id"},{"$ref":"#/components/parameters/ip_address"},{"$ref":"#/components/parameters/filter_match"},{"$ref":"#/components/parameters/event_time_after"},{"$ref":"#/components/parameters/event_time_before"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/starting_after"},{"$ref":"#/components/parameters/group_type"},{"$ref":"#/components/parameters/status"}],"responses":{"200":{"description":"Application log metadata with cursor pagination.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupedLogList"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"503":{"description":"Application log storage is not configured or is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClerkErrors"}}}}}}},"/platform/applications/{applicationID}/instances/{envOrInsID}/logs/groups/{groupID}/events":{"get":{"operationId":"PlatformListInstanceLogGroupEvents","tags":["Application Logs"],"summary":"List events in an application log group","description":"Returns matching events oldest first. Pass the group's events_cursor as starting_after (and optionally its started_at), retaining the original event filters. List cursors cannot be used here. Time bounds select groups by their start in the grouped list; group expansion reads events across the flow lifetime, subject to retention. Only forward pagination is supported. Requires `application_logs:read`. Payload fields, payload filtering, and full event payloads are not supported. `user_id` and `identifier` cannot be combined with each other or with `actor` or `subject`.","security":[{"platform_api_access_token":[]}],"parameters":[{"$ref":"#/components/parameters/applicationID"},{"$ref":"#/components/parameters/envOrInsID"},{"$ref":"#/components/parameters/user_id"},{"$ref":"#/components/parameters/identifier"},{"$ref":"#/components/parameters/type"},{"$ref":"#/components/parameters/actor"},{"$ref":"#/components/parameters/subject"},{"$ref":"#/components/parameters/trace_id"},{"$ref":"#/components/parameters/session_id"},{"$ref":"#/components/parameters/client_id"},{"$ref":"#/components/parameters/impersonator_user_id"},{"$ref":"#/components/parameters/ip_address"},{"$ref":"#/components/parameters/filter_match"},{"$ref":"#/components/parameters/event_time_after"},{"$ref":"#/components/parameters/event_time_before"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/starting_after"},{"$ref":"#/components/parameters/groupID"},{"$ref":"#/components/parameters/started_at"}],"responses":{"200":{"description":"Application log metadata with cursor pagination.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupEventList"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"503":{"description":"Application log storage is not configured or is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClerkErrors"}}}}}}},"/platform/applications/{applicationID}/instances/{envOrInsID}/users/{userID}/organization_memberships":{"get":{"operationId":"PlatformListUserOrganizationMemberships","x-speakeasy-group":"platform","x-speakeasy-name-override":"listUserOrganizationMemberships","tags":["Instance Organizations"],"summary":"List a user's organization memberships","description":"Returns the Backend API membership objects, including roles, permissions, nested\norganizations, public user data, and organization and membership private metadata.\nMemberships are ordered newest first by membership creation time. The user must\nbelong to the selected application instance. Organizations must be enabled.\nRequires both `organizations:read` and `users:read` scopes.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","required":true,"description":"Application ID.","schema":{"type":"string"}},{"name":"envOrInsID","in":"path","required":true,"description":"Development, production, or a full instance ID.","schema":{"type":"string"}},{"name":"userID","in":"path","required":true,"description":"ID of a user in the selected instance.","schema":{"type":"string"}},{"name":"limit","in":"query","description":"Page size. Values outside 1 to 500 use the default of 10.","schema":{"type":"integer","default":10}},{"name":"offset","in":"query","description":"Memberships to skip. Negative values are treated as zero.","schema":{"type":"integer","default":0}}],"responses":{"200":{"$ref":"#/components/responses/OrganizationMemberships"},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}}}},"/platform/applications/{applicationID}/instances/{envOrInsID}/organizations/{organizationID}/memberships":{"get":{"operationId":"PlatformListInstanceOrganizationMemberships","x-speakeasy-group":"platform","x-speakeasy-name-override":"listInstanceOrganizationMemberships","tags":["Instance Organizations"],"summary":"List members of an organization in an application instance","description":"Lists memberships with roles, permissions, organization and public user data.\nSupports Backend API membership filters and pagination, and returns the same\nmembership objects, including membership and organization private metadata.\nRequires both `organizations:read` and `users:read`, and organizations enabled on the instance.\nThe organization must belong to the selected instance.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","required":true,"schema":{"type":"string"}},{"name":"envOrInsID","in":"path","required":true,"description":"Development, production, or a full instance ID.","schema":{"type":"string"}},{"name":"organizationID","in":"path","required":true,"schema":{"type":"string"}},{"in":"query","required":false,"name":"order_by","description":"Sorts organization memberships by phone_number, email_address, created_at, first_name, last_name, username, or role.\nBy prepending one of those values with + or -, we can choose to sort in ascending (ASC) or descending (DESC) order.","schema":{"type":"string"}},{"name":"user_id","in":"query","schema":{"type":"array","items":{"type":"string"}},"description":"Returns memberships for the literal user IDs specified. IDs are not interpreted as\ninclude/exclude expressions. Any user IDs not found are ignored.","required":false},{"name":"email_address","in":"query","schema":{"type":"array","items":{"type":"string"}},"description":"Returns users with the specified email addresses. Accepts up to 100 email addresses. Any email addresses not found are ignored.","required":false},{"name":"phone_number","in":"query","schema":{"type":"array","items":{"type":"string"}},"description":"Returns users with the specified phone numbers. Accepts up to 100 phone numbers. Any phone numbers not found are ignored.","required":false},{"name":"username","in":"query","schema":{"type":"array","items":{"type":"string"}},"description":"Returns users with the specified usernames.\nAccepts up to 100 usernames.\nAny usernames not found are ignored.","required":false},{"name":"web3_wallet","in":"query","schema":{"type":"array","items":{"type":"string"}},"description":"Returns users with the specified web3 wallet addresses.\nAccepts up to 100 web3 wallet addresses.\nAny web3 wallet addresses not found are ignored.","required":false},{"name":"role","in":"query","schema":{"type":"array","items":{"type":"string"}},"description":"Returns users with the specified roles. Accepts up to 100 roles. Any roles not found are ignored.","required":false},{"name":"query","in":"query","description":"Returns users that match the given query.\nFor possible matches, we check the email addresses, phone numbers, usernames, web3 wallets, user IDs, first and last names.\nThe query value doesn't need to match the exact value you are looking for, it is capable of partial matches as well.","schema":{"type":"string"},"required":false},{"name":"email_address_query","in":"query","description":"Returns users with emails that match the given query, via case-insensitive partial match.\nFor example, `email_address_query=ello` will match a user with the email `HELLO@example.com`.","schema":{"type":"string"},"required":false},{"name":"phone_number_query","in":"query","description":"Returns users with phone numbers that match the given query, via case-insensitive partial match.\nFor example, `phone_number_query=555` will match a user with the phone number `+1555xxxxxxx`.","schema":{"type":"string"},"required":false},{"name":"username_query","in":"query","description":"Returns users with usernames that match the given query, via case-insensitive partial match.\nFor example, `username_query=CoolUser` will match a user with the username `SomeCoolUser`.","schema":{"type":"string"}},{"name":"name_query","in":"query","description":"Returns users with names that match the given query, via case-insensitive partial match.","schema":{"type":"string"}},{"name":"last_active_at_before","in":"query","description":"Returns users whose last session activity was before the given date (with millisecond precision).\nExample: use 1700690400000 to retrieve users whose last session activity was before 2023-11-23.","example":1700690400000,"schema":{"type":"integer"}},{"name":"last_active_at_after","in":"query","description":"Returns users whose last session activity was after the given date (with millisecond precision).\nExample: use 1700690400000 to retrieve users whose last session activity was after 2023-11-23.","example":1700690400000,"schema":{"type":"integer"}},{"name":"created_at_before","in":"query","description":"Returns users who have been created before the given date (with millisecond precision).\nExample: use 1730160000000 to retrieve users who have been created before 2024-10-29.","example":1730160000000,"schema":{"type":"integer"}},{"name":"created_at_after","in":"query","description":"Returns users who have been created after the given date (with millisecond precision).\nExample: use 1730160000000 to retrieve users who have been created after 2024-10-29.","example":1730160000000,"schema":{"type":"integer"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":500,"default":10}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}}],"responses":{"200":{"$ref":"#/components/responses/OrganizationMemberships"},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}}}},"/platform/applications/{applicationID}/instances/{envOrInsID}/organizations":{"get":{"operationId":"PlatformListInstanceOrganizations","x-speakeasy-group":"platform","x-speakeasy-name-override":"listInstanceOrganizations","tags":["Instance Organizations"],"summary":"List organizations in an application instance","description":"List or search organizations belonging to an application instance, rather than Clerk workspaces.\nSupports the Backend API organization-list filters and pagination, and returns the same\norganization objects, including private metadata. Organizations must be enabled on the instance.\n\nRequires the `organizations:read` scope.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","required":true,"description":"Application ID.","schema":{"type":"string"}},{"name":"envOrInsID","in":"path","required":true,"description":"Development, production, or a full instance ID.","schema":{"type":"string"}},{"in":"query","required":false,"name":"include_members_count","description":"Flag to denote whether the member counts of each organization should be included in the response or not.","schema":{"type":"boolean"}},{"in":"query","required":false,"name":"include_missing_member_with_elevated_permissions","description":"Include whether each organization is missing a member with elevated permissions.","schema":{"type":"boolean"}},{"in":"query","required":false,"name":"query","description":"Returns organizations with ID, name, or slug that match the given query.\nUses exact match for organization ID and partial match for name and slug.","schema":{"type":"string"}},{"in":"query","name":"user_id","description":"Returns organizations that include any of the specified user IDs as members. Any user IDs not found are ignored.\nFor each user ID, the `+` and `-` can be prepended to the ID, which denote whether the\nrespective organization should be included or excluded from the result set.","schema":{"type":"array","items":{"type":"string"}},"required":false},{"in":"query","name":"organization_id","description":"Returns organizations with the organization IDs specified. Any organization IDs not found are ignored.\nFor each organization ID, the `+` and `-` can be prepended to the ID, which denote whether the\nrespective organization should be included or excluded from the result set. Accepts up to 100 organization IDs.\nExample: ?organization_id=+org_1&organization_id=-org_2","schema":{"type":"array","items":{"type":"string"}},"required":false},{"in":"query","name":"order_by","description":"Allows to return organizations in a particular order.\nSupported fields are `name`, `created_at`, `updated_at`, `last_active_at`, and `members_count`.\nIn order to specify the direction, you can use the `+/-` symbols prepended in the property to order by.\nFor example, if you want organizations to be returned in descending order according to their `created_at` property, you can use `-created_at`.\nIf you don't use `+` or `-`, then `+` is implied.\nDefaults to `-created_at`.","schema":{"type":"string","default":"-created_at"},"required":false},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":500,"default":10}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"name","in":"query","description":"Filter by organization name.","schema":{"type":"string"}},{"name":"slug","in":"query","description":"Filter by organization slug.","schema":{"type":"string"}},{"name":"created_at_before","in":"query","description":"Return organizations created before this Unix timestamp in milliseconds.","schema":{"type":"string"}},{"name":"created_at_after","in":"query","description":"Return organizations created after this Unix timestamp in milliseconds.","schema":{"type":"string"}},{"name":"filter_by","in":"query","description":"Use `missing_member_with_elevated_permissions` or `without_sso_connections`. These filters cannot be combined. The first requires `include_missing_member_with_elevated_permissions=true`.","schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"$ref":"#/components/responses/Organizations"},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}}}},"/platform/applications":{"get":{"operationId":"PlatformListApplications","x-speakeasy-group":"platform","x-speakeasy-name-override":"listApplications","tags":["Applications"],"summary":"List applications","description":"List applications, newest first.\n\nWithout `paginated`, the response is an array of up to `limit` applications and does not say\nwhether more exist. To walk every application, set `paginated=true`, pass each response's\n`cursor.starting_after` back as `starting_after`, and stop when `cursor.has_next_page` is `false`.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"include_secret_keys","in":"query","description":"Whether to include secret keys in the response.","required":false,"schema":{"type":"boolean","default":false}},{"name":"paginated","in":"query","description":"Return `data` and a `cursor` instead of a bare array.","required":false,"schema":{"type":"boolean","default":false}},{"name":"limit","in":"query","description":"Number of applications to return.","required":false,"schema":{"type":"integer","minimum":1,"maximum":500,"default":500}},{"name":"starting_after","in":"query","description":"Cursor for pagination. Provide the ID of the last application from the\nprevious page to get the next page of results.\n","required":false,"schema":{"type":"string"}},{"name":"ending_before","in":"query","description":"Cursor for pagination. Provide the ID of the first application from the\ncurrent page to get the previous page of results.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Applications retrieved successfully.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/PlatformListApplicationsResponse"},{"$ref":"#/components/schemas/PlatformListApplicationsCursorResponse"}]}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}}},"post":{"operationId":"PlatformCreateApplication","x-speakeasy-group":"platform","x-speakeasy-name-override":"createApplication","tags":["Applications"],"summary":"Create an application","description":"Create a new application.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"$ref":"#/components/parameters/ClerkRecipientPublicKey"}],"requestBody":{"description":"Application data to create.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformCreateApplicationRequest"}}}},"responses":{"200":{"description":"Application created successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformApplicationResponse"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}}}},"/platform/applications/{applicationID}":{"get":{"operationId":"PlatformGetApplication","x-speakeasy-group":"platform","x-speakeasy-name-override":"getApplication","tags":["Applications"],"summary":"Get an application","description":"Get application details.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"include_secret_keys","in":"query","description":"Whether to include secret keys in the response. If 'true', the response will include the secret keys for each instance.","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Application retrieved successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformApplicationResponse"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"}}},"patch":{"operationId":"PlatformUpdateApplication","x-speakeasy-group":"platform","x-speakeasy-name-override":"updateApplication","tags":["Applications"],"summary":"Update an application","description":"Update an application.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Application data to update.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformUpdateApplicationRequest"}}}},"responses":{"200":{"description":"Application updated successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformApplicationResponse"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"}}},"delete":{"operationId":"PlatformDeleteApplication","x-speakeasy-group":"platform","x-speakeasy-name-override":"deleteApplication","tags":["Applications"],"summary":"Delete an application","description":"Delete an application.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Application deleted successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformDeletedObjectResponse"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"}}}},"/platform/applications/{applicationID}/logo":{"post":{"operationId":"PlatformUploadApplicationLogo","x-speakeasy-group":"platform","x-speakeasy-name-override":"uploadApplicationLogo","tags":["Applications"],"summary":"Upload application logo","description":"Set or replace an application's logo by uploading an image file.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}},"application/octet-stream":{"schema":{"type":"string"},"example":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="}}},"responses":{"200":{"description":"Application logo uploaded successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformApplicationResponse"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"},"413":{"$ref":"#/components/responses/ClerkErrors"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}}},"delete":{"operationId":"PlatformDeleteApplicationLogo","x-speakeasy-group":"platform","x-speakeasy-name-override":"deleteApplicationLogo","tags":["Applications"],"summary":"Delete application logo","description":"Delete an application's logo.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Application logo deleted successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformApplicationResponse"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"}}}},"/platform/applications/{applicationID}/favicon":{"post":{"operationId":"PlatformUploadApplicationFavicon","x-speakeasy-group":"platform","x-speakeasy-name-override":"uploadApplicationFavicon","tags":["Applications"],"summary":"Upload application favicon","description":"Set or replace an application's favicon by uploading an image file.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}},"application/octet-stream":{"schema":{"type":"string"},"example":"data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAGAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAA"}}},"responses":{"200":{"description":"Application favicon uploaded successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformApplicationResponse"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"},"413":{"$ref":"#/components/responses/ClerkErrors"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}}},"delete":{"operationId":"PlatformDeleteApplicationFavicon","x-speakeasy-group":"platform","x-speakeasy-name-override":"deleteApplicationFavicon","tags":["Applications"],"summary":"Delete application favicon","description":"Delete an application's favicon.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Application favicon deleted successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformApplicationResponse"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"}}}},"/platform/applications/{applicationID}/domain":{"patch":{"operationId":"PlatformUpdateApplicationDomain","x-speakeasy-group":"platform","x-speakeasy-name-override":"updateApplicationDomain","tags":["Domains"],"summary":"Update application domain","description":"Update the production domain for an application.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Domain data to update.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformUpdateApplicationDomainRequest"}}}},"responses":{"200":{"description":"Application domain updated successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformDomainResponse"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}}}},"/platform/applications/{applicationID}/domains":{"get":{"operationId":"PlatformListApplicationDomains","x-speakeasy-group":"platform","x-speakeasy-name-override":"listApplicationDomains","tags":["Domains"],"summary":"List application domains","description":"List all domains for an application's production instance.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Application domains retrieved successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformListApplicationDomainsResponse"}}}},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"}}},"post":{"operationId":"PlatformCreateApplicationDomain","x-speakeasy-group":"platform","x-speakeasy-name-override":"createApplicationDomain","tags":["Domains"],"summary":"Create application domain","description":"Create a provider domain for an application's production instance.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Domain data to create.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformCreateApplicationDomainRequest"}}}},"responses":{"201":{"description":"Application domain created successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformDomainResponse"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}}}},"/platform/applications/{applicationID}/domains/{domainIDOrName}":{"get":{"operationId":"PlatformGetApplicationDomain","x-speakeasy-group":"platform","x-speakeasy-name-override":"getApplicationDomain","tags":["Domains"],"summary":"Get application domain","description":"Get domain information for an application.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"domainIDOrName","in":"path","description":"Domain ID or domain name.","example":"dmn_abcdefghijklmnopqrstuvwxyz0","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Application domain retrieved successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformDomainResponse"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"}}},"delete":{"operationId":"PlatformDeleteApplicationDomain","x-speakeasy-group":"platform","x-speakeasy-name-override":"deleteApplicationDomain","tags":["Domains"],"summary":"Delete application domain","description":"Delete a provider domain from an application's production instance.\n\nOnly provider domains can be deleted. The primary domain cannot be deleted.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"domainIDOrName","in":"path","description":"Domain ID or domain name.","example":"dmn_abcdefghijklmnopqrstuvwxyz0","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Application domain deleted successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformDeletedObjectResponse"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}}}},"/platform/applications/{applicationID}/domains/{domainIDOrName}/status":{"get":{"operationId":"PlatformGetApplicationDomainStatus","x-speakeasy-group":"platform","x-speakeasy-name-override":"getApplicationDomainStatus","tags":["Domains"],"summary":"Get application domain status","description":"Get the status of a domain for an application.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"domainIDOrName","in":"path","description":"Domain ID or domain name.","example":"dmn_abcdefghijklmnopqrstuvwxyz0","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Application domain status retrieved successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformDomainStatusResponse"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"}}}},"/platform/applications/{applicationID}/domains/{domainIDOrName}/dns_check":{"post":{"operationId":"PlatformTriggerDNSCheck","x-speakeasy-group":"platform","x-speakeasy-name-override":"triggerDNSCheck","tags":["Domains"],"summary":"Trigger DNS check","description":"Triggers a DNS check for a domain and returns the current domain status.\n\nThis endpoint ensures that at most one DNS check job is in-flight at any time.\nIf a check is already running or was recently performed, a 409 Conflict is returned.\n\nUse this endpoint to trigger a new DNS verification check after configuring DNS records.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"domainIDOrName","in":"path","description":"Domain ID or domain name.","example":"dmn_abcdefghijklmnopqrstuvwxyz0","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"DNS check triggered and domain status returned successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformDNSCheckResponse"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"},"409":{"$ref":"#/components/responses/Conflict"}}}},"/platform/me":{"get":{"operationId":"PlatformGetMe","x-speakeasy-group":"platform","x-speakeasy-name-override":"getMe","tags":["Principal"],"summary":"Get the authenticated principal","description":"Describe the credential that authenticated this request: its auth strategy, subject\n(workspace), actor, and granted scopes. Requires no scopes and has no side effects.\n","security":[{"platform_api_access_token":[]}],"responses":{"200":{"description":"The authenticated principal.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformPrincipalResponse"}}}},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"}}}},"/platform/domains":{"get":{"operationId":"PlatformListDomains","x-speakeasy-group":"platform","x-speakeasy-name-override":"listDomains","tags":["Domains"],"summary":"List domains","description":"List production instance domains for applications in the authenticated workspace.\nResults are sorted by domain creation time in descending order (most recent first).\n\nSet `include_development` to include development instance domains.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"name","in":"query","description":"Filter domains whose name contains this substring (case-insensitive).","required":false,"schema":{"type":"string"}},{"name":"include_development","in":"query","description":"When `true`, include development instance domains. Defaults to production only.","required":false,"schema":{"type":"string","enum":["true"]}},{"name":"limit","in":"query","description":"Number of results to return per page (1-500, default 10).","required":false,"schema":{"type":"integer","minimum":1,"maximum":500,"default":10}},{"name":"starting_after","in":"query","description":"Cursor for pagination. Provide the ID of the last domain from the\nprevious page to get the next page of results.\n","required":false,"schema":{"type":"string"}},{"name":"ending_before","in":"query","description":"Cursor for pagination. Provide the ID of the first domain from the\nprevious page to get the previous page of results.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Domains retrieved successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformListDomainsResponse"}}}},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}}}},"/platform/domains/{domainIDOrName}":{"get":{"operationId":"PlatformGetDomain","x-speakeasy-group":"platform","x-speakeasy-name-override":"getDomain","tags":["Domains"],"summary":"Get domain","description":"Retrieve a single domain by ID or name for the authenticated workspace.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"domainIDOrName","in":"path","description":"Domain ID or domain name.","example":"dmn_abcdefghijklmnopqrstuvwxyz0","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Domain retrieved successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformWorkspaceDomainResponse"}}}},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"}}}},"/platform/domain_intents":{"get":{"operationId":"PlatformListDomainIntents","x-speakeasy-group":"platform","x-speakeasy-name-override":"listDomainIntents","tags":["Domain Intents"],"summary":"List domain intents","description":"List all domain intents created by the authenticated workspace. Returns\nintents sorted by creation date in descending order (most recent first).\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"name","in":"query","description":"Filter by exact domain name.","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","description":"Filter by domain intent status. Multiple values can be provided by\nrepeating the parameter (e.g., `?status=pending&status=canceled`).\n","required":false,"style":"form","explode":true,"schema":{"type":"array","items":{"type":"string","enum":["pending","completed","expired","canceled"]}}},{"name":"limit","in":"query","description":"Number of results to return per page (1-500, default 10).","required":false,"schema":{"type":"integer","minimum":1,"maximum":500,"default":10}},{"name":"starting_after","in":"query","description":"Cursor for pagination. Provide the ID of the last domain intent from\nthe previous page to get the next page of results.\n","required":false,"schema":{"type":"string"}},{"name":"ending_before","in":"query","description":"Cursor for pagination. Provide the ID of the first domain intent from\nthe previous page to get the previous page of results.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Domain intents retrieved successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformListDomainIntentsResponse"}}}},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}}},"post":{"operationId":"PlatformCreateDomainIntent","x-speakeasy-group":"platform","x-speakeasy-name-override":"createDomainIntent","tags":["Domain Intents"],"summary":"Create a domain intent","description":"Create a pending domain intent and receive DNS records for\nthe domain name.\n","security":[{"platform_api_access_token":[]}],"requestBody":{"description":"Domain intent data to create.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformCreateDomainIntentRequest"}}}},"responses":{"201":{"description":"Domain intent created successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformDomainIntentResponse"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}}}},"/platform/domain_intents/{domainIntentID}":{"get":{"operationId":"PlatformGetDomainIntent","x-speakeasy-group":"platform","x-speakeasy-name-override":"getDomainIntent","tags":["Domain Intents"],"summary":"Get a domain intent","description":"Retrieve a domain intent by ID.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"domainIntentID","in":"path","description":"Domain intent ID.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Domain intent retrieved successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformDomainIntentResponse"}}}},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"}}},"delete":{"operationId":"PlatformCancelDomainIntent","x-speakeasy-group":"platform","x-speakeasy-name-override":"cancelDomainIntent","tags":["Domain Intents"],"summary":"Cancel a domain intent","description":"Cancel a pending domain intent.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"domainIntentID","in":"path","description":"Domain intent ID.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Domain intent canceled successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformDomainIntentResponse"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"}}}},"/platform/application_transfers":{"get":{"operationId":"PlatformListApplicationTransfers","x-speakeasy-group":"platform","x-speakeasy-name-override":"listApplicationTransfers","tags":["Application Transfers"],"summary":"List application transfers","description":"List all transfer requests created by the authenticated workspace. Returns\ntransfers sorted by creation date in descending order (most recent first).\n\nUse the `status` parameter to filter by transfer status.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"status","in":"query","description":"Filter by transfer status. Multiple values can be provided by repeating\nthe parameter (e.g., `?status=pending&status=canceled`).\n","required":false,"style":"form","explode":true,"schema":{"type":"array","items":{"type":"string","enum":["pending","completed","canceled","expired"]}}},{"name":"limit","in":"query","description":"Number of results to return per page (1-500, default 10).","required":false,"schema":{"type":"integer","minimum":1,"maximum":500,"default":10}},{"name":"starting_after","in":"query","description":"Cursor for pagination. Provide the ID of the last transfer from the\nprevious page to get the next page of results.\n","required":false,"schema":{"type":"string"}},{"name":"ending_before","in":"query","description":"Cursor for pagination. Provide the ID of the first transfer from the\nprevious page to get the previous page of results.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Application transfers retrieved successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformListApplicationTransfersResponse"}}}},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}}}},"/platform/applications/{applicationID}/transfers":{"post":{"operationId":"PlatformCreateApplicationTransfer","x-speakeasy-group":"platform","x-speakeasy-name-override":"createApplicationTransfer","tags":["Application Transfers"],"summary":"Create an application transfer","description":"Create a new transfer request for an application. This initiates the process of\ntransferring ownership of the application to another workspace.\n\nOnly one pending transfer can exist for an application at a time. The transfer\nwill expire after 24 hours if not completed.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Application transfer created successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformApplicationTransferResponse"}}}},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"409":{"$ref":"#/components/responses/Conflict"}}}},"/platform/applications/{applicationID}/transfers/{transferID}":{"get":{"operationId":"PlatformGetApplicationTransfer","x-speakeasy-group":"platform","x-speakeasy-name-override":"getApplicationTransfer","tags":["Application Transfers"],"summary":"Get an application transfer","description":"Retrieve details of an application transfer by its ID.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"transferID","in":"path","description":"Application Transfer ID.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Application transfer retrieved successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformApplicationTransferResponse"}}}},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"}}},"delete":{"operationId":"PlatformCancelApplicationTransfer","x-speakeasy-group":"platform","x-speakeasy-name-override":"cancelApplicationTransfer","tags":["Application Transfers"],"summary":"Cancel an application transfer","description":"Cancel an existing application transfer. Only transfers in 'pending' status can be canceled.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"transferID","in":"path","description":"Application Transfer ID.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Application transfer canceled successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformApplicationTransferResponse"}}}},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"},"409":{"$ref":"#/components/responses/Conflict"}}}},"/platform/applications/{applicationID}/rotate_secret_keys":{"post":{"operationId":"PlatformRotateSecretKeys","x-speakeasy-group":"platform","x-speakeasy-name-override":"rotateSecretKeys","tags":["Applications"],"summary":"Rotate application secret keys","description":"Rotate the secret keys for an application's instances.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/ClerkRecipientPublicKey"}],"requestBody":{"description":"Secret key rotation parameters.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformRotateSecretKeysRequest"}}}},"responses":{"200":{"description":"Secret keys rotated successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformRotateSecretKeysResponse"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"}}}},"/platform/applications/{applicationID}/instances/{envOrInsID}/rotate_secret_keys":{"post":{"operationId":"PlatformRotateInstanceSecretKeys","x-speakeasy-group":"platform","x-speakeasy-name-override":"rotateInstanceSecretKeys","tags":["Applications"],"summary":"Rotate instance secret key","description":"Rotate the secret key for a single application instance.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"envOrInsID","in":"path","description":"Environment type or instance ID.","required":true,"schema":{"type":"string","example":"production"}},{"$ref":"#/components/parameters/ClerkRecipientPublicKey"}],"requestBody":{"description":"Secret key rotation parameters.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformRotateSecretKeysRequest"}}}},"responses":{"200":{"description":"Secret key rotated successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformRotateSecretKeysResponse"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"}}}},"/platform/applications/{applicationID}/instances/{envOrInsID}/usage":{"get":{"operationId":"PlatformGetInstanceUsage","x-speakeasy-group":"platform","x-speakeasy-name-override":"getInstanceUsage","tags":["Applications"],"summary":"Get instance usage","description":"Get usage totals for an application instance across meters such as MAU, MAO,\nSMS, custom domains, and enterprise connections.\n\nThe `envOrInsID` parameter can be either an environment type (e.g., \"development\", \"production\")\nor an instance ID.\n\nRequires the `application_usage:read` scope.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"envOrInsID","in":"path","description":"Environment type (e.g., \"development\", \"production\") or instance ID.\n","required":true,"schema":{"type":"string"}},{"name":"start","in":"query","description":"Start of the date range for usage data in YYYY-MM-DD format.\nBoth `start` and `end` must be provided together.\nWhen omitted, the current billing cycle is used.\n","required":false,"schema":{"type":"string","format":"date"}},{"name":"end","in":"query","description":"Inclusive end of the date range for usage data in YYYY-MM-DD format.\nBoth `start` and `end` must be provided together.\nWhen omitted, the current billing cycle is used.\n","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"Instance usage retrieved successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformInstanceUsageResponse"}}}},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"},"422":{"$ref":"#/components/responses/ClerkErrors"}}}},"/platform/applications/{applicationID}/instances/{envOrInsID}/clients/{clientID}/revoke":{"post":{"operationId":"PlatformRevokeInstanceClient","x-speakeasy-group":"platform","x-speakeasy-name-override":"revokeInstanceClient","tags":["Clients"],"summary":"Revoke an instance client","description":"Permanently revoke one client's credentials and active or pending sessions, including linked development browser tokens. Works with development and production instances and leaves other clients unaffected. Repeating the request is safe. Previously issued session JWTs remain valid until expiration.\nRequires the users:manage scope and access to the application. The response contains no browser tokens or session credentials.","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","required":true,"schema":{"type":"string"}},{"name":"envOrInsID","in":"path","required":true,"description":"Development, production, or an instance ID.","schema":{"type":"string"}},{"name":"clientID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Client revocation confirmation.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["object","id","revoked_at"],"properties":{"object":{"type":"string","enum":["client"]},"id":{"type":"string"},"revoked_at":{"type":"integer","format":"int64","description":"Revocation time in Unix milliseconds."}}}}}},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"}}}},"/platform/applications/{applicationID}/instances/{envOrInsID}/users":{"get":{"operationId":"PlatformListInstanceUsers","x-speakeasy-group":"platform","x-speakeasy-name-override":"listInstanceUsers","tags":["Users"],"summary":"List instance users","description":"List all users for an application instance.\n\nThe `envOrInsID` parameter can be either an environment type (e.g., \"development\", \"production\")\nor an instance ID.\n\nUse the `query` parameter to filter users by searching across email addresses, phone numbers,\nusernames, web3 wallets, user IDs, first names, and last names.\n\nUse the `order_by` parameter to sort the results. Prefix with `+` for ascending or `-` for descending order.\nValid fields: `created_at`, `updated_at`, `last_sign_in_at`, `last_active_at`, `email_address`, `first_name`,\n`last_name`, `username`, `phone_number`, `web3_wallet`. Default is `-created_at` (most recent first).\n\nTo walk more than a few pages, use `pagination=cursor` rather than `offset`: a large `offset`\ngets progressively slower and eventually times out. Cursor pagination requires the\n`created_at` ordering, which is the default.\n\nRequires the `users:read` scope.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"envOrInsID","in":"path","description":"Environment type (e.g., \"development\", \"production\") or instance ID.\n","required":true,"schema":{"type":"string"}},{"name":"query","in":"query","description":"A search query to filter users. Searches across email addresses, phone numbers,\nusernames, web3 wallets, user IDs, first names, and last names.\n","required":false,"schema":{"type":"string"}},{"name":"order_by","in":"query","description":"Field to order results by. Prefix with `+` for ascending or `-` for descending order.\nValid fields: `created_at`, `updated_at`, `last_sign_in_at`, `last_active_at`, `email_address`,\n`first_name`, `last_name`, `username`, `phone_number`, `web3_wallet`.\n","required":false,"schema":{"type":"string","default":"-created_at"}},{"name":"limit","in":"query","description":"Number of results to return per page (1-500, default 10).","required":false,"schema":{"type":"integer","minimum":1,"maximum":500,"default":10}},{"name":"offset","in":"query","description":"Number of results to skip for pagination.","required":false,"schema":{"type":"integer","minimum":0,"default":0}},{"name":"pagination","in":"query","description":"How to paginate the results. `offset`, the default when omitted, pages with `limit` and\n`offset` and returns `data` and `total_count`.\n\n`cursor` pages by cursor: pass the previous response's `cursor.starting_after` back as\n`starting_after`, and stop when `cursor.has_next_page` is `false`. The response is\n`data` and `cursor`, with no `total_count`. A cursor page costs the same no matter how\nfar into the list it sits, while a large `offset` has to walk and discard every row\nbefore it, so use `cursor` to walk more than a few pages.\n","required":false,"schema":{"type":"string","enum":["offset","cursor"]}},{"name":"starting_after","in":"query","description":"With `pagination=cursor`, the `cursor.starting_after` of the previous page. Returns the users that follow it.\nOmit it for the first page. Rejected with a 422 without `pagination=cursor`.\n\n**Cursor pagination requires ordering by `created_at`**: `order_by` omitted, or set to `created_at`,\n`+created_at` or `-created_at`. Any other `order_by` value is rejected with a 422, because the other\norderings sort by a value that is neither unique per user nor immutable, so a cursor over them would\nskip or repeat users.\n\nA non-zero `offset` is also rejected. Keep every other parameter identical across requests.\n","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Users retrieved successfully.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/PlatformListInstanceUsersResponse"},{"$ref":"#/components/schemas/PlatformListInstanceUsersCursorResponse"}]}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}}},"post":{"operationId":"PlatformCreateInstanceUser","x-speakeasy-group":"platform","x-speakeasy-name-override":"createInstanceUser","tags":["Users"],"summary":"Create an instance user","description":"Creates a user within an application instance.\n\nThe `envOrInsID` parameter can be either an environment type (e.g., \"development\", \"production\")\nor an instance ID.\n\nRequires the `users:manage` scope.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"envOrInsID","in":"path","description":"Environment type (e.g., \"development\", \"production\") or instance ID.\n","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformCreateInstanceUserRequest"}}}},"responses":{"200":{"description":"User created successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}}}},"/platform/applications/{applicationID}/instances/{envOrInsID}/users/{userID}":{"patch":{"operationId":"PlatformUpdateInstanceUser","x-speakeasy-group":"platform","x-speakeasy-name-override":"updateInstanceUser","tags":["Users"],"summary":"Update an instance user","description":"Updates identity and client trust settings using Backend API validation and user.updated events.\nOnly first_name, last_name, username, external_id, locale, timezone and bypass_client_trust are accepted.\nNull clears nullable name, username, external ID and timezone fields. Omitted fields are unchanged.\nPasswords, password digests, TOTP secrets, backup codes, metadata and all other fields are rejected.\nThe envOrInsID selector accepts an environment type or instance ID.\nPending-deletion applications and deleted instances cannot be updated.\n\nRequires the `users:manage` scope.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"envOrInsID","in":"path","description":"Environment type (e.g., \"development\", \"production\") or instance ID.\n","required":true,"schema":{"type":"string"}},{"name":"userID","in":"path","description":"User ID.","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformUpdateInstanceUserRequest"}}}},"responses":{"200":{"description":"User updated successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"},"413":{"$ref":"#/components/responses/ClerkErrors"},"415":{"$ref":"#/components/responses/ClerkErrors"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}}},"delete":{"operationId":"PlatformDeleteUser","x-speakeasy-group":"platform","x-speakeasy-name-override":"deleteUser","tags":["Users"],"summary":"Delete a user","description":"Delete a user within an application instance. Returns the deleted user object.\n\nDeleting a user that does not exist (or has already been deleted) returns 404.\n\nThe `envOrInsID` parameter can be either an environment type (e.g., \"development\", \"production\")\nor an instance ID.\n\nRequires the `users:delete` scope.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"envOrInsID","in":"path","description":"Environment type (e.g., \"development\", \"production\") or instance ID.\n","required":true,"schema":{"type":"string"}},{"name":"userID","in":"path","description":"User ID.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/DeletedObject"},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"}}}},"/platform/applications/{applicationID}/instances/{envOrInsID}/users/{userID}/metadata":{"patch":{"operationId":"PlatformUpdateUserMetadata","x-speakeasy-group":"platform","x-speakeasy-name-override":"updateUserMetadata","tags":["Users"],"summary":"Update user metadata","description":"Deep-merge the supplied public, private and unsafe metadata into a user in the selected instance.\nExisting nested objects merge recursively, removing null-valued keys at each merged level.\nNew nested objects and objects replacing non-object values are copied as-is, including nulls,\nmatching BAPI. Arrays and scalar values replace existing values. Without a cached\nidempotency response, repeating a patch containing a new nested object with nulls can change its result.\nOmitted metadata fields, empty metadata objects and null metadata fields leave existing\nmetadata unchanged. The patch and merged result must each fit the 8 KB limit per metadata field.\n\nRequires the `users:manage` scope. The user must belong to the selected application instance.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"envOrInsID","in":"path","description":"Environment type (e.g., \"development\", \"production\") or instance ID.\n","required":true,"schema":{"type":"string"}},{"name":"userID","in":"path","description":"User ID.","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Optional key. If Clerk has cached a completed response for this exact request\nand key, Clerk replays that response without merging the metadata again.\nReuse the same key only for the same request.\n","required":false,"schema":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[A-Za-z0-9_-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformUpdateUserMetadataRequest"}}}},"responses":{"200":{"description":"User metadata updated successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"},"413":{"$ref":"#/components/responses/ClerkErrors"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}}}},"/platform/applications/{applicationID}/instances/{envOrInsID}/users/{userID}/profile_image":{"post":{"operationId":"PlatformSetUserProfileImage","x-speakeasy-group":"platform","x-speakeasy-name-override":"setUserProfileImage","tags":["Users"],"summary":"Update a user profile image","description":"Sets or replaces the profile image for a user within an application instance.\n\nThe `envOrInsID` parameter can be either an environment type (e.g., \"development\", \"production\")\nor an instance ID.\n\nRequires the `users:manage` scope.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"envOrInsID","in":"path","description":"Environment type (e.g., \"development\", \"production\") or instance ID.\n","required":true,"schema":{"type":"string"}},{"name":"userID","in":"path","description":"User ID.","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}}}},"responses":{"200":{"description":"User profile image updated successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"},"413":{"$ref":"#/components/responses/ClerkErrors"}}},"delete":{"operationId":"PlatformDeleteUserProfileImage","x-speakeasy-group":"platform","x-speakeasy-name-override":"deleteUserProfileImage","tags":["Users"],"summary":"Delete a user profile image","description":"Deletes the profile image for a user within an application instance.\n\nThe `envOrInsID` parameter can be either an environment type (e.g., \"development\", \"production\")\nor an instance ID.\n\nRequires the `users:manage` scope.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"envOrInsID","in":"path","description":"Environment type (e.g., \"development\", \"production\") or instance ID.\n","required":true,"schema":{"type":"string"}},{"name":"userID","in":"path","description":"User ID.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"User profile image deleted successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"}}}},"/platform/applications/{applicationID}/instances/{envOrInsID}/users/{userID}/ban":{"post":{"operationId":"PlatformBanUser","x-speakeasy-group":"platform","x-speakeasy-name-override":"banUser","tags":["Users"],"summary":"Ban a user","description":"Marks a user as banned within an application instance. This terminates their active sessions\n(marks them as revoked), revokes their OAuth grants, and prevents them from signing in again.\nRevoked OAuth grants are not restored if the user is unbanned.\n\nRequires the `users:manage` scope.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"envOrInsID","in":"path","description":"Environment type (e.g., \"development\", \"production\") or instance ID.\n","required":true,"schema":{"type":"string"}},{"name":"userID","in":"path","description":"User ID.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"User banned successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"}}}},"/platform/applications/{applicationID}/instances/{envOrInsID}/users/{userID}/unban":{"post":{"operationId":"PlatformUnbanUser","x-speakeasy-group":"platform","x-speakeasy-name-override":"unbanUser","tags":["Users"],"summary":"Unban a user","description":"Removes the ban from a user within an application instance. This allows them to sign in again.\n\nRequires the `users:manage` scope.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"envOrInsID","in":"path","description":"Environment type (e.g., \"development\", \"production\") or instance ID.\n","required":true,"schema":{"type":"string"}},{"name":"userID","in":"path","description":"User ID.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"User unbanned successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"}}}},"/platform/applications/{applicationID}/instances/{envOrInsID}/jwt_templates":{"get":{"operationId":"PlatformListJWTTemplates","x-speakeasy-group":"platform","x-speakeasy-name-override":"listJWTTemplates","tags":["JWT Templates"],"summary":"List JWT templates","description":"List all JWT templates for an application instance.\n\nRequires the `jwt_templates:read` scope.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"envOrInsID","in":"path","description":"Environment type (e.g., \"development\", \"production\") or instance ID.\n","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"JWT templates retrieved successfully.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/JWTTemplate"}}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"}}},"post":{"operationId":"PlatformCreateJWTTemplate","x-speakeasy-group":"platform","x-speakeasy-name-override":"createJWTTemplate","tags":["JWT Templates"],"summary":"Create a JWT template","description":"Create a new JWT template for an application instance.\n\nRequires the `jwt_templates:manage` scope.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"envOrInsID","in":"path","description":"Environment type (e.g., \"development\", \"production\") or instance ID.\n","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"JWT template data to create.","required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"JWT template name"},"claims":{"type":"object","description":"JWT template claims in JSON format"},"lifetime":{"type":"integer","minimum":30,"maximum":315360000,"description":"JWT token lifetime in seconds","nullable":true},"allowed_clock_skew":{"type":"integer","minimum":0,"maximum":300,"description":"JWT allowed clock skew in seconds","nullable":true},"custom_signing_key":{"type":"boolean","description":"Whether a custom signing key/algorithm is also provided for this template"},"signing_algorithm":{"type":"string","description":"The custom signing algorithm to use when minting JWTs. Required if `custom_signing_key` is `true`.","nullable":true},"signing_key":{"type":"string","description":"The custom signing private key to use when minting JWTs. Required if `custom_signing_key` is `true`.","nullable":true}},"required":["name","claims"]}}}},"responses":{"200":{"description":"JWT template created successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JWTTemplate"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}}}},"/platform/applications/{applicationID}/instances/{envOrInsID}/jwt_templates/{templateID}":{"get":{"operationId":"PlatformGetJWTTemplate","x-speakeasy-group":"platform","x-speakeasy-name-override":"getJWTTemplate","tags":["JWT Templates"],"summary":"Get a JWT template","description":"Retrieve a specific JWT template for an application instance.\n\nRequires the `jwt_templates:read` scope.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"envOrInsID","in":"path","description":"Environment type (e.g., \"development\", \"production\") or instance ID.\n","required":true,"schema":{"type":"string"}},{"name":"templateID","in":"path","description":"JWT Template ID.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"JWT template retrieved successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JWTTemplate"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"}}},"patch":{"operationId":"PlatformUpdateJWTTemplate","x-speakeasy-group":"platform","x-speakeasy-name-override":"updateJWTTemplate","tags":["JWT Templates"],"summary":"Update a JWT template","description":"Update an existing JWT template for an application instance.\n\nRequires the `jwt_templates:manage` scope.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"envOrInsID","in":"path","description":"Environment type (e.g., \"development\", \"production\") or instance ID.\n","required":true,"schema":{"type":"string"}},{"name":"templateID","in":"path","description":"JWT Template ID.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"JWT template data to update.","required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"JWT template name"},"claims":{"type":"object","description":"JWT template claims in JSON format"},"lifetime":{"type":"integer","minimum":30,"maximum":315360000,"description":"JWT token lifetime in seconds","nullable":true},"allowed_clock_skew":{"type":"integer","minimum":0,"maximum":300,"description":"JWT allowed clock skew in seconds","nullable":true},"custom_signing_key":{"type":"boolean","description":"Whether a custom signing key/algorithm is also provided for this template"},"signing_algorithm":{"type":"string","description":"The custom signing algorithm to use when minting JWTs. Required if `custom_signing_key` is `true`.","nullable":true},"signing_key":{"type":"string","description":"The custom signing private key to use when minting JWTs. Required if `custom_signing_key` is `true`.","nullable":true}},"required":["name","claims"]}}}},"responses":{"200":{"description":"JWT template updated successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JWTTemplate"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}}},"delete":{"operationId":"PlatformDeleteJWTTemplate","x-speakeasy-group":"platform","x-speakeasy-name-override":"deleteJWTTemplate","tags":["JWT Templates"],"summary":"Delete a JWT template","description":"Delete a JWT template from an application instance.\n\nRequires the `jwt_templates:manage` scope.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"envOrInsID","in":"path","description":"Environment type (e.g., \"development\", \"production\") or instance ID.\n","required":true,"schema":{"type":"string"}},{"name":"templateID","in":"path","description":"JWT Template ID.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/DeletedObject"},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"}}}},"/platform/applications/{applicationID}/instances/{envOrInsID}/redirect_urls":{"get":{"operationId":"PlatformListRedirectURLs","x-speakeasy-group":"platform","x-speakeasy-name-override":"listRedirectURLs","tags":["Redirect URLs"],"summary":"List redirect URLs","description":"List all redirect URLs for an application instance.\n\nThe `envOrInsID` parameter can be either an environment type (e.g., \"development\", \"production\")\nor an instance ID.\n\nRequires the `applications:read` scope.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"envOrInsID","in":"path","description":"Environment type (e.g., \"development\", \"production\") or instance ID.\n","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Number of results to return per page (1-500, default 10).","required":false,"schema":{"type":"integer","minimum":1,"maximum":500,"default":10}},{"name":"offset","in":"query","description":"Number of results to skip for pagination.","required":false,"schema":{"type":"integer","minimum":0,"default":0}}],"responses":{"200":{"description":"Redirect URLs retrieved successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformListRedirectURLsResponse"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}}},"post":{"operationId":"PlatformCreateRedirectURL","x-speakeasy-group":"platform","x-speakeasy-name-override":"createRedirectURL","tags":["Redirect URLs"],"summary":"Create a redirect URL","description":"Create a redirect URL for an application instance.\n\nThe `envOrInsID` parameter can be either an environment type (e.g., \"development\", \"production\")\nor an instance ID.\n\nRequires the `applications:manage` scope.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"envOrInsID","in":"path","description":"Environment type (e.g., \"development\", \"production\") or instance ID.\n","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Redirect URL data to create.","required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"url":{"type":"string","description":"The full URL value prefixed with `https://` or a custom scheme e.g. `\"https://my-app.com/oauth-callback\"` or `\"my-app://oauth-callback\"`."}},"required":["url"]}}}},"responses":{"200":{"description":"Redirect URL created successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedirectURL"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}}}},"/platform/applications/{applicationID}/instances/{envOrInsID}/redirect_urls/{redirectURLID}":{"get":{"operationId":"PlatformGetRedirectURL","x-speakeasy-group":"platform","x-speakeasy-name-override":"getRedirectURL","tags":["Redirect URLs"],"summary":"Get a redirect URL","description":"Retrieve a redirect URL for an application instance.\n\nThe `envOrInsID` parameter can be either an environment type (e.g., \"development\", \"production\")\nor an instance ID.\n\nRequires the `applications:read` scope.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"envOrInsID","in":"path","description":"Environment type (e.g., \"development\", \"production\") or instance ID.\n","required":true,"schema":{"type":"string"}},{"name":"redirectURLID","in":"path","description":"Redirect URL ID.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Redirect URL retrieved successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedirectURL"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"}}},"delete":{"operationId":"PlatformDeleteRedirectURL","x-speakeasy-group":"platform","x-speakeasy-name-override":"deleteRedirectURL","tags":["Redirect URLs"],"summary":"Delete a redirect URL","description":"Delete a redirect URL from an application instance.\n\nThe `envOrInsID` parameter can be either an environment type (e.g., \"development\", \"production\")\nor an instance ID.\n\nRequires the `applications:manage` scope.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"envOrInsID","in":"path","description":"Environment type (e.g., \"development\", \"production\") or instance ID.\n","required":true,"schema":{"type":"string"}},{"name":"redirectURLID","in":"path","description":"Redirect URL ID.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/DeletedObject"},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"}}}},"/platform/applications/{applicationID}/instances/{envOrInsID}/oauth_resources":{"get":{"operationId":"PlatformListOAuthResources","x-speakeasy-group":"platform","x-speakeasy-name-override":"listOAuthResources","tags":["OAuth"],"summary":"List OAuth resources","description":"List the OAuth protected resources registered on an application instance, including MCP servers.\n\nThe `envOrInsID` parameter can be either an environment type (e.g., \"development\", \"production\")\nor an instance ID.\n\nApplications still on the legacy OAuth 2.0 provider receive a 403 `not enabled` error.\n\nRequires the `applications:read` scope.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"envOrInsID","in":"path","description":"Environment type (e.g., \"development\", \"production\") or instance ID.\n","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Number of results to return per page (1-500, default 10).","required":false,"schema":{"type":"integer","minimum":1,"maximum":500,"default":10}},{"name":"offset","in":"query","description":"Number of results to skip for pagination.","required":false,"schema":{"type":"integer","minimum":0,"default":0}},{"name":"oauth_application_id","in":"query","description":"Only resources whose current audience owner is this OAuth application. An empty value lists unowned resources.","required":false,"schema":{"type":"string"}},{"name":"mcp_server","in":"query","description":"Only resources whose MCP server marker equals this value. Accepts `true` or `false`.","required":false,"schema":{"type":"string","enum":["true","false"]}}],"responses":{"200":{"description":"OAuth resources retrieved successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformListOAuthResourcesResponse"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}}},"post":{"operationId":"PlatformCreateOAuthResource","x-speakeasy-group":"platform","x-speakeasy-name-override":"createOAuthResource","tags":["OAuth"],"summary":"Create an OAuth resource","description":"Register an OAuth protected resource on an application instance. To register an MCP server,\npass its canonical URL as `uri` and set `mcp_server` to true.\n\nRegistration is descriptive: Clerk mints an `aud` for any absolute `resource` a client requests\nonce `aud_claim_enabled` is on, whether or not it is registered. The registry drives the\nDashboard, Clerk's MCP tooling, and token exchange targets.\n\nThe `envOrInsID` parameter can be either an environment type (e.g., \"development\", \"production\")\nor an instance ID.\n\nApplications still on the legacy OAuth 2.0 provider receive a 403 `not enabled` error.\n\nRequires the `applications:manage` scope.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"envOrInsID","in":"path","description":"Environment type (e.g., \"development\", \"production\") or instance ID.\n","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformCreateOAuthResourceRequest"}}}},"responses":{"200":{"description":"OAuth resource created successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformOAuthResource"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}}}},"/platform/applications/{applicationID}/instances/{envOrInsID}/oauth_resources/{oauthResourceID}":{"get":{"operationId":"PlatformGetOAuthResource","x-speakeasy-group":"platform","x-speakeasy-name-override":"getOAuthResource","tags":["OAuth"],"summary":"Get an OAuth resource","description":"Retrieve one OAuth protected resource registered on an application instance.\n\nThe `envOrInsID` parameter can be either an environment type (e.g., \"development\", \"production\")\nor an instance ID.\n\nApplications still on the legacy OAuth 2.0 provider receive a 403 `not enabled` error.\n\nRequires the `applications:read` scope.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"envOrInsID","in":"path","description":"Environment type (e.g., \"development\", \"production\") or instance ID.\n","required":true,"schema":{"type":"string"}},{"name":"oauthResourceID","in":"path","description":"OAuth resource ID.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OAuth resource retrieved successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformOAuthResource"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"}}},"patch":{"operationId":"PlatformUpdateOAuthResource","x-speakeasy-group":"platform","x-speakeasy-name-override":"updateOAuthResource","tags":["OAuth"],"summary":"Update an OAuth resource","description":"Update the name, scopes, or MCP server marker of an OAuth protected resource. The URI is\ncreate-only; delete and recreate the resource to change it.\n\nThe `envOrInsID` parameter can be either an environment type (e.g., \"development\", \"production\")\nor an instance ID.\n\nApplications still on the legacy OAuth 2.0 provider receive a 403 `not enabled` error.\n\nRequires the `applications:manage` scope.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"envOrInsID","in":"path","description":"Environment type (e.g., \"development\", \"production\") or instance ID.\n","required":true,"schema":{"type":"string"}},{"name":"oauthResourceID","in":"path","description":"OAuth resource ID.","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformUpdateOAuthResourceRequest"}}}},"responses":{"200":{"description":"OAuth resource updated successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformOAuthResource"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}}},"delete":{"operationId":"PlatformDeleteOAuthResource","x-speakeasy-group":"platform","x-speakeasy-name-override":"deleteOAuthResource","tags":["OAuth"],"summary":"Delete an OAuth resource","description":"Delete an OAuth protected resource. Deleting a resource removes it from every OAuth application's\ntoken exchange targets. Audience URIs reserved by an OAuth application cannot be deleted.\n\nThe `envOrInsID` parameter can be either an environment type (e.g., \"development\", \"production\")\nor an instance ID.\n\nApplications still on the legacy OAuth 2.0 provider receive a 403 `not enabled` error.\n\nRequires the `applications:manage` scope.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"envOrInsID","in":"path","description":"Environment type (e.g., \"development\", \"production\") or instance ID.\n","required":true,"schema":{"type":"string"}},{"name":"oauthResourceID","in":"path","description":"OAuth resource ID.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/DeletedObject"},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}}}},"/platform/applications/{applicationID}/instances/{envOrInsID}/oauth_application_settings":{"get":{"operationId":"PlatformGetOAuthApplicationSettings","x-speakeasy-group":"platform","x-speakeasy-name-override":"getOAuthApplicationSettings","tags":["OAuth"],"summary":"Get OAuth application settings","description":"Retrieve the instance-wide OAuth authorization server settings, such as audience claims,\nPKCE, and client registration policy.\n\nThe `envOrInsID` parameter can be either an environment type (e.g., \"development\", \"production\")\nor an instance ID.\n\nApplications still on the legacy OAuth 2.0 provider receive a 403 `not enabled` error.\n\nRequires the `applications:read` scope.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"envOrInsID","in":"path","description":"Environment type (e.g., \"development\", \"production\") or instance ID.\n","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OAuth application settings retrieved successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformOAuthApplicationSettings"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"}}},"patch":{"operationId":"PlatformUpdateOAuthApplicationSettings","x-speakeasy-group":"platform","x-speakeasy-name-override":"updateOAuthApplicationSettings","tags":["OAuth"],"summary":"Update OAuth application settings","description":"Update the instance-wide OAuth authorization server settings. Only supplied fields change.\n\nAn MCP server needs `aud_claim_enabled` so tokens carry its URL as the audience, and\n`client_id_metadata_documents_advertised` (or `dynamic_oauth_client_registration`) so MCP\nclients can register. Advertising CIMD admits unknown CIMD clients unless the pre-registration\npolicy settings restrict them.\n\nThe `envOrInsID` parameter can be either an environment type (e.g., \"development\", \"production\")\nor an instance ID.\n\nApplications still on the legacy OAuth 2.0 provider receive a 403 `not enabled` error.\n\nRequires the `applications:manage` scope.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"envOrInsID","in":"path","description":"Environment type (e.g., \"development\", \"production\") or instance ID.\n","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformUpdateOAuthApplicationSettingsRequest"}}}},"responses":{"200":{"description":"OAuth application settings updated successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformOAuthApplicationSettings"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}}}},"/platform/applications/{applicationID}/instances/{envOrInsID}/native_settings":{"get":{"operationId":"PlatformGetNativeSettings","x-speakeasy-group":"platform","x-speakeasy-name-override":"getNativeSettings","tags":["Native Applications"],"summary":"Get native settings","description":"Retrieve Native API settings for an application instance.\n\nThe `envOrInsID` parameter can be either an environment type (for example,\n`development` or `production`) or an instance ID.\n\nRequires the `applications:read` scope.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"envOrInsID","in":"path","description":"Environment type or instance ID.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Native settings retrieved successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformNativeSettings"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"}}},"patch":{"operationId":"PlatformUpdateNativeSettings","x-speakeasy-group":"platform","x-speakeasy-name-override":"updateNativeSettings","tags":["Native Applications"],"summary":"Update native settings","description":"Update Native API settings for an application instance.\n\nThe `envOrInsID` parameter can be either an environment type (for example,\n`development` or `production`) or an instance ID.\n\nRequires the `applications:manage` scope.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"envOrInsID","in":"path","description":"Environment type or instance ID.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Native settings to update.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformUpdateNativeSettingsRequest"}}}},"responses":{"200":{"description":"Native settings updated successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformNativeSettings"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}}}},"/platform/applications/{applicationID}/instances/{envOrInsID}/native_applications/android":{"get":{"operationId":"PlatformListAndroidApplications","x-speakeasy-group":"platform","x-speakeasy-name-override":"listAndroidApplications","tags":["Native Applications"],"summary":"List Android native applications","description":"List the Android applications registered with an application instance.\n\nThe `envOrInsID` parameter can be either an environment type (for example,\n`development` or `production`) or an instance ID.\n\nRequires the `applications:read` scope.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"envOrInsID","in":"path","description":"Environment type or instance ID.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Android applications retrieved successfully.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PlatformAndroidApplication"}}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"}}},"post":{"operationId":"PlatformCreateAndroidApplication","x-speakeasy-group":"platform","x-speakeasy-name-override":"createAndroidApplication","tags":["Native Applications"],"summary":"Create an Android native application","description":"Register an Android application with an application instance.\n\nThe `envOrInsID` parameter can be either an environment type (for example,\n`development` or `production`) or an instance ID.\n\nRequires the `applications:manage` scope.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"envOrInsID","in":"path","description":"Environment type or instance ID.","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Optional key. If Clerk has cached a completed response for this exact\nrequest and key, Clerk replays that response. Reuse the same key only for\nthe same request. Concurrent in-flight requests are not guaranteed to be\ncoalesced, and server-error responses are not cached for this operation.\n","required":false,"schema":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[A-Za-z0-9_-]+$"}}],"requestBody":{"description":"Android application registration to create.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformCreateAndroidApplicationRequest"}}}},"responses":{"200":{"description":"Android application registered successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformAndroidApplication"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}}}},"/platform/applications/{applicationID}/instances/{envOrInsID}/native_applications/ios":{"get":{"operationId":"PlatformListIOSApplications","x-speakeasy-group":"platform","x-speakeasy-name-override":"listIOSApplications","tags":["Native Applications"],"summary":"List iOS native applications","description":"List the iOS applications registered with an application instance.\n\nThe `envOrInsID` parameter can be either an environment type (for example,\n`development` or `production`) or an instance ID.\n\nRequires the `applications:read` scope.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"envOrInsID","in":"path","description":"Environment type or instance ID.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"iOS applications retrieved successfully.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PlatformIOSApplication"}}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"}}},"post":{"operationId":"PlatformCreateIOSApplication","x-speakeasy-group":"platform","x-speakeasy-name-override":"createIOSApplication","tags":["Native Applications"],"summary":"Create an iOS native application","description":"Register an iOS application with an application instance.\n\nThe `envOrInsID` parameter can be either an environment type (for example,\n`development` or `production`) or an instance ID.\n\nRequires the `applications:manage` scope.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"envOrInsID","in":"path","description":"Environment type or instance ID.","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","description":"Optional key. If Clerk has cached a completed response for this exact\nrequest and key, Clerk replays that response. Reuse the same key only for\nthe same request. Concurrent in-flight requests are not guaranteed to be\ncoalesced, and server-error responses are not cached for this operation.\n","required":false,"schema":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[A-Za-z0-9_-]+$"}}],"requestBody":{"description":"iOS application registration to create.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformCreateIOSApplicationRequest"}}}},"responses":{"200":{"description":"iOS application registered successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformIOSApplication"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}}}},"/platform/applications/{applicationID}/instances/{envOrInsID}/config":{"get":{"operationId":"PlatformGetConfig","x-speakeasy-group":"platform","x-speakeasy-name-override":"getConfig","tags":["Config"],"summary":"Get instance config","description":"Get the configuration for an application instance.\n\nThe `envOrInsID` parameter can be either an environment type (e.g., \"development\", \"production\")\nor an instance ID.\n\nOptionally filter to specific config keys using the `keys` query parameter.\n\nRequires the `applications:manage` scope.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"envOrInsID","in":"path","description":"Environment type (e.g., \"development\", \"production\") or instance ID.\n","required":true,"schema":{"type":"string"}},{"name":"keys","in":"query","description":"Config keys to retrieve. If not specified, all keys are returned.","required":false,"style":"form","explode":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"Instance config retrieved successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformConfigResponse"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"}}},"patch":{"operationId":"PlatformPatchConfig","x-speakeasy-group":"platform","x-speakeasy-name-override":"patchConfig","tags":["Config"],"summary":"Update instance config","description":"Update the configuration for an application instance.\n\nThe `envOrInsID` parameter can be either an environment type (e.g., \"development\", \"production\")\nor an instance ID.\n\nUse the `dry_run` query parameter to preview changes without applying them.\nUse the `destructive` query parameter to allow clearing config keys by setting them to null.\nUse the `If-Match` header to provide optimistic concurrency control via config version.\n\nRequires the `applications:manage` scope.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"envOrInsID","in":"path","description":"Environment type (e.g., \"development\", \"production\") or instance ID.\n","required":true,"schema":{"type":"string"}},{"name":"dry_run","in":"query","description":"If true, preview the changes without applying them.","required":false,"schema":{"type":"boolean","default":false}},{"name":"destructive","in":"query","description":"If true, allow clearing config keys by setting them to null.","required":false,"schema":{"type":"boolean","default":false}},{"name":"keys","in":"query","description":"Config keys to return in the response. If not specified, only updated keys are returned.","required":false,"style":"form","explode":true,"schema":{"type":"array","items":{"type":"string"}}},{"name":"If-Match","in":"header","description":"Config version for optimistic concurrency control.","required":false,"schema":{"type":"string"}}],"requestBody":{"description":"Config updates to apply.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformConfigPatchRequest"}}}},"responses":{"200":{"description":"Instance config updated successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformConfigPatchResponse"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}}},"put":{"operationId":"PlatformPutConfig","x-speakeasy-group":"platform","x-speakeasy-name-override":"putConfig","tags":["Config"],"summary":"Replace instance config","description":"Replace the full configuration for an application instance.\n\nUnlike PATCH, PUT requires all config keys to be included in the request body.\nIf any keys are missing, a 400 error is returned listing the missing keys.\n\nThe `envOrInsID` parameter can be either an environment type (e.g., \"development\", \"production\")\nor an instance ID.\n\nUse the `dry_run` query parameter to preview changes without applying them.\nUse the `destructive` query parameter to allow clearing config keys by setting them to null.\nUse the `If-Match` header to provide optimistic concurrency control via config version.\n\nRequires the `applications:manage` scope.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"envOrInsID","in":"path","description":"Environment type (e.g., \"development\", \"production\") or instance ID.\n","required":true,"schema":{"type":"string"}},{"name":"dry_run","in":"query","description":"If true, preview the changes without applying them.","required":false,"schema":{"type":"boolean","default":false}},{"name":"destructive","in":"query","description":"If true, allow clearing config keys by setting them to null.","required":false,"schema":{"type":"boolean","default":false}},{"name":"If-Match","in":"header","description":"Config version for optimistic concurrency control.","required":false,"schema":{"type":"string"}}],"requestBody":{"description":"Complete config to apply. All config keys must be included.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformConfigPatchRequest"}}}},"responses":{"200":{"description":"Instance config replaced successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformConfigPatchResponse"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}}}},"/platform/applications/{applicationID}/instances/{envOrInsID}/config/schema":{"get":{"operationId":"PlatformGetConfigSchema","x-speakeasy-group":"platform","x-speakeasy-name-override":"getConfigSchema","tags":["Config"],"summary":"Get instance config schema","description":"Get the JSON Schema for the instance configuration.\n\nThe `envOrInsID` parameter can be either an environment type (e.g., \"development\", \"production\")\nor an instance ID.\n\nOptionally filter to specific config keys using the `keys` query parameter.\n\nRequires the `applications:manage` scope.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"name":"envOrInsID","in":"path","description":"Environment type (e.g., \"development\", \"production\") or instance ID.\n","required":true,"schema":{"type":"string"}},{"name":"keys","in":"query","description":"Config keys to retrieve schema for. If not specified, all keys are returned.","required":false,"style":"form","explode":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"Instance config schema retrieved successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformConfigSchemaResponse"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"}}}},"/platform/applications/{applicationID}/instances":{"post":{"operationId":"PlatformCreateInstance","x-speakeasy-group":"platform","x-speakeasy-name-override":"createInstance","tags":["Applications"],"summary":"Create instance","description":"Creates a production instance for the given application. Optionally clones\nconfiguration from an existing development instance.\n","security":[{"platform_api_access_token":[]}],"parameters":[{"name":"applicationID","in":"path","description":"Application ID.","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/ClerkRecipientPublicKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"domain":{"type":"string","description":"The production domain for the instance (e.g. \"example.com\")."},"environment_type":{"type":"string","enum":["production"],"default":"production","description":"Instance environment type. Only production is currently supported."},"clone_instance_id":{"type":"string","nullable":true,"description":"The ID of a development instance to clone configuration from."},"proxy_path":{"type":"string","description":"Optional proxy path for the instance's domain (e.g. \"/__clerk\" or \"/api/__clerk\"). Must start with a slash and contain one or more segments made of letters, digits, \"-\", \".\", \"_\" or \"~\"; \".\" and \"..\" segments are rejected. When set, the domain's proxy URL is https://<domain><proxy_path>. When omitted, no proxy is configured."}},"required":["domain"]}}}},"responses":{"201":{"description":"Instance created successfully.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"object":{"type":"string","enum":["instance"]},"id":{"type":"string"},"environment_type":{"type":"string","enum":["production"]},"active_domain":{"$ref":"#/components/schemas/PlatformDomainResponse"},"secret_key":{"type":"string","description":"The secret key for this instance. Omitted when the `Clerk-Recipient-Public-Key` header is set; `encrypted_secret_key` is returned instead.","x-sensitive":true},"encrypted_secret_key":{"$ref":"#/components/schemas/PlatformEncryptedSecretKey"},"publishable_key":{"type":"string"},"created_at":{"type":"integer","format":"int64","description":"Unix timestamp in milliseconds."},"updated_at":{"type":"integer","format":"int64","description":"Unix timestamp in milliseconds."}},"required":["object","id","environment_type","active_domain","publishable_key","created_at","updated_at"]}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}}}},"/platform/accountless_applications/claim":{"post":{"operationId":"PlatformClaimAccountlessApplication","x-speakeasy-group":"platform","x-speakeasy-name-override":"claimAccountlessApplication","tags":["Applications"],"summary":"Claim an accountless application","description":"Claim an accountless application by assigning it to the authenticated principal's workspace.\nThe application is identified by a single-use claim token that was generated when the\naccountless application was created. Once claimed, the token is invalidated and cannot be reused.\n","security":[{"platform_api_access_token":[]}],"requestBody":{"description":"Claim token and application name.","required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"token":{"type":"string","description":"The single-use claim token for the accountless application."},"name":{"type":"string","description":"The name to assign to the claimed application.","maxLength":50}},"required":["token","name"]}}}},"responses":{"200":{"description":"Application claimed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformApplicationResponse"}}}},"400":{"$ref":"#/components/responses/ClerkErrors"},"401":{"$ref":"#/components/responses/AuthenticationInvalid"},"403":{"$ref":"#/components/responses/AuthorizationInvalid"},"404":{"$ref":"#/components/responses/ResourceNotFound"},"422":{"$ref":"#/components/responses/UnprocessableEntity"}}}}},"components":{"securitySchemes":{"platform_api_access_token":{"type":"http","scheme":"bearer","description":"Platform API access token."}},"parameters":{"applicationID":{"name":"applicationID","in":"path","required":true,"schema":{"type":"string"}},"envOrInsID":{"name":"envOrInsID","in":"path","required":true,"schema":{"type":"string"}},"user_id":{"name":"user_id","in":"query","schema":{"type":"string"}},"identifier":{"name":"identifier","in":"query","schema":{"type":"string"}},"type":{"name":"type","in":"query","schema":{"type":"string"}},"actor":{"name":"actor","in":"query","schema":{"type":"string"}},"subject":{"name":"subject","in":"query","schema":{"type":"string"}},"trace_id":{"name":"trace_id","in":"query","schema":{"type":"string"}},"session_id":{"name":"session_id","in":"query","schema":{"type":"string"}},"client_id":{"name":"client_id","in":"query","schema":{"type":"string"}},"impersonator_user_id":{"name":"impersonator_user_id","in":"query","schema":{"type":"string"}},"ip_address":{"name":"ip_address","in":"query","schema":{"type":"string"}},"filter_match":{"name":"filter_match","in":"query","schema":{"type":"string","enum":["all","any"],"default":"all"}},"event_time_after":{"name":"event_time_after","in":"query","required":false,"description":"Unix timestamp in milliseconds.","schema":{"type":"integer","format":"int64"}},"event_time_before":{"name":"event_time_before","in":"query","required":false,"description":"Unix timestamp in milliseconds.","schema":{"type":"integer","format":"int64"}},"limit":{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":10}},"starting_after":{"name":"starting_after","in":"query","schema":{"type":"string"}},"group_type":{"name":"group_type","in":"query","style":"form","explode":true,"schema":{"type":"array","items":{"type":"string","enum":["sign_in","sign_up","sms","email"]}}},"status":{"name":"status","in":"query","style":"form","explode":true,"schema":{"type":"array","items":{"type":"string","enum":["completed","failed","abandoned"]}}},"groupID":{"name":"groupID","in":"path","required":true,"schema":{"type":"string"}},"started_at":{"name":"started_at","in":"query","required":false,"description":"The group's started_at, as a Unix timestamp in milliseconds. Optional; when omitted, it is looked up from the group ID, and a group that can't be found or is past the retention window returns a 404.","schema":{"type":"integer","format":"int64"}},"ClerkRecipientPublicKey":{"name":"Clerk-Recipient-Public-Key","in":"header","required":false,"description":"RSA public key of the party who should be able to read secret keys in this response.\n\nWhen set, each `secret_key` that this response would have included is omitted and replaced\nwith `encrypted_secret_key`, the unpadded base64url RSA-OAEP ciphertext of that secret.\nOAEP and MGF1 both use SHA-256; the OAEP label is empty. Intermediaries that forward the\nresponse see only the encrypted secret. Publishable keys stay in plaintext.\n\nSend one public RSA key with a 2048 to 4096-bit modulus and exponent 65537, as a JSON Web Key\nor as base64, base64url, or hexadecimal SubjectPublicKeyInfo DER. An invalid key, this\nheader on any other Platform API endpoint, or this header with `Idempotency-Key` returns 400\nbefore any change is made.\n\n```bash\numask 077\nopenssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:2048 -out recipient-private.pem\nRECIPIENT_PUBLIC_KEY=$(openssl pkey -in recipient-private.pem -pubout -outform DER | openssl base64 -A)\ncurl -H \"Clerk-Recipient-Public-Key: ${RECIPIENT_PUBLIC_KEY:?}\" ...\n```\n\nDecrypt with the matching private key. For example, in Node.js:\n\n```javascript\nimport { constants, privateDecrypt } from 'node:crypto';\n\nconst secret = privateDecrypt({\n  key: privateKey,\n  padding: constants.RSA_PKCS1_OAEP_PADDING,\n  oaepHash: 'sha256',\n}, Buffer.from(encryptedSecretKey, 'base64url')).toString('utf8');\n```\n","schema":{"type":"string"}}},"schemas":{"LogApplicationContext":{"type":"object","description":"Application context information.","properties":{"id":{"type":"string","nullable":true,"description":"The application ID."},"name":{"type":"string","nullable":true,"description":"The application name."}}},"LogDomainContext":{"type":"object","description":"Domain context information.","properties":{"id":{"type":"string","nullable":true,"description":"The domain ID."},"name":{"type":"string","nullable":true,"description":"The domain name."}}},"LogEnvironmentContext":{"type":"object","description":"Environment context for the log event.","properties":{"type":{"type":"string","nullable":true,"description":"The environment type (e.g., \"development\", \"production\")."},"application":{"$ref":"#/components/schemas/LogApplicationContext"},"domain":{"$ref":"#/components/schemas/LogDomainContext"},"primary_domain":{"$ref":"#/components/schemas/LogDomainContext"}}},"LogBrowserContext":{"type":"object","description":"Browser information.","properties":{"name":{"type":"string","nullable":true,"description":"The browser name."},"version":{"type":"string","nullable":true,"description":"The browser version."}}},"LogLocationContext":{"type":"object","description":"Geographic location information.","properties":{"city":{"type":"string","nullable":true,"description":"The city name."},"country":{"type":"string","nullable":true,"description":"The country, as recorded for the event."},"country_code":{"type":"string","description":"The ISO 3166-1 alpha-2 code of `country`. Omitted when the\ncountry cannot be resolved to a known code.","example":"US"}}},"LogDeviceContext":{"type":"object","description":"Device information for the log event.","properties":{"ip_address":{"type":"string","nullable":true,"description":"The IP address of the client."},"user_agent":{"type":"string","nullable":true,"description":"The user agent string of the client."},"browser":{"$ref":"#/components/schemas/LogBrowserContext"},"device_type":{"type":"string","nullable":true,"description":"The type of device (e.g., \"desktop\", \"mobile\", \"tablet\")."},"is_mobile":{"type":"boolean","nullable":true,"description":"Whether the device is a mobile device."},"location":{"$ref":"#/components/schemas/LogLocationContext"},"clerk_js_version":{"type":"string","nullable":true,"description":"The version of Clerk.js used by the client."},"is_native":{"type":"boolean","nullable":true,"description":"Whether the client is a native application."}}},"LogContext":{"type":"object","description":"Context information about the environment and device where the event occurred.","properties":{"environment":{"$ref":"#/components/schemas/LogEnvironmentContext"},"device":{"$ref":"#/components/schemas/LogDeviceContext","nullable":true}}},"Log":{"type":"object","description":"Application log metadata. Payload access is not supported.","properties":{"object":{"type":"string","description":"String representing the object's type. Always \"log\".","example":"log","enum":["log"]},"id":{"type":"string","format":"uuid","description":"Unique identifier for the log event."},"event_time":{"type":"integer","format":"int64","description":"The timestamp when the event occurred (Unix timestamp in milliseconds)."},"actor":{"type":"string","description":"The ID of whoever triggered the event. `actor_type` says what kind\nof principal it is: an end user, a Clerk Dashboard user, an\ninstance key, an API key, an integration, or Clerk itself. In an\nimpersonated session, it is the impersonated user and\n`impersonator` holds whoever started the impersonation."},"actor_type":{"type":"string","description":"The kind of principal the `actor` identifies, classified when the\nevent was recorded: `user` (an end user of your application),\n`dashboard_user` (a member of your Clerk Dashboard workspace),\n`instance_key`, `api_key`, `integration`, or `clerk_system`.","example":"dashboard_user"},"impersonator":{"type":"object","nullable":true,"description":"The impersonator that performed the action.","properties":{"user_id":{"type":"string","nullable":true,"description":"The user ID of the impersonator."}}},"subject":{"type":"string","description":"The ID of the resource the event is about, such as a user or an\norganization. A change to a child record, such as an email address\nor a membership, uses the ID of its parent user or organization.\nEvents that affect several resources use their lowest common\nparent, and side effects use the primary resource's subject. The\ninstance ID is used when nothing more specific applies.\nEvents in the same flow can have different subjects; use\n`group_id` to follow a flow."},"type":{"type":"string","description":"The type of the log event."},"client_id":{"type":"string","nullable":true,"description":"The client ID of the request. Set on FAPI requests, unset on BAPI requests."},"source":{"type":"string","nullable":true,"description":"The source service that generated the event."},"session_id":{"type":"string","nullable":true,"description":"The ID of the session the event occurred in, if any."},"trace_id":{"type":"string","description":"Trace ID for distributed tracing (32 hex characters)."},"span_id":{"type":"string","description":"Span ID for distributed tracing (16 hex characters)."},"parent_span_id":{"type":"string","nullable":true,"description":"Parent span ID for hierarchical tracing."},"event_context":{"$ref":"#/components/schemas/LogContext"},"group_id":{"type":"string","nullable":true,"description":"The ID of the event group (a flow such as a sign-in) the event\nbelongs to, e.g. a sign-in ID. Null for an event outside any group."},"group_type":{"type":"string","nullable":true,"description":"The kind of event group the event belongs to, e.g. `sign_in`. Null for an event outside any group."},"group_started_at":{"type":"integer","format":"int64","nullable":true,"description":"When the event's group started (Unix timestamp in milliseconds). Null for an event outside any group."}},"required":["object","id","event_time","actor","subject","type","source","trace_id","span_id","event_context"]},"LogGroup":{"type":"object","description":"An event group in the grouped log list: the events of one flow, such\nas a sign-in, shown as a single item.","properties":{"object":{"type":"string","description":"String representing the object's type. Always \"log_group\".","enum":["log_group"]},"group_id":{"type":"string","description":"The group's ID, e.g. a sign-in ID."},"group_type":{"type":"string","description":"The kind of flow the group collects, e.g. `sign_in`."},"started_at":{"type":"integer","format":"int64","description":"When the flow started (Unix timestamp in milliseconds). The list sorts groups by it."},"event_count":{"type":"integer","format":"int64","description":"The number of events in the group."},"matched_event_count":{"type":"integer","format":"int64","description":"How many of the group's events matched the request's event filters. Present only when event filters were applied."},"status":{"type":"string","nullable":true,"description":"How the flow ended: `completed`, `failed`, or `abandoned` when\nnothing concluded it and its abandon deadline has passed (a\nsign-in or sign-up nobody finished). A flow that concluded keeps\nthat status, even if it concluded after the deadline. Null while\nthe flow is still going, and for a flow with no conclusion and no\ndeadline."},"status_label":{"type":"string","nullable":true,"description":"A display label for `status`. Null when `status` is."},"first_event":{"allOf":[{"$ref":"#/components/schemas/Log"}],"nullable":true,"description":"The group's first log, even when event filters left it out of\n`events`, for showing how the flow started (subject, IP,\nlocation)."},"events":{"type":"array","description":"The group's first events, oldest first. Only events matching the request's event filters when any were applied.","items":{"$ref":"#/components/schemas/Log"}},"has_more_events":{"type":"boolean","description":"Whether the group has more events than `events` holds. Load them from the group events endpoint."},"events_cursor":{"type":"string","nullable":true,"description":"When `has_more_events` is true, the `starting_after` to pass to the group events endpoint to load the rest. Null otherwise."}},"required":["object","group_id","group_type","started_at","event_count","status","status_label","first_event","events","has_more_events","events_cursor"]},"LogCursor":{"type":"object","description":"Cursor information for pagination.","properties":{"starting_after":{"type":"string","nullable":true,"description":"Cursor to fetch the next page of results."},"ending_before":{"type":"string","nullable":true,"description":"Cursor to fetch the previous page of results."},"has_next_page":{"type":"boolean","description":"Deprecated: use next_page_status instead. If true, more results may be fetched using the starting_after cursor. True when next_page_status is \"true\", or when it is \"unknown\" and the page returned data."},"next_page_status":{"type":"string","enum":["true","false","unknown"],"description":"Pagination status. \"true\" means more results exist, \"false\" means no more results, \"unknown\" means the query was time-windowed and more results may exist beyond the window."},"retention_limit_reached":{"type":"boolean","description":"When true, next_page_status is \"false\" because event_time_after was clamped to the plan's retention floor. Extending event_time_after further back will not yield additional results."},"retention_days":{"type":"integer","description":"The plan's log retention window, in days. Events older than this are not kept and cannot be returned at any page size."},"retention_floor":{"type":"integer","format":"int64","description":"The oldest timestamp this plan can return, in Unix milliseconds: `retention_days` before the time the request was served. `searched_from` is never earlier than this, whatever `event_time_after` asked for.\n\nCompare your own `event_time_after` against it to tell whether part of the range you asked for is unavailable. It is reported as a timestamp rather than a flag because the floor moves with the clock: a boolean would turn true partway through a long walk, and would fire on a caller who asked for exactly their window."},"searched_from":{"type":"integer","format":"int64","description":"Lower bound of the time range this page was actually read from, in Unix milliseconds.\n\nA request is not served by scanning the whole range you ask for. The endpoint picks a sub-window of it per request and pages through your range one sub-window at a time, which is why `next_page_status` can be `\"unknown\"` on a page that looks short. `searched_from` and `searched_to` are that sub-window, so you can tell where in your requested range a page sits without decoding the cursor.\n\nNever earlier than `event_time_after`, or than the plan's retention floor when that is later."},"searched_to":{"type":"integer","format":"int64","description":"Upper bound of the time range this page was actually read from, in Unix milliseconds. See `searched_from`.\n\nOn a first page with no `event_time_before`, this sits a few minutes ahead of the current time on purpose: events can arrive with timestamps marginally ahead of the service clock, and this is the bound the query ran with."}}},"GroupedLogList":{"type":"object","required":["data","cursor"],"properties":{"data":{"type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/Log"},{"$ref":"#/components/schemas/LogGroup"}],"discriminator":{"propertyName":"object","mapping":{"log":"#/components/schemas/Log","log_group":"#/components/schemas/LogGroup"}}}},"cursor":{"$ref":"#/components/schemas/LogCursor"}}},"ClerkError":{"type":"object","properties":{"message":{"type":"string"},"long_message":{"type":"string"},"code":{"type":"string"},"meta":{"type":"object","additionalProperties":true}},"required":["message","long_message","code"]},"ClerkErrors":{"type":"object","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/ClerkError"}},"meta":{"type":"object","additionalProperties":true},"clerk_trace_id":{"type":"string"}},"required":["errors"]},"GroupEventList":{"type":"object","required":["data","cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Log"}},"cursor":{"$ref":"#/components/schemas/LogCursor"}}},"Organization":{"type":"object","properties":{"object":{"type":"string","enum":["organization"]},"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"image_url":{"type":"string"},"has_image":{"type":"boolean"},"members_count":{"type":"integer"},"missing_member_with_elevated_permissions":{"type":"boolean"},"pending_invitations_count":{"type":"integer"},"max_allowed_memberships":{"type":"integer"},"admin_delete_enabled":{"type":"boolean"},"self_serve_sso_enabled":{"type":"boolean","description":"Whether this organization can configure self-serve enterprise SSO.\n"},"self_serve_directory_sync_enabled":{"type":"boolean","description":"Whether this organization can configure self-serve Directory Sync (SCIM).\n"},"public_metadata":{"type":"object","additionalProperties":true},"private_metadata":{"type":"object","additionalProperties":true},"created_by":{"type":"string"},"created_at":{"type":"integer","format":"int64","description":"Unix timestamp of creation.\n"},"updated_at":{"type":"integer","format":"int64","description":"Unix timestamp of last update.\n"},"last_active_at":{"type":"integer","format":"int64","description":"Unix timestamp of last activity.\n"},"role_set_key":{"type":"string","description":"The key of the [role set](https://clerk.com/docs/guides/organizations/control-access/role-sets) assigned to this organization.\n","nullable":true}},"required":["object","id","name","slug","has_image","max_allowed_memberships","admin_delete_enabled","public_metadata","created_at","updated_at"]},"OrganizationMembershipPublicUserData":{"description":"An organization membership with public user data populated","type":"object","additionalProperties":false,"properties":{"user_id":{"type":"string","nullable":false},"first_name":{"type":"string","nullable":true},"last_name":{"type":"string","nullable":true},"profile_image_url":{"type":"string","nullable":true,"deprecated":true},"image_url":{"type":"string"},"has_image":{"type":"boolean"},"identifier":{"type":"string","nullable":true},"username":{"type":"string","nullable":true},"banned":{"type":"boolean"},"deprovisioned":{"type":"boolean"}},"required":["user_id","first_name","last_name","profile_image_url","image_url","has_image"]},"OrganizationMembership":{"description":"A user's membership in an organization","type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value.\n","enum":["organization_membership"]},"role":{"type":"string"},"role_name":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"public_metadata":{"type":"object","description":"Metadata saved on the organization membership, accessible from both Frontend and Backend APIs","additionalProperties":true},"private_metadata":{"type":"object","description":"Metadata saved on the organization membership, accessible only from the Backend API","additionalProperties":true},"organization":{"type":"object","nullable":false,"allOf":[{"$ref":"#/components/schemas/Organization"}]},"public_user_data":{"$ref":"#/components/schemas/OrganizationMembershipPublicUserData"},"created_at":{"type":"integer","format":"int64","description":"Unix timestamp of creation."},"updated_at":{"type":"integer","format":"int64","description":"Unix timestamp of last update."}},"required":["object","id","role","permissions","public_metadata","created_at","updated_at","organization"]},"OrganizationMemberships":{"type":"object","additionalProperties":false,"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationMembership"}},"total_count":{"type":"integer","format":"int64","description":"Total number of organization memberships\n"}},"required":["data","total_count"]},"Organizations":{"type":"object","additionalProperties":false,"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Organization"}},"total_count":{"type":"integer","format":"int64","description":"Total number of organizations\n"}},"required":["data","total_count"]},"PlatformEncryptedSecretKey":{"title":"Encrypted Secret Key","description":"Unpadded base64url encoding of the RSA-OAEP ciphertext for one instance secret key, encrypted to the RSA public key in the `Clerk-Recipient-Public-Key` header. Returned only by endpoints that accept that header. The ciphertext length in bytes matches the RSA modulus size in bytes. OAEP and MGF1 both use SHA-256; the OAEP label is empty. Only the holder of the matching private key can decrypt this value.","type":"string","x-sensitive":true},"PlatformApplicationInstance":{"title":"Application Instance","description":"Represents an instance (environment) within a Clerk application. Each application can have multiple instances, typically one for development and one for production.","type":"object","additionalProperties":false,"properties":{"instance_id":{"type":"string","description":"The unique identifier for this instance. Use this ID when making API calls that target a specific instance.","example":"ins_2abc123def456"},"environment_type":{"type":"string","description":"The environment type of the instance. Determines whether this instance is used for development/testing or production workloads.","enum":["development","production"],"example":"production"},"secret_key":{"type":"string","description":"The secret key for authenticating server-side API requests to this instance. Keep this value secure and never expose it in client-side code. Omitted from `POST /platform/applications` responses when the `Clerk-Recipient-Public-Key` header is set; `encrypted_secret_key` is returned instead.","example":"sk_live_abc123...","x-sensitive":true},"encrypted_secret_key":{"$ref":"#/components/schemas/PlatformEncryptedSecretKey"},"publishable_key":{"type":"string","description":"The publishable key for this instance. Safe to include in client-side code and used to initialize Clerk SDKs in the browser.","example":"pk_live_abc123..."}},"required":["instance_id","environment_type"]},"PlatformApplicationResponse":{"type":"object","additionalProperties":false,"properties":{"application_id":{"type":"string","description":"The ID of the application."},"name":{"type":"string","description":"The name of the application."},"instances":{"type":"array","description":"List of instances associated with this application.","items":{"$ref":"#/components/schemas/PlatformApplicationInstance"}}},"required":["application_id","name","instances"]},"PlatformListApplicationsResponse":{"type":"array","items":{"$ref":"#/components/schemas/PlatformApplicationResponse"},"minItems":0},"PlatformListApplicationsCursorResponse":{"title":"List Applications Cursor Response","description":"A page of applications, returned with `paginated=true`.","type":"object","additionalProperties":false,"properties":{"data":{"type":"array","description":"The list of applications.","items":{"$ref":"#/components/schemas/PlatformApplicationResponse"}},"cursor":{"type":"object","additionalProperties":false,"description":"Cursor information for pagination.","properties":{"starting_after":{"type":"string","nullable":true,"description":"Cursor to fetch the next page of results. Pass it back as `starting_after` on the next request. `null` on the last page."},"ending_before":{"type":"string","nullable":true,"description":"Cursor to fetch the previous page of results. Pass it back as `ending_before` on the next request. `null` on the first page."},"has_next_page":{"type":"boolean","description":"Whether older applications follow this page."}},"required":["starting_after","ending_before","has_next_page"]}},"required":["data","cursor"]},"PlatformCreateApplicationRequest":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","description":"The name of the application."},"domain":{"type":"string","description":"The domain for the application (optional)."},"proxy_path":{"type":"string","description":"Custom proxy path for provider domains (e.g., \"/__clerk\"). Must start with a leading slash and be a single path segment. Defaults to \"/__clerk\" if not provided."},"environment_types":{"type":"array","items":{"type":"string"},"description":"List of environment types to create instances for. Accepted values are \"development\" and \"production\". Defaults to \"development\" if not provided."},"template":{"type":"string","description":"Application template to use for configuring the application (e.g., \"b2b-saas\", \"b2c-saas\", \"waitlist\")."}},"required":["name"]},"PlatformDeletedObjectResponse":{"type":"object","additionalProperties":false,"properties":{"deleted":{"type":"boolean","description":"Whether the object was deleted."},"object":{"type":"string","example":"deleted"},"id":{"type":"string","description":"The ID of the deleted resource."}},"required":["deleted","object","id"]},"PlatformUpdateApplicationRequest":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","description":"The name of the application."}}},"PlatformUpdateApplicationDomainRequest":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","description":"The domain name."},"proxy_path":{"type":"string","description":"Optional proxy path for provider domains."}},"required":["name"]},"PlatformCNameTarget":{"type":"object","additionalProperties":false,"properties":{"host":{"type":"string"},"value":{"type":"string"},"required":{"type":"boolean"}},"required":["host","value","required"]},"PlatformDNSTarget":{"type":"object","additionalProperties":false,"properties":{"host":{"type":"string"},"value":{"type":"string"},"record_type":{"type":"string","enum":["CNAME","TXT"]},"automation_disposition":{"type":"string","description":"Provider-independent safety decision for automating this DNS record when available.","enum":["already_satisfied","safe_to_create","manual_resolution_required"]},"required":{"type":"boolean"}},"required":["host","value","record_type","required"]},"PlatformDomainApplicationSummary":{"type":"object","additionalProperties":false,"properties":{"object":{"type":"string","enum":["application"]},"id":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["object","id","created_at","updated_at"]},"PlatformDomainInstanceSummary":{"type":"object","additionalProperties":false,"properties":{"object":{"type":"string","enum":["instance"]},"id":{"type":"string"},"environment_type":{"type":"string","description":"Instance environment type.","enum":["production","development"]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["object","id","environment_type","created_at","updated_at"]},"PlatformDomainResponse":{"type":"object","additionalProperties":false,"properties":{"object":{"type":"string","enum":["domain"]},"id":{"type":"string","description":"The ID of the domain."},"name":{"type":"string","description":"The domain name."},"is_satellite":{"type":"boolean","description":"Whether this is a satellite domain."},"is_provider_domain":{"type":"boolean","description":"Whether this is a provider domain."},"frontend_api_url":{"type":"string","description":"The frontend API URL."},"development_origin":{"type":"string","description":"The development origin."},"accounts_portal_url":{"type":"string","description":"The accounts portal URL."},"proxy_url":{"type":"string","description":"The proxy URL."},"cname_targets":{"type":"array","items":{"$ref":"#/components/schemas/PlatformCNameTarget"},"description":"Legacy CNAME-only targets for the domain. New consumers should prefer `dns_targets` when present.\nOmitted for development domains, which do not use custom-domain DNS setup.\n"},"dns_targets":{"type":"array","items":{"$ref":"#/components/schemas/PlatformDNSTarget"},"description":"The complete typed DNS contract for the domain. Consumers should use this field instead of merging it\nwith `cname_targets`. Omitted for development domains, which do not use custom-domain DNS setup.\n"},"created_at":{"type":"string","format":"date-time","description":"When the domain was created."},"updated_at":{"type":"string","format":"date-time","description":"When the domain was last updated."},"application":{"$ref":"#/components/schemas/PlatformDomainApplicationSummary","description":"Included on workspace-wide domain endpoints (`GET /platform/domains`, `GET /platform/domains/{domainIDOrName}`)."},"instance":{"$ref":"#/components/schemas/PlatformDomainInstanceSummary","description":"Included on workspace-wide domain endpoints (`GET /platform/domains`, `GET /platform/domains/{domainIDOrName}`)."}},"required":["object","id","name","frontend_api_url","development_origin","created_at","updated_at"]},"PlatformListApplicationDomainsResponse":{"title":"List Application Domains Response","description":"A paginated list of application domains.","type":"object","additionalProperties":false,"properties":{"data":{"type":"array","description":"The list of application domains.","items":{"$ref":"#/components/schemas/PlatformDomainResponse"}},"total_count":{"type":"integer","format":"int64","description":"The total number of application domains for the application.","example":2}},"required":["data","total_count"]},"PlatformCreateApplicationDomainRequest":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","description":"The domain name."},"proxy_path":{"type":"string","description":"Optional proxy path for provider domains."},"domain_intent_id":{"type":"string","description":"Optional domain intent ID to complete into this domain."}},"required":["name"]},"FailureHint":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]},"CNAMEStatus":{"type":"object","additionalProperties":false,"properties":{"actual":{"type":"array","items":{"type":"string"}},"clerk_subdomain":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"record_type":{"type":"string","enum":["CNAME","TXT"]},"verified":{"type":"boolean"},"required":{"type":"boolean"},"failure_hints":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/FailureHint"}}},"required":["clerk_subdomain","from","to","record_type","verified","required","failure_hints"]},"DNSStatus":{"type":"object","additionalProperties":false,"properties":{"status":{"type":"string","enum":["not_started","in_progress","complete"]},"cnames":{"type":"object","properties":{"accounts":{"$ref":"#/components/schemas/CNAMEStatus"},"clerk":{"$ref":"#/components/schemas/CNAMEStatus"},"clk._domainkey":{"$ref":"#/components/schemas/CNAMEStatus"},"clk2._domainkey":{"$ref":"#/components/schemas/CNAMEStatus"},"clkmail":{"$ref":"#/components/schemas/CNAMEStatus"},"_dmarc":{"$ref":"#/components/schemas/CNAMEStatus"}}}},"required":["status","cnames"]},"SSLStatus":{"type":"object","additionalProperties":false,"properties":{"status":{"type":"string"},"required":{"type":"boolean"},"failure_hints":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/FailureHint"}}},"required":["status","required","failure_hints"]},"PlatformDomainStatusResponse":{"type":"object","properties":{"dns":{"type":"object","$ref":"#/components/schemas/DNSStatus"},"ssl":{"type":"object","properties":{"status":{"type":"string","enum":["complete","in_process","not_started","failed","incomplete"]},"required":{"type":"boolean"},"failure_hints":{"type":"array","nullable":true,"items":{"$ref":"#/components/schemas/FailureHint"}}}},"ssl_hosts":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/SSLStatus"}},"mail":{"type":"object","properties":{"status":{"type":"string"},"required":{"type":"boolean"}},"required":["status","required"]},"proxy":{"type":"object","properties":{"status":{"type":"string"},"required":{"type":"boolean"}},"required":["status","required"]},"status":{"type":"string","enum":["complete","incomplete"]}},"required":["dns","ssl","status"]},"PlatformDNSCheckResponse":{"description":"Response from triggering a DNS check. Includes the current domain status\nalong with metadata about the check.\n","allOf":[{"$ref":"#/components/schemas/PlatformDomainStatusResponse"},{"type":"object","properties":{"domain_id":{"type":"string","description":"The ID of the domain.","example":"dmn_abcdefghijklmnopqrstuvwxyz0"},"last_run_at":{"type":"integer","format":"int64","nullable":true,"description":"The timestamp in epoch milliseconds of the last DNS check, if any.\nWill be `null` if no check has been performed yet.\n"}},"required":["domain_id","last_run_at"]}]},"PlatformPrincipalResponse":{"type":"object","additionalProperties":false,"required":["object","auth_strategy","subject","actor","scopes"],"properties":{"object":{"type":"string","enum":["platform_principal"]},"auth_strategy":{"type":"string","description":"The strategy that authenticated the request: `api_key` for a Platform API\nkey, `oat` for an OAuth access token, or `exchanged_token` for an RFC 8693\nexchanged access token.\n"},"subject":{"type":"string","description":"The workspace (organization) ID the request acts on behalf of.\n"},"actor":{"type":"string","nullable":true,"description":"The identity acting for the subject: the API key ID for `api_key`, or\nthe user ID for `oat` and `exchanged_token`. `null` when there is no\nacting identity.\n"},"scopes":{"type":"array","description":"The Platform API scopes granted to the request, sorted alphabetically.\nAn `exchanged_token` request reports the token's scopes capped to the\nuser's current dashboard role.\n","items":{"type":"string"}}}},"PlatformWorkspaceDomainResponse":{"allOf":[{"$ref":"#/components/schemas/PlatformDomainResponse"},{"type":"object","required":["application","instance"]}]},"PlatformListDomainsResponse":{"title":"List Domains Response","description":"A paginated list of domains across the workspace.","type":"object","additionalProperties":false,"properties":{"data":{"type":"array","description":"The list of domains.","items":{"$ref":"#/components/schemas/PlatformWorkspaceDomainResponse"}},"total_count":{"type":"integer","format":"int64","description":"The total number of domains matching the query.","example":5}},"required":["data","total_count"]},"PlatformDomainIntentResponse":{"title":"Domain Intent","description":"Represents the intent to create a domain. Can later be completed into a real application domain.","type":"object","additionalProperties":false,"properties":{"object":{"type":"string","enum":["domain_intent"]},"id":{"type":"string","description":"The unique identifier for the domain intent.","example":"dmnint_2abc123def456"},"status":{"type":"string","enum":["pending","completed","canceled"],"description":"The current status of the domain intent."},"domain_id":{"type":"string","description":"The completed domain ID, if the intent has been completed."},"domain_name":{"type":"string","description":"The intended domain name."},"records":{"type":"array","description":"DNS records to configure before completion. For a pending intent with an issued\nDMARC TXT record, the create response includes the automation_disposition at\ncreation time. Retrying with the same Idempotency-Key can replay that response.\nBefore every automated DMARC write, fetch the pending intent by ID for a fresh\ndecision. Create only on safe_to_create and never replace an existing policy.\nList responses omit the decision. An absent decision does not authorize a write.\n","items":{"$ref":"#/components/schemas/PlatformDNSTarget"}}},"required":["object","id","status","records"]},"PlatformListDomainIntentsResponse":{"title":"List Domain Intents Response","description":"A paginated list of domain intents.","type":"object","additionalProperties":false,"properties":{"data":{"type":"array","description":"The list of domain intents.","items":{"$ref":"#/components/schemas/PlatformDomainIntentResponse"}},"total_count":{"type":"integer","format":"int64","description":"The total number of domain intents matching the query.","example":5}},"required":["data","total_count"]},"PlatformCreateDomainIntentRequest":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","description":"Domain name."},"proxy_path":{"type":"string","description":"Optional proxy path for the domain intent. Treated as a hint to determine optionality of DNS records in the response."}},"required":["name"]},"PlatformApplicationTransferResponse":{"title":"Application Transfer","description":"Represents an application transfer request. Application transfers allow transferring ownership of an application from one organization to another.","type":"object","additionalProperties":false,"properties":{"object":{"type":"string","enum":["application_transfer"],"description":"The object type."},"id":{"type":"string","description":"The unique identifier for the application transfer.","example":"appxfr_2abc123def456"},"code":{"type":"string","description":"A unique code for the transfer that can be shared with the recipient to claim the application through the clerk dashboard: https://dashboard.clerk.com/apps/transfer?code=<CODE>","example":"550e8400-e29b-41d4-a716-446655440000"},"application_id":{"type":"string","description":"The ID of the application being transferred.","example":"app_2abc123def456"},"status":{"type":"string","description":"The current status of the transfer.","enum":["pending","completed","canceled","expired"],"example":"pending"},"expires_at":{"type":"string","format":"date-time","description":"The timestamp when the transfer expires if not completed.","example":"2024-01-16T12:00:00Z"},"created_at":{"type":"string","format":"date-time","description":"The timestamp when the transfer was created.","example":"2024-01-15T12:00:00Z"},"canceled_at":{"type":"string","format":"date-time","nullable":true,"description":"The timestamp when the transfer was canceled, or null if not canceled.","example":null},"completed_at":{"type":"string","format":"date-time","nullable":true,"description":"The timestamp when the transfer was completed, or null if not completed.","example":null}},"required":["object","id","code","application_id","status","expires_at","created_at","canceled_at","completed_at"]},"PlatformListApplicationTransfersResponse":{"title":"List Application Transfers Response","description":"A paginated list of application transfers.","type":"object","additionalProperties":false,"properties":{"data":{"type":"array","description":"The list of application transfers.","items":{"$ref":"#/components/schemas/PlatformApplicationTransferResponse"}},"total_count":{"type":"integer","format":"int64","description":"The total number of application transfers matching the query.","example":5}},"required":["data","total_count"]},"PlatformRotateSecretKeysRequest":{"type":"object","additionalProperties":false,"properties":{"delay_old_secrets_expiration_hours":{"type":"integer","description":"Number of hours to delay before the old secret keys are deleted. This allows for a graceful transition period where both old and new keys are valid."},"reason":{"type":"string","description":"The reason for rotating the secret keys. This is stored for audit purposes."}}},"PlatformRotateSecretKeysInstance":{"title":"Rotated Secret Key Instance","description":"Represents an instance with a newly rotated secret key.","type":"object","additionalProperties":false,"properties":{"instance_id":{"type":"string","description":"The unique identifier for this instance.","example":"ins_2abc123def456"},"environment_type":{"type":"string","description":"The environment type of the instance.","enum":["development","production"],"example":"production"},"secret_key":{"type":"string","description":"The new secret key for authenticating server-side API requests to this instance. Keep this value secure and never expose it in client-side code. Omitted when the `Clerk-Recipient-Public-Key` header is set; `encrypted_secret_key` is returned instead.","example":"sk_live_abc123...","x-sensitive":true},"encrypted_secret_key":{"$ref":"#/components/schemas/PlatformEncryptedSecretKey"}},"required":["instance_id","environment_type"]},"PlatformRotateSecretKeysResponse":{"type":"object","additionalProperties":false,"properties":{"application_id":{"type":"string","description":"The ID of the application."},"name":{"type":"string","description":"The name of the application."},"instances":{"type":"array","description":"List of instances with their newly rotated secret keys.","items":{"$ref":"#/components/schemas/PlatformRotateSecretKeysInstance"}}},"required":["application_id","name","instances"]},"InstanceUsageMeterWithBillable":{"title":"Instance Usage Meter With Billable","description":"Usage totals for a meter that includes both total and billable quantities.","type":"object","additionalProperties":false,"properties":{"total_usage":{"type":"integer","format":"int64","description":"Total quantity for this meter in the selected period."},"total_billable_usage":{"type":"integer","format":"int64","description":"Billable subset of total usage for this meter in the selected period."}},"required":["total_usage","total_billable_usage"]},"InstanceUsageMeter":{"title":"Instance Usage Meter","description":"Usage totals for a single meter.","type":"object","additionalProperties":false,"properties":{"total_usage":{"type":"integer","format":"int64","description":"Total quantity for this meter in the selected period."}},"required":["total_usage"]},"InstanceSMSUsage":{"title":"Instance SMS Usage","description":"Total SMS usage with per-geographic-tier breakdowns.","type":"object","additionalProperties":false,"properties":{"total_usage":{"type":"integer","format":"int64","description":"Total SMS messages across all tiers."},"tier_a":{"$ref":"#/components/schemas/InstanceUsageMeter"},"tier_b":{"$ref":"#/components/schemas/InstanceUsageMeter"},"tier_c":{"$ref":"#/components/schemas/InstanceUsageMeter"},"tier_d":{"$ref":"#/components/schemas/InstanceUsageMeter"},"tier_e":{"$ref":"#/components/schemas/InstanceUsageMeter"},"tier_f":{"$ref":"#/components/schemas/InstanceUsageMeter"}},"required":["total_usage","tier_a","tier_b","tier_c","tier_d","tier_e","tier_f"]},"PlatformInstanceUsageResponse":{"title":"Instance Usage Report","description":"Usage report for an application instance containing per-meter totals.","type":"object","additionalProperties":false,"properties":{"application_id":{"type":"string","description":"The ID of the application."},"instance_id":{"type":"string","description":"The ID of the instance."},"period_start":{"type":"string","format":"date-time","description":"Inclusive start of the usage period boundary (RFC3339). When an\nexplicit date range is provided, this is midnight UTC on the start\ndate. When no date range is provided, this is the start of the\ncurrent billing cycle.\n"},"period_end":{"type":"string","format":"date-time","description":"Exclusive end of the usage period boundary (RFC3339). When an\nexplicit date range is provided, this is midnight UTC immediately\nafter the requested end date. When no date range is provided, this\nis the end of the current billing cycle.\n"},"mau":{"$ref":"#/components/schemas/InstanceUsageMeterWithBillable"},"mao":{"$ref":"#/components/schemas/InstanceUsageMeterWithBillable"},"custom_domains":{"$ref":"#/components/schemas/InstanceUsageMeter"},"sms_messages":{"$ref":"#/components/schemas/InstanceSMSUsage"},"enterprise_connections":{"$ref":"#/components/schemas/InstanceUsageMeter"}},"required":["application_id","instance_id","period_start","period_end","mau","mao","custom_domains","sms_messages","enterprise_connections"]},"verification_otp":{"x-speakeasy-name-override":"OTP","type":"object","additionalProperties":false,"properties":{"object":{"type":"string","enum":["verification_otp"]},"status":{"type":"string","enum":["unverified","verified","failed","expired"]},"strategy":{"x-speakeasy-unknown-values":"allow","type":"string","enum":["phone_code","email_code","reset_password_email_code"]},"attempts":{"type":"integer","nullable":true},"expire_at":{"type":"integer","nullable":true},"channel":{"type":"string","nullable":true,"description":"The delivery channel of the code (phone codes only)."},"verified_at_client":{"type":"string","nullable":true}},"required":["status","strategy","attempts","expire_at"]},"verification_admin":{"x-speakeasy-name-override":"Admin","type":"object","additionalProperties":false,"properties":{"object":{"type":"string","enum":["verification_admin"]},"status":{"type":"string","enum":["verified"]},"strategy":{"x-speakeasy-unknown-values":"allow","type":"string","enum":["admin"]},"attempts":{"type":"integer","nullable":true},"expire_at":{"type":"integer","nullable":true},"verified_at_client":{"type":"string","nullable":true}},"required":["status","strategy","attempts","expire_at"]},"verification_from_oauth":{"x-speakeasy-name-override":"FromOAuth","type":"object","additionalProperties":false,"properties":{"object":{"type":"string","enum":["verification_from_oauth"]},"status":{"type":"string","enum":["unverified","verified"]},"strategy":{"type":"string","pattern":"^from_oauth_(?:(?:token_)|(?:custom_))?[a-z]+$"},"error":{"type":"object","nullable":true,"oneOf":[{"$ref":"#/components/schemas/ClerkError"}]},"expire_at":{"type":"integer","nullable":true},"attempts":{"type":"integer","nullable":true},"verified_at_client":{"type":"string","nullable":true}},"required":["status","strategy","attempts","expire_at"]},"verification_ticket":{"x-speakeasy-name-override":"Ticket","type":"object","additionalProperties":false,"properties":{"object":{"type":"string","enum":["verification_ticket"]},"status":{"type":"string","enum":["unverified","verified","expired"]},"strategy":{"x-speakeasy-unknown-values":"allow","type":"string","enum":["ticket"]},"attempts":{"type":"integer","nullable":true},"expire_at":{"type":"integer","nullable":true},"verified_at_client":{"type":"string","nullable":true}},"required":["status","strategy","attempts","expire_at"]},"verification_saml":{"x-speakeasy-name-override":"SAML","type":"object","additionalProperties":false,"properties":{"object":{"type":"string","enum":["verification_saml"]},"status":{"type":"string","enum":["unverified","verified","failed","expired","transferable"]},"strategy":{"type":"string","enum":["saml"]},"external_verification_redirect_url":{"nullable":true,"type":"string"},"error":{"nullable":true,"type":"object","oneOf":[{"$ref":"#/components/schemas/ClerkError"}]},"expire_at":{"type":"integer","nullable":true},"attempts":{"type":"integer","nullable":true},"verified_at_client":{"type":"string","nullable":true}},"required":["status","strategy","attempts"]},"verification_email_link":{"x-speakeasy-name-override":"EmailLink","type":"object","additionalProperties":false,"properties":{"object":{"type":"string","enum":["verification_email_link"]},"status":{"type":"string","enum":["unverified","verified","failed","expired"]},"strategy":{"type":"string","enum":["email_link"]},"attempts":{"type":"integer","nullable":true},"expire_at":{"type":"integer","nullable":true},"verified_at_client":{"type":"string","nullable":true}},"required":["status","strategy","attempts","expire_at"]},"verification_scim":{"x-speakeasy-name-override":"SCIM","type":"object","additionalProperties":false,"properties":{"object":{"type":"string","enum":["verification_scim"]},"status":{"type":"string","enum":["verified"]},"strategy":{"type":"string","enum":["scim"]},"attempts":{"type":"integer","nullable":true},"expire_at":{"type":"integer","nullable":true}},"required":["status","strategy","attempts","expire_at"]},"IdentificationLink":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string","pattern":"^oauth_[a-z]+$"},"id":{"type":"string"}},"required":["type","id"]},"EmailAddress":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"object":{"type":"string","x-speakeasy-unknown-values":"allow","description":"String representing the object's type. Objects of the same type share the same value.\n","enum":["email_address"]},"email_address":{"type":"string"},"reserved":{"type":"boolean"},"verification":{"type":"object","nullable":true,"oneOf":[{"$ref":"#/components/schemas/verification_otp"},{"$ref":"#/components/schemas/verification_admin"},{"$ref":"#/components/schemas/verification_from_oauth"},{"$ref":"#/components/schemas/verification_ticket"},{"$ref":"#/components/schemas/verification_saml"},{"$ref":"#/components/schemas/verification_email_link"},{"$ref":"#/components/schemas/verification_scim"}],"discriminator":{"propertyName":"object","mapping":{"verification_otp":"#/components/schemas/verification_otp","verification_admin":"#/components/schemas/verification_admin","verification_from_oauth":"#/components/schemas/verification_from_oauth","verification_ticket":"#/components/schemas/verification_ticket","verification_saml":"#/components/schemas/verification_saml","verification_email_link":"#/components/schemas/verification_email_link","verification_scim":"#/components/schemas/verification_scim"}}},"linked_to":{"type":"array","items":{"$ref":"#/components/schemas/IdentificationLink"}},"matches_sso_connection":{"description":"Indicates whether this email address domain matches an active enterprise connection.\n","type":"boolean"},"created_at":{"type":"integer","format":"int64","description":"Unix timestamp of creation\n"},"updated_at":{"type":"integer","format":"int64","description":"Unix timestamp of creation\n"}},"required":["object","email_address","verification","linked_to","reserved","created_at","updated_at"]},"PhoneNumber":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value.\n","enum":["phone_number"]},"phone_number":{"type":"string"},"reserved_for_second_factor":{"type":"boolean"},"default_second_factor":{"type":"boolean"},"reserved":{"type":"boolean"},"verification":{"type":"object","nullable":true,"oneOf":[{"$ref":"#/components/schemas/verification_otp"},{"$ref":"#/components/schemas/verification_admin"}],"discriminator":{"propertyName":"object","mapping":{"verification_otp":"#/components/schemas/verification_otp","verification_admin":"#/components/schemas/verification_admin"}}},"linked_to":{"type":"array","items":{"$ref":"#/components/schemas/IdentificationLink"}},"backup_codes":{"type":"array","items":{"type":"string"},"nullable":true},"created_at":{"type":"integer","format":"int64","description":"Unix timestamp of creation\n"},"updated_at":{"type":"integer","format":"int64","description":"Unix timestamp of creation\n"}},"required":["object","phone_number","verification","linked_to","reserved","created_at","updated_at"]},"verification_web3":{"x-speakeasy-name-override":"Web3Signature","type":"object","additionalProperties":false,"properties":{"object":{"type":"string","enum":["verification_web3"]},"status":{"type":"string","enum":["unverified","verified","failed","expired"]},"strategy":{"type":"string","enum":["web3_metamask_signature","web3_base_signature","web3_coinbase_wallet_signature","web3_okx_wallet_signature","web3_solana_signature"]},"nonce":{"type":"string","nullable":true},"message":{"type":"string","nullable":true},"attempts":{"type":"integer","nullable":true},"expire_at":{"type":"integer","nullable":true},"verified_at_client":{"type":"string","nullable":true}},"required":["status","strategy","attempts","expire_at"]},"Web3Wallet":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value.\n","enum":["web3_wallet"]},"web3_wallet":{"type":"string"},"verification":{"type":"object","nullable":true,"oneOf":[{"$ref":"#/components/schemas/verification_web3"},{"$ref":"#/components/schemas/verification_admin"}],"discriminator":{"propertyName":"object"}},"created_at":{"type":"integer","format":"int64","description":"Unix timestamp of creation\n"},"updated_at":{"type":"integer","format":"int64","description":"Unix timestamp of creation\n"}},"required":["object","web3_wallet","verification","created_at","updated_at"]},"verification_passkey":{"x-speakeasy-name-override":"Passkey","type":"object","additionalProperties":false,"properties":{"object":{"type":"string","enum":["verification_passkey"]},"status":{"type":"string","enum":["verified"]},"strategy":{"type":"string","enum":["passkey"]},"nonce":{"type":"string","enum":["nonce"]},"message":{"type":"string","nullable":true},"attempts":{"type":"integer","nullable":true},"expire_at":{"type":"integer","nullable":true},"verified_at_client":{"type":"string","nullable":true}},"required":["status","strategy","attempts","expire_at"]},"Passkey":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value.\n","enum":["passkey"]},"name":{"type":"string"},"last_used_at":{"type":"integer","format":"int64","description":"Unix timestamp of when the passkey was last used.\n"},"verification":{"type":"object","nullable":true,"oneOf":[{"$ref":"#/components/schemas/verification_passkey"}],"discriminator":{"propertyName":"object"}}},"required":["object","name","last_used_at","verification"]},"verification_oauth":{"x-speakeasy-name-override":"Oauth","type":"object","additionalProperties":false,"properties":{"object":{"type":"string","enum":["verification_oauth"]},"status":{"type":"string","x-speakeasy-unknown-values":"allow","enum":["unverified","verified","failed","expired","transferable"]},"strategy":{"type":"string","x-speakeasy-unknown-values":"allow","pattern":"^oauth_(?:(?:token_)|(?:custom_))?[a-z]+$"},"external_verification_redirect_url":{"type":"string"},"error":{"type":"object","nullable":true,"oneOf":[{"$ref":"#/components/schemas/ClerkError"}]},"expire_at":{"type":"integer"},"attempts":{"type":"integer","nullable":true},"verified_at_client":{"type":"string","nullable":true}},"required":["status","strategy","attempts","expire_at"]},"verification_google_one_tap":{"x-speakeasy-name-override":"GoogleOneTap","type":"object","additionalProperties":false,"properties":{"object":{"type":"string","enum":["verification_google_one_tap"]},"status":{"type":"string","enum":["unverified","verified"]},"strategy":{"type":"string","enum":["google_one_tap"]},"expire_at":{"type":"integer","nullable":true},"attempts":{"type":"integer","nullable":true},"verified_at_client":{"type":"string","nullable":true},"error":{"type":"object","nullable":true,"oneOf":[{"$ref":"#/components/schemas/ClerkError"}]}},"required":["status","strategy","attempts","expire_at"]},"ExternalAccountWithVerification":{"type":"object","additionalProperties":true,"properties":{"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value.","enum":["external_account","facebook_account","google_account"]},"id":{"type":"string"},"provider":{"type":"string"},"identification_id":{"type":"string"},"provider_user_id":{"description":"The unique ID of the user in the external provider's system","type":"string"},"approved_scopes":{"type":"string"},"email_address":{"type":"string"},"email_address_verified":{"type":"boolean","nullable":true,"description":"Whether the email was verified by the OAuth provider at creation time. null = unknown (pre-migration data or custom OAuth providers), true = provider confirmed email was verified, false = provider confirmed email was NOT verified\n"},"first_name":{"type":"string"},"last_name":{"type":"string"},"avatar_url":{"type":"string","deprecated":true,"description":"Please use `image_url` instead"},"image_url":{"type":"string","nullable":true},"username":{"type":"string","nullable":true},"phone_number":{"type":"string","nullable":true},"public_metadata":{"type":"object","additionalProperties":true},"label":{"type":"string","nullable":true},"created_at":{"type":"integer","format":"int64","description":"Unix timestamp of creation\n"},"updated_at":{"type":"integer","format":"int64","description":"Unix timestamp of creation\n"},"verification":{"type":"object","nullable":true,"oneOf":[{"$ref":"#/components/schemas/verification_oauth"},{"$ref":"#/components/schemas/verification_google_one_tap"}],"discriminator":{"propertyName":"object"}}},"required":["object","id","provider","identification_id","provider_user_id","approved_scopes","email_address","first_name","last_name","public_metadata","created_at","updated_at","verification"]},"SAMLAccountConnection":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"name":{"type":"string"},"domain":{"type":"string","deprecated":true},"domains":{"type":"array","items":{"type":"string"}},"active":{"type":"boolean"},"provider":{"type":"string"},"sync_user_attributes":{"type":"boolean"},"allow_subdomains":{"type":"boolean"},"allow_idp_initiated":{"type":"boolean"},"disable_additional_identifications":{"type":"boolean"},"created_at":{"type":"integer","format":"int64","description":"Unix timestamp of creation.\n"},"updated_at":{"type":"integer","format":"int64","description":"Unix timestamp of last update.\n"}},"required":["id","name","active","provider","sync_user_attributes","created_at","updated_at"],"anyOf":[{"required":["domain"]},{"required":["domains"]}]},"SAMLAccount":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value.\n","enum":["saml_account"]},"provider":{"type":"string"},"active":{"type":"boolean"},"email_address":{"type":"string"},"first_name":{"type":"string","nullable":true},"last_name":{"type":"string","nullable":true},"provider_user_id":{"type":"string","nullable":true},"last_authenticated_at":{"type":"integer","format":"int64","nullable":true,"description":"Unix timestamp of last authentication.\n"},"public_metadata":{"type":"object","additionalProperties":true},"verification":{"type":"object","nullable":true,"oneOf":[{"$ref":"#/components/schemas/verification_saml"},{"$ref":"#/components/schemas/verification_ticket"}],"discriminator":{"propertyName":"object"}},"saml_connection":{"type":"object","nullable":true,"oneOf":[{"$ref":"#/components/schemas/SAMLAccountConnection"}]}},"required":["id","object","provider","active","email_address","verification"]},"EnterpriseAccountConnection":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"protocol":{"type":"string"},"provider":{"type":"string"},"name":{"type":"string"},"logo_public_url":{"type":"string","nullable":true},"domain":{"type":"string","deprecated":true},"domains":{"type":"array","items":{"type":"string"}},"active":{"type":"boolean"},"sync_user_attributes":{"type":"boolean"},"allow_subdomains":{"type":"boolean"},"allow_idp_initiated":{"type":"boolean"},"disable_additional_identifications":{"type":"boolean"},"created_at":{"type":"integer","format":"int64","description":"Unix timestamp of creation.\n"},"updated_at":{"type":"integer","format":"int64","description":"Unix timestamp of last update.\n"}},"required":["id","protocol","name","logo_public_url","active","provider","sync_user_attributes","disable_additional_identifications","allow_subdomains","allow_idp_initiated","created_at","updated_at"],"anyOf":[{"required":["domain"]},{"required":["domains"]}]},"EnterpriseAccount":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value.\n","enum":["enterprise_account"]},"protocol":{"type":"string","description":"The authentication protocol used to sign in.\n","enum":["oauth","saml"]},"provider":{"type":"string"},"active":{"type":"boolean"},"email_address":{"type":"string"},"first_name":{"type":"string","nullable":true},"last_name":{"type":"string","nullable":true},"provider_user_id":{"description":"The unique ID of the user in the external provider's system","type":"string","nullable":true},"enterprise_connection_id":{"type":"string","nullable":true},"public_metadata":{"type":"object","additionalProperties":true},"verification":{"type":"object","nullable":true,"oneOf":[{"$ref":"#/components/schemas/verification_ticket"},{"$ref":"#/components/schemas/verification_saml"},{"$ref":"#/components/schemas/verification_oauth"}],"discriminator":{"propertyName":"object"}},"enterprise_connection":{"type":"object","nullable":true,"oneOf":[{"$ref":"#/components/schemas/EnterpriseAccountConnection"}]},"last_authenticated_at":{"type":"integer","format":"int64","nullable":true,"description":"Unix timestamp of last authentication.\n"}},"required":["id","object","provider","active","email_address","verification"]},"SCIMUserMetadata":{"type":"object","additionalProperties":false,"description":"Metadata describing a user's linkage to a directory. Included in user responses when directory data is requested, and in directory-triggered user webhooks. Its absence does not necessarily mean the user is not managed by a directory.\n","properties":{"id":{"type":"string","description":"The user's resource ID in this directory."},"directory_name":{"type":"string"},"provider":{"type":"string"},"enterprise_connection_id":{"type":"string","nullable":true},"groups":{"type":"array","description":"Omitted when groups were not loaded; an empty array means no group memberships.","items":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"display_name":{"type":"string"}},"required":["id","display_name"]}},"directory_id":{"type":"string","description":"The ID of the directory the user is provisioned from.\n"},"directory_enabled":{"type":"boolean","description":"Whether the directory is currently enabled.\n"},"external_id":{"type":"string","nullable":true,"description":"The user's external ID as reported by the directory, if any.\n"}},"required":["id","directory_name","provider","enterprise_connection_id","directory_enabled","directory_id","external_id"]},"User":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"object":{"type":"string","description":"String representing the object's type. Objects of the same type share the same value.\n","enum":["user"]},"external_id":{"nullable":true,"type":"string"},"primary_email_address_id":{"nullable":true,"type":"string"},"primary_phone_number_id":{"nullable":true,"type":"string"},"primary_web3_wallet_id":{"nullable":true,"type":"string"},"username":{"nullable":true,"type":"string"},"first_name":{"nullable":true,"type":"string"},"last_name":{"nullable":true,"type":"string"},"locale":{"nullable":true,"type":"string"},"timezone":{"nullable":true,"type":"string"},"profile_image_url":{"type":"string","deprecated":true},"image_url":{"type":"string"},"has_image":{"type":"boolean"},"public_metadata":{"type":"object","additionalProperties":true},"private_metadata":{"nullable":true,"type":"object","additionalProperties":true},"unsafe_metadata":{"type":"object","additionalProperties":true},"email_addresses":{"type":"array","items":{"$ref":"#/components/schemas/EmailAddress"}},"phone_numbers":{"type":"array","items":{"$ref":"#/components/schemas/PhoneNumber"}},"web3_wallets":{"type":"array","items":{"$ref":"#/components/schemas/Web3Wallet"}},"passkeys":{"type":"array","items":{"$ref":"#/components/schemas/Passkey"}},"password_enabled":{"type":"boolean"},"two_factor_enabled":{"type":"boolean"},"totp_enabled":{"type":"boolean"},"backup_code_enabled":{"type":"boolean"},"mfa_enabled_at":{"type":"integer","format":"int64","description":"Unix timestamp of when MFA was last enabled for this user. It should be noted that this field is not nullified if MFA is disabled.\n","nullable":true},"mfa_disabled_at":{"type":"integer","format":"int64","description":"Unix timestamp of when MFA was last disabled for this user. It should be noted that this field is not nullified if MFA is enabled again.\n","nullable":true},"password_last_updated_at":{"type":"integer","format":"int64","description":"Unix timestamp of when the user's password was last updated.\n","nullable":true},"external_accounts":{"type":"array","items":{"$ref":"#/components/schemas/ExternalAccountWithVerification"}},"saml_accounts":{"type":"array","items":{"$ref":"#/components/schemas/SAMLAccount"}},"enterprise_accounts":{"type":"array","items":{"$ref":"#/components/schemas/EnterpriseAccount"}},"organization_memberships":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationMembership"}},"last_sign_in_at":{"type":"integer","format":"int64","nullable":true,"description":"Unix timestamp of last sign-in.\n"},"banned":{"type":"boolean","description":"Flag to denote whether user is banned or not.\n"},"locked":{"type":"boolean","description":"Flag to denote whether user is currently locked, i.e. restricted from signing in or not.\n"},"deprovisioned":{"type":"boolean","description":"Flag to denote whether user has been deprovisioned and is restricted from signing in.\n"},"lockout_expires_in_seconds":{"type":"integer","format":"int64","nullable":true,"description":"The number of seconds remaining until the lockout period expires for a locked user. A null value for a locked user indicates that lockout never expires.\n"},"verification_attempts_remaining":{"type":"integer","format":"int64","nullable":true,"description":"The number of verification attempts remaining until the user is locked. Null if account lockout is not enabled. Note: if a user is locked explicitly via the Backend API, they may still have verification attempts remaining.\n"},"updated_at":{"type":"integer","format":"int64","description":"Unix timestamp of last update.\n"},"created_at":{"type":"integer","format":"int64","description":"Unix timestamp of creation.\n"},"delete_self_enabled":{"type":"boolean","description":"If enabled, user can delete themselves via FAPI.\n"},"create_organization_enabled":{"type":"boolean","description":"If enabled, user can create organizations via FAPI.\n"},"create_organizations_limit":{"type":"integer","description":"The maximum number of organizations the user can create. 0 means unlimited.\n","nullable":true},"last_active_at":{"type":"integer","format":"int64","nullable":true,"description":"Unix timestamp of the latest session activity, with day precision.\n","example":1700690400000},"legal_accepted_at":{"type":"integer","format":"int64","nullable":true,"description":"Unix timestamp of when the user accepted the legal requirements.\n","example":1700690400000},"bypass_client_trust":{"type":"boolean","description":"When set to `true`, the user will bypass Device Trust checks during sign-in.","default":false},"directories":{"type":"array","description":"All loaded directory links. Omitted when links were not loaded; an empty array means the user has no directory links.\n","items":{"$ref":"#/components/schemas/SCIMUserMetadata"}},"directory":{"deprecated":true,"description":"The most recently updated directory link. Use directories for all links.","allOf":[{"$ref":"#/components/schemas/SCIMUserMetadata"}]},"scim":{"deprecated":true,"description":"Alias of directory. Use directories for all links.","nullable":true,"allOf":[{"$ref":"#/components/schemas/SCIMUserMetadata"}]}},"required":["id","object","username","first_name","last_name","has_image","primary_email_address_id","primary_phone_number_id","primary_web3_wallet_id","password_enabled","two_factor_enabled","totp_enabled","backup_code_enabled","email_addresses","phone_numbers","web3_wallets","passkeys","external_accounts","saml_accounts","enterprise_accounts","public_metadata","external_id","last_sign_in_at","banned","locked","lockout_expires_in_seconds","verification_attempts_remaining","created_at","updated_at","delete_self_enabled","create_organization_enabled","last_active_at","mfa_enabled_at","mfa_disabled_at","legal_accepted_at"]},"PlatformListInstanceUsersResponse":{"title":"List Instance Users Response","description":"A paginated list of users for an application instance.","type":"object","additionalProperties":false,"properties":{"data":{"type":"array","description":"The list of users.","items":{"$ref":"#/components/schemas/User"}},"total_count":{"type":"integer","format":"int64","description":"The total number of users in the instance.","example":100}},"required":["data","total_count"]},"PlatformListInstanceUsersCursorResponse":{"title":"List Instance Users Cursor Response","description":"A page of users for an application instance, returned with `pagination=cursor`.","type":"object","additionalProperties":false,"properties":{"data":{"type":"array","description":"The list of users.","items":{"$ref":"#/components/schemas/User"}},"cursor":{"type":"object","additionalProperties":false,"description":"Cursor information for pagination.","properties":{"starting_after":{"type":"string","nullable":true,"description":"Cursor to fetch the next page of results. Pass it back as `starting_after` on the next request. `null` on the last page."},"ending_before":{"type":"string","nullable":true,"description":"Always `null`; this list pages forward only."},"has_next_page":{"type":"boolean","description":"Whether more results can be fetched using the `starting_after` cursor."}},"required":["starting_after","ending_before","has_next_page"]}},"required":["data","cursor"]},"PlatformPasswordHasher":{"type":"string","description":"The hashing algorithm used to generate `password_digest`. See the Backend API user creation documentation for supported algorithms and digest formats."},"PlatformCreateInstanceUserRequest":{"type":"object","additionalProperties":false,"properties":{"external_id":{"type":"string","description":"The ID of the user as used in your external systems or your previous authentication solution. Must be unique across your instance.","nullable":true},"first_name":{"type":"string","description":"The first name to assign to the user.","nullable":true},"last_name":{"type":"string","description":"The last name to assign to the user.","nullable":true},"locale":{"type":"string","description":"The locale to assign to the user (e.g., \"en-US\", \"fr-FR\").","nullable":true},"email_address":{"type":"array","items":{"type":"string"},"description":"Email addresses to add to the user. Must be unique across your instance. The first email address will be set as the user's primary email address. Created verified by default; see `email_address_identification_status` to create them reserved."},"email_address_identification_status":{"type":"array","items":{"type":"string","enum":["verified","reserved"]},"description":"Controls the status each email address is created with. Runs parallel to `email_address`: when provided, it must contain exactly one item per email address, applied by position. When omitted or empty, every email address is created `verified`. Set an item to `reserved` to create the corresponding email address reserved (unverified but usable for sign-in and locked so no other user can claim it)."},"phone_number":{"type":"array","items":{"type":"string"},"description":"Phone numbers to add to the user. Must be unique across your instance. The first phone number will be set as the user's primary phone number. Created verified by default; see `phone_number_identification_status` to create them reserved."},"phone_number_identification_status":{"type":"array","items":{"type":"string","enum":["verified","reserved"]},"description":"Controls the status each phone number is created with. Runs parallel to `phone_number`: when provided, it must contain exactly one item per phone number, applied by position. When omitted or empty, every phone number is created `verified`. Set an item to `reserved` to create the corresponding phone number reserved (unverified but usable for sign-in and locked so no other user can claim it)."},"web3_wallet":{"type":"array","items":{"type":"string"},"description":"Web3 wallets to add to the user. Must be unique across your instance. The first wallet will be set as the user's primary wallet."},"username":{"type":"string","description":"The username to give to the user. It must be unique across your instance.","nullable":true},"password":{"type":"string","description":"The plaintext password to give the user. Must be at least 8 characters long, and cannot be in any list of hacked passwords.","nullable":true},"password_digest":{"type":"string","description":"In case you already have the password digests and not the passwords, you can use them for the newly created user via this property. The digests should be generated with one of the supported algorithms. The hashing algorithm can be specified using the `password_hasher` property.","nullable":true},"password_hasher":{"$ref":"#/components/schemas/PlatformPasswordHasher"},"skip_password_checks":{"type":"boolean","description":"When set to `true` all password checks are skipped. It is recommended to use this method only when migrating plaintext passwords to Clerk. Upon migration the user base should be prompted to pick a stronger password.","nullable":true},"skip_password_requirement":{"type":"boolean","description":"When set to `true`, `password` is not required anymore when creating the user and can be omitted. This is useful when you need to create a user without a password in an instance that is using passwords. You cannot use this flag if password is the only way to sign in to your instance.","nullable":true},"totp_secret":{"type":"string","description":"If TOTP is configured on the instance, provides the secret to enable it for the newly created user. Supported options are a 30-second period, 6-digit codes, and SHA1.","nullable":true},"backup_codes":{"type":"array","items":{"type":"string"},"description":"Backup codes for the user. Provide plaintext codes or their corresponding bcrypt digests."},"public_metadata":{"type":"object","description":"Metadata saved on the user that is visible to both the Frontend and Backend APIs.","additionalProperties":true},"private_metadata":{"type":"object","description":"Metadata saved on the user that is only visible to the Backend API.","additionalProperties":true},"unsafe_metadata":{"type":"object","description":"Metadata saved on the user that can be updated from both the Frontend and Backend APIs. It is not guaranteed to be safe because the frontend can modify it.","additionalProperties":true},"delete_self_enabled":{"type":"boolean","description":"If enabled, the user can delete themselves via FAPI.","nullable":true},"legal_accepted_at":{"type":"string","description":"A custom RFC3339 timestamp for when the user accepted legal requirements.","nullable":true},"skip_legal_checks":{"type":"boolean","description":"When set to `true` all legal checks are skipped. Use only when migrating a user to Clerk.","nullable":true},"skip_user_requirement":{"type":"boolean","description":"When set to `true`, identification types are not enforced. At least one identification type must be enabled and provided on the instance (email, phone, web3 wallet, or username). Users without required identification types cannot use those authentication strategies.","nullable":true},"create_organization_enabled":{"type":"boolean","description":"If enabled, the user can create organizations via FAPI.","nullable":true},"create_organizations_limit":{"type":"integer","description":"The maximum number of organizations the user can create. Zero means unlimited.","nullable":true},"created_at":{"type":"string","description":"A custom RFC3339 timestamp for when the user signed up to the application.","nullable":true},"bypass_client_trust":{"type":"boolean","description":"When set to `true`, the user bypasses Device Trust checks during sign-in.","nullable":true},"banned":{"type":"boolean","description":"When set to `true`, the user is created already banned and cannot sign in. Requires the same plan support as the ban user endpoint.","nullable":true},"locked":{"type":"boolean","description":"When set to `true`, the user is created already locked. Requires the user lockout feature to be enabled on the instance.","nullable":true}}},"DeletedObject":{"type":"object","additionalProperties":false,"properties":{"object":{"type":"string"},"id":{"type":"string"},"slug":{"type":"string"},"deleted":{"type":"boolean"},"external_id":{"type":"string"}},"required":["object","deleted"]},"PlatformUpdateInstanceUserRequest":{"type":"object","additionalProperties":false,"properties":{"first_name":{"type":"string","nullable":true,"description":"First name."},"last_name":{"type":"string","nullable":true,"description":"Last name."},"username":{"type":"string","nullable":true,"description":"Username, subject to the instance user settings."},"external_id":{"type":"string","nullable":true,"description":"External identifier. Must be unique in the instance."},"timezone":{"type":"string","nullable":true,"description":"IANA timezone identifier."},"locale":{"type":"string","description":"Supported locale, subject to Backend API validation."},"bypass_client_trust":{"type":"boolean","description":"Whether to bypass client trust checks for this user."}}},"PlatformUpdateUserMetadataRequest":{"type":"object","properties":{"public_metadata":{"type":"object","nullable":true,"additionalProperties":true,"description":"BAPI merge patch. Null keys are removed at merged levels; new nested objects are copied as-is, including nulls. Omitting this field or setting it to null leaves its metadata unchanged."},"private_metadata":{"type":"object","nullable":true,"additionalProperties":true,"description":"BAPI merge patch. Null keys are removed at merged levels; new nested objects are copied as-is, including nulls. Omitting this field or setting it to null leaves its metadata unchanged."},"unsafe_metadata":{"type":"object","nullable":true,"additionalProperties":true,"description":"BAPI merge patch. Null keys are removed at merged levels; new nested objects are copied as-is, including nulls. Omitting this field or setting it to null leaves its metadata unchanged."}}},"JWTTemplate":{"type":"object","additionalProperties":false,"properties":{"object":{"type":"string","enum":["jwt_template"]},"id":{"type":"string"},"name":{"type":"string"},"claims":{"type":"object"},"lifetime":{"type":"integer"},"allowed_clock_skew":{"type":"integer"},"custom_signing_key":{"type":"boolean"},"signing_algorithm":{"type":"string"},"created_at":{"type":"integer","format":"int64","description":"Unix timestamp of creation.\n"},"updated_at":{"type":"integer","format":"int64","description":"Unix timestamp of last update.\n"}},"required":["object","id","name","claims","lifetime","allowed_clock_skew","custom_signing_key","signing_algorithm","created_at","updated_at"]},"RedirectURL":{"type":"object","additionalProperties":false,"properties":{"object":{"type":"string","enum":["redirect_url"]},"id":{"type":"string"},"url":{"type":"string"},"created_at":{"type":"integer","format":"int64","description":"Unix timestamp of creation.\n"},"updated_at":{"type":"integer","format":"int64","description":"Unix timestamp of last update.\n"}},"required":["object","id","url","created_at","updated_at"]},"PlatformListRedirectURLsResponse":{"title":"List Redirect URLs Response","description":"A paginated list of redirect URLs for an application instance.","type":"object","additionalProperties":false,"properties":{"data":{"type":"array","description":"The list of redirect URLs.","items":{"$ref":"#/components/schemas/RedirectURL"}},"total_count":{"type":"integer","format":"int64","description":"The total number of redirect URLs in the instance.","example":3}},"required":["data","total_count"]},"PlatformOAuthResource":{"title":"OAuth resource","description":"An instance-scoped OAuth protected resource. Its URI is the audience that access tokens carry when a client requests it as the RFC 8707 `resource`, and MCP servers register themselves here.","type":"object","additionalProperties":false,"properties":{"object":{"type":"string","enum":["oauth_resource"],"description":"The object type."},"id":{"type":"string","description":"The OAuth resource ID."},"uri":{"type":"string","description":"The absolute URI identifying the protected API, as normalized on write. It cannot be changed after creation."},"name":{"type":"string","description":"A display name of at most 100 bytes."},"scopes":{"type":"array","description":"Custom scopes the resource accepts, filtered to the instance's current scope catalog. Empty for MCP servers that do not take part in token exchange.","items":{"type":"string"}},"oauth_application_id":{"type":"string","nullable":true,"description":"The confidential OAuth application that currently uses this resource as its audience, if any."},"reserved_oauth_application_id":{"type":"string","nullable":true,"description":"The OAuth application that permanently reserved this URI as an audience, if any."},"mcp_server":{"type":"boolean","description":"Whether the resource is an MCP server. The marker is a label only and is never read by token issuance or exchange."},"created_at":{"type":"integer","format":"int64","description":"Unix timestamp in milliseconds of when the resource was created."},"updated_at":{"type":"integer","format":"int64","description":"Unix timestamp in milliseconds of when the resource was last updated."}},"required":["object","id","uri","name","scopes","oauth_application_id","reserved_oauth_application_id","mcp_server","created_at","updated_at"]},"PlatformListOAuthResourcesResponse":{"title":"List OAuth resources response","description":"A paginated list of OAuth resources for an application instance.","type":"object","additionalProperties":false,"properties":{"data":{"type":"array","description":"The list of OAuth resources.","items":{"$ref":"#/components/schemas/PlatformOAuthResource"}},"total_count":{"type":"integer","format":"int64","description":"The total number of OAuth resources matching the filters.","example":2}},"required":["data","total_count"]},"PlatformCreateOAuthResourceRequest":{"title":"Create OAuth resource request","type":"object","additionalProperties":false,"properties":{"uri":{"type":"string","description":"The absolute URI identifying the protected API. It must have no fragment, and when it uses the http or https scheme must include a host and no user information. For an MCP server, use the exact URL MCP clients send as the RFC 8707 `resource`, for example `https://mcp.example.com/mcp`.","maxLength":2048},"name":{"type":"string","description":"A display name of at most 100 bytes.","maxLength":100},"scopes":{"type":"array","description":"Custom scopes from the instance's scope catalog. Omitted means none.","items":{"type":"string"}},"mcp_server":{"type":"boolean","description":"Mark the resource as an MCP server. Omitted means false."}},"required":["uri","name"]},"PlatformUpdateOAuthResourceRequest":{"title":"Update OAuth resource request","description":"Only supplied fields change. The URI is create-only.","type":"object","additionalProperties":false,"properties":{"name":{"type":"string","description":"A display name of at most 100 bytes.","maxLength":100},"scopes":{"type":"array","description":"Replaces the resource's custom scopes.","items":{"type":"string"}},"mcp_server":{"type":"boolean","description":"Set or clear the MCP server marker. It is accepted on app-backed resources too."}}},"PlatformOAuthApplicationSettings":{"title":"OAuth application settings","description":"Instance-wide settings for the OAuth authorization server Clerk runs for the instance.","type":"object","additionalProperties":false,"properties":{"object":{"type":"string","enum":["oauth_application_settings"],"description":"The object type."},"dynamic_oauth_client_registration":{"type":"boolean","description":"Whether dynamic OAuth client registration is enabled for the instance (RFC 7591)."},"dynamic_client_allowed_scopes":{"type":"array","nullable":true,"description":"Administrator-selected scope ceiling for dynamically registered and automatically admitted CIMD clients. Null preserves registered client limits.","items":{"type":"string"}},"default_scopes":{"type":"array","nullable":true,"description":"Default scopes assigned when a dynamically registered or first-contact CIMD client omits `scope`. Null means Clerk-provided defaults.","items":{"type":"string"}},"oauth_jwt_access_tokens":{"type":"boolean","description":"Whether OAuth access tokens are JWTs. When false, access tokens are opaque."},"oidc_sign_out_enabled":{"type":"boolean","description":"Whether OIDC RP-initiated sign-out is enabled for the instance."},"aud_claim_enabled":{"type":"boolean","description":"Whether OAuth access tokens carry an `aud` claim derived from the RFC 8707 `resource` parameter. MCP servers need this to validate token audiences."},"aud_claim_refresh_backfill_enabled":{"type":"boolean","description":"Whether refresh grants without a resource can adopt the requested resource when audience claims are enabled."},"pkce_required":{"type":"boolean","description":"Whether all new OAuth authorization-code requests must use PKCE with the S256 challenge method."},"client_id_metadata_documents_advertised":{"type":"boolean","description":"Whether the instance advertises and admits Client ID Metadata Document clients. Unknown CIMD clients are refused while this is false."},"client_id_metadata_documents_only_allow_pre_registered_clients":{"type":"boolean","description":"When true, new unknown CIMD clients are rejected. Previously auto-connected and pre-registered clients remain admitted."},"client_id_metadata_documents_block_implicitly_allowed_clients":{"type":"boolean","description":"When true, recorded implicitly allowed CIMD clients are rejected on future client lookups."}},"required":["object","dynamic_oauth_client_registration","dynamic_client_allowed_scopes","default_scopes","oauth_jwt_access_tokens","oidc_sign_out_enabled","aud_claim_enabled","aud_claim_refresh_backfill_enabled","pkce_required","client_id_metadata_documents_advertised","client_id_metadata_documents_only_allow_pre_registered_clients","client_id_metadata_documents_block_implicitly_allowed_clients"]},"PlatformUpdateOAuthApplicationSettingsRequest":{"title":"Update OAuth application settings request","description":"Only supplied fields change.","type":"object","additionalProperties":false,"properties":{"dynamic_oauth_client_registration":{"type":"boolean","nullable":true,"description":"Whether dynamic OAuth client registration is enabled for the instance (RFC 7591)."},"dynamic_client_allowed_scopes":{"type":"array","nullable":true,"description":"Administrator-selected scope ceiling for dynamically registered and automatically admitted CIMD clients.","items":{"type":"string"}},"default_scopes":{"type":"array","nullable":true,"description":"Default scopes assigned when a dynamically registered or first-contact CIMD client omits `scope`. An empty array or null resets to Clerk-provided defaults.","items":{"type":"string"}},"oauth_jwt_access_tokens":{"type":"boolean","nullable":true,"description":"Whether OAuth access tokens are JWTs. When false, access tokens are opaque."},"oidc_sign_out_enabled":{"type":"boolean","nullable":true,"description":"Whether OIDC RP-initiated sign-out is enabled for the instance."},"aud_claim_enabled":{"type":"boolean","nullable":true,"description":"Whether OAuth access tokens carry an `aud` claim derived from the RFC 8707 `resource` parameter."},"aud_claim_refresh_backfill_enabled":{"type":"boolean","nullable":true,"description":"Whether refresh grants without a resource can adopt the requested resource when audience claims are enabled."},"pkce_required":{"type":"boolean","nullable":true,"description":"Whether all new OAuth authorization-code requests must use PKCE with the S256 challenge method."},"client_id_metadata_documents_advertised":{"type":"boolean","nullable":true,"description":"Whether the instance advertises and admits Client ID Metadata Document clients."},"client_id_metadata_documents_only_allow_pre_registered_clients":{"type":"boolean","nullable":true,"description":"When true, new unknown CIMD clients are rejected."},"client_id_metadata_documents_block_implicitly_allowed_clients":{"type":"boolean","nullable":true,"description":"When true, recorded implicitly allowed CIMD clients are rejected on future client lookups. Requires only pre-registered clients to be allowed."}}},"PlatformNativeSettings":{"title":"Native settings","description":"Native application settings for a Clerk application instance.","type":"object","additionalProperties":false,"properties":{"object":{"type":"string","enum":["native_settings"],"description":"The object type."},"api_enabled":{"type":"boolean","description":"Whether the Native API is enabled for the instance."}},"required":["object","api_enabled"]},"PlatformUpdateNativeSettingsRequest":{"title":"Update native settings request","type":"object","additionalProperties":false,"properties":{"api_enabled":{"type":"boolean","enum":[true],"description":"Enable the Native API for the instance. Disabling is not supported by this endpoint."}},"required":["api_enabled"]},"PlatformAndroidApplication":{"title":"Android native application","description":"An Android application registered with a Clerk application instance.","type":"object","additionalProperties":false,"properties":{"object":{"type":"string","enum":["android_application"],"description":"The object type."},"id":{"type":"string","description":"The unique identifier for the Android application registration."},"namespace":{"type":"string","description":"The Digital Asset Links namespace, typically `android_app`."},"package_name":{"type":"string","description":"The application's Android package name."},"fingerprints":{"type":"array","description":"SHA-256 certificate fingerprints used to associate the Android application with the application instance.","items":{"type":"string"}},"created_at":{"type":"integer","format":"int64","description":"Unix timestamp in milliseconds when the registration was created."},"updated_at":{"type":"integer","format":"int64","description":"Unix timestamp in milliseconds when the registration was last updated."}},"required":["object","id","namespace","package_name","fingerprints","created_at","updated_at"]},"PlatformCreateAndroidApplicationRequest":{"title":"Create Android native application request","type":"object","additionalProperties":false,"properties":{"namespace":{"type":"string","minLength":1,"maxLength":255,"description":"The Digital Asset Links namespace, typically `android_app`."},"package_name":{"type":"string","minLength":1,"maxLength":255,"description":"The application's Android package name."},"fingerprints":{"type":"array","description":"SHA-256 certificate fingerprints for the Android application's signing certificates. Fingerprints are required to use passkeys.","items":{"type":"string"}}},"required":["namespace","package_name"]},"PlatformIOSApplication":{"title":"iOS native application","description":"An iOS application registered with a Clerk application instance.","type":"object","additionalProperties":false,"properties":{"object":{"type":"string","enum":["ios_application"],"description":"The object type."},"id":{"type":"string","description":"The unique identifier for the iOS application registration."},"app_id_prefix":{"type":"string","description":"The Apple App ID Prefix associated with the application. For most apps, this is the Apple Developer Team ID."},"bundle_id":{"type":"string","description":"The application's bundle identifier."},"created_at":{"type":"integer","format":"int64","description":"Unix timestamp in milliseconds when the registration was created."},"updated_at":{"type":"integer","format":"int64","description":"Unix timestamp in milliseconds when the registration was last updated."}},"required":["object","id","app_id_prefix","bundle_id","created_at","updated_at"]},"PlatformCreateIOSApplicationRequest":{"title":"Create iOS native application request","type":"object","additionalProperties":false,"properties":{"app_id_prefix":{"type":"string","minLength":1,"maxLength":255,"description":"The Apple App ID Prefix associated with the application. For most apps, this is the Team ID. Confirm it in the app's identifier in the Apple Developer portal."},"bundle_id":{"type":"string","minLength":1,"maxLength":255,"description":"The application's bundle identifier."}},"required":["app_id_prefix","bundle_id"]},"PlatformConfigResponse":{"type":"object","description":"Instance configuration response containing key-value pairs and metadata.","properties":{"config_version":{"type":"string","description":"Configuration version for optimistic concurrency control."}},"additionalProperties":true},"PlatformConfigPatchRequest":{"type":"object","description":"Configuration updates to apply. Keys should match config key names.","additionalProperties":true},"PlatformConfigPatchResponse":{"type":"object","description":"Configuration patch response containing the result of the operation.","properties":{"config_version":{"type":"string","description":"Updated configuration version."},"dry_run":{"type":"boolean","description":"Whether this was a dry run (changes were not applied)."},"before":{"type":"object","description":"Configuration state before the patch was applied.","additionalProperties":true},"after":{"type":"object","description":"Configuration state after the patch was applied.","additionalProperties":true}},"additionalProperties":true},"PlatformConfigSchemaResponse":{"type":"object","description":"JSON Schema describing the available configuration options.","properties":{"$schema":{"type":"string","description":"JSON Schema version."},"$id":{"type":"string","description":"Schema identifier."},"type":{"type":"string"},"properties":{"type":"object","description":"Schema definitions for each configuration key.","additionalProperties":true}},"additionalProperties":true}},"responses":{"ClerkErrors":{"description":"Request was not successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClerkErrors"}}}},"AuthenticationInvalid":{"description":"Authentication invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClerkErrors"}}}},"AuthorizationInvalid":{"description":"Authorization invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClerkErrors"}}}},"ResourceNotFound":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClerkErrors"}}}},"UnprocessableEntity":{"description":"Invalid request parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClerkErrors"}}}},"OrganizationMemberships":{"description":"A list of organization memberships","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationMemberships"}}}},"Organizations":{"description":"A list of organizations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Organizations"}}}},"TooManyRequests":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClerkErrors"}}}},"Conflict":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClerkErrors"}}}},"PaymentRequired":{"description":"Payment required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClerkErrors"}}}},"DeletedObject":{"description":"Deleted Object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletedObject"}}}}}},"x-tagGroups":[{"name":"Core Resources","tags":["Applications","Principal","Domains","Domain Intents","Application Transfers","Users","Instance Organizations","JWT Templates","Redirect URLs","Native Applications","OAuth","Config"]}]}