openapi: 3.1.0 info: title: Microsoft Windows 10 Windows Background Tasks Accelerometer Credentials API description: API for running code in the background when an application is suspended or not running. Based on the Windows.ApplicationModel.Background namespace, it supports time-triggered, system-triggered, and maintenance-triggered background tasks. Key classes include BackgroundTaskBuilder, BackgroundTaskRegistration, SystemTrigger, TimeTrigger, and BackgroundTaskCompletedEventArgs. version: 1.0.0 contact: name: Microsoft Developer Support url: https://learn.microsoft.com/en-us/windows/apps/windows-app-sdk/applifecycle/background-tasks license: name: Microsoft Software License url: https://www.microsoft.com/en-us/legal/terms-of-use servers: - url: https://api.windows.com description: Windows Platform API tags: - name: Credentials paths: /hello/credentials: post: operationId: createKeyCredential summary: Microsoft Windows 10 Create a Windows Hello key credential description: Creates a new key credential for Windows Hello authentication using KeyCredentialManager.RequestCreateAsync. Generates a public/private key pair where the private key is stored securely on the device (in TPM if available) and the public key is returned for server registration. tags: - Credentials requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateCredentialRequest' responses: '201': description: Key credential created content: application/json: schema: $ref: '#/components/schemas/KeyCredential' '400': description: Invalid request '403': description: User cancelled the consent prompt /hello/credentials/{accountId}: get: operationId: openKeyCredential summary: Microsoft Windows 10 Open an existing key credential description: Opens an existing Windows Hello key credential using KeyCredentialManager.OpenAsync. Returns the credential if it exists, allowing the application to use it for signing operations. tags: - Credentials parameters: - name: accountId in: path required: true description: The account identifier for the credential schema: type: string responses: '200': description: Credential opened successfully content: application/json: schema: $ref: '#/components/schemas/KeyCredential' '404': description: Credential not found delete: operationId: deleteKeyCredential summary: Microsoft Windows 10 Delete a key credential description: Deletes a Windows Hello key credential using KeyCredentialManager.DeleteAsync. Removes the key pair from the device. tags: - Credentials parameters: - name: accountId in: path required: true description: The account identifier for the credential schema: type: string responses: '204': description: Credential deleted '404': description: Credential not found components: schemas: KeyCredential: type: object description: A Windows Hello key credential properties: accountId: type: string description: Account identifier publicKey: type: string format: byte description: Base64-encoded public key (COSE format) status: type: string enum: - Success - UserCanceled - NotFound - UserPrefersPassword - CredentialAlreadyExists description: Credential operation status keyName: type: string description: Key name required: - accountId - status CreateCredentialRequest: type: object properties: accountId: type: string description: Unique account identifier keyCreationOption: type: string enum: - ReplaceExisting - FailIfExists default: ReplaceExisting required: - accountId externalDocs: description: Background Tasks Documentation url: https://learn.microsoft.com/en-us/windows/apps/windows-app-sdk/applifecycle/background-tasks