Endpoint categories

API version 2026-09-21

Download OpenAPI YAML

API reference

Every Runtime API and Management API endpoint, generated from the published OpenAPI document.

Generated from OpenAPI 3.1.0 (no try-it console)

Example Values are illustrative values generated from OpenAPI types and constraints. They are not valid IDs, tokens, or secrets.

Endpoints

188

123 paths

Server URL

https://usakey.jp

Runtime API

Runtime bootstrap

2 operations

Fetch signing keys and signed server time.

GET /runtime/v1/products/{product_id}/trust-bundle Fetch the signing-key trust bundle

Fetch the root-authorized signing keys used to verify signatures for a product.

Authentication
None
Required scope
—
Operation ID
runtime_v1_products_trust_bundle

Parameters

product_id Location: Path Required

Example Value

"prod_0123456789abcdef0123"

Responses

200

Trust bundle

application/json

Example Value

{
  "data": {
    "bundle": {},
    "root_signature": "example-token"
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /runtime/v1/time Obtain signed server time

Obtain signed server time containing the client nonce for detecting local clock tampering.

Authentication
None
Required scope
—
Operation ID
runtime_v1_time_create

Request body

Required
application/json

Schema

object

Example Value

{
  "product_id": "prod_0123456789abcdef0123",
  "nonce": "stringxxxxxxxxxxxxxxxx",
  "sdk_version": "string"
}

Responses

200

Product-key-signed response envelope

application/json

Example Value

{
  "data": "string",
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
413

The runtime request body exceeds the route-specific byte limit

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Runtime API

Runtime activation

13 operations

Register devices and continuously verify license state.

POST /runtime/v1/activations/{activation_id}/heartbeat Refresh device activation and certificate

Send a heartbeat from an activated device to refresh license state and its device certificate.

Authentication
deviceProof
Required scope
—
Operation ID
runtime_v1_activations_heartbeat

Parameters

activation_id Location: Path Required

Example Value

"activation_id_aaaaaaaaaaaaaaaaaaaa"
X-Usakey-Activation Location: Header Required

Example Value

"x_usakey_activation_aaaaaaaaaaaaaaaaaaaa"
X-Usakey-Timestamp Location: Header Required
integer

Example Value

1
X-Usakey-Nonce Location: Header Required
string Minimum length: 22 Maximum length: 255

Example Value

"stringxxxxxxxxxxxxxxxx"
X-Usakey-Signature Location: Header Required
string Maximum length: 1024

Example Value

"example-token"

Request body

Required
application/json

Example Value

{
  "machine_info": {
    "os": "string",
    "arch": "string"
  }
}

Responses

200

Current license state and refreshed certificate

application/json

Example Value

{
  "data": {
    "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
    "license_status": "active",
    "certificate": "string",
    "next_heartbeat_in": 10,
    "machine_info_digest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

The license was revoked (LICENSE_REVOKED) or has expired (LICENSE_EXPIRED), the device-risk policy blocked the activation or the license, or the named-user assignment is no longer active. License state is reported before activation state, so a device of a revoked license receives LICENSE_REVOKED rather than ACTIVATION_DEACTIVATED. An expired license keeps its activations, so the same activation_id works again after the expiry is extended and the license resumed. LICENSE_REVOKED and LICENSE_EXPIRED count toward the short burst windows but not toward the monthly Runtime API allowance. A suspended license is not an error; it returns 200 with license_status suspended.

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
410

Resource is no longer active

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

Unmanaged offline perpetual licenses do not use heartbeat, or full machine_info is required because the digest changed, no full baseline exists, or the last full baseline is older than 24 hours

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
413

The runtime request body exceeds the route-specific byte limit

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /runtime/v1/activations/{activation_id}/sealed-file-keys Receive a sealed file's key for this device

Send a sealed file's header and, if the license may use the file, receive its per-file data key wrapped again to this device's key. The file itself is never sent.

Sends the header of a sealed file (docs/security/sealed-files.md). If the license may use the file, the per-file data key that the vendor wrapped to the product sealing key is opened on the server and wrapped again with HPKE to this activation's P-256 KEM public key. The file itself never reaches Usakey. The device caches the result, so this is called once per file and device.

Authentication
deviceProof
Required scope
—
Operation ID
runtime_v1_activations_sealed_file_keys

Parameters

activation_id Location: Path Required

Example Value

"activation_id_aaaaaaaaaaaaaaaaaaaa"
X-Usakey-Activation Location: Header Required

Example Value

"x_usakey_activation_aaaaaaaaaaaaaaaaaaaa"
X-Usakey-Timestamp Location: Header Required
integer

Example Value

1
X-Usakey-Nonce Location: Header Required
string Minimum length: 22 Maximum length: 255

Example Value

"stringxxxxxxxxxxxxxxxx"
X-Usakey-Signature Location: Header Required
string Maximum length: 1024

Example Value

"example-token"

Request body

Required
application/json

Example Value

{
  "header": "example_value",
  "sdk_version": "string"
}

Responses

200

The data key wrapped to this device's KEM public key

application/json

Example Value

{
  "data": {
    "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
    "file_id": "esNxn3TKNIsd_Dyi2XYojA",
    "header_sha256": "f7511808a1669a5481adebe399a96ad043d29ebb887207743368c3fb812717e5",
    "enc": "BC1G-oCCtQBTqm4VEolqWH6MHHbpugqlixdHLXLURww-71zLlbPAaperQqYpqsHIyF9bJ66JOqwcEaZ1yHqSNPI",
    "wrapped_key": "j4LNTalkfJFXswg_u9NXmazh7FZQHrAs4iqPQNp0hHCsdQIZWcS3AOpEkYp2mape"
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

The license was revoked (LICENSE_REVOKED), has expired (LICENSE_EXPIRED) or is suspended (LICENSE_SUSPENDED; unlike heartbeat, a suspended license receives no key), the named-user assignment is no longer active, the workspace plan does not include sealed files (PLAN_ENTITLEMENT_REQUIRED with details.entitlement sealed_files), or the file names an entitlement that is not true for this license (SEALED_FILE_ENTITLEMENT_REQUIRED with details.entitlement).

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
410

Resource is no longer active

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

The header is not a valid sealed-file header, was sealed for another product or with an unknown, retired-for-deletion or compromised key, or its data key cannot be opened, or the activation's KEM key is not a P-256 key (SEALED_FILE_INVALID).

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
413

The runtime request body exceeds the route-specific byte limit

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /runtime/v1/activations/{activation_id}/consumptions Create runtime activation

Sends consumptions that the device already applied to its local usage counters (1 to 40 per request). Each consumption_id is counted at most once per license, so a retry after an unknown result is safe; a known ID with the same counter and amount returns duplicate, and with a different counter or amount returns rejected with reason conflict. A counter the license's policy does not define returns rejected with reason unknown_counter. Consumptions are attributed to the period in which Usakey receives them, are recorded even when they exceed the limit (the excess is reported as overage), and are accepted while the license is suspended. The signed response lists the result of each consumption and the current counters of the license in the same shape as the counters claim of the certificate. Official SDKs send pending consumptions here before each heartbeat.

Authentication
deviceProof
Required scope
—
Operation ID
runtime_v1_consumptions_create

Parameters

activation_id Location: Path Required

Example Value

"activation_id_aaaaaaaaaaaaaaaaaaaa"
X-Usakey-Activation Location: Header Required

Example Value

"x_usakey_activation_aaaaaaaaaaaaaaaaaaaa"
X-Usakey-Timestamp Location: Header Required
integer

Example Value

1
X-Usakey-Nonce Location: Header Required
string Minimum length: 22 Maximum length: 255

Example Value

"stringxxxxxxxxxxxxxxxx"
X-Usakey-Signature Location: Header Required
string Maximum length: 1024

Example Value

"example-token"

Request body

Required
application/json

Example Value

{
  "consumptions": [
    {
      "consumption_id": "01K5QWERTY1234567890ABCDEFG",
      "counter": "string",
      "amount": 1,
      "consumed_at": 0
    }
  ],
  "sdk_version": "string"
}

Responses

200

The result of each consumption and the current counters of the license

application/json

Example Value

{
  "data": {
    "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
    "consumptions": [
      {
        "consumption_id": "01K5QWERTY1234567890ABCDEFG",
        "status": "active"
      }
    ],
    "counters": {
      "property": {
        "limit": 0,
        "remaining": 0,
        "revision": 0
      }
    }
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

The license was revoked (LICENSE_REVOKED) or has expired (LICENSE_EXPIRED), or the named-user assignment is no longer active. LICENSE_REVOKED and LICENSE_EXPIRED count toward the short burst windows but not toward the monthly Runtime API allowance.

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
410

Resource is no longer active

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
413

The runtime request body exceeds the route-specific byte limit

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /runtime/v1/activations Bind a license to a device key

Bind a license key to a device public key and issue a signed license certificate.

A 409 MACHINE_LIMIT_REACHED carries details.device_release_available. It is true when the vendor allows users to release a device that is not at hand from the app (POST /runtime/v1/device-releases) for this license and the plan includes it; it is false when the monthly allowance of new devices is used up, because releasing a device does not restore it.

Authentication
None
Required scope
—
Operation ID
runtime_v1_activations_create

Parameters

Idempotency-Key Location: Header Required
string Minimum length: 16 Maximum length: 255

Example Value

"stringxxxxxxxxxx"

Request body

Required
application/json

Example Value

{
  "license_key": "string",
  "product_id": "prod_0123456789abcdef0123",
  "device_signing_public_key": "string",
  "device_kem_public_key": "string",
  "device_proof": "string",
  "machine_signals": {
    "property": "string"
  },
  "machine_info": {
    "os": "string",
    "arch": "string"
  },
  "app_version": "string",
  "sdk_version": "string",
  "request_id": "01K5QWERTY1234567890ABCDEFG",
  "client_time": 1,
  "named_user_token": "Example name",
  "nonce": "stringxxxxxxxxxxxxxxxx"
}

Responses

201

Device activation and signed license certificate

application/json

Example Value

{
  "data": {
    "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
    "certificate": "string",
    "machine_info_digest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

Idempotency, version, machine, concurrency, or pending product signing-key conflict

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

The license requires device-bound offline package activation

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
413

The runtime request body exceeds the route-specific byte limit

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /runtime/v1/activations/{activation_id} Deactivate the current device

Use the device credentials to remove its own activation.

Authentication
deviceProof
Required scope
—
Operation ID
runtime_v1_activations_destroy

Parameters

activation_id Location: Path Required

Example Value

"activation_id_aaaaaaaaaaaaaaaaaaaa"
X-Usakey-Activation Location: Header Required

Example Value

"x_usakey_activation_aaaaaaaaaaaaaaaaaaaa"
X-Usakey-Timestamp Location: Header Required
integer

Example Value

1
X-Usakey-Nonce Location: Header Required
string Minimum length: 22 Maximum length: 255

Example Value

"stringxxxxxxxxxxxxxxxx"
X-Usakey-Signature Location: Header Required
string Maximum length: 1024

Example Value

"example-token"

Responses

200

Product-key-signed response envelope

application/json

Example Value

{
  "data": "string",
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
410

Resource is no longer active

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
413

The runtime request body exceeds the route-specific byte limit

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /runtime/v1/email-verifications Start email license verification

For a named-user license, sends a six-digit code to the address the vendor registered for a local-ID license user. A code is sent only when the address matches, but the response is the same 202 either way, so registered addresses cannot be discovered. The code is valid for 10 minutes and 5 attempts, and a new start for the same product, license key, and address invalidates the previous one. Not counted toward the monthly Runtime API quota.

Sends a six-digit verification code to the email address that the software vendor registered for a local-ID license user, so the app can obtain a named-user token for activation. The response has the same shape and status whether or not the address matched, and a code is sent only when it matched: the license key is active, the policy is named-user, the workspace has email license verification (Personal or higher), exactly one active local-ID license user (not linked to an OIDC connection) has this address, and that user has a current assignment on this license. A new start for the same product, license key, and address invalidates the previous one. The code expires in 10 minutes and allows 5 attempts. These requests do not count toward the monthly Runtime API quota; the activation that follows does.

Authentication
None
Required scope
—
Operation ID
runtime_v1_email_verifications_create

Request body

Required
application/json

Example Value

{
  "product_id": "prod_0123456789abcdef0123",
  "license_key": "string",
  "email": "developer@example.com",
  "device_signing_public_key": "string",
  "nonce": "stringxxxxxxxxxxxxxxxx",
  "locale": "ja",
  "sdk_version": "string"
}

Responses

202

Verification started. A code was sent only if the address matched; the response does not say whether it did

application/json

Example Value

{
  "data": {
    "verification_id": "verification_id_aaaaaaaaaaaaaaaaaaaa",
    "expires_at": "2026-09-21T00:00:00Z",
    "resend_after_sec": 1,
    "code_length": 1
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
413

The runtime request body exceeds the route-specific byte limit

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /runtime/v1/email-verifications/{verification_id}/confirm Confirm the code and get an activation token

Checks the code with the same device signing key that started the verification and returns a token (valid for 5 minutes) to pass as named_user_token to POST /runtime/v1/activations. License users with two-factor authentication also send an authenticator app code or a recovery code (second_factor_code). Without it, the response is 401 TWO_FACTOR_REQUIRED and the emailed code stays valid. Each mistake uses one attempt; when they run out or 10 minutes pass, start again.

Checks the six-digit code with the same device signing public key that started the verification and returns a named-user token for POST /runtime/v1/activations (named_user_token). The token is valid for 5 minutes. For users with two-factor authentication, also send second_factor_code: an authenticator app code, a recovery code, or the approval code obtained by opening the link in the verification email and approving with a passkey. The passkey approval code is valid only for this verification, for up to 10 minutes, and can be used once. Without the second factor, the response is 401 TWO_FACTOR_REQUIRED and the emailed code stays valid, so send both again. Each wrong code, wrong device key, or wrong second-factor code uses one of 5 attempts; after that, or after 10 minutes, start again. An unknown or unmatched verification returns the same errors as a wrong code.

Authentication
None
Required scope
—
Operation ID
runtime_v1_email_verifications_confirm

Parameters

verification_id Location: Path Required

Example Value

"verification_id_aaaaaaaaaaaaaaaaaaaa"

Request body

Required
application/json

Example Value

{
  "code": "123456",
  "second_factor_code": "string",
  "device_signing_public_key": "string",
  "nonce": "stringxxxxxxxxxxxxxxxx",
  "sdk_version": "string"
}

Responses

200

Named-user token for activation

application/json

Example Value

{
  "data": {
    "named_user_token": "Example name",
    "expires_at": "2026-09-21T00:00:00Z"
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

EMAIL_VERIFICATION_CODE_INVALID (wrong code or device key), TWO_FACTOR_REQUIRED (the emailed code is correct and still valid; send an authenticator app code, a passkey approval code from the emailed link, or a recovery code with it), or TWO_FACTOR_INVALID. details.remaining_attempts is the number of attempts left

application/json

Example Value

{
  "error": {
    "code": "EMAIL_VERIFICATION_CODE_INVALID",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "details": {
      "remaining_attempts": 0
    }
  }
}
403

TWO_FACTOR_LOCKED (the vendor must unlock two-factor authentication for this user), NAMED_USER_ASSIGNMENT_UNAVAILABLE (the assignment, user, license, or plan changed after the start), or PLAN_ENTITLEMENT_REQUIRED

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
410

EMAIL_VERIFICATION_EXPIRED. The verification expired, was used, was replaced by a newer start, ran out of attempts, or is unknown. Start a new verification

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
413

The runtime request body exceeds the route-specific byte limit

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /runtime/v1/trial-verifications Start a trial with email verification

Sends a six-digit code to the address the user entered so the app can start a trial of the product on this device. A code is sent only when the product accepts trial sign-ups (the vendor chose a trial policy and its 24-hour limit has room) and the workspace has the trial entitlement; otherwise the response is the same 202. Whether the address already had a trial is reported at confirmation. Sending to the same address is spaced by 120 seconds and limited to 3 per hour and 5 per day per product, and 10 per day across products. Not counted toward the monthly Runtime API quota.

Sends a six-digit code to the email address the user entered, so the app can start a trial of this product on this device. A code is sent only when the product accepts trial sign-ups (the vendor chose a trial policy for it and its 24-hour sign-up limit has room) and the workspace has the trial_licenses entitlement. Otherwise the response is the same 202 and nothing is sent. Whether the address or device already had a trial is not checked here; the confirmation reports it. Sending to the same address is spaced by 120 seconds and limited to 3 per hour and 5 per day per product, and 10 per day across all products. Not counted toward the monthly Runtime API quota.

Authentication
None
Required scope
—
Operation ID
runtime_v1_trial_verifications_create

Request body

Required
application/json

Example Value

{
  "product_id": "prod_0123456789abcdef0123",
  "email": "developer@example.com",
  "device_signing_public_key": "string",
  "nonce": "stringxxxxxxxxxxxxxxxx",
  "locale": "ja",
  "sdk_version": "string"
}

Responses

202

Verification started. A code was sent only if the product accepts trial sign-ups; the response does not say whether it does

application/json

Example Value

{
  "data": {
    "verification_id": "verification_id_aaaaaaaaaaaaaaaaaaaa",
    "expires_at": "2026-09-21T00:00:00Z",
    "resend_after_sec": 1,
    "code_length": 1
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
413

The runtime request body exceeds the route-specific byte limit

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /runtime/v1/trial-verifications/{verification_id}/confirm Confirm the code, issue a trial license, and activate this device

Checks the code and the address from the start request, issues a trial license with the policy the vendor chose, and activates this device. The response is the same signed activation data plus license_id; no license key is returned. The body has the activation fields (without license_key and product_id) plus code and email, and device_proof is signed after the prefix Usakey-Trial-Proof-v1 and a newline. If the same address has an active trial, this device joins it. If the address or device key had a trial in the last 365 days, the response is 403 TRIAL_ALREADY_USED. The activation counts once toward the monthly quota.

Checks the code and the address from the start request, then issues a trial license with the policy the vendor chose and activates this device in the same request. The response is the same signed activation as POST /runtime/v1/activations plus license_id; no license key is returned. The body has the activation fields (without license_key and product_id) plus code and email, and device_proof signs it after the prefix Usakey-Trial-Proof-v1 and a newline instead of the activation prefix. If the same address already has an active trial of this product, this device joins that trial. If the address or the device key had a trial of this product in the last 365 days, the response is 403 TRIAL_ALREADY_USED. The activation counts once toward the monthly Runtime API quota.

Authentication
None
Required scope
—
Operation ID
runtime_v1_trial_verifications_confirm

Parameters

verification_id Location: Path Required

Example Value

"verification_id_aaaaaaaaaaaaaaaaaaaa"
Idempotency-Key Location: Header Required
string Minimum length: 16 Maximum length: 255

Example Value

"stringxxxxxxxxxx"

Request body

Required
application/json

Example Value

{
  "code": "123456",
  "email": "developer@example.com",
  "device_signing_public_key": "string",
  "device_kem_public_key": "string",
  "device_proof": "string",
  "machine_signals": {
    "property": "string"
  },
  "machine_info": {
    "os": "string",
    "arch": "string"
  },
  "app_version": "string",
  "sdk_version": "string",
  "request_id": "01K5QWERTY1234567890ABCDEFG",
  "client_time": 1,
  "nonce": "stringxxxxxxxxxxxxxxxx"
}

Responses

201

Trial license issued and device activated

application/json

Example Value

{
  "data": {
    "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
    "certificate": "string",
    "machine_info_digest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa"
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

EMAIL_VERIFICATION_CODE_INVALID (wrong code, address, or device key; details.remaining_attempts) or DEVICE_PROOF_INVALID

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

TRIAL_ALREADY_USED, TRIAL_ACTIVATION_INVALID (the product stopped accepting trial sign-ups or reached its 24-hour limit; details.reason), LICENSE_* or PLAN_ENTITLEMENT_REQUIRED

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

PLAN_QUOTA_EXCEEDED (the workspace trial allowance is full), MACHINE_LIMIT_REACHED, DEVICE_KEY_MISMATCH, or an idempotency conflict

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
410

EMAIL_VERIFICATION_EXPIRED. Start a new verification

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

Full machine_info is required

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
413

The runtime request body exceeds the route-specific byte limit

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /runtime/v1/device-releases Start releasing a device that is not at hand

Starts the end-user device release used when a new device gets 409 MACHINE_LIMIT_REACHED with details.device_release_available true. Sends a six-digit code when the license key is active, the vendor allowed device replacement by users on the license's policy, the policy is not a fully offline perpetual policy, the workspace has email license verification (Personal or higher), and the address matches: for a named-user policy, the same local-ID license user as POST /runtime/v1/email-verifications with a current assignment on this license; for a license key policy, the email address the vendor registered for the license's customer. The response has the same shape and status whether or not anything matched, and a code is sent only when it did. The code expires in 10 minutes, allows 5 attempts, and is bound to device_signing_public_key (the new device's key). A new start for the same product, license key, address and device key invalidates the previous one. These requests do not count toward the monthly Runtime API quota.

Authentication
None
Required scope
—
Operation ID
runtime_v1_device_releases_create

Request body

Required
application/json

Example Value

{
  "product_id": "prod_0123456789abcdef0123",
  "license_key": "string",
  "email": "developer@example.com",
  "device_signing_public_key": "string",
  "nonce": "stringxxxxxxxxxxxxxxxx",
  "locale": "ja",
  "sdk_version": "string"
}

Responses

202

Device release started. A code was sent only if everything matched; the response does not say whether it did

application/json

Example Value

{
  "data": {
    "verification_id": "verification_id_aaaaaaaaaaaaaaaaaaaa",
    "expires_at": "2026-09-21T00:00:00Z",
    "resend_after_sec": 1,
    "code_length": 1
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
413

The runtime request body exceeds the route-specific byte limit

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /runtime/v1/device-releases/{verification_id}/confirm Confirm the code and list the devices in use

Checks the six-digit code with the same device signing public key that started the device release. License users with two-factor authentication also send second_factor_code (an authenticator app code, a recovery code, or the passkey approval code from the emailed link), as for POST /runtime/v1/email-verifications/{verification_id}/confirm. On success the response lists the active devices the user may see (for a named-user policy, the devices of their assignment; for a license key policy, the devices of the license), oldest last check first, up to 32, and a release_token that is valid for 10 minutes and one release. Devices are described only by what the user can recognize (OS, CPU, model, activation and last check times) and are chosen with a handle that works only with this verification. A device whose offline file is still valid, and the requesting device itself, have releasable false. If the same user released a device in the last 15 minutes (from the app or the customer portal), the response is 429 RATE_LIMITED with Retry-After and the emailed code stays valid. Each wrong code, wrong device key, or wrong second-factor code uses one of 5 attempts. An unknown or unmatched verification returns the same errors as a wrong code.

Authentication
None
Required scope
—
Operation ID
runtime_v1_device_releases_confirm

Parameters

verification_id Location: Path Required

Example Value

"verification_id_aaaaaaaaaaaaaaaaaaaa"

Request body

Required
application/json

Example Value

{
  "code": "123456",
  "second_factor_code": "string",
  "device_signing_public_key": "string",
  "nonce": "stringxxxxxxxxxxxxxxxx",
  "sdk_version": "string"
}

Responses

200

The devices in use and a release token

application/json

Example Value

{
  "data": {
    "release_token": "example-token",
    "expires_at": "2026-09-21T00:00:00Z",
    "machine_limit": 0,
    "active_device_count": 0,
    "devices": [
      {
        "handle": "string",
        "os": "string",
        "arch": "string",
        "model": "string",
        "activated_at": "2026-09-21T00:00:00Z",
        "last_check_at": "2026-09-21T00:00:00Z",
        "this_device": true,
        "releasable": true
      }
    ]
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

EMAIL_VERIFICATION_CODE_INVALID (wrong code or device key), TWO_FACTOR_REQUIRED (the emailed code is correct and still valid; send the second factor with it), or TWO_FACTOR_INVALID. details.remaining_attempts is the number of attempts left

application/json

Example Value

{
  "error": {
    "code": "EMAIL_VERIFICATION_CODE_INVALID",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "details": {
      "remaining_attempts": 0
    }
  }
}
403

TWO_FACTOR_LOCKED (the vendor must unlock two-factor authentication), DEVICE_RELEASE_UNAVAILABLE (the license, user, recipient, policy setting or plan changed after the start), or PLAN_ENTITLEMENT_REQUIRED

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
410

EMAIL_VERIFICATION_EXPIRED. The verification expired, was used, was replaced by a newer start, ran out of attempts, or is unknown. Start a new device release

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
413

The runtime request body exceeds the route-specific byte limit

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /runtime/v1/device-releases/{verification_id}/release Release the chosen device

Releases the activation of the device chosen by device_handle with the release_token from the confirmation. The body is signed: device_proof is the signature by the same device signing key that started the device release of the prefix Usakey-Device-Release-Proof-v1, a newline, and the canonical JSON of this body without device_proof, so the token alone cannot release a device. The device's slot is freed at once; the released device stops working at its next periodic check. For a named-user policy the response also carries a five-minute named_user_token for POST /runtime/v1/activations on the new device. The user is emailed that a device was released, the release is recorded in the activity log as activation.customer_released, and the activation.customer_released webhook is sent. Releases are limited like the customer portal: one per 15 minutes and 3 per day per user (license user, or the license for license key policies), 10 per 15 minutes and 50 per day per workspace, and 10 per 15 minutes and 100 per day per IP, counted together with releases from the customer portal; when the limit store is unavailable nothing is released (503). Idempotency-Key is required; resending the same request returns the same response.

Authentication
None
Required scope
—
Operation ID
runtime_v1_device_releases_release

Parameters

verification_id Location: Path Required

Example Value

"verification_id_aaaaaaaaaaaaaaaaaaaa"
Idempotency-Key Location: Header Required
string Minimum length: 16 Maximum length: 255

Example Value

"stringxxxxxxxxxx"

Request body

Required
application/json

Example Value

{
  "release_token": "example-token",
  "device_handle": "string",
  "device_signing_public_key": "string",
  "device_proof": "string",
  "nonce": "stringxxxxxxxxxxxxxxxx",
  "locale": "string",
  "sdk_version": "string"
}

Responses

200

The device was released

application/json

Example Value

{
  "data": {
    "device": {
      "handle": "string",
      "os": "string",
      "arch": "string",
      "model": "string",
      "activated_at": "2026-09-21T00:00:00Z",
      "last_check_at": "2026-09-21T00:00:00Z",
      "this_device": true,
      "releasable": true
    }
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

DEVICE_PROOF_INVALID

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

DEVICE_RELEASE_UNAVAILABLE (the license, user, recipient, policy setting or plan changed after the confirmation) or PLAN_ENTITLEMENT_REQUIRED

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

DEVICE_NOT_RELEASABLE (the device was already released, its offline file is still valid, it is the requesting device, or the handle is unknown), or an idempotency conflict

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
410

DEVICE_RELEASE_EXPIRED. The release token is wrong, expired, or was already used, or the verification is unknown. Start a new device release

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
413

The runtime request body exceeds the route-specific byte limit

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /runtime/v1/redemptions Redeem an order's redemption code

Exchanges a redemption code of an order for one license of that order and returns its key once in a signed 201. For an order with a named-user policy, email is required and the license is assigned to the license user with that address. A code of another product or workspace, an unknown code, and a malformed code all answer the same 404 REDEMPTION_CODE_INVALID and change nothing. No device signature is required. Idempotency-Key is required: after an unknown result, resend the same body with the same key to get the same answer. Not counted toward the monthly Runtime API quota.

Exchanges a redemption code of an order for one new license of that order and returns its license key once, in a signed response. The license belongs to the order's customer, uses the order's policy, and expires as the order says. For a named-user policy, email is required and the license is assigned to the local-ID license user with that address (created when none); then obtain a named-user token with POST /runtime/v1/email-verifications before activating. Otherwise email is optional and, when sent, the key is also emailed there. A code of another product or workspace, an unknown code, and a malformed code all return the same 404 REDEMPTION_CODE_INVALID and change nothing. No device signature is required. Idempotency-Key is required: resend the same body with the same key after an unknown result. Not counted toward the monthly Runtime API quota.

Authentication
None
Required scope
—
Operation ID
runtime_v1_redemptions_create

Parameters

Idempotency-Key Location: Header Required
string Minimum length: 16 Maximum length: 255

Example Value

"stringxxxxxxxxxx"

Request body

Required
application/json

Example Value

{
  "product_id": "prod_0123456789abcdef0123",
  "code": "RDM-ABCDE-FGHJK-LMNPQ-RSTUV",
  "email": "developer@example.com",
  "name": "Example name",
  "nonce": "stringxxxxxxxxxxxxxxxx",
  "locale": "ja",
  "sdk_version": "string",
  "app_version": "string"
}

Responses

201

License issued; the license key appears only in this response (and in the email when email was sent)

application/json

Example Value

{
  "data": {
    "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
    "license_key": "string",
    "status": "active",
    "expires_at": "2026-09-21T00:00:00Z",
    "identity_mode": "license_key",
    "order_number": "string"
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

REDEMPTION_CODE_INVALID (unknown, malformed, or not this product's code), or NOT_FOUND for an unknown product

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

REDEMPTION_UNAVAILABLE (the vendor's plan, contract, customer, or product does not allow issuing now; nothing was used), REDEMPTION_USER_UNAVAILABLE (the email address belongs to a license user who cannot receive it), or an idempotency conflict

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
410

REDEMPTION_CODE_EXPIRED, REDEMPTION_CODE_REVOKED (the code or its order was canceled), or REDEMPTION_CODE_USED (no uses left on the code or the order)

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

REDEMPTION_EMAIL_REQUIRED (the order's policy is named-user; send the user's email address)

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
413

The runtime request body exceeds the route-specific byte limit

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Runtime API

Runtime concurrent use

5 operations

Acquire, renew, and release concurrent-use seats.

POST /runtime/v1/leases/{lease_id}/heartbeat Renew a concurrent-use lease

Extend an acquired concurrent-use lease and retain its seat.

Authentication
deviceProof
Required scope
—
Operation ID
runtime_v1_leases_heartbeat

Parameters

lease_id Location: Path Required

Example Value

"lease_id_aaaaaaaaaaaaaaaaaaaa"
X-Usakey-Activation Location: Header Required

Example Value

"x_usakey_activation_aaaaaaaaaaaaaaaaaaaa"
X-Usakey-Timestamp Location: Header Required
integer

Example Value

1
X-Usakey-Nonce Location: Header Required
string Minimum length: 22 Maximum length: 255

Example Value

"stringxxxxxxxxxxxxxxxx"
X-Usakey-Signature Location: Header Required
string Maximum length: 1024

Example Value

"example-token"

Request body

Required
application/json

Example Value

{
  "instance_id": "01K5QWERTY1234567890ABCDEFG"
}

Responses

200

Renewed concurrent-use lease

application/json

Example Value

{
  "data": {
    "lease_id": "lease_id_aaaaaaaaaaaaaaaaaaaa",
    "instance_id": "01K5QWERTY1234567890ABCDEFG",
    "expires_at": 1,
    "heartbeat_in": 10
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
410

Resource is no longer active

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
413

The runtime request body exceeds the route-specific byte limit

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /runtime/v1/leases Acquire one concurrent-use seat

Acquire a single lease from the product's concurrent-use allowance.

Authentication
deviceProof
Required scope
—
Operation ID
runtime_v1_leases_create

Parameters

X-Usakey-Activation Location: Header Required

Example Value

"x_usakey_activation_aaaaaaaaaaaaaaaaaaaa"
X-Usakey-Timestamp Location: Header Required
integer

Example Value

1
X-Usakey-Nonce Location: Header Required
string Minimum length: 22 Maximum length: 255

Example Value

"stringxxxxxxxxxxxxxxxx"
X-Usakey-Signature Location: Header Required
string Maximum length: 1024

Example Value

"example-token"

Request body

Required
application/json

Example Value

{
  "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
  "instance_id": "01K5QWERTY1234567890ABCDEFG",
  "handoff_from_lease_id": "handoff_from_lease_id_aaaaaaaaaaaaaaaaaaaa"
}

Responses

201

Acquired concurrent-use lease

application/json

Example Value

{
  "data": {
    "lease_id": "lease_id_aaaaaaaaaaaaaaaaaaaa",
    "instance_id": "01K5QWERTY1234567890ABCDEFG",
    "expires_at": 1,
    "heartbeat_in": 10
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

Idempotency, version, machine, concurrency, or pending product signing-key conflict

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
413

The runtime request body exceeds the route-specific byte limit

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /runtime/v1/leases/{lease_id} Release a concurrent-use lease

Return a lease after use and free the concurrent-use seat.

Authentication
deviceProof
Required scope
—
Operation ID
runtime_v1_leases_destroy

Parameters

lease_id Location: Path Required

Example Value

"lease_id_aaaaaaaaaaaaaaaaaaaa"
X-Usakey-Activation Location: Header Required

Example Value

"x_usakey_activation_aaaaaaaaaaaaaaaaaaaa"
X-Usakey-Timestamp Location: Header Required
integer

Example Value

1
X-Usakey-Nonce Location: Header Required
string Minimum length: 22 Maximum length: 255

Example Value

"stringxxxxxxxxxxxxxxxx"
X-Usakey-Signature Location: Header Required
string Maximum length: 1024

Example Value

"example-token"

Request body

Required
application/json

Example Value

{
  "instance_id": "01K5QWERTY1234567890ABCDEFG"
}

Responses

200

Released concurrent-use lease

application/json

Example Value

{
  "data": {
    "lease_id": "lease_id_aaaaaaaaaaaaaaaaaaaa",
    "status": "released"
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
413

The runtime request body exceeds the route-specific byte limit

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /runtime/v1/leases/{lease_id}/checkout Check out a concurrent-use lease

Take a lease in use offline for up to the usage rule's longest checkout and receive a signed checkout proof. The seat stays in use until the checkout ends.

Keeps a live lease for the requested number of days, up to the usage rule's longest checkout (1 to 30 days) and never past the license expiry. The seat stays in use until checkout_expires_at even while the device is offline. The response carries checkout, a PASETO v4.public proof signed with the product signing key (footer purpose lease-checkout, implicit assertion usakey:{product_id}:lease-checkout:v1) and bound to the device signing key, the activation and the lease; SDKs verify it offline and allow floating use until checkout_expires_at. A checkout cannot be stopped while the device is offline. Burst seats and leases handed off to another instance cannot be checked out. Checking out again while checked out restarts the checkout from now, but never ends it before the current checkout_expires_at. After the seller revokes the checkout, the device's next lease request answers 410 LEASE_EXPIRED, and the seat stays in use until the device checks the lease in or releases it, or the checkout ends.

Authentication
deviceProof
Required scope
—
Operation ID
runtime_v1_leases_checkout

Parameters

lease_id Location: Path Required

Example Value

"lease_id_aaaaaaaaaaaaaaaaaaaa"
X-Usakey-Activation Location: Header Required

Example Value

"x_usakey_activation_aaaaaaaaaaaaaaaaaaaa"
X-Usakey-Timestamp Location: Header Required
integer

Example Value

1
X-Usakey-Nonce Location: Header Required
string Minimum length: 22 Maximum length: 255

Example Value

"stringxxxxxxxxxxxxxxxx"
X-Usakey-Signature Location: Header Required
string Maximum length: 1024

Example Value

"example-token"

Request body

Required
application/json

Example Value

{
  "instance_id": "01K5QWERTY1234567890ABCDEFG",
  "days": 1
}

Responses

200

Checked-out concurrent-use lease with its signed checkout proof

application/json

Example Value

{
  "data": {
    "lease_id": "lease_id_aaaaaaaaaaaaaaaaaaaa",
    "instance_id": "01K5QWERTY1234567890ABCDEFG",
    "expires_at": 1,
    "heartbeat_in": 10,
    "checkout_expires_at": 1,
    "checkout": "string"
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

Idempotency, version, machine, concurrency, or pending product signing-key conflict

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
410

Resource is no longer active

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
413

The runtime request body exceeds the route-specific byte limit

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /runtime/v1/leases/{lease_id}/checkin Return a checked-out concurrent-use lease

End a checkout before it expires and return the lease to the normal lease duration.

Ends the checkout and returns the lease to the normal lease duration. Renew it to keep using the seat, or release it when done. A license that is suspended can still be checked in. A checkout that the seller revoked answers 410 LEASE_EXPIRED and frees the seat.

Authentication
deviceProof
Required scope
—
Operation ID
runtime_v1_leases_checkin

Parameters

lease_id Location: Path Required

Example Value

"lease_id_aaaaaaaaaaaaaaaaaaaa"
X-Usakey-Activation Location: Header Required

Example Value

"x_usakey_activation_aaaaaaaaaaaaaaaaaaaa"
X-Usakey-Timestamp Location: Header Required
integer

Example Value

1
X-Usakey-Nonce Location: Header Required
string Minimum length: 22 Maximum length: 255

Example Value

"stringxxxxxxxxxxxxxxxx"
X-Usakey-Signature Location: Header Required
string Maximum length: 1024

Example Value

"example-token"

Request body

Required
application/json

Example Value

{
  "instance_id": "01K5QWERTY1234567890ABCDEFG"
}

Responses

200

Concurrent-use lease back on the normal lease duration

application/json

Example Value

{
  "data": {
    "lease_id": "lease_id_aaaaaaaaaaaaaaaaaaaa",
    "instance_id": "01K5QWERTY1234567890ABCDEFG",
    "expires_at": 1,
    "heartbeat_in": 10
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

Idempotency, version, machine, concurrency, or pending product signing-key conflict

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
410

Resource is no longer active

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
413

The runtime request body exceeds the route-specific byte limit

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Management API

Products

16 operations

Manage products and their signing-key state.

POST /mgmt/v1/stripe-app/query Query an approved Stripe App operation

Uses an existing Usakey API key intersected with an active approved App connection of its creator. The tenant, account and test/live environment cannot be selected by request input. Additional operation scopes, current membership, plan and connection state are rechecked. No financial command or secret reveal is exposed.

Authentication
managementApiKey
Required scope
products:read
Operation ID
mgmt_v1_stripe_app_operations_query

Request body

Required
application/json

Example Value

{
  "name": "customer",
  "params": {}
}

Responses

200

Safe operation result or expiring reviewed preview

application/json

Example Value

{
  "request_id": "01K5QWERTY1234567890ABCDEFG",
  "data": {}
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

Idempotency, version, machine, concurrency, or pending product signing-key conflict

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/stripe-app/preview Preview an approved Stripe App change

Uses an existing Usakey API key intersected with an active approved App connection of its creator. The tenant, account and test/live environment cannot be selected by request input. Additional operation scopes, current membership, plan and connection state are rechecked. No financial command or secret reveal is exposed.

Authentication
managementApiKey
Required scope
products:write
Operation ID
mgmt_v1_stripe_app_operations_preview

Request body

Required
application/json

Example Value

{
  "name": "license.extend",
  "params": {},
  "expected_version": "string",
  "reason": "string"
}

Responses

200

Safe operation result or expiring reviewed preview

application/json

Example Value

{
  "request_id": "01K5QWERTY1234567890ABCDEFG",
  "data": {}
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

Idempotency, version, machine, concurrency, or pending product signing-key conflict

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/stripe-app/command Apply a reviewed Stripe App change

Uses an existing Usakey API key intersected with an active approved App connection of its creator. The tenant, account and test/live environment cannot be selected by request input. Additional operation scopes, current membership, plan and connection state are rechecked. No financial command or secret reveal is exposed.

Authentication
managementApiKey
Required scope
products:write
Operation ID
mgmt_v1_stripe_app_operations_command

Parameters

Idempotency-Key Location: Header Required
string Minimum length: 16 Maximum length: 128 Pattern: ^[A-Za-z0-9_-]+$

Example Value

"example_operation_key_20261101"

Request body

Required
application/json

Example Value

{
  "name": "license.extend",
  "params": {},
  "expected_version": "string",
  "reason": "string",
  "confirmation_token": "example-token"
}

Responses

200

Safe operation result or expiring reviewed preview

application/json

Example Value

{
  "request_id": "01K5QWERTY1234567890ABCDEFG",
  "data": {}
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

Idempotency, version, machine, concurrency, or pending product signing-key conflict

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/products List products
Authentication
managementApiKey
Required scope
products:read
Operation ID
mgmt_v1_products_index

Parameters

limit Location: Query Optional
integer Minimum: 1 Maximum: 200

Example Value

50
cursor Location: Query Optional
string

Example Value

"string"

Responses

200

Successful Product operation

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "code": "string",
      "description": "Example description",
      "environment": "live",
      "status": "active",
      "trust_bundle_sequence": 1,
      "signing_status": "pending",
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z",
      "version": 1
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/products Create a product
Authentication
managementApiKey
Required scope
products:write
Operation ID
mgmt_v1_products_create

Parameters

Idempotency-Key Location: Header Required
string Minimum length: 16 Maximum length: 255

Example Value

"stringxxxxxxxxxx"

Request body

Required
application/json

Schema

Example Value

{
  "name": "Example name",
  "code": "string",
  "description": "Example description",
  "environment": "string"
}

Responses

201

Successful Product operation

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "code": "string",
    "description": "Example description",
    "environment": "live",
    "status": "active",
    "trust_bundle_sequence": 1,
    "signing_status": "pending",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z",
    "version": 1
  }
}
409

Idempotency, version, machine, concurrency, or pending product signing-key conflict

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/products/{id} Retrieve a product
Authentication
managementApiKey
Required scope
products:read
Operation ID
mgmt_v1_products_show

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

200

Successful Product operation

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "code": "string",
    "description": "Example description",
    "environment": "live",
    "status": "active",
    "trust_bundle_sequence": 1,
    "signing_status": "pending",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z",
    "version": 1
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
PATCH /mgmt/v1/products/{id} Update a product
Authentication
managementApiKey
Required scope
products:write
Operation ID
mgmt_v1_products_update

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
If-Match Location: Header Optional
string

Recommended for conditional updates. Products and licenses expose the concurrency token as version; GET policies/{id} and customers/{id} expose it in the ETag response header. Send the ETag unchanged. Policy version is the historical policy number and must not be used for this header. A value that no longer matches returns 409 VERSION_CONFLICT and nothing is changed.

Example Value

"string"

Request body

Required
application/json

Schema

Example Value

{
  "name": "Example name",
  "code": "string",
  "description": "Example description",
  "environment": "string"
}

Responses

200

Successful Product operation

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "code": "string",
    "description": "Example description",
    "environment": "live",
    "status": "active",
    "trust_bundle_sequence": 1,
    "signing_status": "pending",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z",
    "version": 1
  }
}
409

Idempotency, version, machine, concurrency, or pending product signing-key conflict

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /mgmt/v1/products/{id} Delete a product

Send the product's version in If-Match to archive it only if it has not changed since it was read. A stale If-Match returns 409 VERSION_CONFLICT and nothing is changed.

Authentication
managementApiKey
Required scope
products:write
Operation ID
mgmt_v1_products_destroy

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
If-Match Location: Header Optional
string

Recommended for conditional updates. Products and licenses expose the concurrency token as version; GET policies/{id} and customers/{id} expose it in the ETag response header. Send the ETag unchanged. Policy version is the historical policy number and must not be used for this header. A value that no longer matches returns 409 VERSION_CONFLICT and nothing is changed.

Example Value

"string"

Responses

204

Archived

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/products/{id}/integration-config Get a product's integration settings

Get the same usakey.config.json the Console downloads. Save it in the product repository during development; product apps must not fetch it over the network at runtime.

Returns the product's usakey.config.json, the same file the Console downloads. Save it in the product repository at development time; product apps must not fetch it at runtime. Archived products return 409 PRODUCT_ARCHIVED.

Authentication
managementApiKey
Required scope
products:read
Operation ID
mgmt_v1_products_integration_config

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

200

Integration settings for the product app

application/json

Example Value

{
  "data": {
    "file_name": "Example name",
    "content": "string",
    "config": {
      "usakey_config_version": 1,
      "generated_at": "2026-09-21T00:00:00Z",
      "bundle_version": "string",
      "environment": "live",
      "api_url": "https://example.com/resource",
      "product": {
        "id": "id_aaaaaaaaaaaaaaaaaaaa",
        "name": "Example name"
      },
      "trust_anchor": {
        "signing_mode": "string",
        "key_id": "01K5QWERTY1234567890ABCDEFG",
        "trust_bundle_url": "https://example.com/resource",
        "minimum_trust_bundle_sequence": 1,
        "root_public_key": "string",
        "development_root_public_key": "string",
        "public_key_unavailable_reason": "string",
        "signing_keys_pending_reason": "string"
      },
      "entitlements": [
        {
          "name": "Example name",
          "type": "boolean",
          "policies": [
            "string"
          ]
        }
      ],
      "license_key_delivery": "manual",
      "stripe_license_claim_url": "https://example.com/resource"
    }
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

Idempotency, version, machine, concurrency, or pending product signing-key conflict

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/products/{product_id}/browser-runtime Retrieve a product

Returns the product browser Runtime settings: enabled, allowed_origins and version. Disabled by default. Archived products return 409 PRODUCT_ARCHIVED. Existing Product responses are unchanged. This endpoint does not allow cross-origin browser requests.

Authentication
managementApiKey
Required scope
products:read
Operation ID
mgmt_v1_product_browser_runtimes_show

Parameters

product_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

200

Browser Runtime settings of the product

application/json

Example Value

{
  "data": {
    "product_id": "prod_0123456789abcdef0123",
    "enabled": true,
    "allowed_origins": [
      "string"
    ],
    "version": 0
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

Idempotency, version, machine, concurrency, or pending product signing-key conflict

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
PATCH /mgmt/v1/products/{product_id}/browser-runtime Update a product

Changes only the supplied settings using Console validation. enabled must be a boolean. allowed_origins replaces the entire list of at most 20 exact origins: HTTPS origins, or chrome-extension:// followed by the 32-character extension ID for a Chrome extension; test products also allow HTTP loopback origins. Wildcards, null, paths, query, fragment and userinfo are rejected. Disabling preserves the list. Clearing an enabled list fails validation. Invalid values return 422 VALIDATION_FAILED. If-Match checks the product version including origin-only changes (409 VERSION_CONFLICT). Archived products return 409 PRODUCT_ARCHIVED. Changes are audited as product.updated. Runtime OPTIONS consumes no Runtime allowance; these Management API calls use normal Management API quotas.

Authentication
managementApiKey
Required scope
products:write
Operation ID
mgmt_v1_product_browser_runtimes_update

Parameters

product_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
If-Match Location: Header Optional
string

Recommended for conditional updates. Products and licenses expose the concurrency token as version; GET policies/{id} and customers/{id} expose it in the ETag response header. Send the ETag unchanged. Policy version is the historical policy number and must not be used for this header. A value that no longer matches returns 409 VERSION_CONFLICT and nothing is changed.

Example Value

"string"

Request body

Required
application/json

Example Value

{
  "enabled": true,
  "allowed_origins": [
    "string"
  ]
}

Responses

200

Browser Runtime settings of the product

application/json

Example Value

{
  "data": {
    "product_id": "prod_0123456789abcdef0123",
    "enabled": true,
    "allowed_origins": [
      "string"
    ],
    "version": 0
  }
}
409

Idempotency, version, machine, concurrency, or pending product signing-key conflict

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/products/{product_id}/trial-signup Get a product's trial sign-up settings

Returns whether the product accepts trials that the product app starts with email verification (POST /runtime/v1/trial-verifications): the trial policy used, the 24-hour limit and the current status. These are the settings on the product's edit page in the Console; the product response itself does not include them. Archived products return 409 PRODUCT_ARCHIVED.

Authentication
managementApiKey
Required scope
products:read
Operation ID
mgmt_v1_product_trial_signups_show

Parameters

product_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

200

Trial sign-up settings of the product

application/json

Example Value

{
  "data": {
    "product_id": "prod_0123456789abcdef0123",
    "policy_id": "01K5QWERTY1234567890ABCDEFG",
    "daily_limit": 1,
    "status": "accepting",
    "started_last_24_hours": 0,
    "version": 0
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

Idempotency, version, machine, concurrency, or pending product signing-key conflict

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
PATCH /mgmt/v1/products/{product_id}/trial-signup Change a product's trial sign-up settings

Changes the trial sign-up settings with the same checks as the Console. Only the fields sent are changed. Choosing or replacing the policy needs a plan with the trial_licenses entitlement (403 PLAN_ENTITLEMENT_REQUIRED); setting policy_id to null to stop accepting trials, and changing only daily_limit, are always allowed. Invalid values return 422 VALIDATION_FAILED with details.errors keyed by policy_id or daily_limit. Archived products return 409 PRODUCT_ARCHIVED. A change is recorded in the audit log as product.updated. Idempotency-Key is not used; sending the same body again gives the same result.

Authentication
managementApiKey
Required scope
products:write
Operation ID
mgmt_v1_product_trial_signups_update

Parameters

product_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
If-Match Location: Header Optional
string

Recommended for conditional updates. Products and licenses expose the concurrency token as version; GET policies/{id} and customers/{id} expose it in the ETag response header. Send the ETag unchanged. Policy version is the historical policy number and must not be used for this header. A value that no longer matches returns 409 VERSION_CONFLICT and nothing is changed.

Example Value

"string"

Request body

Required
application/json

Example Value

{
  "policy_id": "01K5QWERTY1234567890ABCDEFG",
  "daily_limit": 1
}

Responses

200

Trial sign-up settings of the product

application/json

Example Value

{
  "data": {
    "product_id": "prod_0123456789abcdef0123",
    "policy_id": "01K5QWERTY1234567890ABCDEFG",
    "daily_limit": 1,
    "status": "accepting",
    "started_last_24_hours": 0,
    "version": 0
  }
}
409

Idempotency, version, machine, concurrency, or pending product signing-key conflict

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/products/{product_id}/sealed-files Get the sealed-file status and public key of a product

Returns whether the product seals files for licensed devices (docs/security/sealed-files.md) and, once enabled, its public sealing key. current_key.sealing_key is the one-line key the sealing tool (usakey-seal) takes; it is not a secret. status is enabled, disabled, not_entitled (the plan does not include sealed_files; an existing key stays but devices receive no file keys), or unavailable (this environment does not offer sealed files yet). Archived products return 409 PRODUCT_ARCHIVED.

Authentication
managementApiKey
Required scope
products:read
Operation ID
mgmt_v1_product_sealed_files_show

Parameters

product_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

200

Sealed-file status of the product

application/json

Example Value

{
  "data": {
    "product_id": "prod_0123456789abcdef0123",
    "status": "enabled",
    "current_key": {
      "key_id": "key_seal_0123456789abcdef0123",
      "public_key": "p256:BC8ylpFJ44nP01V3Ei2l5hm8iUAyxR8cepHBhlWWLzsAqCUpcNOfUa05MSFt28Z9RVc7yJO2cKyY_V1rZon_v6Y",
      "sealing_key": "usakey-sealing-key:v1:prod_0123456789abcdef0123:key_seal_0123456789abcdef0123:p256:BC8ylpFJ44nP01V3Ei2l5hm8iUAyxR8cepHBhlWWLzsAqCUpcNOfUa05MSFt28Z9RVc7yJO2cKyY_V1rZon_v6Y",
      "created_at": "2026-09-21T00:00:00Z"
    }
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

Idempotency, version, machine, concurrency, or pending product signing-key conflict

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/products/{product_id}/sealed-files Turn on sealed files for a product

Turns sealed files on for the product. It needs a plan with the sealed_files entitlement (403 PLAN_ENTITLEMENT_REQUIRED) and an environment that offers sealed files (409 SEALED_FILES_UNAVAILABLE). The response is 200 with status enabled and current_key; 503 SEALED_FILES_KEY_UNAVAILABLE (retryable) means the sealing key could not be reached for a moment. Sending it again changes nothing. The first enablement is recorded in the audit log as product.sealed_files_enabled. There is no request body and Idempotency-Key is not used. Sealed files cannot be turned off here: files already distributed would stop opening.

Authentication
managementApiKey
Required scope
products:write
Operation ID
mgmt_v1_product_sealed_files_create

Parameters

product_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

200

Sealed files are enabled and the key exists

application/json

Example Value

{
  "data": {
    "product_id": "prod_0123456789abcdef0123",
    "status": "enabled",
    "current_key": {
      "key_id": "key_seal_0123456789abcdef0123",
      "public_key": "p256:BC8ylpFJ44nP01V3Ei2l5hm8iUAyxR8cepHBhlWWLzsAqCUpcNOfUa05MSFt28Z9RVc7yJO2cKyY_V1rZon_v6Y",
      "sealing_key": "usakey-sealing-key:v1:prod_0123456789abcdef0123:key_seal_0123456789abcdef0123:p256:BC8ylpFJ44nP01V3Ei2l5hm8iUAyxR8cepHBhlWWLzsAqCUpcNOfUa05MSFt28Z9RVc7yJO2cKyY_V1rZon_v6Y",
      "created_at": "2026-09-21T00:00:00Z"
    }
  }
}
409

Idempotency, version, machine, concurrency, or pending product signing-key conflict

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/stripe-integration Get the Stripe integration status

Get whether the workspace's own Stripe integration exists, its test or live mode, the license claim URL and the price-to-license mappings. The restricted key and signing secret are never returned.

The workspace's own Stripe integration as product apps use it, with its price-to-license mappings. The restricted API key and the webhook signing secret are never returned.

Authentication
managementApiKey
Required scope
products:read
Operation ID
mgmt_v1_stripe_integrations_show

Responses

200

Stripe integration status

application/json

Example Value

{
  "data": {
    "registered": true,
    "mode": "test",
    "status": "active",
    "secure_claims_required": true,
    "license_claim_url": "https://example.com/resource",
    "last_event": {
      "type": "string",
      "result": "string",
      "at": "2026-09-21T00:00:00Z"
    },
    "offerings": [
      {
        "payment_grace_days": 1,
        "license_email_enabled": true,
        "id": "id_aaaaaaaaaaaaaaaaaaaa",
        "name": "Example name",
        "stripe_price_id": "01K5QWERTY1234567890ABCDEFG",
        "product_id": "prod_0123456789abcdef0123",
        "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
        "status": "active",
        "license_duration_days": 1
      }
    ]
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Management API

Policies

12 operations

Manage license usage rules.

GET /mgmt/v1/policies List policies
Authentication
managementApiKey
Required scope
policies:read
Operation ID
mgmt_v1_policies_index

Responses

200

Successful Policy operation

application/json

Example Value

{
  "data": [
    {
      "default_license_metadata": {},
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "product_id": "prod_0123456789abcdef0123",
      "name": "Example name",
      "version": 1,
      "license_type": "perpetual",
      "validation_mode": "string",
      "perpetual_mode": "managed",
      "heartbeat_required": true,
      "revocation_guarantee_sec": 0,
      "fail_mode": "string",
      "identity_mode": "string",
      "license_unit_limit": 1,
      "max_machines": 1,
      "max_concurrent": 1,
      "concurrency_unit": "string",
      "cert_ttl_sec": 1,
      "heartbeat_sec": 1,
      "lease_ttl_sec": 1,
      "lease_heartbeat_sec": 1,
      "network_grace_sec": 1,
      "fingerprint_profile": {},
      "renewal_authority": "string",
      "billing_cycle": "string",
      "trial_days": 1,
      "entitlements": {},
      "status": "active",
      "created_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/policies Create a policy
Authentication
managementApiKey
Required scope
policies:write
Operation ID
mgmt_v1_policies_create

Parameters

Idempotency-Key Location: Header Required
string Minimum length: 16 Maximum length: 255

Example Value

"stringxxxxxxxxxx"

Request body

Required
application/json

Schema

Example Value

{
  "default_license_metadata": {},
  "product_id": "prod_0123456789abcdef0123",
  "name": "Example name",
  "license_type": "string",
  "validation_mode": "string",
  "fail_mode": "string",
  "max_machines": 1,
  "max_concurrent": 1,
  "concurrency_unit": "string",
  "identity_mode": "string",
  "license_unit_limit": 1,
  "cert_ttl_sec": 1,
  "heartbeat_sec": 1,
  "lease_ttl_sec": 1,
  "lease_heartbeat_sec": 1,
  "lease_checkout_max_days": 0,
  "lease_handoff_grace_sec": 0,
  "lease_burst_seats": 0,
  "lease_burst_sec": 0,
  "network_grace_sec": 1,
  "fingerprint_profile": "standard",
  "renewal_authority": "string",
  "billing_cycle": "string",
  "trial_days": 1,
  "entitlements": {},
  "offline_rehosts_per_year": 0,
  "counters": [
    {
      "name": "example",
      "limit": 0,
      "reset_period": "none",
      "unit": "string",
      "alert_threshold": 0,
      "overage_action": "notify"
    }
  ]
}

Responses

201

Successful Policy operation

application/json

Example Value

{
  "data": {
    "default_license_metadata": {},
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "product_id": "prod_0123456789abcdef0123",
    "name": "Example name",
    "version": 1,
    "license_type": "perpetual",
    "validation_mode": "string",
    "perpetual_mode": "managed",
    "heartbeat_required": true,
    "revocation_guarantee_sec": 0,
    "fail_mode": "string",
    "identity_mode": "string",
    "license_unit_limit": 1,
    "max_machines": 1,
    "max_concurrent": 1,
    "concurrency_unit": "string",
    "cert_ttl_sec": 1,
    "heartbeat_sec": 1,
    "lease_ttl_sec": 1,
    "lease_heartbeat_sec": 1,
    "network_grace_sec": 1,
    "fingerprint_profile": {},
    "renewal_authority": "string",
    "billing_cycle": "string",
    "trial_days": 1,
    "entitlements": {},
    "status": "active",
    "created_at": "2026-09-21T00:00:00Z"
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

Idempotency, version, machine, concurrency, or pending product signing-key conflict

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/policies/{id} Retrieve a policy
Authentication
managementApiKey
Required scope
policies:read
Operation ID
mgmt_v1_policies_show

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

200

Successful Policy operation

application/json

Example Value

{
  "data": {
    "default_license_metadata": {},
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "product_id": "prod_0123456789abcdef0123",
    "name": "Example name",
    "version": 1,
    "license_type": "perpetual",
    "validation_mode": "string",
    "perpetual_mode": "managed",
    "heartbeat_required": true,
    "revocation_guarantee_sec": 0,
    "fail_mode": "string",
    "identity_mode": "string",
    "license_unit_limit": 1,
    "max_machines": 1,
    "max_concurrent": 1,
    "concurrency_unit": "string",
    "cert_ttl_sec": 1,
    "heartbeat_sec": 1,
    "lease_ttl_sec": 1,
    "lease_heartbeat_sec": 1,
    "network_grace_sec": 1,
    "fingerprint_profile": {},
    "renewal_authority": "string",
    "billing_cycle": "string",
    "trial_days": 1,
    "entitlements": {},
    "status": "active",
    "created_at": "2026-09-21T00:00:00Z"
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
PATCH /mgmt/v1/policies/{id} Update a policy

A stale If-Match returns 409 VERSION_CONFLICT and nothing is changed; read the policy again to get the current ETag.

Authentication
managementApiKey
Required scope
policies:write
Operation ID
mgmt_v1_policies_update

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
If-Match Location: Header Optional
string

Recommended for conditional updates. Products and licenses expose the concurrency token as version; GET policies/{id} and customers/{id} expose it in the ETag response header. Send the ETag unchanged. Policy version is the historical policy number and must not be used for this header. A value that no longer matches returns 409 VERSION_CONFLICT and nothing is changed.

Example Value

"string"

Request body

Required
application/json

Schema

Example Value

{
  "default_license_metadata": {},
  "product_id": "prod_0123456789abcdef0123",
  "name": "Example name",
  "license_type": "string",
  "validation_mode": "string",
  "fail_mode": "string",
  "max_machines": 1,
  "max_concurrent": 1,
  "concurrency_unit": "string",
  "identity_mode": "string",
  "license_unit_limit": 1,
  "cert_ttl_sec": 1,
  "heartbeat_sec": 1,
  "lease_ttl_sec": 1,
  "lease_heartbeat_sec": 1,
  "lease_checkout_max_days": 0,
  "lease_handoff_grace_sec": 0,
  "lease_burst_seats": 0,
  "lease_burst_sec": 0,
  "network_grace_sec": 1,
  "fingerprint_profile": "standard",
  "renewal_authority": "string",
  "billing_cycle": "string",
  "trial_days": 1,
  "entitlements": {},
  "offline_rehosts_per_year": 0,
  "counters": [
    {
      "name": "example",
      "limit": 0,
      "reset_period": "none",
      "unit": "string",
      "alert_threshold": 0,
      "overage_action": "notify"
    }
  ]
}

Responses

200

Successful Policy operation

application/json

Example Value

{
  "data": {
    "default_license_metadata": {},
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "product_id": "prod_0123456789abcdef0123",
    "name": "Example name",
    "version": 1,
    "license_type": "perpetual",
    "validation_mode": "string",
    "perpetual_mode": "managed",
    "heartbeat_required": true,
    "revocation_guarantee_sec": 0,
    "fail_mode": "string",
    "identity_mode": "string",
    "license_unit_limit": 1,
    "max_machines": 1,
    "max_concurrent": 1,
    "concurrency_unit": "string",
    "cert_ttl_sec": 1,
    "heartbeat_sec": 1,
    "lease_ttl_sec": 1,
    "lease_heartbeat_sec": 1,
    "network_grace_sec": 1,
    "fingerprint_profile": {},
    "renewal_authority": "string",
    "billing_cycle": "string",
    "trial_days": 1,
    "entitlements": {},
    "status": "active",
    "created_at": "2026-09-21T00:00:00Z"
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /mgmt/v1/policies/{id} Delete a policy
Authentication
managementApiKey
Required scope
policies:write
Operation ID
mgmt_v1_policies_destroy

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

204

Retired

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/policies/{policy_id}/offline-rehosts Retrieve a policy

Returns the move limit of this policy version, even before a license has been issued. Set offline_rehosts_per_year with POST /mgmt/v1/policies or PATCH /mgmt/v1/policies/{id}. An update creates a new policy version; existing licenses keep the limit of their original version. Policy responses remain unchanged.

Authentication
managementApiKey
Required scope
policies:read
Operation ID
mgmt_v1_policy_offline_rehosts_show

Parameters

policy_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

200

Offline move settings of the policy version

application/json

Example Value

{
  "data": {
    "policy_id": "01K5QWERTY1234567890ABCDEFG",
    "offline_rehosts_per_year": 0
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/policies/{policy_id}/lease-settings Get a policy's lease checkout, handoff and overage settings

Return the policy's concurrent-use lease settings for checkout, handoff and overage. Change them by creating or changing the policy.

Returns the policy's checkout, handoff and overage settings for floating leases, with the fixed one-hour cooldown between overage windows. Set them with lease_checkout_max_days, lease_handoff_grace_sec, lease_burst_seats and lease_burst_sec in POST and PATCH /mgmt/v1/policies (each change creates a new policy version, and licenses keep the settings of the version they were issued from). Policy responses do not include them. All four are 0 for a policy without max_concurrent.

Authentication
managementApiKey
Required scope
policies:read
Operation ID
mgmt_v1_policy_lease_settings_show

Parameters

policy_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

200

Lease settings of the policy

application/json

Example Value

{
  "data": {
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "max_concurrent": 1,
    "lease_checkout_max_days": 0,
    "lease_handoff_grace_sec": 0,
    "lease_burst_seats": 0,
    "lease_burst_sec": 0,
    "burst_cooldown_sec": 0
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/policies/{policy_id}/counters List policies

Lists the usage counters the policy defines, in the order they were written. Define them with counters in POST and PATCH /mgmt/v1/policies (each change creates a new policy version). Licenses keep the counters of the policy version they were issued from.

Authentication
managementApiKey
Required scope
policies:read
Operation ID
mgmt_v1_policy_counters_index

Parameters

policy_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

200

Usage counters defined by the policy

application/json

Example Value

{
  "data": [
    {
      "name": "example",
      "limit": 0,
      "reset_period": "string",
      "unit": "string",
      "alert_threshold": 0,
      "overage_action": "string"
    }
  ]
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/policies/{policy_id}/device-release Get the device replacement by users setting

Returns whether users of licenses issued with this policy version can release a device that is not at hand from the product app (device replacement by users: POST /runtime/v1/device-releases), where the emailed code goes (verified_by), the status and how many licenses were issued with this version. This is the setting on the policy's page in the Console; the policy response itself does not include it. It is kept per policy version and applies to the licenses issued with that version, including a retired version's.

Authentication
managementApiKey
Required scope
policies:read
Operation ID
mgmt_v1_policy_device_releases_show

Parameters

policy_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

200

Device release setting of the policy version

application/json

Example Value

{
  "data": {
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "enabled": true,
    "status": "available",
    "verified_by": "license_user_email",
    "license_count": 0
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
PATCH /mgmt/v1/policies/{policy_id}/device-release Change the device replacement by users setting

Allows (enabled true) or stops allowing (enabled false) device replacement by users for this policy version, with the same checks as the Console. No new policy version is created, so the change applies at once to the licenses issued with this version; a retired version can be changed too. A fully offline perpetual policy cannot allow it, because its offline files cannot be revoked (422 VALIDATION_FAILED with details.errors.enabled). Only a JSON boolean enabled is accepted; anything else returns 422 VALIDATION_FAILED. A change is recorded in the audit log as policy.end_user_device_release_updated. If-Match and Idempotency-Key are not used; sending the same body again gives the same result and records nothing.

Authentication
managementApiKey
Required scope
policies:write
Operation ID
mgmt_v1_policy_device_releases_update

Parameters

policy_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Request body

Required
application/json

Example Value

{
  "enabled": true
}

Responses

200

Device release setting of the policy version

application/json

Example Value

{
  "data": {
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "enabled": true,
    "status": "available",
    "verified_by": "license_user_email",
    "license_count": 0
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/policies/{policy_id}/anomaly-rule Get a policy's suspected misuse rule

Returns the policy's rule for suspected device cloning and shared license keys: what happens when a suspicion opens (anomaly_action: notify records and notifies only and is the default, suspend_license also suspends the license once minimum_confirmations checks reached the threshold, off does not detect), the threshold, the confirmations, the hours until a signal's points halve (decay_hours) and the weight of each signal. The rule applies to every version of the policy (policy_versions), so licenses issued with an older version follow it too. The per-observation risk rule an operator may set in fingerprint_profile.risk_policy (action, threshold, minimum_confirmations, weights) is separate; it is not returned or changed here.

Authentication
managementApiKey
Required scope
policies:read
Operation ID
mgmt_v1_policy_anomaly_rules_show

Parameters

policy_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

200

Anomaly rule of the policy

application/json

Example Value

{
  "data": {
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "anomaly_action": "notify",
    "threshold": 1,
    "minimum_confirmations": 1,
    "decay_hours": 1,
    "weights": {
      "property": 0
    },
    "policy_versions": 1
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
PATCH /mgmt/v1/policies/{policy_id}/anomaly-rule Change a policy's suspected misuse rule

Writes only the fields sent to every version of the policy. No new version is created.

Changes the anomaly rule with the same checks as the Console. Only the fields sent are changed, and weights changes only the signals it names. The rule is written to every version of the policy; no new version is created. A value outside its range, a value that is not a whole number, or an unknown signal name returns 422 VALIDATION_FAILED with details.errors keyed by the field, and nothing is changed. A change is recorded in the audit log as policy.anomaly_rule_updated; sending the same values again changes nothing and records nothing. If-Match is not used. suspend_license can stop legitimate users (for example, a customer whose connection switches between distant networks); the license is only suspended, never revoked, and dismissing the suspicion (POST /mgmt/v1/anomalies/{id}/dismiss) resumes it.

Authentication
managementApiKey
Required scope
policies:write
Operation ID
mgmt_v1_policy_anomaly_rules_update

Parameters

policy_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Request body

Required
application/json

Example Value

{
  "anomaly_action": "notify",
  "threshold": 1,
  "minimum_confirmations": 1,
  "decay_hours": 1,
  "weights": {
    "property": 0
  }
}

Responses

200

Anomaly rule of the policy

application/json

Example Value

{
  "data": {
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "anomaly_action": "notify",
    "threshold": 1,
    "minimum_confirmations": 1,
    "decay_hours": 1,
    "weights": {
      "property": 0
    },
    "policy_versions": 1
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Management API

Customers and users

12 operations

Manage customers and the users associated with them.

GET /mgmt/v1/customers List customers

Lists all customers. Customer organizations have been merged into customers, so the customers that use user management (the organizations endpoints) are listed here too.

Authentication
managementApiKey
Required scope
customers:read
Operation ID
mgmt_v1_customers_index

Responses

200

Successful Customer operation

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "email": "developer@example.com",
      "external_ref": "string",
      "notes": "string",
      "status": "active",
      "kind": "individual",
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/customers Create a customer

external_ref must be unique among all customers, including the customers merged from customer organizations. A duplicate returns 422 VALIDATION_FAILED.

Authentication
managementApiKey
Required scope
customers:write
Operation ID
mgmt_v1_customers_create

Parameters

Idempotency-Key Location: Header Required
string Minimum length: 16 Maximum length: 255

Example Value

"stringxxxxxxxxxx"

Request body

Required
application/json

Schema

Example Value

{
  "name": "Example name",
  "email": "developer@example.com",
  "external_ref": "string",
  "notes": "string",
  "kind": "individual"
}

Responses

201

Successful Customer operation

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "email": "developer@example.com",
    "external_ref": "string",
    "notes": "string",
    "status": "active",
    "kind": "individual",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

Idempotency, version, machine, concurrency, or pending product signing-key conflict

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/customers/{id} Retrieve a customer

Accepts the customer ID (cus_…) or, for a customer merged from a customer organization, the organization ID it had before the merge (org_…).

Authentication
managementApiKey
Required scope
customers:read
Operation ID
mgmt_v1_customers_show

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

200

Successful Customer operation

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "email": "developer@example.com",
    "external_ref": "string",
    "notes": "string",
    "status": "active",
    "kind": "individual",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
PATCH /mgmt/v1/customers/{id} Update a customer

Accepts the customer ID (cus_…) or the organization ID it was merged from (org_…). Customers are shared by the live and test environments. A test API key cannot change a customer who holds a live license or whose license users hold a seat on a live license (403 ENVIRONMENT_MISMATCH). A stale If-Match returns 409 VERSION_CONFLICT and nothing is changed; read the customer again to get the current ETag.

Authentication
managementApiKey
Required scope
customers:write
Operation ID
mgmt_v1_customers_update

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
If-Match Location: Header Optional
string

Recommended for conditional updates. Products and licenses expose the concurrency token as version; GET policies/{id} and customers/{id} expose it in the ETag response header. Send the ETag unchanged. Policy version is the historical policy number and must not be used for this header. A value that no longer matches returns 409 VERSION_CONFLICT and nothing is changed.

Example Value

"string"

Request body

Required
application/json

Schema

Example Value

{
  "name": "Example name",
  "email": "developer@example.com",
  "external_ref": "string",
  "notes": "string",
  "kind": "individual"
}

Responses

200

Successful Customer operation

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "email": "developer@example.com",
    "external_ref": "string",
    "notes": "string",
    "status": "active",
    "kind": "individual",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /mgmt/v1/customers/{id} Delete a customer

Archives the customer. Issued licenses are not suspended. Usakey never cancels subscriptions in the seller's Stripe or sales service, so cancel them there to stop the buyers' charges.

Authentication
managementApiKey
Required scope
customers:write
Operation ID
mgmt_v1_customers_destroy

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

204

Archived

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/imports List CSV imports

List CSV imports in the order they were uploaded.

Lists CSV imports, oldest first (in the order they were uploaded; page with cursor). License issuance and assignment imports are listed only to keys with licenses:read, and only for the key's environment.

Authentication
managementApiKey
Required scope
customers:read
Operation ID
mgmt_v1_bulk_imports_index

Parameters

limit Location: Query Optional
integer Minimum: 1 Maximum: 200

Example Value

50
cursor Location: Query Optional
string

Example Value

"string"
kind Location: Query Optional

Example Value

"customers"
status Location: Query Optional
string

Allowed values: validating, validated, applying, completed, failed, cancelled

Example Value

"validating"

Responses

200

CSV imports

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "kind": "customers",
      "environment": "live",
      "status": "validating",
      "source": "console",
      "requested_by": "user",
      "filename": "Example name",
      "encoding": "utf-8",
      "byte_size": 0,
      "columns": [
        "string"
      ],
      "rows": {
        "total": 0,
        "valid": 0,
        "invalid": 0,
        "applied": 0,
        "unchanged": 0,
        "failed": 0
      },
      "preview": {
        "create": 0,
        "update": 0,
        "none": 0
      },
      "failure_code": "string",
      "created_at": "2026-09-21T00:00:00Z",
      "validated_at": "2026-09-21T00:00:00Z",
      "apply_requested_at": "2026-09-21T00:00:00Z",
      "completed_at": "2026-09-21T00:00:00Z",
      "rows_expire_at": "2026-09-21T00:00:00Z",
      "rows_purged": true
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/imports Upload and check a CSV

Upload a CSV and start checking it before importing (a preview). Nothing is registered yet.

Uploads a CSV (up to 5 MB and 5,000 rows besides the header; UTF-8 with or without a BOM, or Shift_JIS) and starts checking it. Nothing is written until POST /mgmt/v1/imports/{id}/apply. Send the file as multipart/form-data (file) or as the csv string in JSON. kind is customers (matched by external_ref), license_users (matched by issuer and subject), licenses (one license per row) or license_assignments (license_id with license_user_id or user_subject). licenses and license_assignments also need licenses:write and use products of the key's environment; license_users and license_assignments need named-user licensing (403 PLAN_ENTITLEMENT_REQUIRED). File problems (encoding, header, size, row count, a row with more cells than the header) return 422 CSV_INVALID with details.errors. A license file with the same contents as an earlier imported one returns 409 DUPLICATE_IMPORT, so licenses are not issued twice. Up to 3 imports per workspace can be checked or applied at once (409 IMPORTS_IN_PROGRESS, retryable). Values are stored as written, including those that start with =, +, - or @; CSV files that Usakey creates prefix such text with '. New Usakey exports and error-row CSV files include usakey_csv_encoding (apostrophe-v1) to restore original values on reimport. Keep this column to reverse formula protection while preserving literal leading apostrophes. CSV files without this marker retain their apostrophes as written. Unknown nonempty marker versions return 422 CSV_INVALID.

Authentication
managementApiKey
Required scope
customers:write
Operation ID
mgmt_v1_bulk_imports_create

Parameters

Idempotency-Key Location: Header Required
string Minimum length: 16 Maximum length: 255

Example Value

"stringxxxxxxxxxx"

Request body

Required
application/json

Example Value

{
  "kind": "customers",
  "csv": "string",
  "filename": "Example name"
}
multipart/form-data

Example Value

{
  "kind": "customers",
  "file": "string"
}

Responses

202

The CSV was received and is being checked

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "kind": "customers",
    "environment": "live",
    "status": "validating",
    "source": "console",
    "requested_by": "user",
    "filename": "Example name",
    "encoding": "utf-8",
    "byte_size": 0,
    "columns": [
      "string"
    ],
    "rows": {
      "total": 0,
      "valid": 0,
      "invalid": 0,
      "applied": 0,
      "unchanged": 0,
      "failed": 0
    },
    "preview": {
      "create": 0,
      "update": 0,
      "none": 0
    },
    "failure_code": "string",
    "created_at": "2026-09-21T00:00:00Z",
    "validated_at": "2026-09-21T00:00:00Z",
    "apply_requested_at": "2026-09-21T00:00:00Z",
    "completed_at": "2026-09-21T00:00:00Z",
    "rows_expire_at": "2026-09-21T00:00:00Z",
    "rows_purged": true
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

Idempotency, version, machine, concurrency, or pending product signing-key conflict

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
413

The runtime request body exceeds the route-specific byte limit

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/imports/{id} Retrieve a CSV import

Retrieve an import's status and the preview of the rows that can be imported.

Returns one import. status validated means the check finished; rows counts the rows by result and preview counts the rows that can be imported by what they will do (create, update, none). Row details are kept for 30 days (rows_expire_at).

Authentication
managementApiKey
Required scope
customers:read
Operation ID
mgmt_v1_bulk_imports_show

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

200

CSV import

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "kind": "customers",
    "environment": "live",
    "status": "validating",
    "source": "console",
    "requested_by": "user",
    "filename": "Example name",
    "encoding": "utf-8",
    "byte_size": 0,
    "columns": [
      "string"
    ],
    "rows": {
      "total": 0,
      "valid": 0,
      "invalid": 0,
      "applied": 0,
      "unchanged": 0,
      "failed": 0
    },
    "preview": {
      "create": 0,
      "update": 0,
      "none": 0
    },
    "failure_code": "string",
    "created_at": "2026-09-21T00:00:00Z",
    "validated_at": "2026-09-21T00:00:00Z",
    "apply_requested_at": "2026-09-21T00:00:00Z",
    "completed_at": "2026-09-21T00:00:00Z",
    "rows_expire_at": "2026-09-21T00:00:00Z",
    "rows_purged": true
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/imports/{id}/apply Apply a CSV import

Import the rows without errors of a checked import.

Imports the rows that passed the check, one row at a time through the same checks, plan limits and activity log as the single-record endpoints; rows with errors are skipped. Only the API key (or AI assistant connection) that uploaded the file can apply it (403 IMPORT_NOT_OWNED). Send expected_valid_rows with the count you reviewed; a different count returns 409 IMPORT_NOT_APPLIABLE with reason valid_rows_changed. A second call after the import started returns 409 IMPORT_NOT_APPLIABLE with reason not_validated, so it never imports twice. Licenses are issued without waiting for the product signing key, which is prepared in the background.

Authentication
managementApiKey
Required scope
customers:write
Operation ID
mgmt_v1_bulk_imports_apply

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Request body

Optional
application/json

Example Value

{
  "expected_valid_rows": 0
}

Responses

202

The import started

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "kind": "customers",
    "environment": "live",
    "status": "validating",
    "source": "console",
    "requested_by": "user",
    "filename": "Example name",
    "encoding": "utf-8",
    "byte_size": 0,
    "columns": [
      "string"
    ],
    "rows": {
      "total": 0,
      "valid": 0,
      "invalid": 0,
      "applied": 0,
      "unchanged": 0,
      "failed": 0
    },
    "preview": {
      "create": 0,
      "update": 0,
      "none": 0
    },
    "failure_code": "string",
    "created_at": "2026-09-21T00:00:00Z",
    "validated_at": "2026-09-21T00:00:00Z",
    "apply_requested_at": "2026-09-21T00:00:00Z",
    "completed_at": "2026-09-21T00:00:00Z",
    "rows_expire_at": "2026-09-21T00:00:00Z",
    "rows_purged": true
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

Idempotency, version, machine, concurrency, or pending product signing-key conflict

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/imports/{id}/rows List the rows of a CSV import

List the result of each row of an import and the reasons for errors.

Lists the rows of an import in line order (line 1 is the header), with each row's result, the record it created or updated and the reasons for errors. Filter with status=invalid or status=failed for the rows to fix. For a licenses import, license_key holds the full key of each issued license when the API key or AI assistant connection that uploaded the file reads it; each such call is recorded in the activity log. license_keys=omit leaves the keys out (the default of the MCP tool). Rows are deleted after 30 days (410 IMPORT_ROWS_EXPIRED).

Authentication
managementApiKey
Required scope
customers:read
Operation ID
mgmt_v1_bulk_imports_rows

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
limit Location: Query Optional
integer Minimum: 1 Maximum: 200

Example Value

50
cursor Location: Query Optional
string

Example Value

"string"
license_keys Location: Query Optional
string

Allowed values: include, omit

include (default) returns the full keys to the uploader; omit leaves them out.

Example Value

"include"
status Location: Query Optional
string

Allowed values: pending, valid, invalid, applied, unchanged, failed

Example Value

"pending"

Responses

200

Import rows

application/json

Example Value

{
  "data": [
    {
      "line": 2,
      "status": "pending",
      "action": "create",
      "record_type": "string",
      "record_id": "01K5QWERTY1234567890ABCDEFG",
      "messages": [
        "string"
      ],
      "license_key": "string"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
410

Resource is no longer active

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/imports/{id}/cancel Cancel a CSV import

Cancel a checked import without importing anything.

Cancels an import that finished its check (status validated) without importing anything. Only the API key or AI assistant connection that uploaded the file can cancel it (403 IMPORT_NOT_OWNED). licenses and license_assignments imports also need licenses:write. An import in another state returns 409 IMPORT_NOT_APPLIABLE with reason not_cancellable.

Authentication
managementApiKey
Required scope
customers:write
Operation ID
mgmt_v1_bulk_imports_cancel

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

200

The import was cancelled

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "kind": "customers",
    "environment": "live",
    "status": "validating",
    "source": "console",
    "requested_by": "user",
    "filename": "Example name",
    "encoding": "utf-8",
    "byte_size": 0,
    "columns": [
      "string"
    ],
    "rows": {
      "total": 0,
      "valid": 0,
      "invalid": 0,
      "applied": 0,
      "unchanged": 0,
      "failed": 0
    },
    "preview": {
      "create": 0,
      "update": 0,
      "none": 0
    },
    "failure_code": "string",
    "created_at": "2026-09-21T00:00:00Z",
    "validated_at": "2026-09-21T00:00:00Z",
    "apply_requested_at": "2026-09-21T00:00:00Z",
    "completed_at": "2026-09-21T00:00:00Z",
    "rows_expire_at": "2026-09-21T00:00:00Z",
    "rows_purged": true
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

Idempotency, version, machine, concurrency, or pending product signing-key conflict

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/import-templates/{kind} Retrieve an import template

Retrieve the column names, whether each is required, and their descriptions for an import kind.

Returns the template of an import kind, the same columns as the Console's template file. required columns must be in the header; at least one of the one_of columns must be in the header; ignored_columns are read past so an export of the same kind can be imported as is; a header with forbidden_columns is refused. header_csv is the header line to start a file with. A header column left out changes nothing, and an empty cell clears the value when updating customers and license users. Customer CSV files accept an optional kind column: individual or organization. When updating a customer, omitting the column preserves its existing kind; new customers default to organization when the column is absent. If present, kind must contain one of these values. Individual customers go through the same CustomerDirectory::Provisioner as the Console and API, creating or updating their local license user with the customer name and email address. Customer exports retain kind.

Authentication
managementApiKey
Required scope
customers:read
Operation ID
mgmt_v1_bulk_imports_template

Parameters

kind Location: Path Required

Example Value

"customers"

Responses

200

Import template

application/json

Example Value

{
  "data": {
    "kind": "customers",
    "columns": [
      {
        "name": "Example name",
        "required": true,
        "description": "Example description"
      }
    ],
    "one_of": [
      "string"
    ],
    "ignored_columns": [
      "string"
    ],
    "forbidden_columns": [
      "string"
    ],
    "header_csv": "string",
    "max_rows": 1,
    "max_bytes": 1,
    "encodings": [
      "utf-8"
    ]
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Sales receiver

Licenses

17 operations

Issue, update, and assign licenses.

POST /integrations/stripe-app/{delivery_token}/license-claims Receive purchased licenses or acknowledge durable storage

Buyer-only HTTPS protocol, separate from Management API and the legacy single-key receiver. Use the downloaded product configuration only when license_key_delivery is stripe_app_bundle. Persist the SDK ClaimRequest before Checkout and put only its challenge in the actual Session metadata. A first claim may omit purchase_ref: the original proof uniquely resolves the purchase within the active account, tenant and environment binding. Preserve the same verifier and idempotency key across retries. A ready response contains sensitive keys and a storage receipt; save every entry durably before acknowledge. ACK erases only the temporary encrypted bundle, leaves license rights intact, and is safely repeatable with the saved receipt even after the delivery deadline. Do not log request bodies, private URLs, response keys or receipts. No bearer Management API key belongs in buyer software.

Authentication
None
Required scope
—
Operation ID
stripe_apps_license_claims_create

Parameters

delivery_token Location: Path Required
string Pattern: ^[A-Za-z0-9_-]{43}$

Private routing token from stripe_purchase_bundle_url; never display or log.

Example Value

"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"

Request body

Required
application/json

Schema

object

Example Value

{
  "action": "claim",
  "verifier": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
  "idempotency_key": "example_purchase_key_20261101"
}

Responses

200

Sensitive ready bundle or idempotent storage acknowledgement; Cache-Control no-store.

application/json

Schema

object

Example Value

{
  "status": "ready",
  "purchase_ref": "spu_example_purchase",
  "licenses": [
    {
      "license_ref": "lic_example_license",
      "product_ref": "prd_example_product",
      "license_key": "USK_TEST-ABCD-EFGH-IJKL-MNOP"
    }
  ],
  "receipt": "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB",
  "expires_at": "2026-11-04T00:00:00Z"
}
400

Invalid action or bounded JSON request shape.

402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

No active matching binding or purchase; retain the original proof while awaiting a verified payment result.

409

Proof, idempotency, receipt or current delivery state could not be verified; never ACK or invent replacement proof.

413

Request exceeds 4096 bytes.

415

application/json is required.

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/licenses/{license_id}/counters List licenses

Lists the license's usage counters for the current period, one per counter its policy defines. remaining never goes below 0; usage beyond the limit is reported as overage. Usakey counts usage and notifies; billing for it is done with the seller's own billing (for example its Stripe integration).

Authentication
managementApiKey
Required scope
licenses:read
Operation ID
mgmt_v1_license_counters_index

Parameters

license_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

200

Usage counters of the license for the current period

application/json

Example Value

{
  "data": [
    {
      "name": "Example name",
      "unit": "string",
      "reset_period": "string",
      "defined": true,
      "limit": 0,
      "limit_override": 0,
      "adjusted": 1,
      "used": 0,
      "remaining": 0,
      "overage": 0,
      "period_starts_at": "2026-09-21T00:00:00Z",
      "period_ends_at": "2026-09-21T00:00:00Z"
    }
  ]
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/licenses/{license_id}/counters/{counter_name}/entries List licenses

Lists the history of one usage counter of the license, oldest first, across periods. kind is consumption (sent by a device), adjustment (an amount added or subtracted by the seller) or limit_change (the limit for this license changed). Use the cursor to page.

Authentication
managementApiKey
Required scope
licenses:read
Operation ID
mgmt_v1_license_counter_entries_index

Parameters

license_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
counter_name Location: Path Required
string Pattern: ^[a-z][a-z0-9_]{0,23}$

Example Value

"example"
limit Location: Query Optional
integer Minimum: 1 Maximum: 200

Example Value

50
cursor Location: Query Optional
string

Example Value

"string"

Responses

200

History of the usage counter

application/json

Example Value

{
  "data": [
    {
      "kind": "string",
      "amount": 1,
      "period": "string",
      "consumption_id": "01K5QWERTY1234567890ABCDEFG",
      "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
      "consumed_at": "2026-09-21T00:00:00Z",
      "reason": "string",
      "recorded_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/licenses/{license_id}/counters/{counter_name}/adjustments Create a license

Adds to or subtracts from the counter for the current period (amount), or sets the limit for this license (limit; null returns to the policy's limit). Send exactly one of them with a reason. An amount applies to the current period only; a monthly counter starts the next month from its limit again. A limit for this license carries over to later periods. Every adjustment is recorded in the counter history and the audit log (license.counter_adjusted, license.counter_limit_changed), and the next heartbeat delivers the new remaining amount to devices. Idempotency-Key is optional.

Authentication
managementApiKey
Required scope
licenses:write
Operation ID
mgmt_v1_license_counter_adjustments_create

Parameters

license_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
counter_name Location: Path Required
string Pattern: ^[a-z][a-z0-9_]{0,23}$

Example Value

"example"
Idempotency-Key Location: Header Optional
string Minimum length: 16 Maximum length: 255

Optional. Use a new unique value for each new operation and reuse it only to retry the same request after an unknown result. Sending a different body with the same key returns 409 IDEMPOTENCY_CONFLICT.

Example Value

"stringxxxxxxxxxx"

Request body

Required
application/json

Example Value

{
  "amount": -1000000000,
  "limit": 0,
  "reason": "string"
}

Responses

200

The usage counter after the adjustment

application/json

Example Value

{
  "data": {
    "name": "Example name",
    "unit": "string",
    "reset_period": "string",
    "defined": true,
    "limit": 0,
    "limit_override": 0,
    "adjusted": 1,
    "used": 0,
    "remaining": 0,
    "overage": 0,
    "period_starts_at": "2026-09-21T00:00:00Z",
    "period_ends_at": "2026-09-21T00:00:00Z"
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

Idempotency, version, machine, concurrency, or pending product signing-key conflict

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/licenses/{id}/offline-certificates Issue a device-bound offline license

Issue a signed offline license package that can only be used on the specified device.

Repeating an identical device request safely redelivers the existing package as a 200 ZIP while it remains valid for the same active device and assignment. If the previous package is no longer eligible, send a newly generated device request.

Authentication
managementApiKey
Required scope
licenses:write
Operation ID
mgmt_v1_licenses_offline_certificates

Parameters

id Location: Path Required

Example Value

"id_aaaaaaaaaaaaaaaaaaaa"

Request body

Required
application/json

Example Value

{
  "request": {
    "format": "usakey-offline-request-v1",
    "product_id": "prod_0123456789abcdef0123",
    "device_signing_public_key": "string",
    "device_kem_public_key": "p256:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
    "device_proof": "string",
    "machine_info": {
      "os": "string",
      "arch": "string"
    },
    "nonce": "example_valuexxxxxxxxx",
    "generated_at": 1
  },
  "expires_at": "2026-09-21T00:00:00Z",
  "license_assignment_id": "license_assignment_id_aaaaaaaaaaaaaaaaaaaa"
}

Responses

200

Device-bound offline license ZIP package

application/vnd.usakey.offline+zip

Schema

string binary

Example Value

"string"
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

Idempotency, version, machine, concurrency, or pending product signing-key conflict

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/licenses/{id}/offline-rehosts Moves of a fully offline license

Returns the license's limit of moves, the moves made and left in the last 12 months, and the latest moves.

The limit of moves this license has (offline_rehosts_per_year of its usage rule version; a usage rule changed later applies to licenses issued from the new version), how many moves were made in the last 365 days, how many are left, and the latest moves, newest first (at most 100).

Authentication
managementApiKey
Required scope
licenses:read
Operation ID
mgmt_v1_licenses_offline_rehosts_show

Parameters

id Location: Path Required

Example Value

"id_aaaaaaaaaaaaaaaaaaaa"

Responses

200

Moves of the license

application/json

Example Value

{
  "data": {
    "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "offline_rehosts_per_year": 0,
    "moves_in_last_year": 0,
    "remaining": 0,
    "moves": [
      {
        "id": "id_aaaaaaaaaaaaaaaaaaaa",
        "moved_at": "2026-09-21T00:00:00Z",
        "released_at": "2026-09-21T00:00:00Z",
        "released_activation_id": "released_activation_id_aaaaaaaaaaaaaaaaaaaa",
        "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
        "reason": "string"
      }
    ]
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/licenses/{id}/offline-rehosts Move a fully offline license to another device

Release the old device with its release proof and issue a signed offline license package for the new device's request.

Verifies the old device's release proof (usakey-offline-release-v1, the .usakeyrel the SDK exports) against the device key registered to this license, deactivates the old device, revokes the packages issued to it and issues the device-bound package for the new device's request, all in one transaction. A refused or failed move changes nothing. The usage rule's offline_rehosts_per_year limits moves per license over 365 days. A named-user license keeps the released device's assignment. Sending the same release proof and request again redelivers the issued package; a used release proof cannot move another device. The old device's release is its own signed statement; a restored disk image or a modified application on the old device cannot be detected.

Authentication
managementApiKey
Required scope
licenses:write
Operation ID
mgmt_v1_licenses_offline_rehosts

Parameters

id Location: Path Required

Example Value

"id_aaaaaaaaaaaaaaaaaaaa"

Request body

Required
application/json

Example Value

{
  "release": {
    "v": 1,
    "format": "usakey-offline-release-v1",
    "product_id": "prod_0123456789abcdef0123",
    "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
    "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
    "certificate_id": "certificate_id_aaaaaaaaaaaaaaaaaaaa",
    "package_id": "package_id_aaaaaaaaaaaaaaaaaaaa",
    "package_expires_at": 1,
    "device_signing_public_key": "string",
    "device_kem_public_key": "string",
    "nonce": "example_valuexxxxxxxxx",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "released_at": 1,
    "sdk_version": "string",
    "release_proof": "string"
  },
  "request": {
    "format": "usakey-offline-request-v1",
    "product_id": "prod_0123456789abcdef0123",
    "device_signing_public_key": "string",
    "device_kem_public_key": "p256:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
    "device_proof": "string",
    "machine_info": {
      "os": "string",
      "arch": "string"
    },
    "nonce": "example_valuexxxxxxxxx",
    "generated_at": 1
  },
  "expires_at": "2026-09-21T00:00:00Z",
  "license_assignment_id": "license_assignment_id_aaaaaaaaaaaaaaaaaaaa",
  "reason": "string"
}

Responses

200

Device-bound offline license ZIP package for the new device

application/vnd.usakey.offline+zip

Schema

string binary

Example Value

"string"
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

Idempotency, version, machine, concurrency, or pending product signing-key conflict

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/licenses/{id}/convert-trial Convert a trial license

Convert a trial license to a full license with the same key.

Authentication
managementApiKey
Required scope
licenses:write
Operation ID
mgmt_v1_licenses_convert_trial

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Request body

Required
application/json

Example Value

{
  "target_policy_id": "target_policy_id_aaaaaaaaaaaaaaaaaaaa",
  "expires_at": "2026-09-21T00:00:00Z",
  "entitlement_overrides": {}
}

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

Successful License operation

application/json

Example Value

{
  "data": {}
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/licenses/{license_id}/leases List a license's concurrent-use leases

Return the state of the leases a license has in use, its policy settings, and the times it went over the limit.

The license's floating leases in use, oldest first (at most 200; leases_truncated tells when there are more), each with its state (regular, checked_out, checkout_revoked, burst or handed_off), the license's policy settings for checkout, handoff and overage, and the latest times over the limit (at most 20, newest first). A checked-out lease keeps its seat until checkout_expires_at even while the device is offline. A checkout_revoked lease stops at the device's next lease request and keeps its seat until the device returns it or the checkout ends. Overage and handoff records cost nothing extra.

Authentication
managementApiKey
Required scope
licenses:read
Operation ID
mgmt_v1_license_leases_index

Parameters

license_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

200

Floating leases of the license

application/json

Example Value

{
  "data": {
    "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "max_concurrent": 1,
    "settings": {
      "lease_checkout_max_days": 0,
      "lease_handoff_grace_sec": 0,
      "lease_burst_seats": 0,
      "lease_burst_sec": 0,
      "burst_cooldown_sec": 0
    },
    "in_use": 0,
    "checked_out": 0,
    "burst": 0,
    "handed_off": 0,
    "leases": [
      {
        "id": "id_aaaaaaaaaaaaaaaaaaaa",
        "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
        "instance_id": "01K5QWERTY1234567890ABCDEFG",
        "state": "regular",
        "acquired_at": "2026-09-21T00:00:00Z",
        "last_heartbeat_at": "2026-09-21T00:00:00Z",
        "expires_at": "2026-09-21T00:00:00Z",
        "checked_out_at": "2026-09-21T00:00:00Z",
        "checkout_expires_at": "2026-09-21T00:00:00Z",
        "checkout_revoked_at": "2026-09-21T00:00:00Z",
        "burst_until": "2026-09-21T00:00:00Z",
        "handoff_deadline_at": "2026-09-21T00:00:00Z",
        "handoff_from_lease_id": "01K5QWERTY1234567890ABCDEFG"
      }
    ],
    "leases_truncated": true,
    "overages": [
      {
        "kind": "burst",
        "started_at": "2026-09-21T00:00:00Z",
        "ends_at": "2026-09-21T00:00:00Z",
        "peak_excess": 1,
        "lease_count": 1
      }
    ]
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/licenses/{license_id}/leases/{lease_id}/checkout-revocation Revoke a lease checkout

Revoke a checkout. The device stops at its next lease request, and the seat stays in use until the device returns it or the checkout ends.

Revokes a lease checkout, like Revoke checkout on the license page of the Console. The device stops at its next lease request (410 LEASE_EXPIRED). A device that stays offline cannot be stopped before checkout_expires_at, and the seat stays in use until the device returns it or the checkout ends. The reason is recorded in the audit log as lease.checkout_revoked. Revoking an already revoked checkout changes nothing and returns the lease again. A lease that is not checked out returns 409 LEASE_CHECKOUT_UNAVAILABLE.

Authentication
managementApiKey
Required scope
licenses:write
Operation ID
mgmt_v1_lease_checkout_revocations_create

Parameters

license_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
lease_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Request body

Required
application/json

Example Value

{
  "reason": "string"
}

Responses

200

The lease with its revoked checkout

application/json

Example Value

{
  "data": {
    "id": "id_aaaaaaaaaaaaaaaaaaaa",
    "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
    "instance_id": "01K5QWERTY1234567890ABCDEFG",
    "state": "regular",
    "acquired_at": "2026-09-21T00:00:00Z",
    "last_heartbeat_at": "2026-09-21T00:00:00Z",
    "expires_at": "2026-09-21T00:00:00Z",
    "checked_out_at": "2026-09-21T00:00:00Z",
    "checkout_expires_at": "2026-09-21T00:00:00Z",
    "checkout_revoked_at": "2026-09-21T00:00:00Z",
    "burst_until": "2026-09-21T00:00:00Z",
    "handoff_deadline_at": "2026-09-21T00:00:00Z",
    "handoff_from_lease_id": "01K5QWERTY1234567890ABCDEFG"
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

Idempotency, version, machine, concurrency, or pending product signing-key conflict

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/licenses List licenses
Authentication
managementApiKey
Required scope
licenses:read
Operation ID
mgmt_v1_licenses_index

Parameters

without_customer Location: Query Optional
boolean

true returns only licenses without a customer. It cannot be combined with customer_id (400 INVALID_REQUEST).

Example Value

true
key_last4 Location: Query Optional
string Minimum length: 4 Maximum length: 4 Pattern: ^[A-Za-z0-9]{4}$

Returns only licenses whose license key ends with these 4 letters or digits, compared case-insensitively.

Example Value

"stri"
limit Location: Query Optional
integer Minimum: 1 Maximum: 200

Example Value

50
cursor Location: Query Optional
string

Example Value

"string"

Responses

200

Successful License operation

application/json

Example Value

{
  "data": [
    {}
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/licenses Create a license
Authentication
managementApiKey
Required scope
licenses:write
Operation ID
mgmt_v1_licenses_create

Parameters

payment_grace Location: Query Optional
string

Allowed values: open

Pass open to return only licenses in their payment grace period.

Example Value

"open"
Idempotency-Key Location: Header Required
string Minimum length: 16 Maximum length: 255

Example Value

"stringxxxxxxxxxx"

Request body

Required
application/json

Example Value

{
  "product_id": "prod_0123456789abcdef0123",
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
  "license_type": "perpetual",
  "expires_at": "2026-09-21T00:00:00Z",
  "expiry": "2026-09-21T00:00:00Z",
  "renewal_authority": "external_billing",
  "max_machines": 0,
  "max_concurrent": 0,
  "entitlements": {},
  "metadata": {},
  "license_unit_limit_override": 1
}

Responses

201

Successful License operation

application/json

Example Value

{
  "data": {}
}
409

Idempotency, version, machine, concurrency, or pending product signing-key conflict

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/licenses/{id} Retrieve a license
Authentication
managementApiKey
Required scope
licenses:read
Operation ID
mgmt_v1_licenses_show

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

200

Successful License operation

application/json

Example Value

{
  "data": {}
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
PATCH /mgmt/v1/licenses/{id} Update a license

Changes the license, or suspends, resumes or revokes it with status_action. Usakey never cancels a subscription in the seller's Stripe or sales service, so suspending or revoking a license bought through a subscription does not stop the buyer's charges; cancel the subscription there. The metadata of a license bought through these integrations carries stripe_subscription_id (Stripe) or sales_provider (sales services).

Authentication
managementApiKey
Required scope
licenses:write
Operation ID
mgmt_v1_licenses_update

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
If-Match Location: Header Optional
string

Recommended for conditional updates. Products and licenses expose the concurrency token as version; GET policies/{id} and customers/{id} expose it in the ETag response header. Send the ETag unchanged. Policy version is the historical policy number and must not be used for this header. A value that no longer matches returns 409 VERSION_CONFLICT and nothing is changed.

Example Value

"string"

Request body

Required
application/json

Example Value

{
  "expires_at": "2026-09-21T00:00:00Z",
  "expiry": "2026-09-21T00:00:00Z",
  "renewal_authority": "string",
  "max_machines_override": 1,
  "max_concurrent_override": 1,
  "license_unit_limit_override": 1,
  "entitlements": {},
  "metadata": {},
  "status_action": "active",
  "reason": "string",
  "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa"
}

Responses

200

Successful License operation

application/json

Example Value

{
  "data": {}
}
409

Idempotency, version, machine, concurrency, or pending product signing-key conflict

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /mgmt/v1/licenses/{id} Delete a license

Revokes the license, like PATCH with status_action revoke; this cannot be undone. Usakey never cancels a subscription in the seller's Stripe or sales service, so cancel the subscription there to stop the buyer's charges.

Authentication
managementApiKey
Required scope
licenses:write
Operation ID
mgmt_v1_licenses_destroy

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

204

Revoked

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/licenses/{license_id}/notices List emails sent to the purchaser

Lists the emails sent to the purchaser or customer for this license: the license key delivery and the payment grace notices. The license key itself is never returned.

Authentication
managementApiKey
Required scope
licenses:read
Operation ID
mgmt_v1_license_notices_index

Parameters

license_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

Successful operation

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "kind": "license_delivery",
      "source": "stripe",
      "status": "pending",
      "skip_reason": "no_recipient",
      "recipient": "string",
      "includes_key": true,
      "sent_at": "2026-09-21T00:00:00Z",
      "created_at": "2026-09-21T00:00:00Z"
    }
  ]
}
POST /mgmt/v1/licenses/{license_id}/notices/{id}/resend Resend the license key email

Sends a license key email again to the address already on record, up to five times per license per day. Changing the address is only possible in the Console, so a key cannot be sent to a new address through the API.

Authentication
managementApiKey
Required scope
licenses:write
Operation ID
mgmt_v1_license_notices_resend

Parameters

license_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
202

The email was queued, or skipped with skip_reason.

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "kind": "license_delivery",
    "source": "stripe",
    "status": "pending",
    "skip_reason": "no_recipient",
    "recipient": "string",
    "includes_key": true,
    "sent_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z"
  }
}

Management API

Orders

9 operations

Orders, their redemption codes, and the redemptions customers made.

GET /mgmt/v1/orders List orders

Lists the orders of products in the API key's environment. Filter by status, product, or customer.

Lists the orders of products in the API key's environment, oldest first. Filter with status (unredeemed, partially_redeemed, redeemed, canceled), product_id, or customer_id.

Authentication
managementApiKey
Required scope
licenses:read
Operation ID
mgmt_v1_orders_index

Parameters

limit Location: Query Optional
integer Minimum: 1 Maximum: 200

Example Value

50
cursor Location: Query Optional
string

Example Value

"string"

Responses

200

Orders

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "order_number": "string",
      "status": "unredeemed",
      "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
      "product_id": "prod_0123456789abcdef0123",
      "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
      "quantity": 1,
      "redeemed_count": 0,
      "remaining": 0,
      "version": 0
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/orders Create an order and issue its codes

Creates an order with a customer, product, policy, quantity, and term, and issues its redemption codes. The full codes appear only in this response.

Creates an order for a customer: a product, a policy of that product, a quantity, and the term of the licenses it will issue (license_expires_at, license_duration_days from redemption, or neither). Redemption codes are issued with it: code_mode shared (default) issues one code usable for the whole quantity, per_unit issues one single-use code per unit (up to 500). The full codes appear only in this response (codes[].code); with reveal_codes false they are left out, which requires send_codes true to email them to the customer's contact address. Each redemption later issues one license to the order's customer (and, for a named-user policy, assigns it to the redeemer's address). Plan entitlements the policy needs (trials, perpetual, named-user, floating) are checked now; license quotas are checked at each redemption.

Authentication
managementApiKey
Required scope
licenses:write
Operation ID
mgmt_v1_orders_create

Parameters

Idempotency-Key Location: Header Required
string Minimum length: 16 Maximum length: 255

Example Value

"stringxxxxxxxxxx"

Request body

Required
application/json

Example Value

{
  "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
  "product_id": "prod_0123456789abcdef0123",
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "quantity": 1,
  "order_number": "string",
  "license_expires_at": "2026-09-21T00:00:00Z",
  "license_duration_days": 1,
  "notes": "string",
  "code_mode": "shared",
  "codes_expires_at": "2026-09-21T00:00:00Z",
  "send_codes": false,
  "reveal_codes": true
}

Responses

201

Order created with its redemption codes

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "order_number": "string",
    "status": "unredeemed",
    "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
    "product_id": "prod_0123456789abcdef0123",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "quantity": 1,
    "redeemed_count": 0,
    "remaining": 0,
    "version": 0,
    "codes": [
      {
        "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
        "order_id": "order_id_aaaaaaaaaaaaaaaaaaaa",
        "code_hint": "string",
        "status": "active",
        "max_redemptions": 1,
        "redemptions_count": 0,
        "expires_at": "2026-09-21T00:00:00Z"
      }
    ],
    "codes_emailed": true
  }
}
409

Idempotency, version, machine, concurrency, or pending product signing-key conflict

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/orders/{id} Get an order

Returns one order's quantity, redeemed count, remaining units, term, and status.

Authentication
managementApiKey
Required scope
licenses:read
Operation ID
mgmt_v1_orders_show

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

200

Order

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "order_number": "string",
    "status": "unredeemed",
    "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
    "product_id": "prod_0123456789abcdef0123",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "quantity": 1,
    "redeemed_count": 0,
    "remaining": 0,
    "version": 0
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
PATCH /mgmt/v1/orders/{id} Update an order

Changes the order number, the notes, or the quantity. If-Match refuses a stale update.

Changes the order number, the notes, or the quantity. The quantity cannot go below the number already redeemed; raising it on a fully redeemed order makes it partially redeemed again (issue another code if the shared code has no uses left). A canceled order cannot be changed (422 LICENSE_ORDER_CANCELED). Send If-Match with the version you read to refuse a stale update (409 VERSION_CONFLICT).

Authentication
managementApiKey
Required scope
licenses:write
Operation ID
mgmt_v1_orders_update

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
If-Match Location: Header Optional
string

Recommended for conditional updates. Products and licenses expose the concurrency token as version; GET policies/{id} and customers/{id} expose it in the ETag response header. Send the ETag unchanged. Policy version is the historical policy number and must not be used for this header. A value that no longer matches returns 409 VERSION_CONFLICT and nothing is changed.

Example Value

"string"

Request body

Required
application/json

Example Value

{
  "order_number": "string",
  "notes": "string",
  "quantity": 1
}

Responses

200

Order updated

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "order_number": "string",
    "status": "unredeemed",
    "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
    "product_id": "prod_0123456789abcdef0123",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "quantity": 1,
    "redeemed_count": 0,
    "remaining": 0,
    "version": 0
  }
}
409

Idempotency, version, machine, concurrency, or pending product signing-key conflict

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/orders/{id}/cancel Cancel an order

Cancels the order and revokes its usable codes. Licenses already redeemed keep working.

Cancels the order. Its codes can no longer be redeemed (usable codes are revoked). Licenses already redeemed are not touched; suspend or revoke them individually if needed. A canceled order cannot be reopened. Canceling an order that is already canceled succeeds without changes (Usakey-State-Unchanged: true).

Authentication
managementApiKey
Required scope
licenses:write
Operation ID
mgmt_v1_orders_cancel

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Request body

Required
application/json

Example Value

{
  "reason": "string"
}

Responses

200

Order canceled

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "order_number": "string",
    "status": "unredeemed",
    "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
    "product_id": "prod_0123456789abcdef0123",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "quantity": 1,
    "redeemed_count": 0,
    "remaining": 0,
    "version": 0
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/orders/{order_id}/codes List an order's redemption codes

Returns each code's type and last four characters, status, uses, and expiry, never the full code.

Lists the redemption codes of the order. The full codes are never returned again; code_hint shows the type and the last four characters.

Authentication
managementApiKey
Required scope
licenses:read
Operation ID
mgmt_v1_order_codes_index

Parameters

order_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
limit Location: Query Optional
integer Minimum: 1 Maximum: 200

Example Value

50
cursor Location: Query Optional
string

Example Value

"string"

Responses

200

Redemption codes

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "order_id": "order_id_aaaaaaaaaaaaaaaaaaaa",
      "code_hint": "string",
      "status": "active",
      "max_redemptions": 1,
      "redemptions_count": 0,
      "expires_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/orders/{order_id}/codes Issue more redemption codes

Issues more redemption codes for an open order. The full codes appear only in this response.

Issues more redemption codes for an open order, for example after revoking a leaked code. count codes (1-500, default 1), each usable max_redemptions times (default: the rest of the quantity), valid until expires_at (default 90 days, at most 3 years). The full codes appear only in this response; with reveal_codes false they are left out, which requires send_codes true. Redemptions never exceed the order's quantity, whatever the codes allow.

Authentication
managementApiKey
Required scope
licenses:write
Operation ID
mgmt_v1_order_codes_create

Parameters

order_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
Idempotency-Key Location: Header Required
string Minimum length: 16 Maximum length: 255

Example Value

"stringxxxxxxxxxx"

Request body

Required
application/json

Example Value

{
  "count": 1,
  "max_redemptions": 1,
  "expires_at": "2026-09-21T00:00:00Z",
  "send_codes": false,
  "reveal_codes": true
}

Responses

201

Codes issued

application/json

Example Value

{
  "data": {
    "codes": [
      {
        "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
        "order_id": "order_id_aaaaaaaaaaaaaaaaaaaa",
        "code_hint": "string",
        "status": "active",
        "max_redemptions": 1,
        "redemptions_count": 0,
        "expires_at": "2026-09-21T00:00:00Z"
      }
    ],
    "codes_emailed": true
  }
}
409

Idempotency, version, machine, concurrency, or pending product signing-key conflict

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /mgmt/v1/orders/{order_id}/codes/{id} Revoke a redemption code

Revokes a redemption code. It cannot be restored; licenses already redeemed with it are not touched.

Revokes a redemption code. It can no longer be redeemed and cannot be restored; licenses already redeemed with it are not touched. Revoking a revoked code succeeds.

Authentication
managementApiKey
Required scope
licenses:write
Operation ID
mgmt_v1_order_codes_destroy

Parameters

order_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

204

Code revoked

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/orders/{order_id}/redemptions List an order's redemptions

Returns the license each redemption issued, where it was redeemed, the address entered, and the assigned license user.

Lists the redemptions of the order: the license each one issued, where it was redeemed (redeem_page or runtime), the address entered, and the license user it was assigned to for a named-user policy.

Authentication
managementApiKey
Required scope
licenses:read
Operation ID
mgmt_v1_order_redemptions_index

Parameters

order_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
limit Location: Query Optional
integer Minimum: 1 Maximum: 200

Example Value

50
cursor Location: Query Optional
string

Example Value

"string"

Responses

200

Redemptions

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "order_id": "order_id_aaaaaaaaaaaaaaaaaaaa",
      "code_id": "code_id_aaaaaaaaaaaaaaaaaaaa",
      "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
      "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa",
      "channel": "redeem_page",
      "email": "developer@example.com",
      "redeemed_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Management API

Activated devices

9 operations

Inspect and deactivate devices registered to licenses.

GET /mgmt/v1/licenses/{license_id}/activations List activated devices
Authentication
managementApiKey
Required scope
licenses:read
Operation ID
mgmt_v1_activations_index

Parameters

license_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
id Location: Path Required

Example Value

"id_aaaaaaaaaaaaaaaaaaaa"

Responses

200

Successful Activation operation

application/json

Example Value

{
  "data": [
    {
      "id": "id_aaaaaaaaaaaaaaaaaaaa",
      "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
      "status": "active",
      "machine": {},
      "device_signing_key_thumbprint": "string",
      "first_seen_at": "2026-09-21T00:00:00Z",
      "last_seen_at": "2026-09-21T00:00:00Z",
      "deactivated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/activations/{id} Get a device activation

Get one device activation and its periodic check state: the last check, when the next is due, whether it is overdue, the certificate expiry, and the app and SDK versions.

One device activation with its periodic check state, to confirm that a product app registered and keeps checking in. Rejected runtime requests are not included here; list them with GET /mgmt/v1/runtime_events.

Authentication
managementApiKey
Required scope
licenses:read
Operation ID
mgmt_v1_activations_show

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

200

Device activation and periodic check state

application/json

Example Value

{
  "data": {
    "id": "id_aaaaaaaaaaaaaaaaaaaa",
    "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "machine": {},
    "device_signing_key_thumbprint": "string",
    "first_seen_at": "2026-09-21T00:00:00Z",
    "last_seen_at": "2026-09-21T00:00:00Z",
    "deactivated_at": "2026-09-21T00:00:00Z",
    "activated_at": "2026-09-21T00:00:00Z",
    "last_heartbeat_at": "2026-09-21T00:00:00Z",
    "heartbeat_interval_sec": 1,
    "next_heartbeat_due": {
      "earliest": "2026-09-21T00:00:00Z",
      "latest": "2026-09-21T00:00:00Z"
    },
    "heartbeat_overdue": true,
    "certificate_expires_at": "2026-09-21T00:00:00Z",
    "app_version": "string",
    "sdk_version": "string"
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /mgmt/v1/activations/{id} Delete an activated device
Authentication
managementApiKey
Required scope
activations:delete
Operation ID
mgmt_v1_activations_destroy

Parameters

id Location: Path Required

Example Value

"id_aaaaaaaaaaaaaaaaaaaa"

Responses

204

Force deactivated

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/activations/{activation_id}/deactivation Get how a device activation was deactivated

Returns who deactivated a device activation and how, as the device page of the Console shows it: the vendor (Console, Management API or MCP), the user from the customer portal, the user from the product app after verifying with an emailed code (device replacement by users), or the device risk check. record is null while the activation is active, and when the device deactivated itself (the app's deactivate) or no record remains. The audit event itself can be read with GET /mgmt/v1/events.

Authentication
managementApiKey
Required scope
licenses:read
Operation ID
mgmt_v1_activation_deactivations_show

Parameters

activation_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

200

How the device activation was deactivated

application/json

Example Value

{
  "data": {
    "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "deactivated_at": "2026-09-21T00:00:00Z",
    "record": {
      "method": "string",
      "event_id": "event_id_aaaaaaaaaaaaaaaaaaaa",
      "occurred_at": "2026-09-21T00:00:00Z",
      "actor": {
        "type": "string",
        "id": "01K5QWERTY1234567890ABCDEFG"
      },
      "verified_by": "string",
      "second_factor": true,
      "reason": "string"
    }
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/runtime_events List rejected device requests

List device activation, periodic check and concurrent-use lease requests that were rejected or failed in the last 7 days (a signature mismatch, clock skew and so on), oldest first. Rejections with the same target, operation and result code are counted per hour. Successful requests are not included. Use it to confirm that a product app is not being refused while you test an integration. Refused sealed-file key requests are not included (see the device's page in the Console).

Runtime API requests for device activation, periodic checks and concurrent-use leases that were rejected or failed in the last 7 days, oldest first, to confirm that a product app is not being refused (for example DEVICE_PROOF_INVALID or CLOCK_SKEW). Successful requests are not listed; GET /mgmt/v1/activations/{id} shows the last periodic check. Requests with the same target, operation and result code within one hour are counted on one entry, and when a workspace records many different entries within an hour, the rest are counted on an entry without its targets (details_omitted). Requests refused by rate limits (RATE_LIMITED) and requests that name no known product or device activation are not listed. Only the API key's environment is included. Refused sealed-file key requests are not included; the seller sees them on the device's page in the Console.

Authentication
managementApiKey
Required scope
licenses:read
Operation ID
mgmt_v1_runtime_events_index

Parameters

license_id Location: Query Optional

Only requests for this license.

Example Value

"license_id_aaaaaaaaaaaaaaaaaaaa"
activation_id Location: Query Optional

Only requests from this device activation.

Example Value

"activation_id_aaaaaaaaaaaaaaaaaaaa"
product_id Location: Query Optional

Only requests for this product.

Example Value

"prod_0123456789abcdef0123"
since Location: Query Optional
string date-time

Only entries whose last occurrence is at or after this date and time (ISO 8601).

Example Value

"2026-09-21T00:00:00Z"
limit Location: Query Optional
integer Minimum: 1 Maximum: 200

Example Value

50
cursor Location: Query Optional
string

Example Value

"string"

Responses

200

Rejected or failed runtime requests

application/json

Example Value

{
  "data": [
    {
      "operation": "activation_create",
      "outcome": "rejected",
      "code": "DEVICE_PROOF_INVALID",
      "http_status": 400,
      "occurrences": 1,
      "first_occurred_at": "2026-09-21T00:00:00Z",
      "last_occurred_at": "2026-09-21T00:00:00Z",
      "last_request_id": "01K5QWERTY1234567890ABCDEFG",
      "product_id": "prod_0123456789abcdef0123",
      "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
      "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
      "details_omitted": true
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/anomalies List suspected misuse

Lists suspected device cloning or license key sharing, oldest first. Filter by state, license or device activation.

Suspected device cloning or license key sharing (suspicions) for licenses of the API key's environment, oldest first. A suspicion opens when the anomaly score of a device (scope device) or of a license (scope license, for devices that keep being replaced) reaches the policy's threshold, and stays open until it is dismissed or resolved. signals lists the signals behind the score, highest points first. Signal names are vm_detected, clock_tamper_detected, device_identity_changed, network_changed, parallel_network_use, shared_hardware and device_churn; more may be added, so treat a name you do not know as another signal. No IP address, connection source or device identifier is returned.

Authentication
managementApiKey
Required scope
licenses:read
Operation ID
mgmt_v1_anomalies_index

Parameters

status Location: Query Optional
string

Allowed values: open, dismissed, resolved

Only suspicions in this state. open has not been reviewed yet; dismissed was closed as no problem; resolved was closed as handled.

Example Value

"open"
license_id Location: Query Optional

Only suspicions of this license.

Example Value

"license_id_aaaaaaaaaaaaaaaaaaaa"
activation_id Location: Query Optional

Only suspicions of this device activation.

Example Value

"activation_id_aaaaaaaaaaaaaaaaaaaa"
limit Location: Query Optional
integer Minimum: 1 Maximum: 200

Example Value

50
cursor Location: Query Optional
string

Example Value

"string"

Responses

200

Suspected device cloning or license key sharing

application/json

Example Value

{
  "data": [
    {
      "id": "id_aaaaaaaaaaaaaaaaaaaa",
      "status": "open",
      "scope": "device",
      "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
      "product_id": "prod_0123456789abcdef0123",
      "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
      "score": 0,
      "threshold": 1,
      "confirmations": 1,
      "signals": [
        "string"
      ],
      "action": "notify",
      "license_suspended_by_anomaly": true,
      "license_status": "active",
      "detected_at": "2026-09-21T00:00:00Z",
      "last_observed_at": "2026-09-21T00:00:00Z",
      "resolved_at": "2026-09-21T00:00:00Z",
      "resolution_note": "string",
      "exempt_until": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/anomalies/{id} Get suspected misuse

Gets one suspicion with the breakdown of its score and the cross-device signals recorded for it.

One suspicion with the breakdown of its score (breakdown, highest points first: each occurrence of a signal adds the signal's weight, halved every decay_hours of the policy's anomaly rule, up to a number of occurrences per signal) and the cross-device signals recorded for it (events, newest first, at most 30). A shared_hardware event lists the other licenses of the same product on which the same hardware was found (related_license_ids; removed licenses are left out). A device_churn event gives the number of new devices in the window and the number that counts as many.

Authentication
managementApiKey
Required scope
licenses:read
Operation ID
mgmt_v1_anomalies_show

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

200

Suspicion with its score breakdown

application/json

Example Value

{
  "data": {
    "id": "id_aaaaaaaaaaaaaaaaaaaa",
    "status": "open",
    "scope": "device",
    "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
    "product_id": "prod_0123456789abcdef0123",
    "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
    "score": 0,
    "threshold": 1,
    "confirmations": 1,
    "signals": [
      "string"
    ],
    "action": "notify",
    "license_suspended_by_anomaly": true,
    "license_status": "active",
    "detected_at": "2026-09-21T00:00:00Z",
    "last_observed_at": "2026-09-21T00:00:00Z",
    "resolved_at": "2026-09-21T00:00:00Z",
    "resolution_note": "string",
    "exempt_until": "2026-09-21T00:00:00Z",
    "breakdown": [
      {
        "signal": "string",
        "count": 0,
        "points": 0,
        "first_observed_at": "2026-09-21T00:00:00Z",
        "last_observed_at": "2026-09-21T00:00:00Z"
      }
    ],
    "events": [
      {
        "signal": "string",
        "observed_at": "2026-09-21T00:00:00Z",
        "new_devices": 0,
        "threshold": 0,
        "window_days": 1,
        "related_license_ids": [
          "related_license_ids_aaaaaaaaaaaaaaaaaaaa"
        ],
        "same_license_other_user": true
      }
    ]
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/anomalies/{id}/dismiss Dismiss suspected misuse as no problem

Dismiss this finding as legitimate use. If the license is still suspended because of this finding, Usakey resumes it.

Closes the suspicion as no problem (legitimate use), like Dismiss as no problem in the Console. If this suspicion suspended the license and that suspension is still in place, the license is resumed (license_resumed is true). A suspension the seller made again later is not lifted, and a license that cannot be resumed (expired, or over a plan quota) stays suspended while the suspicion still closes. For 30 days (exempt_until) the same device or license is not suspended automatically again; recording and notification continue. reason is required and is recorded in the audit log as activation.anomaly_dismissed. A suspicion that is already closed returns 422 INVALID_STATE_TRANSITION with details.status, and nothing is changed. Idempotency-Key is not used.

Authentication
managementApiKey
Required scope
licenses:write
Operation ID
mgmt_v1_anomalies_dismiss

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Request body

Required
application/json

Example Value

{
  "reason": "string"
}

Responses

200

Closed suspicion

application/json

Example Value

{
  "data": {
    "id": "id_aaaaaaaaaaaaaaaaaaaa",
    "status": "open",
    "scope": "device",
    "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
    "product_id": "prod_0123456789abcdef0123",
    "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
    "score": 0,
    "threshold": 1,
    "confirmations": 1,
    "signals": [
      "string"
    ],
    "action": "notify",
    "license_suspended_by_anomaly": true,
    "license_status": "active",
    "detected_at": "2026-09-21T00:00:00Z",
    "last_observed_at": "2026-09-21T00:00:00Z",
    "resolved_at": "2026-09-21T00:00:00Z",
    "resolution_note": "string",
    "exempt_until": "2026-09-21T00:00:00Z",
    "license_resumed": true
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/anomalies/{id}/resolve Mark suspected misuse as handled

Closes the suspicion as handled in another way. The license is left as it is.

Closes the suspicion as handled, for when the seller acted on it in another way, such as deactivating the copied device or revoking the license. The license is left as it is (license_resumed is false). reason is required and is recorded in the audit log as activation.anomaly_resolved. A suspicion that is already closed returns 422 INVALID_STATE_TRANSITION with details.status, and nothing is changed. Idempotency-Key is not used.

Authentication
managementApiKey
Required scope
licenses:write
Operation ID
mgmt_v1_anomalies_resolve

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Request body

Required
application/json

Example Value

{
  "reason": "string"
}

Responses

200

Closed suspicion

application/json

Example Value

{
  "data": {
    "id": "id_aaaaaaaaaaaaaaaaaaaa",
    "status": "open",
    "scope": "device",
    "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
    "product_id": "prod_0123456789abcdef0123",
    "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
    "score": 0,
    "threshold": 1,
    "confirmations": 1,
    "signals": [
      "string"
    ],
    "action": "notify",
    "license_suspended_by_anomaly": true,
    "license_status": "active",
    "detected_at": "2026-09-21T00:00:00Z",
    "last_observed_at": "2026-09-21T00:00:00Z",
    "resolved_at": "2026-09-21T00:00:00Z",
    "resolution_note": "string",
    "exempt_until": "2026-09-21T00:00:00Z",
    "license_resumed": true
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Management API

Webhooks

5 operations

Manage webhook destinations and signing secrets.

GET /mgmt/v1/webhooks List webhook endpoints

Signing secrets are never returned. The url of a Slack, Microsoft Teams, Google Chat or LINE WORKS destination is not returned, because that URL itself lets anyone post into the channel.

Authentication
managementApiKey
Required scope
webhooks:read
Operation ID
mgmt_v1_webhook_endpoints_index

Responses

200

Successful Webhook operation

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "url": "https://example.com/resource",
      "events": [
        "string"
      ],
      "status": "active",
      "secret_rotation": {
        "scheduled": true,
        "activates_at": "2026-09-21T00:00:00Z"
      },
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/webhooks Create a webhook endpoint

Creates a webhook endpoint and returns its signing secret once. Idempotency-Key is optional here; when it is sent, a retry with the same key and body returns the first response, including the signing secret, instead of creating another endpoint. Once the workspace has a live product, a test API key cannot create an endpoint, because webhook endpoints are shared by the live and test environments (403 ENVIRONMENT_MISMATCH). This operation creates endpoints of your own system, which receive signed JSON. Chat destinations (Slack, Microsoft Teams, Google Chat, Chatwork, LINE WORKS) can be registered only in the Console, and a URL for posting to one of those chat services is refused with 422 WEBHOOK_INVALID, because the chat cannot display signed JSON. The same applies when an update changes the url of an endpoint of your own system. A Teams workflow URL (environment.api.powerplatform.com or logic.azure.com) is not refused, because general workflows use the same hosts, but nothing appears in Teams. Register Teams in the Console as a Microsoft Teams destination.

Authentication
managementApiKey
Required scope
webhooks:write
Operation ID
mgmt_v1_webhook_endpoints_create

Parameters

Idempotency-Key Location: Header Optional
string Minimum length: 16 Maximum length: 255

Optional. Use a new unique value for each new operation and reuse it only to retry the same request after an unknown result. Sending a different body with the same key returns 409 IDEMPOTENCY_CONFLICT.

Example Value

"stringxxxxxxxxxx"

Request body

Required
application/json

Schema

Example Value

{
  "name": "Example name",
  "url": "https://example.com/resource",
  "events": [
    "string"
  ]
}

Responses

201

Successful Webhook operation

application/json

Example Value

{
  "data": {}
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/webhooks/{id} Retrieve a webhook endpoint

Signing secrets are never returned. The url of a Slack, Microsoft Teams, Google Chat or LINE WORKS destination is not returned, because that URL itself lets anyone post into the channel.

Authentication
managementApiKey
Required scope
webhooks:read
Operation ID
mgmt_v1_webhook_endpoints_show

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

200

Successful Webhook operation

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "url": "https://example.com/resource",
    "events": [
      "string"
    ],
    "status": "active",
    "secret_rotation": {
      "scheduled": true,
      "activates_at": "2026-09-21T00:00:00Z"
    },
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
PATCH /mgmt/v1/webhooks/{id} Update a webhook endpoint

Webhook endpoints are shared by the live and test environments, and every active endpoint receives the events of both. Once the workspace has a live product, a test API key cannot change an endpoint (403 ENVIRONMENT_MISMATCH). The url of an endpoint of your own system (signed JSON) cannot be changed to a URL for posting to a chat service (422 WEBHOOK_INVALID). A Teams workflow URL is not refused, but nothing appears in Teams.

Authentication
managementApiKey
Required scope
webhooks:write
Operation ID
mgmt_v1_webhook_endpoints_update

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Request body

Required
application/json

Schema

Example Value

{
  "name": "Example name",
  "url": "https://example.com/resource",
  "events": [
    "string"
  ]
}

Responses

200

Successful Webhook operation

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "url": "https://example.com/resource",
    "events": [
      "string"
    ],
    "status": "active",
    "secret_rotation": {
      "scheduled": true,
      "activates_at": "2026-09-21T00:00:00Z"
    },
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /mgmt/v1/webhooks/{id} Delete a webhook endpoint

Webhook endpoints are shared by the live and test environments, and every active endpoint receives the events of both. Once the workspace has a live product, a test API key cannot disable an endpoint (403 ENVIRONMENT_MISMATCH).

Authentication
managementApiKey
Required scope
webhooks:write
Operation ID
mgmt_v1_webhook_endpoints_destroy

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

204

Disabled

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Management API

Events and usage

10 operations

Retrieve audit events and usage reports.

GET /mgmt/v1/events List events
Authentication
managementApiKey
Required scope
events:read
Operation ID
mgmt_v1_audit_events_index

Parameters

limit Location: Query Optional
integer Minimum: 1 Maximum: 200

Example Value

50
cursor Location: Query Optional
string

Example Value

"string"

Responses

200

Successful Event operation

application/json

Example Value

{
  "data": [
    {
      "id": "id_aaaaaaaaaaaaaaaaaaaa",
      "type": "string",
      "actor": {},
      "target": {
        "environment": "live"
      },
      "request_id": "01K5QWERTY1234567890ABCDEFG",
      "data": {},
      "created_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/plan Get plan limits and usage

Get the plan's limits, recommended policy values and this month's usage. This call does not count toward the monthly quota.

Returns the workspace plan's limits, recommended policy values and this month's usage. This call does not count toward the monthly Management API quota, so it keeps answering after the quota is used up.

Authentication
managementApiKey
Required scope
reports:read
Operation ID
mgmt_v1_plans_show

Responses

200

Plan limits and usage

application/json

Example Value

{
  "data": {
    "plan": {
      "code": "string",
      "name": "Example name",
      "trial": true,
      "ends_at": "2026-09-21T00:00:00Z"
    },
    "quotas": {
      "property": {
        "limit": 1,
        "used": 1,
        "remaining": 1,
        "limit_with_overage": 1,
        "resets_at": "2026-09-21T00:00:00Z"
      }
    },
    "policy_constraints": {
      "activation_sync_min_sec": 1,
      "revocation_exposure_max_sec": 1,
      "cert_ttl_max_sec": 1,
      "floating_sync_min_sec": 1,
      "floating_lease_ttl_min_sec": 1
    },
    "policy_defaults": {
      "heartbeat_sec": 1,
      "cert_ttl_sec": 1,
      "network_grace_sec": 1
    },
    "revocation_exposure_max_sec_by_plan": {
      "property": 1
    },
    "license_duration_max_sec": 1,
    "unavailable_features": [
      {
        "key": "string",
        "minimum_plan": "string",
        "minimum_plan_name": "Example name"
      }
    ]
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/plan/billing-status Get the Usakey subscription status

Get the state of the workspace's Usakey subscription in business terms: a failed payment, an unpaid contract, a scheduled cancellation, a contract set up by Usakey and so on. An owner or administrator makes billing changes in the Console after confirming their identity. Not counted toward the monthly quota, and it keeps answering after the contract has ended or stopped for non-payment.

The state of the workspace's Usakey subscription in business terms, to explain why license activations or Management API requests stopped: a failed payment that Stripe is retrying, a contract stopped for an unpaid invoice or ended, a scheduled cancellation, a contract set up by Usakey, and so on. Stripe identifiers and Stripe's own status names are not returned. Billing operations (choosing, changing or canceling a plan, updating the payment method, paying an invoice) stay in the Console, where an owner or administrator confirms their identity first, which an API key cannot do. This call does not count toward the monthly Management API quota and keeps answering after the workspace trial or subscription has ended or stopped for non-payment.

Authentication
managementApiKey
Required scope
reports:read
Operation ID
mgmt_v1_plan_billing_statuses_show

Responses

200

Subscription status

application/json

Example Value

{
  "data": {
    "status": "active",
    "service_available": true,
    "plan": {
      "code": "string",
      "name": "Example name"
    },
    "billing_interval": "string",
    "renews_at": "2026-09-21T00:00:00Z",
    "ends_at": "2026-09-21T00:00:00Z"
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/privacy/exports List workspace data exports

List the status, format, expiry and row counts of the workspace data exports (ZIP) an owner requested in the Console. The file and a download link are not returned; the owner requests and downloads exports in the Console after confirming their identity. Not counted toward the monthly quota.

Workspace data exports, oldest first: the ZIP files of the whole workspace that an owner requests in the Console (Workspace settings > Data export and deletion) to move or disclose the data. Only the status, the file format, the times and the number of rows per dataset are returned; the file, a download link and who requested the export are not. Requesting and downloading an export stay in the Console, where the owner confirms their password (or two-factor code) first, which an API key cannot do. downloadable is true while the owner can download the ZIP in the Console (until expires_at). Exports are not kept per environment, so test and live keys see the same list. This call does not count toward the monthly Management API quota and keeps answering after the workspace trial or subscription has ended.

Authentication
managementApiKey
Required scope
events:read
Operation ID
mgmt_v1_privacy_exports_index

Parameters

status Location: Query Optional
string

Allowed values: pending, processing, ready, failed, expired

Only exports in this status.

Example Value

"pending"
limit Location: Query Optional
integer Minimum: 1 Maximum: 200

Example Value

50
cursor Location: Query Optional
string

Example Value

"string"

Responses

200

Workspace data exports

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "status": "active",
      "file_format": "string",
      "requested_at": "2026-09-21T00:00:00Z",
      "started_at": "2026-09-21T00:00:00Z",
      "completed_at": "2026-09-21T00:00:00Z",
      "failed_at": "2026-09-21T00:00:00Z",
      "expires_at": "2026-09-21T00:00:00Z",
      "byte_size": 1,
      "record_counts": {
        "property": 1
      },
      "downloadable": true
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/privacy/erasure-request Get the workspace deletion request

Get the workspace deletion request that is not finished (scheduled, blocked or processing) and what keeps a deletion from starting now. The owner requests and cancels a deletion in the Console after confirming their identity. Not counted toward the monthly quota.

The workspace deletion request that is not finished (scheduled, blocked or processing), or null when there is none, and what blocks a deletion right now. An owner requests the deletion in the Console; it starts after a grace period (grace_period_days) during which an owner can cancel it in the Console. Requesting and canceling stay in the Console, where the owner confirms their password (or two-factor code) first, which an API key cannot do. blocker is why a new request would be refused, or why a due request cannot start: billing_open (a paid plan continues without a scheduled cancellation), checkout_open (a checkout is not finished) or tenant_suspended; null when nothing blocks it. Once a deletion starts, its first steps delete the workspace API keys, so this endpoint stops answering. This call does not count toward the monthly Management API quota and keeps answering after the workspace trial or subscription has ended.

Authentication
managementApiKey
Required scope
events:read
Operation ID
mgmt_v1_privacy_erasure_requests_show

Responses

200

Workspace deletion status

application/json

Example Value

{
  "data": {
    "request": {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "status": "active",
      "origin": "string",
      "requested_at": "2026-09-21T00:00:00Z",
      "scheduled_for": "2026-09-21T00:00:00Z",
      "cancelable": true
    },
    "blocker": "string",
    "paid_until": "2026-09-21T00:00:00Z",
    "grace_period_days": 1
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/reports/usage Retrieve API usage

Retrieve API usage and limits aggregated for a time period.

Authentication
managementApiKey
Required scope
reports:read
Operation ID
mgmt_v1_reports_usage

Responses

200

Successful UsageReport operation

application/json

Example Value

{
  "data": {
    "period": {},
    "new_activations": 1,
    "active_machines": 1,
    "active_licenses": 1,
    "active_leases": 1
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/exports List data exports

List the exports requested, in the order they were requested. Only the kinds the API key may read are returned.

Lists report exports, oldest first (in the order they were requested; page with cursor). A key sees only the kinds it may read (customers and license users need customers:read; devices, licenses and assignments need licenses:read; the activity log needs events:read) and, for the kinds that follow the product environment, only exports of its own environment. Column descriptions are left out; GET /mgmt/v1/exports/{id} returns them.

Authentication
managementApiKey
Required scope
reports:read
Operation ID
mgmt_v1_report_exports_index

Parameters

limit Location: Query Optional
integer Minimum: 1 Maximum: 200

Example Value

50
cursor Location: Query Optional
string

Example Value

"string"
kind Location: Query Optional

Example Value

"usage_daily"
status Location: Query Optional
string

Allowed values: pending, running, ready, failed, expired

Example Value

"pending"

Responses

200

Report exports

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "kind": "usage_daily",
      "format": "csv",
      "environment": "live",
      "status": "pending",
      "source": "console",
      "requested_by": "user",
      "period_from": "2026-09-21T00:00:00Z",
      "period_to": "2026-09-21T00:00:00Z",
      "row_count": 0,
      "byte_size": 0,
      "content_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "filename": "Example name",
      "failure_code": "string",
      "created_at": "2026-09-21T00:00:00Z",
      "started_at": "2026-09-21T00:00:00Z",
      "completed_at": "2026-09-21T00:00:00Z",
      "expires_at": "2026-09-21T00:00:00Z",
      "schedule_id": "schedule_id_aaaaaaaaaaaaaaaaaaaa",
      "delivery": {
        "status": "pending",
        "error_code": "string",
        "delivered_at": "2026-09-21T00:00:00Z",
        "object_key": "string"
      },
      "columns": [
        {
          "name": "Example name",
          "type": "string",
          "description": "Example description"
        }
      ]
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/exports Request a data export

Request a CSV or Parquet export of usage, devices, licenses, customers and more. The file is created in the background.

Requests an export. The file is created in the background: poll GET /mgmt/v1/exports/{id} until status is ready, then call download. Besides reports:read the key needs the read scope of the kind (customers:read, licenses:read or events:read; usage_daily needs only reports:read). Kinds that follow the product environment (usage_daily, activations, licenses, license_assignments) use the key's environment; another environment returns 403 ENVIRONMENT_MISMATCH. period_from and period_to take a date (a whole UTC day) or an ISO 8601 date-time; usage_daily defaults to the last 30 days and covers up to 366 days, the other kinds export everything without a period. usage_daily, activations and the parquet format need the Team plan or above, audit_events needs the Enterprise plan (403 PLAN_ENTITLEMENT_REQUIRED). Up to 5 exports per workspace can wait or run at once (409 EXPORTS_IN_PROGRESS, retryable). Files are UTF-8 CSV with a BOM, or Parquet (Snappy); times are UTC. Each file stays downloadable for 7 days.

Authentication
managementApiKey
Required scope
reports:read
Operation ID
mgmt_v1_report_exports_create

Parameters

Idempotency-Key Location: Header Required
string Minimum length: 16 Maximum length: 255

Example Value

"stringxxxxxxxxxx"

Request body

Required
application/json

Example Value

{
  "kind": "usage_daily",
  "format": "csv",
  "environment": "live",
  "period_from": "string",
  "period_to": "string"
}

Responses

202

The export was requested

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "kind": "usage_daily",
    "format": "csv",
    "environment": "live",
    "status": "pending",
    "source": "console",
    "requested_by": "user",
    "period_from": "2026-09-21T00:00:00Z",
    "period_to": "2026-09-21T00:00:00Z",
    "row_count": 0,
    "byte_size": 0,
    "content_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "filename": "Example name",
    "failure_code": "string",
    "created_at": "2026-09-21T00:00:00Z",
    "started_at": "2026-09-21T00:00:00Z",
    "completed_at": "2026-09-21T00:00:00Z",
    "expires_at": "2026-09-21T00:00:00Z",
    "schedule_id": "schedule_id_aaaaaaaaaaaaaaaaaaaa",
    "delivery": {
      "status": "pending",
      "error_code": "string",
      "delivered_at": "2026-09-21T00:00:00Z",
      "object_key": "string"
    },
    "columns": [
      {
        "name": "Example name",
        "type": "string",
        "description": "Example description"
      }
    ]
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

Idempotency, version, machine, concurrency, or pending product signing-key conflict

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/exports/{id} Retrieve a data export

Retrieve an export's status, row count, size, expiry and column descriptions.

Returns one export with its status, row count, size, SHA-256 of the file, expiry and the column names, types and descriptions. failure_code explains a failed export (too_many_rows, too_large, storage_unavailable, stalled, internal_error).

Authentication
managementApiKey
Required scope
reports:read
Operation ID
mgmt_v1_report_exports_show

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

200

Report export

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "kind": "usage_daily",
    "format": "csv",
    "environment": "live",
    "status": "pending",
    "source": "console",
    "requested_by": "user",
    "period_from": "2026-09-21T00:00:00Z",
    "period_to": "2026-09-21T00:00:00Z",
    "row_count": 0,
    "byte_size": 0,
    "content_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "filename": "Example name",
    "failure_code": "string",
    "created_at": "2026-09-21T00:00:00Z",
    "started_at": "2026-09-21T00:00:00Z",
    "completed_at": "2026-09-21T00:00:00Z",
    "expires_at": "2026-09-21T00:00:00Z",
    "schedule_id": "schedule_id_aaaaaaaaaaaaaaaaaaaa",
    "delivery": {
      "status": "pending",
      "error_code": "string",
      "delivered_at": "2026-09-21T00:00:00Z",
      "object_key": "string"
    },
    "columns": [
      {
        "name": "Example name",
        "type": "string",
        "description": "Example description"
      }
    ]
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/exports/{id}/download Retrieve the download URL of an export

Retrieve a short-lived URL that downloads the exported file.

Returns a short-lived URL (5 minutes by default) that downloads the file. Fetch the URL without the Authorization header. Each call is recorded in the activity log. An export that is not ready, failed or expired returns 409 EXPORT_NOT_READY (retryable while it is pending or running).

Authentication
managementApiKey
Required scope
reports:read
Operation ID
mgmt_v1_report_exports_download

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

200

Download URL

application/json

Example Value

{
  "data": {
    "url": "https://example.com/resource",
    "expires_at": "2026-09-21T00:00:00Z",
    "filename": "Example name",
    "content_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "byte_size": 0
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

Idempotency, version, machine, concurrency, or pending product signing-key conflict

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Management API

Resellers

15 operations

Manage reseller registrations and state.

GET /mgmt/v1/resellers List resellers
Authentication
managementApiKey
Required scope
customers:read
Operation ID
mgmt_v1_resellers_index

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

Successful Reseller operation

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "email": "developer@example.com",
      "external_ref": "string",
      "organization_limit": 1,
      "user_limit": 1,
      "status": "active",
      "metadata": {},
      "archived_at": "2026-09-21T00:00:00Z",
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/resellers Create a reseller
Authentication
managementApiKey
Required scope
customers:write
Operation ID
mgmt_v1_resellers_create

Request body

Required
application/json

Schema

Example Value

{
  "name": "Example name",
  "email": "developer@example.com",
  "external_ref": "string",
  "organization_limit": 1,
  "user_limit": 1,
  "status": "active",
  "metadata": {}
}

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
201

Successful Reseller operation

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "email": "developer@example.com",
    "external_ref": "string",
    "organization_limit": 1,
    "user_limit": 1,
    "status": "active",
    "metadata": {},
    "archived_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/resellers/{id} Retrieve a reseller
Authentication
managementApiKey
Required scope
customers:read
Operation ID
mgmt_v1_resellers_show

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

Successful Reseller operation

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "email": "developer@example.com",
    "external_ref": "string",
    "organization_limit": 1,
    "user_limit": 1,
    "status": "active",
    "metadata": {},
    "archived_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
PATCH /mgmt/v1/resellers/{id} Update a reseller
Authentication
managementApiKey
Required scope
customers:write
Operation ID
mgmt_v1_resellers_update

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Request body

Required
application/json

Schema

Example Value

{
  "name": "Example name",
  "email": "developer@example.com",
  "external_ref": "string",
  "organization_limit": 1,
  "user_limit": 1,
  "status": "active",
  "metadata": {}
}

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

Successful Reseller operation

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "email": "developer@example.com",
    "external_ref": "string",
    "organization_limit": 1,
    "user_limit": 1,
    "status": "active",
    "metadata": {},
    "archived_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /mgmt/v1/resellers/{id} Delete a reseller
Authentication
managementApiKey
Required scope
customers:write
Operation ID
mgmt_v1_resellers_destroy

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
204

Operation completed with no response body

402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/resellers/{id}/usage Get a reseller's seat counts

Returns the seats this reseller has issued from its allocations in the API key's environment, the licenses and activated devices behind them, and the number of customers.

Authentication
managementApiKey
Required scope
customers:read
Operation ID
mgmt_v1_resellers_usage

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

Successful operation

application/json

Example Value

{
  "data": {
    "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
    "issued_seats": 1,
    "license_count": 1,
    "active_devices": 1,
    "customer_count": 1,
    "allocations": [
      {
        "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
        "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
        "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
        "product_id": "prod_0123456789abcdef0123",
        "seat_limit": 1,
        "max_duration_days": 1,
        "status": "active",
        "issued_seats": 1,
        "remaining_seats": 1,
        "license_count": 1,
        "active_devices": 1,
        "created_at": "2026-09-21T00:00:00Z",
        "updated_at": "2026-09-21T00:00:00Z"
      }
    ]
  }
}
GET /mgmt/v1/resellers/{reseller_id}/allocations List a reseller's allocations

Lists the active allocations of products in the API key's environment. An allocation lets the reseller's staff issue licenses of one policy from the reseller portal.

Authentication
managementApiKey
Required scope
customers:read
Operation ID
mgmt_v1_reseller_allocations_index

Parameters

reseller_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

Successful operation

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
      "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
      "product_id": "prod_0123456789abcdef0123",
      "seat_limit": 1,
      "max_duration_days": 1,
      "status": "active",
      "issued_seats": 1,
      "remaining_seats": 1,
      "license_count": 1,
      "active_devices": 1,
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ]
}
POST /mgmt/v1/resellers/{reseller_id}/allocations Add a reseller allocation

Adds an allocation. seat_limit is the total seats the reseller may issue under it (null means no limit). max_duration_days caps a term license's duration (null means no cap). Trial policies cannot be allocated.

Authentication
managementApiKey
Required scope
customers:write
Operation ID
mgmt_v1_reseller_allocations_create

Parameters

reseller_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
Idempotency-Key Location: Header Required
string Minimum length: 16 Maximum length: 255

Example Value

"stringxxxxxxxxxx"

Request body

Required
application/json

Example Value

{
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "seat_limit": 0,
  "max_duration_days": 1
}

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
201

Successful operation

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "product_id": "prod_0123456789abcdef0123",
    "seat_limit": 1,
    "max_duration_days": 1,
    "status": "active",
    "issued_seats": 1,
    "remaining_seats": 1,
    "license_count": 1,
    "active_devices": 1,
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
422

Validation failed

GET /mgmt/v1/resellers/{reseller_id}/allocations/{id} Get a reseller allocation

Returns one allocation and its usage.

Authentication
managementApiKey
Required scope
customers:read
Operation ID
mgmt_v1_reseller_allocations_show

Parameters

reseller_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

Successful operation

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "product_id": "prod_0123456789abcdef0123",
    "seat_limit": 1,
    "max_duration_days": 1,
    "status": "active",
    "issued_seats": 1,
    "remaining_seats": 1,
    "license_count": 1,
    "active_devices": 1,
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
PATCH /mgmt/v1/resellers/{reseller_id}/allocations/{id} Change a reseller allocation

Changes the seat limit or the maximum duration. Licenses already issued are not changed.

Authentication
managementApiKey
Required scope
customers:write
Operation ID
mgmt_v1_reseller_allocations_update

Parameters

reseller_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Request body

Required
application/json

Example Value

{
  "seat_limit": 0,
  "max_duration_days": 1
}

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

Successful operation

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "product_id": "prod_0123456789abcdef0123",
    "seat_limit": 1,
    "max_duration_days": 1,
    "status": "active",
    "issued_seats": 1,
    "remaining_seats": 1,
    "license_count": 1,
    "active_devices": 1,
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
422

Validation failed

DELETE /mgmt/v1/resellers/{reseller_id}/allocations/{id} Close a reseller allocation

Closes the allocation. Licenses already issued stay usable.

Authentication
managementApiKey
Required scope
customers:write
Operation ID
mgmt_v1_reseller_allocations_destroy

Parameters

reseller_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
204

The allocation was closed.

GET /mgmt/v1/resellers/{reseller_id}/members List a reseller's staff

Lists the reseller staff who are invited or active.

Authentication
managementApiKey
Required scope
customers:read
Operation ID
mgmt_v1_reseller_members_index

Parameters

reseller_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

Successful operation

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
      "email": "developer@example.com",
      "role": "manager",
      "status": "invited",
      "invited_at": "2026-09-21T00:00:00Z",
      "accepted_at": "2026-09-21T00:00:00Z",
      "created_at": "2026-09-21T00:00:00Z"
    }
  ]
}
POST /mgmt/v1/resellers/{reseller_id}/members Invite reseller staff

Invites a person by email address to the reseller portal. They sign in with a Usakey account for that address and accept the invitation. Requires a live API key, because staff are not tied to an environment. Inviting an address that is already invited sends the invitation again.

Authentication
managementApiKey
Required scope
customers:write
Operation ID
mgmt_v1_reseller_members_create

Parameters

reseller_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
Idempotency-Key Location: Header Required
string Minimum length: 16 Maximum length: 255

Example Value

"stringxxxxxxxxxx"

Request body

Required
application/json

Example Value

{
  "email": "developer@example.com",
  "role": "manager"
}

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
201

Successful operation

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
    "email": "developer@example.com",
    "role": "manager",
    "status": "invited",
    "invited_at": "2026-09-21T00:00:00Z",
    "accepted_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z"
  }
}
422

Validation failed

PATCH /mgmt/v1/resellers/{reseller_id}/members/{id} Change reseller staff's role

Changes the role of a staff member. Requires a live API key.

Authentication
managementApiKey
Required scope
customers:write
Operation ID
mgmt_v1_reseller_members_update

Parameters

reseller_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Request body

Required
application/json

Example Value

{
  "role": "manager"
}

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

Successful operation

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
    "email": "developer@example.com",
    "role": "manager",
    "status": "invited",
    "invited_at": "2026-09-21T00:00:00Z",
    "accepted_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z"
  }
}
422

Validation failed

DELETE /mgmt/v1/resellers/{reseller_id}/members/{id} Remove reseller staff

Ends the staff member's access to the portal at once, or cancels the invitation. Requires a live API key.

Authentication
managementApiKey
Required scope
customers:write
Operation ID
mgmt_v1_reseller_members_destroy

Parameters

reseller_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
204

Access was removed.

Management API

Organizations (compatibility)

5 operations

Organizations were merged into customers in October 2026. This compatibility endpoint handles the customers that use user management in the shape organizations had before the merge. Both the organization ID from before the merge (org_…) and the customer ID (cus_…) are accepted.

GET /mgmt/v1/organizations List organizations

Customer organizations have been merged into customers. This compatibility endpoint lists the customers that use user management (license users, groups and OIDC connections), archived ones included. public_id is the organization ID a customer had before the merge (org_…), or its customer ID (cus_…) if it started user management later; either ID is accepted wherever an organization ID is. status is active, suspended (user management is suspended) or archived (the customer is archived). The organizations quota counts the customers whose user management is active.

Authentication
managementApiKey
Required scope
customers:read
Operation ID
mgmt_v1_organizations_index

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

Successful Organization operation

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "email": "developer@example.com",
      "external_ref": "string",
      "user_limit": 1,
      "status": "active",
      "metadata": {},
      "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
      "archived_at": "2026-09-21T00:00:00Z",
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/organizations Create an organization

Starts user management for a customer and returns the customer in the organization shape. The customer is the one named by customer_id; otherwise a customer that does not use user management yet and has the same external_ref; otherwise a new customer made from name, email and external_ref. An existing customer keeps its name, email and external_ref. Requires the organization_management feature and a free slot in the organizations quota. status may be active (the default) or suspended. A customer that already uses user management, or is archived, returns 422 DIRECTORY_VALIDATION_FAILED.

Authentication
managementApiKey
Required scope
customers:write
Operation ID
mgmt_v1_organizations_create

Request body

Required
application/json

Example Value

{
  "name": "Example name",
  "email": "developer@example.com",
  "external_ref": "string",
  "user_limit": 1,
  "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
  "status": "active",
  "metadata": {},
  "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa"
}

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
201

Successful Organization operation

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "email": "developer@example.com",
    "external_ref": "string",
    "user_limit": 1,
    "status": "active",
    "metadata": {},
    "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
    "archived_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/organizations/{id} Retrieve an organization

Accepts the organization ID a customer had before the merge (org_…) or its customer ID (cus_…). A customer that does not use user management returns 404.

Authentication
managementApiKey
Required scope
customers:read
Operation ID
mgmt_v1_organizations_show

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

Successful Organization operation

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "email": "developer@example.com",
    "external_ref": "string",
    "user_limit": 1,
    "status": "active",
    "metadata": {},
    "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
    "archived_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
PATCH /mgmt/v1/organizations/{id} Update an organization

Accepts either ID, like GET. status active resumes user management (the plan is checked again, and an archived customer returns 422 DIRECTORY_VALIDATION_FAILED), suspended suspends it, and archived archives the customer. While user management is suspended, OIDC sign-in through the customer's connections is refused and users and groups cannot be added; licenses keep working. name, email and external_ref change the customer itself. Customers are shared by the live and test environments. A test API key cannot change a customer who holds a live license or whose license users hold a seat on a live license (403 ENVIRONMENT_MISMATCH).

Authentication
managementApiKey
Required scope
customers:write
Operation ID
mgmt_v1_organizations_update

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Request body

Required
application/json

Example Value

{
  "name": "Example name",
  "email": "developer@example.com",
  "external_ref": "string",
  "user_limit": 1,
  "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
  "status": "active",
  "metadata": {},
  "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa"
}

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

Successful Organization operation

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "email": "developer@example.com",
    "external_ref": "string",
    "user_limit": 1,
    "status": "active",
    "metadata": {},
    "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
    "archived_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /mgmt/v1/organizations/{id} Delete an organization

Archives the customer, like DELETE /mgmt/v1/customers/{id}; sign-in through its OIDC connections stops. Customers are shared by the live and test environments. A test API key cannot archive a customer who holds a live license or whose license users hold a seat on a live license (403 ENVIRONMENT_MISMATCH). Usakey never cancels subscriptions in the seller's Stripe or sales service, so cancel them there to stop the buyers' charges.

Authentication
managementApiKey
Required scope
customers:write
Operation ID
mgmt_v1_organizations_destroy

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
204

Operation completed with no response body

402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Management API

Group memberships

3 operations

Manage the users assigned to groups.

GET /mgmt/v1/organization_groups/{organization_group_id}/memberships List group memberships
Authentication
managementApiKey
Required scope
customers:read
Operation ID
mgmt_v1_organization_group_memberships_index

Parameters

organization_group_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

Successful OrganizationGroupMembership operation

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "organization_group_id": "organization_group_id_aaaaaaaaaaaaaaaaaaaa",
      "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa",
      "status": "active",
      "assigned_at": "2026-09-21T00:00:00Z",
      "revoked_at": "2026-09-21T00:00:00Z",
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/organization_groups/{organization_group_id}/memberships Create a group membership
Authentication
managementApiKey
Required scope
customers:write
Operation ID
mgmt_v1_organization_group_memberships_create

Parameters

organization_group_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Request body

Required
application/json

Example Value

{
  "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa"
}

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
201

Successful OrganizationGroupMembership operation

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "organization_group_id": "organization_group_id_aaaaaaaaaaaaaaaaaaaa",
    "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "assigned_at": "2026-09-21T00:00:00Z",
    "revoked_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /mgmt/v1/organization_groups/{organization_group_id}/memberships/{id} Delete a group membership
Authentication
managementApiKey
Required scope
customers:write
Operation ID
mgmt_v1_organization_group_memberships_destroy

Parameters

organization_group_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
204

Operation completed with no response body

402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Management API

Groups

5 operations

Manage the user groups of customers that use user management.

GET /mgmt/v1/organization_groups List groups
Authentication
managementApiKey
Required scope
customers:read
Operation ID
mgmt_v1_organization_groups_index

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

Successful OrganizationGroup operation

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "status": "active",
      "metadata": {},
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/organization_groups Create a group

Creates a group for a customer that uses user management. organization_id accepts the customer ID (cus_…) or the organization ID it was merged from (org_…). User management must be active; for a customer whose user management is suspended or not started, or that is archived, the request returns 422 DIRECTORY_VALIDATION_FAILED with the reason in details.errors.base.

Authentication
managementApiKey
Required scope
customers:write
Operation ID
mgmt_v1_organization_groups_create

Request body

Required
application/json

Example Value

{
  "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
  "name": "Example name",
  "status": "active",
  "metadata": {}
}

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
201

Successful OrganizationGroup operation

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "status": "active",
    "metadata": {},
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/organization_groups/{id} Retrieve a group
Authentication
managementApiKey
Required scope
customers:read
Operation ID
mgmt_v1_organization_groups_show

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

Successful OrganizationGroup operation

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "status": "active",
    "metadata": {},
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
PATCH /mgmt/v1/organization_groups/{id} Update a group
Authentication
managementApiKey
Required scope
customers:write
Operation ID
mgmt_v1_organization_groups_update

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Request body

Required
application/json

Example Value

{
  "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
  "name": "Example name",
  "status": "active",
  "metadata": {}
}

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

Successful OrganizationGroup operation

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "status": "active",
    "metadata": {},
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /mgmt/v1/organization_groups/{id} Delete a group
Authentication
managementApiKey
Required scope
customers:write
Operation ID
mgmt_v1_organization_groups_destroy

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
204

Operation completed with no response body

402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Management API

License users

5 operations

Manage the identities and state of people who use products.

GET /mgmt/v1/license_users List license users
Authentication
managementApiKey
Required scope
customers:read
Operation ID
mgmt_v1_license_users_index

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

Successful LicenseUser operation

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "issuer": "https://example.com/resource",
      "subject": "string",
      "email": "developer@example.com",
      "name": "Example name",
      "status": "active",
      "two_factor_state": "string",
      "two_factor_method": "string",
      "metadata": {},
      "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
      "oidc_connection_id": "oidc_connection_id_aaaaaaaaaaaaaaaaaaaa",
      "last_authenticated_at": "2026-09-21T00:00:00Z",
      "deprovisioned_at": "2026-09-21T00:00:00Z",
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/license_users Create a license user

Creates a license user. Linking it to an OIDC connection with `oidc_connection_id` requires the Team plan or higher and the `oidc_sso` entitlement; otherwise it returns HTTP 403 (`PLAN_ENTITLEMENT_REQUIRED`). On the Personal plan, omit this value and manage users as a local list with API assignments.

Authentication
managementApiKey
Required scope
customers:write
Operation ID
mgmt_v1_license_users_create

Request body

Required
application/json

Example Value

{
  "issuer": "string",
  "subject": "string",
  "email": "developer@example.com",
  "name": "Example name",
  "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
  "oidc_connection_id": "oidc_connection_id_aaaaaaaaaaaaaaaaaaaa",
  "saml_connection_id": "saml_connection_id_aaaaaaaaaaaaaaaaaaaa",
  "status": "active",
  "metadata": {}
}

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

The API key lacks the required scope, or assigning `oidc_connection_id` requires the Team plan or higher with the `oidc_sso` entitlement; the request returns `PLAN_ENTITLEMENT_REQUIRED`.

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
201

Successful LicenseUser operation

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "issuer": "https://example.com/resource",
    "subject": "string",
    "email": "developer@example.com",
    "name": "Example name",
    "status": "active",
    "two_factor_state": "string",
    "two_factor_method": "string",
    "metadata": {},
    "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
    "oidc_connection_id": "oidc_connection_id_aaaaaaaaaaaaaaaaaaaa",
    "last_authenticated_at": "2026-09-21T00:00:00Z",
    "deprovisioned_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/license_users/{id} Retrieve a license user
Authentication
managementApiKey
Required scope
customers:read
Operation ID
mgmt_v1_license_users_show

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

Successful LicenseUser operation

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "issuer": "https://example.com/resource",
    "subject": "string",
    "email": "developer@example.com",
    "name": "Example name",
    "status": "active",
    "two_factor_state": "string",
    "two_factor_method": "string",
    "metadata": {},
    "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
    "oidc_connection_id": "oidc_connection_id_aaaaaaaaaaaaaaaaaaaa",
    "last_authenticated_at": "2026-09-21T00:00:00Z",
    "deprovisioned_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
PATCH /mgmt/v1/license_users/{id} Update a license user

Updates a license user. Linking it to an OIDC connection with `oidc_connection_id` requires the Team plan or higher and the `oidc_sso` entitlement; otherwise it returns HTTP 403 (`PLAN_ENTITLEMENT_REQUIRED`). On the Personal plan, update local users without this value. Sending `null` or an empty string as `organization_id` removes the user from its customer (omitting it leaves it unchanged).

Authentication
managementApiKey
Required scope
customers:write
Operation ID
mgmt_v1_license_users_update

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Request body

Required
application/json

Example Value

{
  "issuer": "string",
  "subject": "string",
  "email": "developer@example.com",
  "name": "Example name",
  "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
  "oidc_connection_id": "oidc_connection_id_aaaaaaaaaaaaaaaaaaaa",
  "saml_connection_id": "saml_connection_id_aaaaaaaaaaaaaaaaaaaa",
  "status": "active",
  "metadata": {}
}

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

The API key lacks the required scope, or assigning `oidc_connection_id` requires the Team plan or higher with the `oidc_sso` entitlement; the request returns `PLAN_ENTITLEMENT_REQUIRED`.

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

Successful LicenseUser operation

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "issuer": "https://example.com/resource",
    "subject": "string",
    "email": "developer@example.com",
    "name": "Example name",
    "status": "active",
    "two_factor_state": "string",
    "two_factor_method": "string",
    "metadata": {},
    "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
    "oidc_connection_id": "oidc_connection_id_aaaaaaaaaaaaaaaaaaaa",
    "last_authenticated_at": "2026-09-21T00:00:00Z",
    "deprovisioned_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /mgmt/v1/license_users/{id} Delete a license user

License users are shared by the live and test environments. A test API key cannot deprovision a license user who holds a seat on a live license (403 ENVIRONMENT_MISMATCH); a live API key can deprovision any license user.

Authentication
managementApiKey
Required scope
customers:write
Operation ID
mgmt_v1_license_users_destroy

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
204

Operation completed with no response body

402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Management API

OIDC connections

6 operations

Manage customer identity-provider connections.

GET /mgmt/v1/oidc_connections List OIDC connections
Authentication
managementApiKey
Required scope
sso:read
Operation ID
mgmt_v1_oidc_connections_index

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

Successful OidcConnection operation

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "issuer": "https://example.com/resource",
      "client_id": "01K5QWERTY1234567890ABCDEFG",
      "authorization_endpoint": "https://example.com/resource",
      "token_endpoint": "https://example.com/resource",
      "jwks_uri": "https://example.com/resource",
      "scopes": [
        "string"
      ],
      "allowed_audiences": [
        "string"
      ],
      "pkce_required": true,
      "jit_provisioning": true,
      "status": "active",
      "metadata": {},
      "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
      "client_secret_rotated_at": "2026-09-21T00:00:00Z",
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/oidc_connections Create an OIDC connection

Creates an OIDC connection. It requires the Team plan or higher and the `oidc_sso` entitlement; the Personal plan returns HTTP 403 (`PLAN_ENTITLEMENT_REQUIRED`).

Authentication
managementApiKey
Required scope
sso:write
Operation ID
mgmt_v1_oidc_connections_create

Request body

Required
application/json

Example Value

{
  "name": "Example name",
  "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
  "issuer": "string",
  "client_id": "01K5QWERTY1234567890ABCDEFG",
  "client_secret": "example-token",
  "authorization_endpoint": "https://example.com/resource",
  "token_endpoint": "https://example.com/resource",
  "jwks_uri": "https://example.com/resource",
  "pkce_required": true,
  "jit_provisioning": true,
  "status": "active",
  "scopes": [
    "string"
  ],
  "allowed_audiences": [
    "string"
  ],
  "metadata": {}
}

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

The API key lacks the required scope, or the Team plan or higher with the `oidc_sso` entitlement is required; the request returns `PLAN_ENTITLEMENT_REQUIRED`.

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
201

Successful OidcConnection operation

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "issuer": "https://example.com/resource",
    "client_id": "01K5QWERTY1234567890ABCDEFG",
    "authorization_endpoint": "https://example.com/resource",
    "token_endpoint": "https://example.com/resource",
    "jwks_uri": "https://example.com/resource",
    "scopes": [
      "string"
    ],
    "allowed_audiences": [
      "string"
    ],
    "pkce_required": true,
    "jit_provisioning": true,
    "status": "active",
    "metadata": {},
    "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
    "client_secret_rotated_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/oidc_connections/{id} Retrieve an OIDC connection
Authentication
managementApiKey
Required scope
sso:read
Operation ID
mgmt_v1_oidc_connections_show

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

Successful OidcConnection operation

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "issuer": "https://example.com/resource",
    "client_id": "01K5QWERTY1234567890ABCDEFG",
    "authorization_endpoint": "https://example.com/resource",
    "token_endpoint": "https://example.com/resource",
    "jwks_uri": "https://example.com/resource",
    "scopes": [
      "string"
    ],
    "allowed_audiences": [
      "string"
    ],
    "pkce_required": true,
    "jit_provisioning": true,
    "status": "active",
    "metadata": {},
    "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
    "client_secret_rotated_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
PATCH /mgmt/v1/oidc_connections/{id} Update an OIDC connection

Update the specified OIDC connection. To change the issuer, client_id, endpoints, jwks_uri, allowed_audiences, or the mfa_acr_values, max_age, trust_upstream_mfa, require_phishing_resistant_mfa, or requested_acr_values metadata, send client_secret in the same request; otherwise the API returns HTTP 422 (`OIDC_CLIENT_SECRET_REENTRY_REQUIRED`). Every owner of the workspace gets an email about these changes. Multi-factor authentication at the identity provider counts when the ID token amr contains mfa, otp, sms, hwk, swk, or pop, or when acr matches mfa_acr_values. With require_phishing_resistant_mfa set to true, only key-based methods (hwk, swk, pop, such as passkeys) and mfa_acr_values count. With trust_upstream_mfa set to true, a user without Usakey two-step verification who signs in after multi-factor authentication at the identity provider has two-step verification switched to the identity provider. requested_acr_values is sent as acr_values in the authorization request.

Authentication
managementApiKey
Required scope
sso:write
Operation ID
mgmt_v1_oidc_connections_update

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Request body

Required
application/json

Example Value

{
  "client_secret": "example-token",
  "name": "Example name",
  "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
  "issuer": "string",
  "client_id": "01K5QWERTY1234567890ABCDEFG",
  "authorization_endpoint": "https://example.com/resource",
  "token_endpoint": "https://example.com/resource",
  "jwks_uri": "https://example.com/resource",
  "pkce_required": true,
  "jit_provisioning": true,
  "status": "active",
  "scopes": [
    "string"
  ],
  "allowed_audiences": [
    "string"
  ],
  "metadata": {}
}

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

The API key lacks the required scope, or changes other than disabling the connection require the Team plan or higher with the `oidc_sso` entitlement; the request returns `PLAN_ENTITLEMENT_REQUIRED`.

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

Successful OidcConnection operation

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "issuer": "https://example.com/resource",
    "client_id": "01K5QWERTY1234567890ABCDEFG",
    "authorization_endpoint": "https://example.com/resource",
    "token_endpoint": "https://example.com/resource",
    "jwks_uri": "https://example.com/resource",
    "scopes": [
      "string"
    ],
    "allowed_audiences": [
      "string"
    ],
    "pkce_required": true,
    "jit_provisioning": true,
    "status": "active",
    "metadata": {},
    "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
    "client_secret_rotated_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /mgmt/v1/oidc_connections/{id} Delete an OIDC connection
Authentication
managementApiKey
Required scope
sso:write
Operation ID
mgmt_v1_oidc_connections_destroy

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
204

Operation completed with no response body

402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/oidc_connections/{oidc_connection_id}/client-secret-rotation Rotate an OIDC client secret

Replace the client secret for an OIDC connection safely.

Rotates the OIDC client secret. It requires the Team plan or higher and the `oidc_sso` entitlement; the Personal plan returns HTTP 403 (`PLAN_ENTITLEMENT_REQUIRED`).

Authentication
managementApiKey
Required scope
sso:write
Operation ID
mgmt_v1_oidc_client_secret_rotations_create

Parameters

oidc_connection_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Request body

Required
application/json

Example Value

{
  "client_secret": "example-token"
}

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

The API key lacks the required scope, or the Team plan or higher with the `oidc_sso` entitlement is required; the request returns `PLAN_ENTITLEMENT_REQUIRED`.

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

Client Secret rotated without returning the secret value

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "issuer": "https://example.com/resource",
    "client_id": "01K5QWERTY1234567890ABCDEFG",
    "authorization_endpoint": "https://example.com/resource",
    "token_endpoint": "https://example.com/resource",
    "jwks_uri": "https://example.com/resource",
    "scopes": [
      "string"
    ],
    "allowed_audiences": [
      "string"
    ],
    "pkce_required": true,
    "jit_provisioning": true,
    "status": "active",
    "metadata": {},
    "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
    "client_secret_rotated_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Management API

SAML connections

6 operations

Manage the connections customers use to sign in to the customer portal with a SAML identity provider.

GET /mgmt/v1/saml_connections List SAML connections

Lists the SAML connections customers use to sign in to the customer portal. Filter with status (active or disabled) and customer_id (cus_… or the org_… ID the customer was merged from). Readable with a test key.

Authentication
managementApiKey
Required scope
sso:read
Operation ID
mgmt_v1_saml_connections_index

Parameters

status Location: Query Optional
string

Allowed values: active, disabled

Example Value

"active"
customer_id Location: Query Optional
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
limit Location: Query Optional
integer Minimum: 1 Maximum: 200

Example Value

50
cursor Location: Query Optional
string

Example Value

"string"

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

Successful SamlConnection operation

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
      "status": "active",
      "configured": true,
      "idp_entity_id": "01K5QWERTY1234567890ABCDEFG",
      "idp_sso_url": "https://example.com/resource",
      "idp_metadata_url": "https://example.com/resource",
      "idp_metadata_fetched_at": "2026-09-21T00:00:00Z",
      "idp_certificates": [
        "string"
      ],
      "idp_certificate_details": [
        {
          "sha256_fingerprint": "string",
          "subject_common_name": "Example name",
          "not_before": "2026-09-21T00:00:00Z",
          "not_after": "2026-09-21T00:00:00Z",
          "expired": true
        }
      ],
      "name_id_format": "Example name",
      "jit_provisioning": true,
      "metadata": {
        "trust_upstream_mfa": true,
        "require_phishing_resistant_mfa": true,
        "mfa_authn_contexts": [
          "string"
        ],
        "requested_authn_contexts": [
          "string"
        ]
      },
      "service_provider": {
        "entity_id": "https://example.com/resource",
        "acs_url": "https://example.com/resource",
        "metadata_url": "https://example.com/resource"
      },
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/saml_connections Create a SAML connection

Creates a SAML connection for one customer whose user management is active. Only the name and customer_id are required; give the identity provider the service_provider values in the response, then set the identity provider's entity ID, SSO URL and signing certificate with PATCH or the metadata import. Users can sign in once all three are set (configured is true). Requires the Team plan or higher with the oidc_sso entitlement (403 PLAN_ENTITLEMENT_REQUIRED) and counts toward the same oidc_connections quota as OIDC connections (409 PLAN_QUOTA_EXCEEDED). Only a live API key can write (403 ENVIRONMENT_MISMATCH). Idempotency-Key is required.

Authentication
managementApiKey
Required scope
sso:write
Operation ID
mgmt_v1_saml_connections_create

Parameters

Idempotency-Key Location: Header Required
string Minimum length: 16 Maximum length: 255

Example Value

"stringxxxxxxxxxx"

Request body

Required
application/json

Example Value

{
  "name": "Example name",
  "customer_id": "01K5QWERTY1234567890ABCDEFG",
  "idp_entity_id": "01K5QWERTY1234567890ABCDEFG",
  "idp_sso_url": "https://example.com/resource",
  "idp_metadata_url": "https://example.com/resource",
  "idp_certificates": [
    "string"
  ],
  "name_id_format": "email_address",
  "jit_provisioning": true,
  "metadata": {
    "trust_upstream_mfa": true,
    "require_phishing_resistant_mfa": true,
    "mfa_authn_contexts": [
      "string"
    ],
    "requested_authn_contexts": [
      "string"
    ]
  }
}

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

Idempotency, version, machine, concurrency, or pending product signing-key conflict

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
201

Successful SamlConnection operation

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "configured": true,
    "idp_entity_id": "01K5QWERTY1234567890ABCDEFG",
    "idp_sso_url": "https://example.com/resource",
    "idp_metadata_url": "https://example.com/resource",
    "idp_metadata_fetched_at": "2026-09-21T00:00:00Z",
    "idp_certificates": [
      "string"
    ],
    "idp_certificate_details": [
      {
        "sha256_fingerprint": "string",
        "subject_common_name": "Example name",
        "not_before": "2026-09-21T00:00:00Z",
        "not_after": "2026-09-21T00:00:00Z",
        "expired": true
      }
    ],
    "name_id_format": "Example name",
    "jit_provisioning": true,
    "metadata": {
      "trust_upstream_mfa": true,
      "require_phishing_resistant_mfa": true,
      "mfa_authn_contexts": [
        "string"
      ],
      "requested_authn_contexts": [
        "string"
      ]
    },
    "service_provider": {
      "entity_id": "https://example.com/resource",
      "acs_url": "https://example.com/resource",
      "metadata_url": "https://example.com/resource"
    },
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/saml_connections/{id} Retrieve a SAML connection
Authentication
managementApiKey
Required scope
sso:read
Operation ID
mgmt_v1_saml_connections_show

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

Successful SamlConnection operation

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "configured": true,
    "idp_entity_id": "01K5QWERTY1234567890ABCDEFG",
    "idp_sso_url": "https://example.com/resource",
    "idp_metadata_url": "https://example.com/resource",
    "idp_metadata_fetched_at": "2026-09-21T00:00:00Z",
    "idp_certificates": [
      "string"
    ],
    "idp_certificate_details": [
      {
        "sha256_fingerprint": "string",
        "subject_common_name": "Example name",
        "not_before": "2026-09-21T00:00:00Z",
        "not_after": "2026-09-21T00:00:00Z",
        "expired": true
      }
    ],
    "name_id_format": "Example name",
    "jit_provisioning": true,
    "metadata": {
      "trust_upstream_mfa": true,
      "require_phishing_resistant_mfa": true,
      "mfa_authn_contexts": [
        "string"
      ],
      "requested_authn_contexts": [
        "string"
      ]
    },
    "service_provider": {
      "entity_id": "https://example.com/resource",
      "acs_url": "https://example.com/resource",
      "metadata_url": "https://example.com/resource"
    },
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
PATCH /mgmt/v1/saml_connections/{id} Update a SAML connection

Changes only the supplied fields. idp_certificates and metadata replace the whole value. Changing the settings that decide who can sign in (idp_entity_id, idp_sso_url, idp_certificates, name_id_format and the metadata keys) emails every owner of the workspace and records the changed fields in the audit log. The identity provider's entity ID cannot change while the connection has users or a SCIM setup; create a new connection to move to another identity provider. status active resumes a stopped connection within the plan quota. Changes need the Team plan or higher with the oidc_sso entitlement; setting status to disabled works on any plan. Only a live API key can write (403 ENVIRONMENT_MISMATCH).

Authentication
managementApiKey
Required scope
sso:write
Operation ID
mgmt_v1_saml_connections_update

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Request body

Required
application/json

Example Value

{
  "name": "Example name",
  "status": "active",
  "idp_entity_id": "01K5QWERTY1234567890ABCDEFG",
  "idp_sso_url": "https://example.com/resource",
  "idp_metadata_url": "https://example.com/resource",
  "idp_certificates": [
    "string"
  ],
  "name_id_format": "email_address",
  "jit_provisioning": true,
  "metadata": {
    "trust_upstream_mfa": true,
    "require_phishing_resistant_mfa": true,
    "mfa_authn_contexts": [
      "string"
    ],
    "requested_authn_contexts": [
      "string"
    ]
  }
}

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

Idempotency, version, machine, concurrency, or pending product signing-key conflict

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

Successful SamlConnection operation

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "configured": true,
    "idp_entity_id": "01K5QWERTY1234567890ABCDEFG",
    "idp_sso_url": "https://example.com/resource",
    "idp_metadata_url": "https://example.com/resource",
    "idp_metadata_fetched_at": "2026-09-21T00:00:00Z",
    "idp_certificates": [
      "string"
    ],
    "idp_certificate_details": [
      {
        "sha256_fingerprint": "string",
        "subject_common_name": "Example name",
        "not_before": "2026-09-21T00:00:00Z",
        "not_after": "2026-09-21T00:00:00Z",
        "expired": true
      }
    ],
    "name_id_format": "Example name",
    "jit_provisioning": true,
    "metadata": {
      "trust_upstream_mfa": true,
      "require_phishing_resistant_mfa": true,
      "mfa_authn_contexts": [
        "string"
      ],
      "requested_authn_contexts": [
        "string"
      ]
    },
    "service_provider": {
      "entity_id": "https://example.com/resource",
      "acs_url": "https://example.com/resource",
      "metadata_url": "https://example.com/resource"
    },
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /mgmt/v1/saml_connections/{id} Delete a SAML connection

Stops the connection instead of deleting it; nobody can sign in with it until it is resumed. Works on any plan. Only a live API key can write (403 ENVIRONMENT_MISMATCH).

Authentication
managementApiKey
Required scope
sso:write
Operation ID
mgmt_v1_saml_connections_destroy

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
204

Operation completed with no response body

402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/saml_connections/{saml_connection_id}/metadata-import Import identity provider metadata into a SAML connection

Reads the entity ID, SSO URL and signing certificates from the identity provider's metadata (a URL or XML) and saves them on the SAML connection. This changes the sign-in trust settings, so every owner of the workspace is emailed.

Reads the identity provider's metadata, from metadata_url or from metadata_xml (send exactly one), and saves its entity ID, HTTP-Redirect SSO URL and signing certificates on the connection. The name ID format is taken from the metadata only when the connection has none. The URL is fetched over HTTPS on port 443 from public addresses only and is rate limited like OIDC discovery (429 RATE_LIMITED); metadata with a DOCTYPE or entity declaration is refused. Unreadable metadata returns 422 DIRECTORY_VALIDATION_FAILED with details.errors.metadata. Saving emails every owner like other trust changes. Not idempotent. Only a live API key can write (403 ENVIRONMENT_MISMATCH).

Authentication
managementApiKey
Required scope
sso:write
Operation ID
mgmt_v1_saml_metadata_imports_create

Parameters

saml_connection_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Request body

Required
application/json

Example Value

{
  "metadata_url": "https://example.com/resource",
  "metadata_xml": "string"
}

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

Successful SamlConnection operation

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "configured": true,
    "idp_entity_id": "01K5QWERTY1234567890ABCDEFG",
    "idp_sso_url": "https://example.com/resource",
    "idp_metadata_url": "https://example.com/resource",
    "idp_metadata_fetched_at": "2026-09-21T00:00:00Z",
    "idp_certificates": [
      "string"
    ],
    "idp_certificate_details": [
      {
        "sha256_fingerprint": "string",
        "subject_common_name": "Example name",
        "not_before": "2026-09-21T00:00:00Z",
        "not_after": "2026-09-21T00:00:00Z",
        "expired": true
      }
    ],
    "name_id_format": "Example name",
    "jit_provisioning": true,
    "metadata": {
      "trust_upstream_mfa": true,
      "require_phishing_resistant_mfa": true,
      "mfa_authn_contexts": [
        "string"
      ],
      "requested_authn_contexts": [
        "string"
      ]
    },
    "service_provider": {
      "entity_id": "https://example.com/resource",
      "acs_url": "https://example.com/resource",
      "metadata_url": "https://example.com/resource"
    },
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Management API

SCIM setups

7 operations

Manage the SCIM setups and tokens that let a customer's identity provider sync its users and groups.

GET /mgmt/v1/scim_connections List SCIM setups

Lists the SCIM setups that let a customer's identity provider provision its users and groups at /scim/v2. Tokens are listed by prefix and state only. Filter with status (active or disabled) and customer_id. Readable with a test key.

Authentication
managementApiKey
Required scope
sso:read
Operation ID
mgmt_v1_scim_connections_index

Parameters

status Location: Query Optional
string

Allowed values: active, disabled

Example Value

"active"
customer_id Location: Query Optional
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
limit Location: Query Optional
integer Minimum: 1 Maximum: 200

Example Value

50
cursor Location: Query Optional
string

Example Value

"string"

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

Successful ScimConnection operation

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
      "saml_connection_id": "saml_connection_id_aaaaaaaaaaaaaaaaaaaa",
      "status": "active",
      "user_issuer": "string",
      "base_url": "https://example.com/resource",
      "last_request_at": "2026-09-21T00:00:00Z",
      "tokens": [
        {
          "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
          "token_prefix": "example-token",
          "status": "active",
          "usable": true,
          "expires_at": "2026-09-21T00:00:00Z",
          "revoked_at": "2026-09-21T00:00:00Z",
          "last_used_at": "2026-09-21T00:00:00Z",
          "created_at": "2026-09-21T00:00:00Z"
        }
      ],
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/scim_connections Create a SCIM setup

Creates a SCIM setup for one customer whose user management is active, without a token; create the token with POST /mgmt/v1/scim_connections/{scim_connection_id}/tokens. With saml_connection_id (a configured SAML connection of the same customer, one SCIM setup each), synced users take that connection's issuer and sign in with it when the SAML NameID equals the SCIM userName; without it, synced users are local-ID users who verify their email address in the product app. This choice cannot change later. Requires the Team plan or higher with the oidc_sso and organization_management entitlements (403 PLAN_ENTITLEMENT_REQUIRED). Only a live API key can write (403 ENVIRONMENT_MISMATCH). Idempotency-Key is required.

Authentication
managementApiKey
Required scope
sso:write
Operation ID
mgmt_v1_scim_connections_create

Parameters

Idempotency-Key Location: Header Required
string Minimum length: 16 Maximum length: 255

Example Value

"stringxxxxxxxxxx"

Request body

Required
application/json

Example Value

{
  "customer_id": "01K5QWERTY1234567890ABCDEFG",
  "saml_connection_id": "01K5QWERTY1234567890ABCDEFG",
  "name": "Example name"
}

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

Idempotency, version, machine, concurrency, or pending product signing-key conflict

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
201

Successful ScimConnection operation

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
    "saml_connection_id": "saml_connection_id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "user_issuer": "string",
    "base_url": "https://example.com/resource",
    "last_request_at": "2026-09-21T00:00:00Z",
    "tokens": [
      {
        "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
        "token_prefix": "example-token",
        "status": "active",
        "usable": true,
        "expires_at": "2026-09-21T00:00:00Z",
        "revoked_at": "2026-09-21T00:00:00Z",
        "last_used_at": "2026-09-21T00:00:00Z",
        "created_at": "2026-09-21T00:00:00Z"
      }
    ],
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/scim_connections/{id} Retrieve a SCIM setup
Authentication
managementApiKey
Required scope
sso:read
Operation ID
mgmt_v1_scim_connections_show

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

Successful ScimConnection operation

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
    "saml_connection_id": "saml_connection_id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "user_issuer": "string",
    "base_url": "https://example.com/resource",
    "last_request_at": "2026-09-21T00:00:00Z",
    "tokens": [
      {
        "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
        "token_prefix": "example-token",
        "status": "active",
        "usable": true,
        "expires_at": "2026-09-21T00:00:00Z",
        "revoked_at": "2026-09-21T00:00:00Z",
        "last_used_at": "2026-09-21T00:00:00Z",
        "created_at": "2026-09-21T00:00:00Z"
      }
    ],
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
PATCH /mgmt/v1/scim_connections/{id} Update a SCIM setup

Changes the name, or the status (disabled stops accepting SCIM requests, which then return 403; active resumes them). The customer, the SAML connection and the users' issuer never change. Resuming needs the Team plan or higher with the oidc_sso and organization_management entitlements and the customer's user management to be active. Only a live API key can write (403 ENVIRONMENT_MISMATCH).

Authentication
managementApiKey
Required scope
sso:write
Operation ID
mgmt_v1_scim_connections_update

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Request body

Required
application/json

Example Value

{
  "name": "Example name",
  "status": "active"
}

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

Successful ScimConnection operation

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
    "saml_connection_id": "saml_connection_id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "user_issuer": "string",
    "base_url": "https://example.com/resource",
    "last_request_at": "2026-09-21T00:00:00Z",
    "tokens": [
      {
        "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
        "token_prefix": "example-token",
        "status": "active",
        "usable": true,
        "expires_at": "2026-09-21T00:00:00Z",
        "revoked_at": "2026-09-21T00:00:00Z",
        "last_used_at": "2026-09-21T00:00:00Z",
        "created_at": "2026-09-21T00:00:00Z"
      }
    ],
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /mgmt/v1/scim_connections/{id} Delete a SCIM setup

Stops the SCIM setup instead of deleting it. Synced users stay as they are. Works on any plan. Only a live API key can write (403 ENVIRONMENT_MISMATCH).

Authentication
managementApiKey
Required scope
sso:write
Operation ID
mgmt_v1_scim_connections_destroy

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
204

Operation completed with no response body

402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/scim_connections/{scim_connection_id}/tokens Create a SCIM token

Creates the SCIM token to give the identity provider. The token value is returned only in this response, and Usakey keeps only a hash. Earlier tokens stop working 24 hours later.

Creates a SCIM token for the identity provider's Authorization Bearer header and returns it in token, only in this response (Cache-Control no-store). Usakey keeps only an HMAC-SHA256 digest and the prefix. Tokens that were usable stop working 24 hours later. At most two tokens are usable, so creating a third one revokes one at once, choosing a token that has never been used (the newest first) or else the oldest. Not idempotent and the response is never stored for replay; when the result is unknown, read the setup's tokens with GET before trying again. Requires the Team plan or higher with the oidc_sso and organization_management entitlements (403 PLAN_ENTITLEMENT_REQUIRED). Only a live API key can write (403 ENVIRONMENT_MISMATCH).

Authentication
managementApiKey
Required scope
sso:write
Operation ID
mgmt_v1_scim_tokens_create

Parameters

scim_connection_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
201

SCIM token created; the plain token is returned only here

application/json

Example Value

{
  "data": {
    "token": "example-token",
    "scim_connection_id": "scim_connection_id_aaaaaaaaaaaaaaaaaaaa",
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "token_prefix": "example-token",
    "status": "active",
    "usable": true,
    "expires_at": "2026-09-21T00:00:00Z",
    "revoked_at": "2026-09-21T00:00:00Z",
    "last_used_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z"
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /mgmt/v1/scim_connections/{scim_connection_id}/tokens/{id} Revoke a SCIM token

Revokes the SCIM token at once. Requests with it return 401 from then on.

Revokes the SCIM token at once; requests with it return 401 from then on. Works on any plan. Only a live API key can write (403 ENVIRONMENT_MISMATCH).

Authentication
managementApiKey
Required scope
sso:write
Operation ID
mgmt_v1_scim_tokens_destroy

Parameters

scim_connection_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
204

Operation completed with no response body

402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Management API

License assignments

3 operations

Assign and revoke user-level product access.

GET /mgmt/v1/licenses/{license_id}/assignments List license assignments
Authentication
managementApiKey
Required scope
licenses:read
Operation ID
mgmt_v1_license_assignments_index

Parameters

license_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

Successful LicenseAssignment operation

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
      "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa",
      "source_group_id": "source_group_id_aaaaaaaaaaaaaaaaaaaa",
      "tenant_plan_id": "tenant_plan_id_aaaaaaaaaaaaaaaaaaaa",
      "status": "active",
      "license_units": 1,
      "assigned_at": "2026-09-21T00:00:00Z",
      "expires_at": "2026-09-21T00:00:00Z",
      "revoked_at": "2026-09-21T00:00:00Z",
      "entitlement_overrides": {},
      "metadata": {},
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/licenses/{license_id}/assignments Create a license assignment
Authentication
managementApiKey
Required scope
licenses:write
Operation ID
mgmt_v1_license_assignments_create

Parameters

license_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Request body

Required
application/json

Example Value

{
  "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa",
  "source_group_id": "source_group_id_aaaaaaaaaaaaaaaaaaaa",
  "expires_at": "2026-09-21T00:00:00Z",
  "entitlement_overrides": {},
  "metadata": {}
}

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
201

Successful LicenseAssignment operation

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
    "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa",
    "source_group_id": "source_group_id_aaaaaaaaaaaaaaaaaaaa",
    "tenant_plan_id": "tenant_plan_id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "license_units": 1,
    "assigned_at": "2026-09-21T00:00:00Z",
    "expires_at": "2026-09-21T00:00:00Z",
    "revoked_at": "2026-09-21T00:00:00Z",
    "entitlement_overrides": {},
    "metadata": {},
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /mgmt/v1/licenses/{license_id}/assignments/{id} Delete a license assignment
Authentication
managementApiKey
Required scope
licenses:write
Operation ID
mgmt_v1_license_assignments_destroy

Parameters

license_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
204

Operation completed with no response body

402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Management API

Webhook secret rotation

3 operations

Rotate webhook signing secrets safely.

POST /mgmt/v1/webhooks/{webhook_id}/secret-rotation/promote Promote the next webhook secret

Promote the prepared signing secret to the active webhook signing secret.

Webhook endpoints are shared by the live and test environments, and every active endpoint receives the events of both. Once the workspace has a live product, a test API key cannot promote a scheduled signing-secret rotation (403 ENVIRONMENT_MISMATCH).

Authentication
managementApiKey
Required scope
webhooks:write
Operation ID
mgmt_v1_webhook_secret_rotations_promote

Parameters

webhook_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

Successful Webhook operation

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "url": "https://example.com/resource",
    "events": [
      "string"
    ],
    "status": "active",
    "secret_rotation": {
      "scheduled": true,
      "activates_at": "2026-09-21T00:00:00Z"
    },
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/webhooks/{webhook_id}/secret-rotation Start webhook secret rotation

Issue the next webhook signing secret while keeping the current secret valid.

Webhook endpoints are shared by the live and test environments, and every active endpoint receives the events of both. Once the workspace has a live product, a test API key cannot schedule a signing-secret rotation (403 ENVIRONMENT_MISMATCH).

Authentication
managementApiKey
Required scope
webhooks:write
Operation ID
mgmt_v1_webhook_secret_rotations_create

Parameters

webhook_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Request body

Required
application/json

Example Value

{
  "activates_at": "2026-09-21T00:00:00Z"
}

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
201

Successful Webhook operation

application/json

Example Value

{
  "data": {}
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /mgmt/v1/webhooks/{webhook_id}/secret-rotation Cancel webhook secret rotation

Discard the prepared signing secret and cancel the rotation.

Webhook endpoints are shared by the live and test environments, and every active endpoint receives the events of both. Once the workspace has a live product, a test API key cannot cancel a scheduled signing-secret rotation (403 ENVIRONMENT_MISMATCH).

Authentication
managementApiKey
Required scope
webhooks:write
Operation ID
mgmt_v1_webhook_secret_rotations_destroy

Parameters

webhook_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
204

Operation completed with no response body

402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Management API

Stripe price mappings

5 operations

Manage which license a purchase of each Stripe Price issues.

GET /mgmt/v1/stripe-integration/offerings List price and license mappings

Lists the price and license mappings of the workspace's own Stripe integration, stopped ones included: which license (product, policy and duration) a purchase of each Stripe Price issues. The integration belongs to one environment (its mode); a key of the other environment gets 403 ENVIRONMENT_MISMATCH, and a workspace without an integration gets 404 NOT_FOUND. The Stripe integration is available from Evaluation. Evaluation supports test environments only. New licenses issued on Evaluation are valid for at most one hour from issuance, including after renewal. Quantity and policy limits still apply. A license issued on a paid plan keeps its existing expiry after a downgrade to Evaluation, but cannot be extended beyond that expiry. A contract without the entitlement returns 403 PLAN_ENTITLEMENT_REQUIRED with details.entitlement stripe_integration.

Authentication
managementApiKey
Required scope
products:read
Operation ID
mgmt_v1_stripe_offerings_index

Parameters

limit Location: Query Optional
integer Minimum: 1 Maximum: 200

Example Value

50
cursor Location: Query Optional
string

Example Value

"string"

Responses

200

Price and license mappings

application/json

Example Value

{
  "data": [
    {
      "payment_grace_days": 0,
      "license_email_enabled": true,
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "stripe_price_id": "01K5QWERTY1234567890ABCDEFG",
      "product_id": "prod_0123456789abcdef0123",
      "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
      "license_duration_days": 1,
      "status": "active",
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/stripe-integration/offerings Create a price and license mapping

Maps a Stripe Price to the license a purchase issues, with the same rules as the Console. policy_id must be a policy in use for a product in the integration's environment; unmanaged offline perpetual policies cannot be chosen. Perpetual policies take no license_duration_days and trial policies need it. A subscription policy without license_duration_days takes the end of the Stripe subscription period as the expiry; send subscription_price_confirmed true only after confirming that the Price is recurring, because a one-time Price then issues no license. A Price belongs to one mapping only; resume a stopped mapping with PATCH status active. The key also needs licenses:write. Saving does not check that the Price exists in Stripe.

Authentication
managementApiKey
Required scope
products:write
Operation ID
mgmt_v1_stripe_offerings_create

Parameters

Idempotency-Key Location: Header Required
string Minimum length: 16 Maximum length: 255

Example Value

"stringxxxxxxxxxx"

Request body

Required
application/json

Example Value

{
  "payment_grace_days": 0,
  "license_email_enabled": true,
  "name": "Example name",
  "stripe_price_id": "price_1AbCdEfGhIjKlMnO",
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "license_duration_days": 1,
  "subscription_price_confirmed": true
}

Responses

201

Created price and license mapping

application/json

Example Value

{
  "data": {
    "payment_grace_days": 0,
    "license_email_enabled": true,
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "stripe_price_id": "01K5QWERTY1234567890ABCDEFG",
    "product_id": "prod_0123456789abcdef0123",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "license_duration_days": 1,
    "status": "active",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

Idempotency, version, machine, concurrency, or pending product signing-key conflict

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/stripe-integration/offerings/{id} Retrieve a price and license mapping

Returns one price and license mapping.

Authentication
managementApiKey
Required scope
products:read
Operation ID
mgmt_v1_stripe_offerings_show

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

200

Price and license mapping

application/json

Example Value

{
  "data": {
    "payment_grace_days": 0,
    "license_email_enabled": true,
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "stripe_price_id": "01K5QWERTY1234567890ABCDEFG",
    "product_id": "prod_0123456789abcdef0123",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "license_duration_days": 1,
    "status": "active",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
PATCH /mgmt/v1/stripe-integration/offerings/{id} Update a price and license mapping

Changes the fields sent. The change applies to later purchases; issued licenses do not change. Set status to archived to stop the mapping and back to active to resume it; an active mapping needs a policy in use, so choose policy_id again when its policy was retired. Like the Console, every save that leaves an active subscription mapping without license_duration_days needs subscription_price_confirmed true. The key also needs licenses:write.

Authentication
managementApiKey
Required scope
products:write
Operation ID
mgmt_v1_stripe_offerings_update

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Request body

Required
application/json

Example Value

{
  "payment_grace_days": 0,
  "license_email_enabled": true,
  "name": "Example name",
  "stripe_price_id": "price_1AbCdEfGhIjKlMnO",
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "license_duration_days": 1,
  "status": "active",
  "subscription_price_confirmed": true
}

Responses

200

Updated price and license mapping

application/json

Example Value

{
  "data": {
    "payment_grace_days": 0,
    "license_email_enabled": true,
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "stripe_price_id": "01K5QWERTY1234567890ABCDEFG",
    "product_id": "prod_0123456789abcdef0123",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "license_duration_days": 1,
    "status": "active",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /mgmt/v1/stripe-integration/offerings/{id} Stop a price and license mapping

Stops the mapping (status archived). Later purchases of the Price issue no license. Issued licenses and the renewals, cancellations and refunds of their subscriptions are still applied. Setting status back to active resumes it.

Stops the mapping (status archived): later purchases of the Price issue no license. Issued licenses and the renewals, cancellations and refunds of their subscriptions are still applied. The key also needs licenses:write.

Authentication
managementApiKey
Required scope
products:write
Operation ID
mgmt_v1_stripe_offerings_destroy

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

204

Stopped

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Management API

Stripe integration notifications

1 operations

Check the notifications the Stripe integration received and their results.

GET /mgmt/v1/stripe-integration/events List received notifications

Lists the Stripe notifications the integration received, oldest first. Only notifications with a valid signature are recorded, and their bodies are not kept. Settled records are kept for 90 days (one day for event types Usakey does not handle); records waiting for reconciliation (pending) stay. Use processed_after for recent ones and result to filter. Reconciling quarantined notifications is done in the Console.

Authentication
managementApiKey
Required scope
products:read
Operation ID
mgmt_v1_stripe_integration_events_index

Parameters

limit Location: Query Optional
integer Minimum: 1 Maximum: 200

Example Value

50
cursor Location: Query Optional
string

Example Value

"string"
result Location: Query Optional
value

Allowed values: applied, ignored, failed, pending

Only notifications with this result.

Example Value

"applied"
processed_after Location: Query Optional
string date-time

Only notifications processed at or after this time.

Example Value

"2026-09-21T00:00:00Z"

Responses

200

Received Stripe notifications

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "stripe_event_id": "01K5QWERTY1234567890ABCDEFG",
      "event_type": "string",
      "result": "string",
      "detail": "string",
      "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
      "processed_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Management API

Sales integrations

7 operations

Register, change and stop integrations with Shopify, Square, KOMOJU, Paddle, Lemon Squeezy and the generic receiver.

GET /mgmt/v1/sales-integrations List sales integrations

Lists the sales service integrations of the API key's environment (test or live): Shopify, Square, KOMOJU, Paddle, Lemon Squeezy and the generic signed receiver. Signing secrets are never returned. Sales integrations are available from Evaluation. Evaluation supports test environments only. New licenses issued on Evaluation are valid for at most one hour from issuance, including after renewal. Quantity and policy limits still apply. A license issued on a paid plan keeps its existing expiry after a downgrade to Evaluation, but cannot be extended beyond that expiry. A contract without the entitlement returns 403 PLAN_ENTITLEMENT_REQUIRED with details.entitlement sales_integrations.

Authentication
managementApiKey
Required scope
products:read
Operation ID
mgmt_v1_sales_integrations_index

Parameters

limit Location: Query Optional
integer Minimum: 1 Maximum: 200

Example Value

50
cursor Location: Query Optional
string

Example Value

"string"

Responses

200

Sales service integrations

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "provider": "string",
      "mode": "test",
      "status": "active",
      "display_name": "Example name",
      "signing_secret_configured": true,
      "accepting_notifications": true,
      "webhook_url": "https://example.com/resource",
      "license_claim_url": "https://example.com/resource",
      "events_to_subscribe": [
        "string"
      ],
      "last_event": {
        "type": "string",
        "result": "string",
        "at": "2026-09-21T00:00:00Z"
      },
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/sales-integrations Create a sales integration

Registers a sales service integration in the API key's environment. The key also needs licenses:write, because an integration issues licenses from purchase notifications. For the generic receiver Usakey creates the signing secret and returns it only in this response and in a retry with the same Idempotency-Key. For a sales service, send the signing secret the service shows, or leave it out and set it later with PATCH signing_secret or in the Console; until then the integration accepts no notifications. Register webhook_url in the sales service and subscribe to events_to_subscribe.

Authentication
managementApiKey
Required scope
products:write
Operation ID
mgmt_v1_sales_integrations_create

Parameters

Idempotency-Key Location: Header Required
string Minimum length: 16 Maximum length: 255

Example Value

"stringxxxxxxxxxx"

Request body

Required
application/json

Example Value

{
  "provider": "generic",
  "display_name": "Example name",
  "mode": "test",
  "signing_secret": "example-token"
}

Responses

201

Registered sales service integration

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "provider": "string",
    "mode": "test",
    "status": "active",
    "display_name": "Example name",
    "signing_secret_configured": true,
    "accepting_notifications": true,
    "webhook_url": "https://example.com/resource",
    "license_claim_url": "https://example.com/resource",
    "events_to_subscribe": [
      "string"
    ],
    "last_event": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

Idempotency, version, machine, concurrency, or pending product signing-key conflict

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/sales-integrations/{id} Retrieve a sales integration

Returns one sales service integration of the API key's environment, with the URLs to register and the last notification it received. Signing secrets are never returned; signing_secret_configured tells whether one is set.

Authentication
managementApiKey
Required scope
products:read
Operation ID
mgmt_v1_sales_integrations_show

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

200

Sales service integration

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "provider": "string",
    "mode": "test",
    "status": "active",
    "display_name": "Example name",
    "signing_secret_configured": true,
    "accepting_notifications": true,
    "webhook_url": "https://example.com/resource",
    "license_claim_url": "https://example.com/resource",
    "events_to_subscribe": [
      "string"
    ],
    "last_event": {
      "type": "string",
      "result": "string",
      "at": "2026-09-21T00:00:00Z"
    },
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
PATCH /mgmt/v1/sales-integrations/{id} Update a sales integration

Changes the display name, stops or resumes receiving (status), or sets the signing secret a sales service shows. The key also needs licenses:write. The provider and the environment cannot change. A saved secret is never cleared, and the generic receiver's secret is changed only with the secret rotation. Stopping does not cancel subscriptions in the sales service; buyers keep being charged until they are canceled there.

Authentication
managementApiKey
Required scope
products:write
Operation ID
mgmt_v1_sales_integrations_update

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Request body

Required
application/json

Example Value

{
  "display_name": "Example name",
  "status": "active",
  "signing_secret": "example-token"
}

Responses

200

Updated sales service integration

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "provider": "string",
    "mode": "test",
    "status": "active",
    "display_name": "Example name",
    "signing_secret_configured": true,
    "accepting_notifications": true,
    "webhook_url": "https://example.com/resource",
    "license_claim_url": "https://example.com/resource",
    "events_to_subscribe": [
      "string"
    ],
    "last_event": {
      "type": "string",
      "result": "string",
      "at": "2026-09-21T00:00:00Z"
    },
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /mgmt/v1/sales-integrations/{id} Stop a sales integration

Stops the integration. Notifications and license key pickups are refused while it is stopped. Issued licenses, the history and the item mappings are kept, and setting status to active resumes it.

Stops the integration. Notifications and license key pickups are refused until it is resumed with PATCH status active; issued licenses stay as they are, and the history and item mappings are kept. The key also needs licenses:write. Stopping does not cancel subscriptions in the sales service; buyers keep being charged until they are canceled there.

Authentication
managementApiKey
Required scope
products:write
Operation ID
mgmt_v1_sales_integrations_destroy

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

204

Stopped

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/sales-integrations/{id}/url-rotation Create new URLs for a sales integration

Creates new URLs for notifications and license key pickups. The old URLs stop working, so update the sales service and the product app.

Creates new webhook_url and license_claim_url values. Notifications and pickups sent to the old URLs are refused from now on, so update the sales service and the product app. The key also needs licenses:write.

Authentication
managementApiKey
Required scope
products:write
Operation ID
mgmt_v1_sales_integrations_rotate_urls

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

200

Sales service integration with its new URLs

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "provider": "string",
    "mode": "test",
    "status": "active",
    "display_name": "Example name",
    "signing_secret_configured": true,
    "accepting_notifications": true,
    "webhook_url": "https://example.com/resource",
    "license_claim_url": "https://example.com/resource",
    "events_to_subscribe": [
      "string"
    ],
    "last_event": {
      "type": "string",
      "result": "string",
      "at": "2026-09-21T00:00:00Z"
    },
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/sales-integrations/{id}/secret-rotation Create a new signing secret for the generic receiver

Creates a new signing secret for the generic receiver and returns it only in this response. Requests signed with the old secret are refused from now on.

Creates a new signing secret for the generic receiver and returns it only in this response. Requests signed with the old secret are refused from now on. Other providers return 422 VALIDATION_FAILED: their secrets are created in the sales service and set with PATCH. The key also needs licenses:write.

Authentication
managementApiKey
Required scope
products:write
Operation ID
mgmt_v1_sales_integrations_rotate_secret

Parameters

id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

200

Sales service integration with its new signing secret

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "provider": "string",
    "mode": "test",
    "status": "active",
    "display_name": "Example name",
    "signing_secret_configured": true,
    "accepting_notifications": true,
    "webhook_url": "https://example.com/resource",
    "license_claim_url": "https://example.com/resource",
    "events_to_subscribe": [
      "string"
    ],
    "last_event": {}
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Management API

Sales item mappings

5 operations

Manage which license a purchase of each sales service item issues.

GET /mgmt/v1/sales-integrations/{sales_integration_id}/offerings List item mappings

Lists the item mappings of the integration: which license (product, policy and duration) a purchase of each sales service item issues.

Authentication
managementApiKey
Required scope
products:read
Operation ID
mgmt_v1_sales_offerings_index

Parameters

sales_integration_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
limit Location: Query Optional
integer Minimum: 1 Maximum: 200

Example Value

50
cursor Location: Query Optional
string

Example Value

"string"

Responses

200

Item mappings

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "sales_integration_id": "sales_integration_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "external_item_id": "01K5QWERTY1234567890ABCDEFG",
      "product_id": "prod_0123456789abcdef0123",
      "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
      "license_duration_days": 1,
      "status": "active",
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/sales-integrations/{sales_integration_id}/offerings Create an item mapping

Maps a sales service item to the license to issue. policy_id must be a policy in use for a product in the integration's environment; trial policies and unmanaged offline perpetual policies cannot be chosen. A subscription policy needs license_duration_days for Shopify and KOMOJU, which do not report subscriptions. The key also needs licenses:write.

Authentication
managementApiKey
Required scope
products:write
Operation ID
mgmt_v1_sales_offerings_create

Parameters

sales_integration_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
Idempotency-Key Location: Header Required
string Minimum length: 16 Maximum length: 255

Example Value

"stringxxxxxxxxxx"

Request body

Required
application/json

Example Value

{
  "name": "Example name",
  "external_item_id": "01K5QWERTY1234567890ABCDEFG",
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "license_duration_days": 1
}

Responses

201

Created item mapping

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "sales_integration_id": "sales_integration_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "external_item_id": "01K5QWERTY1234567890ABCDEFG",
    "product_id": "prod_0123456789abcdef0123",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "license_duration_days": 1,
    "status": "active",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

Idempotency, version, machine, concurrency, or pending product signing-key conflict

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/sales-integrations/{sales_integration_id}/offerings/{id} Retrieve an item mapping

Returns one item mapping.

Authentication
managementApiKey
Required scope
products:read
Operation ID
mgmt_v1_sales_offerings_show

Parameters

sales_integration_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

200

Item mapping

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "sales_integration_id": "sales_integration_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "external_item_id": "01K5QWERTY1234567890ABCDEFG",
    "product_id": "prod_0123456789abcdef0123",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "license_duration_days": 1,
    "status": "active",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
PATCH /mgmt/v1/sales-integrations/{sales_integration_id}/offerings/{id} Update an item mapping

Changes an item mapping. The change applies to later purchases; issued licenses do not change. The key also needs licenses:write.

Authentication
managementApiKey
Required scope
products:write
Operation ID
mgmt_v1_sales_offerings_update

Parameters

sales_integration_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Request body

Required
application/json

Example Value

{
  "name": "Example name",
  "external_item_id": "01K5QWERTY1234567890ABCDEFG",
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "license_duration_days": 1,
  "status": "active"
}

Responses

200

Updated item mapping

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "sales_integration_id": "sales_integration_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "external_item_id": "01K5QWERTY1234567890ABCDEFG",
    "product_id": "prod_0123456789abcdef0123",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "license_duration_days": 1,
    "status": "active",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

State transition or validation failed

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /mgmt/v1/sales-integrations/{sales_integration_id}/offerings/{id} Stop an item mapping

Stops the mapping. Later purchases issue no license. Issued licenses and the updates, cancellations and refunds of their purchases are still applied.

Stops the item mapping (status archived): later purchases of the item issue no license. Issued licenses and the updates, cancellations and refunds of their purchases are still applied. The key also needs licenses:write.

Authentication
managementApiKey
Required scope
products:write
Operation ID
mgmt_v1_sales_offerings_destroy

Parameters

sales_integration_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

Responses

204

Stopped

429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Management API

Sales integration notifications

1 operations

Check the notifications an integration received and their results.

GET /mgmt/v1/sales-integrations/{sales_integration_id}/events List received notifications

Lists the notifications the integration received, oldest first. Only notifications with a valid signature are recorded, and their bodies are not kept. Records are kept for 90 days (one day for notifications that changed nothing and belong to no purchase). Use processed_after for recent ones and result to filter.

Authentication
managementApiKey
Required scope
products:read
Operation ID
mgmt_v1_sales_integration_events_index

Parameters

sales_integration_id Location: Path Required
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
limit Location: Query Optional
integer Minimum: 1 Maximum: 200

Example Value

50
cursor Location: Query Optional
string

Example Value

"string"
result Location: Query Optional
value

Allowed values: applied, ignored, failed, deferred

Only notifications with this result.

Example Value

"applied"
processed_after Location: Query Optional
string date-time

Only notifications processed at or after this time.

Example Value

"2026-09-21T00:00:00Z"

Responses

200

Received notifications

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "event_type": "string",
      "result": "string",
      "detail": "string",
      "detail_codes": [
        "string"
      ],
      "purchase_reference": "string",
      "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
      "processed_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

Invalid credential or proof

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

License state or scope denied

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

Resource not found

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

Invalid request

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

Workspace trial or subscription has ended

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

A required API protection dependency is unavailable

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Sales receiver

Generic sales receiver

1 operations

Send purchase events from the seller's system or an automation service as signed JSON.

POST /integrations/sales/{endpoint_token}/webhook Send a purchase event to the generic receiver

Send one signed JSON request per purchase event (issue, plan change, extend, suspend, resume or revoke) from the seller's system or an automation service. Send it to the integration's webhook_url; the signature has the same form as Usakey's webhook notifications.

The generic receiver of a sales integration. The seller's own system or an automation service sends one signed JSON request per purchase event, and Usakey issues, extends, switches to another plan, suspends, resumes or revokes the license of that purchase. Use the integration's webhook_url. The signature is the hex HMAC-SHA256 of the timestamp, a period, the event ID, a period and the raw body, keyed with the integration's signing secret, sent as v1= followed by the hex value (the same form as Usakey's own webhook notifications). The same URL of a Shopify, Square, KOMOJU, Paddle or Lemon Squeezy integration receives that service's own notifications in the service's documented format, which this operation does not describe.

Authentication
None
Required scope
—
Operation ID
integrations_sales_webhooks_create

Parameters

endpoint_token Location: Path Required
string Maximum length: 64

Example Value

"https://example.com/resource"
X-Usakey-Event-Id Location: Header Required
string Pattern: ^[A-Za-z0-9._:-]{1,128}$

A unique ID of the event. Resend the same event with the same ID; each ID is processed once.

Example Value

"string"
X-Usakey-Timestamp Location: Header Required
string Pattern: ^[0-9]{1,12}$

The time of sending in Unix seconds. Requests more than 300 seconds before or after the current time are refused.

Example Value

"0"
X-Usakey-Signature Location: Header Required
string Maximum length: 1024

v1= followed by the hex signature. Several signatures may be separated by commas while a secret is being changed.

Example Value

"example-token"

Request body

Required
application/json

Example Value

{
  "action": "issue",
  "purchase_id": "01K5QWERTY1234567890ABCDEFG",
  "item": "string",
  "customer": {
    "id": "cus_0123456789abcdef01234567",
    "reference": "string",
    "email": "developer@example.com",
    "name": "Example name"
  },
  "expires_at": "2026-09-21T00:00:00Z",
  "occurred_at": "2026-09-21T00:00:00Z",
  "reason": "string",
  "claim_challenge": "usk_claim_v1_2kRE5qRU2tR-tBGlDwMEw2avJ7QM4ikPYD_PJ3bd9Og"
}

Responses

200

The event was recorded (applied, ignored or failed). A resend with the same event ID returns the same result.

application/json

Example Value

{
  "result": "string",
  "detail": "string",
  "detail_codes": [
    "string"
  ],
  "license": {
    "id": "id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "expires_at": "2026-09-21T00:00:00Z",
    "license_key": "string"
  }
}
401

The signature headers are missing, the signature does not match, or the timestamp is out of range. Nothing is recorded.

application/json

Example Value

{
  "error": {
    "code": "string",
    "message": "string"
  }
}
404

The URL is unknown, the integration is stopped, its URL was rotated, or it has no signing secret yet.

422

The body is not valid. Nothing is recorded, so fix it and send it again.

application/json

Example Value

{
  "error": {
    "code": "string",
    "message": "string"
  }
}
429

The applicable request window has been exceeded

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

The event was deferred (for example while the product signing key is being prepared or a plan limit is reached), or Usakey is briefly unavailable and answers without a body. Send it again later with the same event ID.

application/json

Example Value

{
  "result": "string",
  "detail": "string",
  "detail_codes": [
    "string"
  ],
  "license": {
    "id": "id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "expires_at": "2026-09-21T00:00:00Z",
    "license_key": "string"
  }
}

Shared schemas in OpenAPI

Schemas

Shared schemas referenced by requests and responses. Use Example Value to inspect the JSON shape, then Schema to review required fields, types, and constraints.

ResellerAllocation 13 fields

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "product_id": "prod_0123456789abcdef0123",
  "seat_limit": 1,
  "max_duration_days": 1,
  "status": "active",
  "issued_seats": 1,
  "remaining_seats": 1,
  "license_count": 1,
  "active_devices": 1,
  "created_at": "2026-09-21T00:00:00Z",
  "updated_at": "2026-09-21T00:00:00Z"
}
FieldRequiredType and descriptionExample Value
public_id Required "public_id_aaaaaaaaaaaaaaaaaaaa"
reseller_id Required "reseller_id_aaaaaaaaaaaaaaaaaaaa"
policy_id Required "policy_id_aaaaaaaaaaaaaaaaaaaa"
product_id Required "prod_0123456789abcdef0123"
seat_limit Required
integer | null

Total seats the reseller may issue. Null means no limit.

1
max_duration_days Required
integer | null

Longest term the reseller may set, in days from issuance. Null means no cap.

1
status Required
value

Allowed values: active, archived

"active"
issued_seats Required
integer

Seats on licenses that are neither revoked nor past their expiry.

1
remaining_seats Required
integer | null

Null when there is no limit.

1
license_count Required
integer
1
active_devices Required
integer
1
created_at Optional
string date-time
"2026-09-21T00:00:00Z"
updated_at Optional
string date-time
"2026-09-21T00:00:00Z"
ResellerAllocationInput 3 fields

Schema

object

Example Value

{
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "seat_limit": 0,
  "max_duration_days": 1
}
FieldRequiredType and descriptionExample Value
policy_id Required "policy_id_aaaaaaaaaaaaaaaaaaaa"
seat_limit Optional
integer | null Minimum: 0
0
max_duration_days Optional
integer | null Minimum: 1 Maximum: 3650
1
ResellerAllocationUpdateInput 2 fields

Schema

object

Example Value

{
  "seat_limit": 0,
  "max_duration_days": 1
}
FieldRequiredType and descriptionExample Value
seat_limit Optional
integer | null Minimum: 0
0
max_duration_days Optional
integer | null Minimum: 1 Maximum: 3650
1
ResellerAllocationResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "product_id": "prod_0123456789abcdef0123",
    "seat_limit": 1,
    "max_duration_days": 1,
    "status": "active",
    "issued_seats": 1,
    "remaining_seats": 1,
    "license_count": 1,
    "active_devices": 1,
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
FieldRequiredType and descriptionExample Value
data Required { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa", "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa", "product_id": "prod_0123456789abcdef0123", "seat_limit": 1, "max_duration_days": 1, "status": "active", "issued_seats": 1, "remaining_seats": 1, "license_count": 1, "active_devices": 1, "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" }
ResellerAllocationListResponse 1 fields

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
      "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
      "product_id": "prod_0123456789abcdef0123",
      "seat_limit": 1,
      "max_duration_days": 1,
      "status": "active",
      "issued_seats": 1,
      "remaining_seats": 1,
      "license_count": 1,
      "active_devices": 1,
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ]
}
FieldRequiredType and descriptionExample Value
data Required
array<ResellerAllocation>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa", "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa", "product_id": "prod_0123456789abcdef0123", "seat_limit": 1, "max_duration_days": 1, "status": "active", "issued_seats": 1, "remaining_seats": 1, "license_count": 1, "active_devices": 1, "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" } ]
ResellerUsageResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
    "issued_seats": 1,
    "license_count": 1,
    "active_devices": 1,
    "customer_count": 1,
    "allocations": [
      {
        "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
        "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
        "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
        "product_id": "prod_0123456789abcdef0123",
        "seat_limit": 1,
        "max_duration_days": 1,
        "status": "active",
        "issued_seats": 1,
        "remaining_seats": 1,
        "license_count": 1,
        "active_devices": 1,
        "created_at": "2026-09-21T00:00:00Z",
        "updated_at": "2026-09-21T00:00:00Z"
      }
    ]
  }
}
FieldRequiredType and descriptionExample Value
data Required
object
{ "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa", "issued_seats": 1, "license_count": 1, "active_devices": 1, "customer_count": 1, "allocations": [ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa", "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa", "product_id": "prod_0123456789abcdef0123", "seat_limit": 1, "max_duration_days": 1, "status": "active", "issued_seats": 1, "remaining_seats": 1, "license_count": 1, "active_devices": 1, "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" } ] }
ResellerMember 8 fields

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
  "email": "developer@example.com",
  "role": "manager",
  "status": "invited",
  "invited_at": "2026-09-21T00:00:00Z",
  "accepted_at": "2026-09-21T00:00:00Z",
  "created_at": "2026-09-21T00:00:00Z"
}
FieldRequiredType and descriptionExample Value
public_id Required "public_id_aaaaaaaaaaaaaaaaaaaa"
reseller_id Required "reseller_id_aaaaaaaaaaaaaaaaaaaa"
email Required
string
"developer@example.com"
role Required
value

Allowed values: manager, viewer

manager can issue and manage licenses. viewer can only see counts and licenses.

"manager"
status Required
value

Allowed values: invited, active

"invited"
invited_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
accepted_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
created_at Optional
string date-time
"2026-09-21T00:00:00Z"
ResellerMemberInput 2 fields

Schema

object

Example Value

{
  "email": "developer@example.com",
  "role": "manager"
}
FieldRequiredType and descriptionExample Value
email Required
string Maximum length: 254
"developer@example.com"
role Optional
value

Allowed values: manager, viewer

"manager"
ResellerMemberUpdateInput 1 fields

Schema

object

Example Value

{
  "role": "manager"
}
FieldRequiredType and descriptionExample Value
role Required
value

Allowed values: manager, viewer

"manager"
ResellerMemberResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
    "email": "developer@example.com",
    "role": "manager",
    "status": "invited",
    "invited_at": "2026-09-21T00:00:00Z",
    "accepted_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z"
  }
}
FieldRequiredType and descriptionExample Value
data Required { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa", "email": "developer@example.com", "role": "manager", "status": "invited", "invited_at": "2026-09-21T00:00:00Z", "accepted_at": "2026-09-21T00:00:00Z", "created_at": "2026-09-21T00:00:00Z" }
ResellerMemberListResponse 1 fields

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
      "email": "developer@example.com",
      "role": "manager",
      "status": "invited",
      "invited_at": "2026-09-21T00:00:00Z",
      "accepted_at": "2026-09-21T00:00:00Z",
      "created_at": "2026-09-21T00:00:00Z"
    }
  ]
}
FieldRequiredType and descriptionExample Value
data Required
array<ResellerMember>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa", "email": "developer@example.com", "role": "manager", "status": "invited", "invited_at": "2026-09-21T00:00:00Z", "accepted_at": "2026-09-21T00:00:00Z", "created_at": "2026-09-21T00:00:00Z" } ]
LicenseNotice 9 fields

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "kind": "license_delivery",
  "source": "stripe",
  "status": "pending",
  "skip_reason": "no_recipient",
  "recipient": "string",
  "includes_key": true,
  "sent_at": "2026-09-21T00:00:00Z",
  "created_at": "2026-09-21T00:00:00Z"
}
FieldRequiredType and descriptionExample Value
public_id Required "public_id_aaaaaaaaaaaaaaaaaaaa"
kind Required
value

Allowed values: license_delivery, payment_grace_started, payment_grace_reminder, payment_grace_ended, payment_recovered

"license_delivery"
source Required
value

Allowed values: stripe, reseller

"stripe"
status Required
value

Allowed values: pending, sent, failed, skipped

"pending"
skip_reason Optional
string | null

Allowed values: no_recipient, test_recipient_not_member, key_unavailable, null

"no_recipient"
recipient Optional
string | null
"string"
includes_key Required
boolean
true
sent_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
created_at Optional
string date-time
"2026-09-21T00:00:00Z"
LicenseNoticeResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "kind": "license_delivery",
    "source": "stripe",
    "status": "pending",
    "skip_reason": "no_recipient",
    "recipient": "string",
    "includes_key": true,
    "sent_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z"
  }
}
FieldRequiredType and descriptionExample Value
data Required { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "kind": "license_delivery", "source": "stripe", "status": "pending", "skip_reason": "no_recipient", "recipient": "string", "includes_key": true, "sent_at": "2026-09-21T00:00:00Z", "created_at": "2026-09-21T00:00:00Z" }
LicenseNoticeListResponse 1 fields

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "kind": "license_delivery",
      "source": "stripe",
      "status": "pending",
      "skip_reason": "no_recipient",
      "recipient": "string",
      "includes_key": true,
      "sent_at": "2026-09-21T00:00:00Z",
      "created_at": "2026-09-21T00:00:00Z"
    }
  ]
}
FieldRequiredType and descriptionExample Value
data Required
array<LicenseNotice>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "kind": "license_delivery", "source": "stripe", "status": "pending", "skip_reason": "no_recipient", "recipient": "string", "includes_key": true, "sent_at": "2026-09-21T00:00:00Z", "created_at": "2026-09-21T00:00:00Z" } ]
StripeAppQueryInput 2 fields

Schema

object

Example Value

{
  "name": "customer",
  "params": {}
}
FieldRequiredType and descriptionExample Value
name Required
string

Allowed values: customer, licenses, license, license.handoff, audit, catalog, offerings, billing_rules 10 more

"customer"
params Required
object

Operation-specific safe parameters; tenant, account and environment are derived from the approved connection.

{}
StripeAppQueryResponse 2 fields

Schema

object

Example Value

{
  "request_id": "01K5QWERTY1234567890ABCDEFG",
  "data": {}
}
FieldRequiredType and descriptionExample Value
request_id Required
string
"01K5QWERTY1234567890ABCDEFG"
data Required
object
{}
StripeAppPreviewInput 4 fields

Schema

object

Example Value

{
  "name": "license.extend",
  "params": {},
  "expected_version": "string",
  "reason": "string"
}
FieldRequiredType and descriptionExample Value
name Required
string

Allowed values: license.extend, license.suspend, license.resume, license.revoke, activation.release, license.issue_trial, license.update_limits, license.update_entitlements 11 more

"license.extend"
params Required
object

Operation-specific safe parameters; tenant, account and environment are derived from the approved connection.

{}
expected_version Optional
string | integer

Version returned by the resource query; required by updates.

"string"
reason Required
string Minimum length: 1 Maximum length: 300
"string"
StripeAppPreviewResponse 2 fields

Schema

object

Example Value

{
  "request_id": "01K5QWERTY1234567890ABCDEFG",
  "data": {}
}
FieldRequiredType and descriptionExample Value
request_id Required
string
"01K5QWERTY1234567890ABCDEFG"
data Required
object
{}
StripeAppCommandInput 5 fields

Schema

object

Example Value

{
  "name": "license.extend",
  "params": {},
  "expected_version": "string",
  "reason": "string",
  "confirmation_token": "example-token"
}
FieldRequiredType and descriptionExample Value
name Required
string

Allowed values: license.extend, license.suspend, license.resume, license.revoke, activation.release, license.issue_trial, license.update_limits, license.update_entitlements 11 more

"license.extend"
params Required
object

Operation-specific safe parameters; tenant, account and environment are derived from the approved connection.

{}
expected_version Optional
string | integer

Version returned by the resource query; required by updates.

"string"
reason Required
string Minimum length: 1 Maximum length: 300
"string"
confirmation_token Required
string Minimum length: 1 Maximum length: 8192

Exact unexpired token from the reviewed preview; changing parameters invalidates it.

"example-token"
StripeAppCommandResponse 2 fields

Schema

object

Example Value

{
  "request_id": "01K5QWERTY1234567890ABCDEFG",
  "data": {}
}
FieldRequiredType and descriptionExample Value
request_id Required
string
"01K5QWERTY1234567890ABCDEFG"
data Required
object
{}
PublicId 0 fields

Schema

string Maximum length: 64 Pattern: ^[a-z_]+[0-9a-f]{20,24}$

Example Value

"id_aaaaaaaaaaaaaaaaaaaa"
MachineInfoInventoryField 0 fields

Schema

string Minimum length: 1 Maximum length: 128

Allowed values: schema_version, collected_at, platform, app, app_version, app_build, sdk, sdk_version 37 more

Example Value

"schema_version"
MachineInfo 47 fields

Strict safe allowlist for self-reported support and risk information. The encoded object is limited to 16 KiB, 512 JSON values, eight nesting levels, 64 keys per object, 64 values per array, 128 bytes per key, and 2 KiB per generic string; named string fields below are limited to 512 bytes. String length keywords approximate byte limits and the server enforces the encoded byte limits. Raw serial numbers, MAC addresses, machine UUIDs or IDs, hostnames, user or home data, environment values, file or application inventories, process lists, and secrets are forbidden. capabilities may name only present allowlisted values; unavailable_fields may name only absent allowlisted values; the inventories must not overlap.

Schema

object

Example Value

{
  "schema_version": 1,
  "collected_at": 0,
  "platform": "string",
  "app": "string",
  "app_version": "string",
  "app_build": "string",
  "sdk": "string",
  "sdk_version": "string",
  "os": "string",
  "os_version": "string",
  "os_build": "string",
  "os_edition": "string",
  "kernel_version": "string",
  "arch": "string",
  "cpu_vendor": "string",
  "cpu_model": "string",
  "cpu_physical_cores": 1,
  "cpu_logical_cores": 1,
  "cpu_load": 0.0,
  "memory_bytes": 1,
  "storage_bytes": 1,
  "manufacturer": "string",
  "model": "string",
  "chassis_type": "string",
  "locale": "string",
  "timezone": "string",
  "env_type": "string",
  "vm_detected": true,
  "vm_vendor": "string",
  "container_detected": true,
  "container_runtime": "string",
  "wsl_detected": true,
  "wsl_version": "string",
  "emulator_detected": true,
  "secure_boot_enabled": true,
  "tpm_present": true,
  "tpm_version": "string",
  "secure_enclave_present": true,
  "hardware_keystore_present": true,
  "root_detected": true,
  "jailbreak_detected": true,
  "debugger_detected": true,
  "clock_tamper_detected": true,
  "clock_rollback_detected": true,
  "capabilities": [
    "schema_version"
  ],
  "unavailable_fields": [
    "schema_version"
  ],
  "risk_signals": [
    {
      "kind": "clock_rollback",
      "confidence": 0,
      "source": "example.value"
    }
  ]
}
FieldRequiredType and descriptionExample Value
schema_version Optional
integer Minimum: 1 Maximum: 255
1
collected_at Optional
integer Minimum: 0 Maximum: 9223372036854775807

Unix timestamp

0
platform Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
app Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
app_version Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
app_build Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
sdk Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
sdk_version Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
os Required
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
os_version Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
os_build Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
os_edition Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
kernel_version Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
arch Required
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
cpu_vendor Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
cpu_model Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
cpu_physical_cores Optional
integer Minimum: 1 Maximum: 9223372036854775807
1
cpu_logical_cores Optional
integer Minimum: 1 Maximum: 9223372036854775807
1
cpu_load Optional
number Minimum: 0 Maximum: 100

Heartbeats accept finite fractional percentages; activation and offline snapshots use integer percentages.

0.0
memory_bytes Optional
integer Minimum: 1 Maximum: 9223372036854775807
1
storage_bytes Optional
integer Minimum: 1 Maximum: 9223372036854775807
1
manufacturer Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
model Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
chassis_type Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
locale Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
timezone Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
env_type Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
vm_detected Optional
boolean
true
vm_vendor Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
container_detected Optional
boolean
true
container_runtime Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
wsl_detected Optional
boolean
true
wsl_version Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
emulator_detected Optional
boolean
true
secure_boot_enabled Optional
boolean
true
tpm_present Optional
boolean
true
tpm_version Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
secure_enclave_present Optional
boolean
true
hardware_keystore_present Optional
boolean
true
root_detected Optional
boolean
true
jailbreak_detected Optional
boolean
true
debugger_detected Optional
boolean
true
clock_tamper_detected Optional
boolean
true
clock_rollback_detected Optional
boolean
true
capabilities Optional
array<MachineInfoInventoryField> Maximum items: 64 Unique items: yes
[ "schema_version" ]
unavailable_fields Optional
array<MachineInfoInventoryField> Maximum items: 64 Unique items: yes
[ "schema_version" ]
risk_signals Optional
array<object> Maximum items: 16
[ { "kind": "clock_rollback", "confidence": 0, "source": "example.value" } ]
StableMachineInfo 47 fields

Proof-bound activation and offline machine information. It uses the common safe allowlist, but cpu_load must be an integer so canonical signed JSON stays portable across SDK languages.

Schema

MachineInfo + object

Example Value

{
  "os": "string",
  "arch": "string"
}
FieldRequiredType and descriptionExample Value
cpu_load Optional
number Minimum: 0 Maximum: 100

Heartbeats accept finite fractional percentages; activation and offline snapshots use integer percentages.

0.0
schema_version Optional
integer Minimum: 1 Maximum: 255
1
collected_at Optional
integer Minimum: 0 Maximum: 9223372036854775807

Unix timestamp

0
platform Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
app Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
app_version Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
app_build Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
sdk Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
sdk_version Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
os Required
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
os_version Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
os_build Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
os_edition Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
kernel_version Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
arch Required
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
cpu_vendor Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
cpu_model Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
cpu_physical_cores Optional
integer Minimum: 1 Maximum: 9223372036854775807
1
cpu_logical_cores Optional
integer Minimum: 1 Maximum: 9223372036854775807
1
memory_bytes Optional
integer Minimum: 1 Maximum: 9223372036854775807
1
storage_bytes Optional
integer Minimum: 1 Maximum: 9223372036854775807
1
manufacturer Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
model Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
chassis_type Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
locale Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
timezone Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
env_type Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
vm_detected Optional
boolean
true
vm_vendor Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
container_detected Optional
boolean
true
container_runtime Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
wsl_detected Optional
boolean
true
wsl_version Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
emulator_detected Optional
boolean
true
secure_boot_enabled Optional
boolean
true
tpm_present Optional
boolean
true
tpm_version Optional
string Minimum length: 1 Maximum length: 512 Pattern: ^[^\x00-\x1F\x7F]+$
"string"
secure_enclave_present Optional
boolean
true
hardware_keystore_present Optional
boolean
true
root_detected Optional
boolean
true
jailbreak_detected Optional
boolean
true
debugger_detected Optional
boolean
true
clock_tamper_detected Optional
boolean
true
clock_rollback_detected Optional
boolean
true
capabilities Optional
array<MachineInfoInventoryField> Maximum items: 64 Unique items: yes
[ "schema_version" ]
unavailable_fields Optional
array<MachineInfoInventoryField> Maximum items: 64 Unique items: yes
[ "schema_version" ]
risk_signals Optional
array<object> Maximum items: 16
[ { "kind": "clock_rollback", "confidence": 0, "source": "example.value" } ]
ActivationRequest 13 fields

Schema

object

Example Value

{
  "license_key": "string",
  "product_id": "prod_0123456789abcdef0123",
  "device_signing_public_key": "string",
  "device_kem_public_key": "string",
  "device_proof": "string",
  "machine_signals": {
    "property": "string"
  },
  "machine_info": {
    "os": "string",
    "arch": "string"
  },
  "app_version": "string",
  "sdk_version": "string",
  "request_id": "01K5QWERTY1234567890ABCDEFG",
  "client_time": 1,
  "named_user_token": "Example name",
  "nonce": "stringxxxxxxxxxxxxxxxx"
}
FieldRequiredType and descriptionExample Value
license_key Required
string Maximum length: 512
"string"
product_id Required "prod_0123456789abcdef0123"
device_signing_public_key Required
string Maximum length: 2048
"string"
device_kem_public_key Required
string Maximum length: 1024
"string"
device_proof Required
string Maximum length: 1024
"string"
machine_signals Optional
object
{ "property": "string" }
machine_info Required { "os": "string", "arch": "string" }
app_version Optional
string Maximum length: 255
"string"
sdk_version Optional
string Maximum length: 255
"string"
request_id Optional
string Maximum length: 255
"01K5QWERTY1234567890ABCDEFG"
client_time Optional
integer
1
named_user_token Optional
string Maximum length: 4096

Required for named-user policies. Get the token with email license verification in the app (POST /runtime/v1/email-verifications, Personal or higher) or from the customer portal (Team or higher). Without it, the request returns 401 NAMED_USER_TOKEN_REQUIRED, and details.available_methods lists the methods available (email or portal).

"Example name"
nonce Required
string Minimum length: 22 Maximum length: 255
"stringxxxxxxxxxxxxxxxx"
ActivationHeartbeatRequest 4 fields

Schema

value

Example Value

{
  "machine_info": {
    "os": "string",
    "arch": "string"
  }
}
FieldRequiredType and descriptionExample Value
app_version Optional
string Maximum length: 255
"string"
sdk_version Optional
string Maximum length: 255
"string"
machine_info Optional

Full self-reported support information, required on first receipt, whenever it changes, and at least once every 24 hours; must include os and arch and is limited to the server allowlist, 16 KiB, 512 JSON values, eight nesting levels, and 2 KiB per string value

{ "schema_version": 1, "collected_at": 0, "platform": "string", "app": "string", "app_version": "string", "app_build": "string", "sdk": "string", "sdk_version": "string", "os": "string", "os_version": "string", "os_build": "string", "os_edition": "string", "kernel_version": "string", "arch": "string", "cpu_vendor": "string", "cpu_model": "string", "cpu_physical_cores": 1, "cpu_logical_cores": 1, "cpu_load": 0.0, "memory_bytes": 1, "storage_bytes": 1, "manufacturer": "string", "model": "string", "chassis_type": "string", "locale": "string", "timezone": "string", "env_type": "string", "vm_detected": true, "vm_vendor": "string", "container_detected": true, "container_runtime": "string", "wsl_detected": true, "wsl_version": "string", "emulator_detected": true, "secure_boot_enabled": true, "tpm_present": true, "tpm_version": "string", "secure_enclave_present": true, "hardware_keystore_present": true, "root_detected": true, "jailbreak_detected": true, "debugger_detected": true, "clock_tamper_detected": true, "clock_rollback_detected": true, "capabilities": [ "schema_version" ], "unavailable_fields": [ "schema_version" ], "risk_signals": [ { "kind": "clock_rollback", "confidence": 0, "source": "example.value" } ] }
machine_info_digest Optional
string Pattern: ^[0-9a-f]{64}$

SHA-256 digest of the unchanged full machine_info; accepted only while the server has received full machine_info in the preceding 24 hours

"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
ConsumptionSyncRequest 2 fields

Schema

object

Example Value

{
  "consumptions": [
    {
      "consumption_id": "01K5QWERTY1234567890ABCDEFG",
      "counter": "string",
      "amount": 1,
      "consumed_at": 0
    }
  ],
  "sdk_version": "string"
}
FieldRequiredType and descriptionExample Value
consumptions Required
array<Consumption> Minimum items: 1 Maximum items: 40
[ { "consumption_id": "01K5QWERTY1234567890ABCDEFG", "counter": "string", "amount": 1, "consumed_at": 0 } ]
sdk_version Optional
string Maximum length: 255
"string"
Consumption 4 fields

Schema

object

Example Value

{
  "consumption_id": "01K5QWERTY1234567890ABCDEFG",
  "counter": "string",
  "amount": 1,
  "consumed_at": 0
}
FieldRequiredType and descriptionExample Value
consumption_id Required
string Pattern: ^[A-Za-z0-9][A-Za-z0-9._:-]{7,63}$

Chosen by the device and unique within the license; the same ID is counted at most once

"01K5QWERTY1234567890ABCDEFG"
counter Required
string Pattern: ^[a-z][a-z0-9_]{0,23}$

Counter name defined by the license's policy

"string"
amount Required
integer Minimum: 1 Maximum: 1000000000
1
consumed_at Optional
integer Minimum: 0

Unix time at which the device consumed, for reference only; the period is decided by when Usakey receives the consumption

0
SealedFileKeyRequest 2 fields

Schema

object

Example Value

{
  "header": "example_value",
  "sdk_version": "string"
}
FieldRequiredType and descriptionExample Value
header Required
string Minimum length: 3 Maximum length: 2731 Pattern: ^[A-Za-z0-9_-]+$

Unpadded base64url of the exact header bytes of a version 1 sealed file (at most 2048 bytes of canonical JSON)

"example_value"
sdk_version Optional
string Maximum length: 255
"string"
LeaseAcquireRequest 3 fields

Schema

object

Example Value

{
  "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
  "instance_id": "01K5QWERTY1234567890ABCDEFG",
  "handoff_from_lease_id": "handoff_from_lease_id_aaaaaaaaaaaaaaaaaaaa"
}
FieldRequiredType and descriptionExample Value
activation_id Required "activation_id_aaaaaaaaaaaaaaaaaaaa"
instance_id Required
string Minimum length: 16 Maximum length: 255
"01K5QWERTY1234567890ABCDEFG"
handoff_from_lease_id Optional

A live lease of the same activation to take the seat over from, for example the pod a rolling update replaces. Allowed when the usage rule sets a handoff grace period. The new lease is granted even at the limit, and the old lease ends after the grace period and cannot be renewed past it. At most as many handed-off leases as the limit may overlap at once. Checked-out, burst and already handed-off leases cannot be handed off (409 LEASE_HANDOFF_UNAVAILABLE).

"handoff_from_lease_id_aaaaaaaaaaaaaaaaaaaa"
LeaseCheckoutRequest 2 fields

Schema

object

Example Value

{
  "instance_id": "01K5QWERTY1234567890ABCDEFG",
  "days": 1
}
FieldRequiredType and descriptionExample Value
instance_id Required
string Minimum length: 16 Maximum length: 255
"01K5QWERTY1234567890ABCDEFG"
days Required
integer Minimum: 1 Maximum: 30

Days to keep the lease. Above the usage rule's longest checkout, the request is refused with 422 LEASE_CHECKOUT_NOT_ALLOWED and details.max_days.

1
LeaseInstanceRequest 1 fields

Schema

object

Example Value

{
  "instance_id": "01K5QWERTY1234567890ABCDEFG"
}
FieldRequiredType and descriptionExample Value
instance_id Required
string Minimum length: 16 Maximum length: 255
"01K5QWERTY1234567890ABCDEFG"
OfflineRequest 16 fields

Device-signed usakey-offline-request-v1 JSON. The complete encoded request is limited to 64 KiB, 1,024 JSON values, and eight nesting levels.

Schema

value

Example Value

{
  "format": "usakey-offline-request-v1",
  "product_id": "prod_0123456789abcdef0123",
  "device_signing_public_key": "string",
  "device_kem_public_key": "p256:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
  "device_proof": "string",
  "machine_info": {
    "os": "string",
    "arch": "string"
  },
  "nonce": "example_valuexxxxxxxxx",
  "generated_at": 1
}
FieldRequiredType and descriptionExample Value
v Optional
integer
1
format Required
string
"usakey-offline-request-v1"
product_id Required "prod_0123456789abcdef0123"
device_signing_public_key Required
string Minimum length: 1 Maximum length: 2048

Ed25519 SubjectPublicKeyInfo PEM or ed25519-prefixed raw public key

"string"
device_kem_public_key Required
string Minimum length: 1 Maximum length: 1024 Pattern: ^p256:[A-Za-z0-9_-]+$

Uncompressed 65-byte P-256 SEC1 point encoded as unpadded base64url

"p256:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
device_proof Optional
string Minimum length: 1 Maximum length: 1024
"string"
request_proof Optional
string Minimum length: 1 Maximum length: 1024

Legacy alias for device_proof; send exactly one proof field.

"string"
machine_signals Optional
object
{ "property": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }
machine_info Required { "os": "string", "arch": "string" }
sdk_version Optional
string Maximum length: 255
"string"
app_version Optional
string Maximum length: 255
"string"
request_id Optional
string Maximum length: 255
"01K5QWERTY1234567890ABCDEFG"
nonce Required
string Minimum length: 22 Maximum length: 255 Pattern: ^[A-Za-z0-9_-]+$
"example_valuexxxxxxxxx"
generated_at Required
integer

Unix timestamp no older than 7 days and no more than 5 minutes in the future

1
display Optional
object
{ "product_name": "Example name", "device_code": "string" }
sealed_file_headers Optional
array<string> Minimum items: 1 Maximum items: 16 Unique items: yes

Optional headers of sealed files whose data keys the package should carry, each the unpadded base64url of the exact header bytes. They are covered by the device proof like every other field. The package then includes a sealed-file-keys.json entry; if any file cannot be delivered, no package is issued.

[ "example_value" ]
OfflineRehostRequest 5 fields

A refusal of the move is 422 OFFLINE_REHOST_INVALID with details.reason: invalid_format, target_mismatch, device_mismatch, invalid_signature, expired, package_mismatch, already_released, same_device, assignment_mismatch, request_already_used, limit_reached or not_allowed (limit_reached and not_allowed also carry details.limit). Issuance refusals of the new package are the same as for offline-certificates.

Schema

object

Example Value

{
  "release": {
    "v": 1,
    "format": "usakey-offline-release-v1",
    "product_id": "prod_0123456789abcdef0123",
    "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
    "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
    "certificate_id": "certificate_id_aaaaaaaaaaaaaaaaaaaa",
    "package_id": "package_id_aaaaaaaaaaaaaaaaaaaa",
    "package_expires_at": 1,
    "device_signing_public_key": "string",
    "device_kem_public_key": "string",
    "nonce": "example_valuexxxxxxxxx",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "released_at": 1,
    "sdk_version": "string",
    "release_proof": "string"
  },
  "request": {
    "format": "usakey-offline-request-v1",
    "product_id": "prod_0123456789abcdef0123",
    "device_signing_public_key": "string",
    "device_kem_public_key": "p256:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
    "device_proof": "string",
    "machine_info": {
      "os": "string",
      "arch": "string"
    },
    "nonce": "example_valuexxxxxxxxx",
    "generated_at": 1
  },
  "expires_at": "2026-09-21T00:00:00Z",
  "license_assignment_id": "license_assignment_id_aaaaaaaaaaaaaaaaaaaa",
  "reason": "string"
}
FieldRequiredType and descriptionExample Value
release Required { "v": 1, "format": "usakey-offline-release-v1", "product_id": "prod_0123456789abcdef0123", "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa", "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa", "certificate_id": "certificate_id_aaaaaaaaaaaaaaaaaaaa", "package_id": "package_id_aaaaaaaaaaaaaaaaaaaa", "package_expires_at": 1, "device_signing_public_key": "string", "device_kem_public_key": "string", "nonce": "example_valuexxxxxxxxx", "request_id": "01K5QWERTY1234567890ABCDEFG", "released_at": 1, "sdk_version": "string", "release_proof": "string" }
request Required { "format": "usakey-offline-request-v1", "product_id": "prod_0123456789abcdef0123", "device_signing_public_key": "string", "device_kem_public_key": "p256:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "device_proof": "string", "machine_info": { "os": "string", "arch": "string" }, "nonce": "example_valuexxxxxxxxx", "generated_at": 1 }
expires_at Optional
string date-time
"2026-09-21T00:00:00Z"
license_assignment_id Optional
PublicId

Optional for a named-user license. A move keeps the released device's assignment; another assignment is refused.

"license_assignment_id_aaaaaaaaaaaaaaaaaaaa"
reason Optional
string Maximum length: 500

Free-text reason recorded in the audit log.

"string"
OfflineReleaseProof 15 fields

Device-signed usakey-offline-release-v1 JSON (.usakeyrel), at most 16 KiB. release_proof is an Ed25519 signature by the registered device key over "Usakey-Offline-Release-v1\n" followed by the RFC 8785 canonical JSON of every other field. Accepted for 30 days after released_at.

Schema

object

Example Value

{
  "v": 1,
  "format": "usakey-offline-release-v1",
  "product_id": "prod_0123456789abcdef0123",
  "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
  "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
  "certificate_id": "certificate_id_aaaaaaaaaaaaaaaaaaaa",
  "package_id": "package_id_aaaaaaaaaaaaaaaaaaaa",
  "package_expires_at": 1,
  "device_signing_public_key": "string",
  "device_kem_public_key": "string",
  "nonce": "example_valuexxxxxxxxx",
  "request_id": "01K5QWERTY1234567890ABCDEFG",
  "released_at": 1,
  "sdk_version": "string",
  "release_proof": "string"
}
FieldRequiredType and descriptionExample Value
v Required
integer
1
format Required
string
"usakey-offline-release-v1"
product_id Required "prod_0123456789abcdef0123"
license_id Required "license_id_aaaaaaaaaaaaaaaaaaaa"
activation_id Required "activation_id_aaaaaaaaaaaaaaaaaaaa"
certificate_id Required "certificate_id_aaaaaaaaaaaaaaaaaaaa"
package_id Required "package_id_aaaaaaaaaaaaaaaaaaaa"
package_expires_at Required
integer
1
device_signing_public_key Required
string Minimum length: 1 Maximum length: 2048

The same string as the device's offline request.

"string"
device_kem_public_key Required
string Minimum length: 1 Maximum length: 1024
"string"
nonce Required
string Minimum length: 22 Maximum length: 255 Pattern: ^[A-Za-z0-9_-]+$
"example_valuexxxxxxxxx"
request_id Optional
string Maximum length: 255
"01K5QWERTY1234567890ABCDEFG"
released_at Required
integer

Unix time the device signed as its release time.

1
sdk_version Optional
string Maximum length: 255
"string"
release_proof Required
string Minimum length: 1 Maximum length: 1024
"string"
OfflineRehostSummaryResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "offline_rehosts_per_year": 0,
    "moves_in_last_year": 0,
    "remaining": 0,
    "moves": [
      {
        "id": "id_aaaaaaaaaaaaaaaaaaaa",
        "moved_at": "2026-09-21T00:00:00Z",
        "released_at": "2026-09-21T00:00:00Z",
        "released_activation_id": "released_activation_id_aaaaaaaaaaaaaaaaaaaa",
        "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
        "reason": "string"
      }
    ]
  }
}
FieldRequiredType and descriptionExample Value
data Required { "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa", "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa", "offline_rehosts_per_year": 0, "moves_in_last_year": 0, "remaining": 0, "moves": [ { "id": "id_aaaaaaaaaaaaaaaaaaaa", "moved_at": "2026-09-21T00:00:00Z", "released_at": "2026-09-21T00:00:00Z", "released_activation_id": "released_activation_id_aaaaaaaaaaaaaaaaaaaa", "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa", "reason": "string" } ] }
OfflineRehostSummary 6 fields

Schema

object

Example Value

{
  "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "offline_rehosts_per_year": 0,
  "moves_in_last_year": 0,
  "remaining": 0,
  "moves": [
    {
      "id": "id_aaaaaaaaaaaaaaaaaaaa",
      "moved_at": "2026-09-21T00:00:00Z",
      "released_at": "2026-09-21T00:00:00Z",
      "released_activation_id": "released_activation_id_aaaaaaaaaaaaaaaaaaaa",
      "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
      "reason": "string"
    }
  ]
}
FieldRequiredType and descriptionExample Value
license_id Required "license_id_aaaaaaaaaaaaaaaaaaaa"
policy_id Required "policy_id_aaaaaaaaaaaaaaaaaaaa"
offline_rehosts_per_year Required
integer Minimum: 0 Maximum: 100

Moves the license's usage rule allows per license over 365 days. 0 means the license cannot be moved.

0
moves_in_last_year Required
integer Minimum: 0
0
remaining Required
integer Minimum: 0

Moves left in the last 365 days. When it is 0, deactivate the old device and issue a package for the new device instead.

0
moves Required
array<OfflineRehostMove> Maximum items: 100
[ { "id": "id_aaaaaaaaaaaaaaaaaaaa", "moved_at": "2026-09-21T00:00:00Z", "released_at": "2026-09-21T00:00:00Z", "released_activation_id": "released_activation_id_aaaaaaaaaaaaaaaaaaaa", "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa", "reason": "string" } ]
OfflineRehostMove 6 fields

Schema

object

Example Value

{
  "id": "id_aaaaaaaaaaaaaaaaaaaa",
  "moved_at": "2026-09-21T00:00:00Z",
  "released_at": "2026-09-21T00:00:00Z",
  "released_activation_id": "released_activation_id_aaaaaaaaaaaaaaaaaaaa",
  "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
  "reason": "string"
}
FieldRequiredType and descriptionExample Value
id Required "id_aaaaaaaaaaaaaaaaaaaa"
moved_at Required
string date-time
"2026-09-21T00:00:00Z"
released_at Required
string date-time

The release time the old device signed in its release proof.

"2026-09-21T00:00:00Z"
released_activation_id Required "released_activation_id_aaaaaaaaaaaaaaaaaaaa"
activation_id Required
PublicId

The activation of the new device.

"activation_id_aaaaaaaaaaaaaaaaaaaa"
reason Optional
string | null Maximum length: 500
"string"
OfflineCertificateIssueRequest 3 fields

Schema

object

Example Value

{
  "request": {
    "format": "usakey-offline-request-v1",
    "product_id": "prod_0123456789abcdef0123",
    "device_signing_public_key": "string",
    "device_kem_public_key": "p256:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
    "device_proof": "string",
    "machine_info": {
      "os": "string",
      "arch": "string"
    },
    "nonce": "example_valuexxxxxxxxx",
    "generated_at": 1
  },
  "expires_at": "2026-09-21T00:00:00Z",
  "license_assignment_id": "license_assignment_id_aaaaaaaaaaaaaaaaaaaa"
}
FieldRequiredType and descriptionExample Value
request Required { "format": "usakey-offline-request-v1", "product_id": "prod_0123456789abcdef0123", "device_signing_public_key": "string", "device_kem_public_key": "p256:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "device_proof": "string", "machine_info": { "os": "string", "arch": "string" }, "nonce": "example_valuexxxxxxxxx", "generated_at": 1 }
expires_at Optional
string date-time
"2026-09-21T00:00:00Z"
license_assignment_id Optional
PublicId

Required for offline named-user policies on Team or higher. The signed package expires within 7 days and cannot be used afterward.

"license_assignment_id_aaaaaaaaaaaaaaaaaaaa"
LicenseIssueRequest 12 fields

Schema

object

Example Value

{
  "product_id": "prod_0123456789abcdef0123",
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
  "license_type": "perpetual",
  "expires_at": "2026-09-21T00:00:00Z",
  "expiry": "2026-09-21T00:00:00Z",
  "renewal_authority": "external_billing",
  "max_machines": 0,
  "max_concurrent": 0,
  "entitlements": {},
  "metadata": {},
  "license_unit_limit_override": 1
}
FieldRequiredType and descriptionExample Value
product_id Required "prod_0123456789abcdef0123"
policy_id Required "policy_id_aaaaaaaaaaaaaaaaaaaa"
customer_id Optional "customer_id_aaaaaaaaaaaaaaaaaaaa"
license_type Optional
value

Allowed values: perpetual, subscription, trial

"perpetual"
expires_at Optional
string date-time

Subscription expiry. Omit for perpetual licenses. On Evaluation, it must be within 1 hour of issuance.

"2026-09-21T00:00:00Z"
expiry Optional
string date-time

Legacy name for `expires_at`. Use `expires_at`; when both are provided, `expires_at` takes precedence.

"2026-09-21T00:00:00Z"
renewal_authority Optional
value

Allowed values: external_billing, calendar, manual

"external_billing"
max_machines Optional
integer Minimum: 0
0
max_concurrent Optional
integer Minimum: 0
0
entitlements Optional
object
{}
metadata Optional
object
{}
license_unit_limit_override Optional
integer | null
1
SignedEnvelope 4 fields

Schema

object

Example Value

{
  "data": "string",
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
FieldRequiredType and descriptionExample Value
data Required
value
"string"
response_assertion Required
object
{ "v": 1, "product_id": "prod_0123456789abcdef0123", "key_id": "01K5QWERTY1234567890ABCDEFG", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "request_id": "01K5QWERTY1234567890ABCDEFG", "nonce": "string", "server_time": 1, "status": 1, "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }
response_signature Required
string
"example-token"
signing_delegation Required
object
{ "delegation": { "v": 1, "purpose": "runtime-response", "product_id": "prod_0123456789abcdef0123", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "online_key_id": "01K5QWERTY1234567890ABCDEFG", "public_key": "string", "issued_at": 1, "expires_at": 1 }, "signature": "example-token" }
ActivationData 3 fields

Schema

object

Example Value

{
  "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
  "certificate": "string",
  "machine_info_digest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
FieldRequiredType and descriptionExample Value
activation_id Required "activation_id_aaaaaaaaaaaaaaaaaaaa"
certificate Required
string

PASETO v4.public license certificate

"string"
machine_info_digest Required
string Pattern: ^[0-9a-f]{64}$

SHA-256 digest of the full machine_info stored for this activation

"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
ActivationHeartbeatData 5 fields

Schema

object

Example Value

{
  "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
  "license_status": "active",
  "certificate": "string",
  "next_heartbeat_in": 10,
  "machine_info_digest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
FieldRequiredType and descriptionExample Value
activation_id Required "activation_id_aaaaaaaaaaaaaaaaaaaa"
license_status Required
value

Allowed values: active, suspended, revoked, expired

"active"
certificate Required
string

PASETO v4.public license certificate

"string"
next_heartbeat_in Required
integer Minimum: 10
10
machine_info_digest Required
string Pattern: ^[0-9a-f]{64}$

SHA-256 digest of the full machine_info stored for this activation

"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
ConsumptionSyncData 3 fields

Schema

object

Example Value

{
  "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
  "consumptions": [
    {
      "consumption_id": "01K5QWERTY1234567890ABCDEFG",
      "status": "active",
      "reason": "string",
      "revision": 1
    }
  ],
  "counters": {
    "property": {
      "limit": 0,
      "remaining": 0,
      "resets_at": 1,
      "revision": 0
    }
  }
}
FieldRequiredType and descriptionExample Value
activation_id Required "activation_id_aaaaaaaaaaaaaaaaaaaa"
consumptions Required
array<ConsumptionResult>
[ { "consumption_id": "01K5QWERTY1234567890ABCDEFG", "status": "active", "reason": "string", "revision": 1 } ]
counters Required
object

Current counters of the license, keyed by counter name, in the same shape as the counters claim of the license certificate

{ "property": { "limit": 0, "remaining": 0, "resets_at": 1, "revision": 0 } }
ConsumptionResult 4 fields

Schema

object

Example Value

{
  "consumption_id": "01K5QWERTY1234567890ABCDEFG",
  "status": "active",
  "reason": "string",
  "revision": 1
}
FieldRequiredType and descriptionExample Value
consumption_id Required
string
"01K5QWERTY1234567890ABCDEFG"
status Required
string

recorded (counted now), duplicate (already counted earlier) or rejected (not counted; see reason). Treat an unknown value as not yet counted and send the consumption again later.

"active"
reason Optional
string

Why a consumption was rejected, for example unknown_counter or conflict

"string"
revision Optional
integer Minimum: 1

Change number at which the consumption was counted (recorded and duplicate)

1
CounterClaim 4 fields

Schema

object

Example Value

{
  "limit": 0,
  "remaining": 0,
  "resets_at": 1,
  "revision": 0
}
FieldRequiredType and descriptionExample Value
limit Required
integer Minimum: 0

Limit for the current period, including a limit set for this license

0
remaining Required
integer Minimum: 0

Remaining amount for the current period on Usakey's side (never below 0)

0
resets_at Optional
integer

Unix time at which the counter resets; absent for counters that never reset

1
revision Required
integer Minimum: 0

Number of changes reflected in this value; it only increases, also across periods

0
SealedFileKeyData 5 fields

Schema

object

Example Value

{
  "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
  "file_id": "esNxn3TKNIsd_Dyi2XYojA",
  "header_sha256": "f7511808a1669a5481adebe399a96ad043d29ebb887207743368c3fb812717e5",
  "enc": "BC1G-oCCtQBTqm4VEolqWH6MHHbpugqlixdHLXLURww-71zLlbPAaperQqYpqsHIyF9bJ66JOqwcEaZ1yHqSNPI",
  "wrapped_key": "j4LNTalkfJFXswg_u9NXmazh7FZQHrAs4iqPQNp0hHCsdQIZWcS3AOpEkYp2mape"
}
FieldRequiredType and descriptionExample Value
activation_id Required "activation_id_aaaaaaaaaaaaaaaaaaaa"
file_id Required
string Pattern: ^[A-Za-z0-9_-]{22}$

The file's random identifier from its header

"esNxn3TKNIsd_Dyi2XYojA"
header_sha256 Required
string Pattern: ^[0-9a-f]{64}$

SHA-256 of the exact header bytes; the device looks the key up by this value

"f7511808a1669a5481adebe399a96ad043d29ebb887207743368c3fb812717e5"
enc Required
string Pattern: ^[A-Za-z0-9_-]{87}$

HPKE encapsulated key (65-byte uncompressed P-256 point, base64url)

"BC1G-oCCtQBTqm4VEolqWH6MHHbpugqlixdHLXLURww-71zLlbPAaperQqYpqsHIyF9bJ66JOqwcEaZ1yHqSNPI"
wrapped_key Required
string Pattern: ^[A-Za-z0-9_-]{64}$

The 32-byte data key sealed with HPKE to the activation's KEM public key (48 bytes with the tag, base64url). The associated data binds the activation, the device KEM key thumbprint, the product, and the header digest.

"j4LNTalkfJFXswg_u9NXmazh7FZQHrAs4iqPQNp0hHCsdQIZWcS3AOpEkYp2mape"
LeaseData 4 fields

Schema

object

Example Value

{
  "lease_id": "lease_id_aaaaaaaaaaaaaaaaaaaa",
  "instance_id": "01K5QWERTY1234567890ABCDEFG",
  "expires_at": 1,
  "heartbeat_in": 10
}
FieldRequiredType and descriptionExample Value
lease_id Required "lease_id_aaaaaaaaaaaaaaaaaaaa"
instance_id Required
string Minimum length: 16 Maximum length: 255
"01K5QWERTY1234567890ABCDEFG"
expires_at Required
integer

Unix timestamp

1
heartbeat_in Required
integer Minimum: 10
10
LeaseCheckoutData 6 fields

The lease data of a checked-out lease. Lease renewals (POST /runtime/v1/leases/{lease_id}/heartbeat) and acquisitions that return a checked-out lease also carry checkout_expires_at, with expires_at equal to it (LeaseData allows the extra property; a revoked checkout is not reported). Checking out again while checked out restarts the checkout from now but never ends it before the current checkout_expires_at. A burst seat or a lease handed off to another instance gets a shorter heartbeat_in so its renewal arrives before the seat ends.

Schema

object

Example Value

{
  "lease_id": "lease_id_aaaaaaaaaaaaaaaaaaaa",
  "instance_id": "01K5QWERTY1234567890ABCDEFG",
  "expires_at": 1,
  "heartbeat_in": 10,
  "checkout_expires_at": 1,
  "checkout": "string"
}
FieldRequiredType and descriptionExample Value
lease_id Required "lease_id_aaaaaaaaaaaaaaaaaaaa"
instance_id Required
string Minimum length: 16 Maximum length: 255
"01K5QWERTY1234567890ABCDEFG"
expires_at Required
integer

Unix timestamp; equal to checkout_expires_at

1
heartbeat_in Required
integer Minimum: 10
10
checkout_expires_at Required
integer

Unix timestamp. The seat stays in use until then, and the SDK allows floating use until then without a connection.

1
checkout Required
string

PASETO v4.public checkout proof signed with the product signing key (footer purpose lease-checkout, implicit assertion usakey:{product_id}:lease-checkout:v1). The payload carries v, checkout_id, issued_at, expires_at, tenant_id, key_id, product_id, license_id, activation_id, lease_id and device_signing_key_thumbprint.

"string"
LeaseReleaseData 2 fields

Schema

object

Example Value

{
  "lease_id": "lease_id_aaaaaaaaaaaaaaaaaaaa",
  "status": "released"
}
FieldRequiredType and descriptionExample Value
lease_id Required "lease_id_aaaaaaaaaaaaaaaaaaaa"
status Required
value
"released"
SignedActivationResponse 4 fields

Schema

SignedEnvelope + object

Example Value

{
  "data": {
    "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
    "certificate": "string",
    "machine_info_digest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
FieldRequiredType and descriptionExample Value
data Required
value
"string"
response_assertion Required
object
{ "v": 1, "product_id": "prod_0123456789abcdef0123", "key_id": "01K5QWERTY1234567890ABCDEFG", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "request_id": "01K5QWERTY1234567890ABCDEFG", "nonce": "string", "server_time": 1, "status": 1, "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }
response_signature Required
string
"example-token"
signing_delegation Required
object
{ "delegation": { "v": 1, "purpose": "runtime-response", "product_id": "prod_0123456789abcdef0123", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "online_key_id": "01K5QWERTY1234567890ABCDEFG", "public_key": "string", "issued_at": 1, "expires_at": 1 }, "signature": "example-token" }
SignedActivationHeartbeatResponse 4 fields

Schema

SignedEnvelope + object

Example Value

{
  "data": {
    "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
    "license_status": "active",
    "certificate": "string",
    "next_heartbeat_in": 10,
    "machine_info_digest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
FieldRequiredType and descriptionExample Value
data Required
value
"string"
response_assertion Required
object
{ "v": 1, "product_id": "prod_0123456789abcdef0123", "key_id": "01K5QWERTY1234567890ABCDEFG", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "request_id": "01K5QWERTY1234567890ABCDEFG", "nonce": "string", "server_time": 1, "status": 1, "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }
response_signature Required
string
"example-token"
signing_delegation Required
object
{ "delegation": { "v": 1, "purpose": "runtime-response", "product_id": "prod_0123456789abcdef0123", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "online_key_id": "01K5QWERTY1234567890ABCDEFG", "public_key": "string", "issued_at": 1, "expires_at": 1 }, "signature": "example-token" }
SignedConsumptionSyncResponse 4 fields

Schema

SignedEnvelope + object

Example Value

{
  "data": {
    "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
    "consumptions": [
      {
        "consumption_id": "01K5QWERTY1234567890ABCDEFG",
        "status": "active"
      }
    ],
    "counters": {
      "property": {
        "limit": 0,
        "remaining": 0,
        "revision": 0
      }
    }
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
FieldRequiredType and descriptionExample Value
data Required
value
"string"
response_assertion Required
object
{ "v": 1, "product_id": "prod_0123456789abcdef0123", "key_id": "01K5QWERTY1234567890ABCDEFG", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "request_id": "01K5QWERTY1234567890ABCDEFG", "nonce": "string", "server_time": 1, "status": 1, "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }
response_signature Required
string
"example-token"
signing_delegation Required
object
{ "delegation": { "v": 1, "purpose": "runtime-response", "product_id": "prod_0123456789abcdef0123", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "online_key_id": "01K5QWERTY1234567890ABCDEFG", "public_key": "string", "issued_at": 1, "expires_at": 1 }, "signature": "example-token" }
SignedSealedFileKeyResponse 4 fields

Schema

SignedEnvelope + object

Example Value

{
  "data": {
    "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
    "file_id": "esNxn3TKNIsd_Dyi2XYojA",
    "header_sha256": "f7511808a1669a5481adebe399a96ad043d29ebb887207743368c3fb812717e5",
    "enc": "BC1G-oCCtQBTqm4VEolqWH6MHHbpugqlixdHLXLURww-71zLlbPAaperQqYpqsHIyF9bJ66JOqwcEaZ1yHqSNPI",
    "wrapped_key": "j4LNTalkfJFXswg_u9NXmazh7FZQHrAs4iqPQNp0hHCsdQIZWcS3AOpEkYp2mape"
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
FieldRequiredType and descriptionExample Value
data Required
value
"string"
response_assertion Required
object
{ "v": 1, "product_id": "prod_0123456789abcdef0123", "key_id": "01K5QWERTY1234567890ABCDEFG", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "request_id": "01K5QWERTY1234567890ABCDEFG", "nonce": "string", "server_time": 1, "status": 1, "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }
response_signature Required
string
"example-token"
signing_delegation Required
object
{ "delegation": { "v": 1, "purpose": "runtime-response", "product_id": "prod_0123456789abcdef0123", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "online_key_id": "01K5QWERTY1234567890ABCDEFG", "public_key": "string", "issued_at": 1, "expires_at": 1 }, "signature": "example-token" }
SignedLeaseResponse 4 fields

Schema

SignedEnvelope + object

Example Value

{
  "data": {
    "lease_id": "lease_id_aaaaaaaaaaaaaaaaaaaa",
    "instance_id": "01K5QWERTY1234567890ABCDEFG",
    "expires_at": 1,
    "heartbeat_in": 10
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
FieldRequiredType and descriptionExample Value
data Required
value
"string"
response_assertion Required
object
{ "v": 1, "product_id": "prod_0123456789abcdef0123", "key_id": "01K5QWERTY1234567890ABCDEFG", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "request_id": "01K5QWERTY1234567890ABCDEFG", "nonce": "string", "server_time": 1, "status": 1, "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }
response_signature Required
string
"example-token"
signing_delegation Required
object
{ "delegation": { "v": 1, "purpose": "runtime-response", "product_id": "prod_0123456789abcdef0123", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "online_key_id": "01K5QWERTY1234567890ABCDEFG", "public_key": "string", "issued_at": 1, "expires_at": 1 }, "signature": "example-token" }
SignedLeaseReleaseResponse 4 fields

Schema

SignedEnvelope + object

Example Value

{
  "data": {
    "lease_id": "lease_id_aaaaaaaaaaaaaaaaaaaa",
    "status": "released"
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
FieldRequiredType and descriptionExample Value
data Required
value
"string"
response_assertion Required
object
{ "v": 1, "product_id": "prod_0123456789abcdef0123", "key_id": "01K5QWERTY1234567890ABCDEFG", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "request_id": "01K5QWERTY1234567890ABCDEFG", "nonce": "string", "server_time": 1, "status": 1, "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }
response_signature Required
string
"example-token"
signing_delegation Required
object
{ "delegation": { "v": 1, "purpose": "runtime-response", "product_id": "prod_0123456789abcdef0123", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "online_key_id": "01K5QWERTY1234567890ABCDEFG", "public_key": "string", "issued_at": 1, "expires_at": 1 }, "signature": "example-token" }
SignedLeaseCheckoutResponse 4 fields

Schema

SignedEnvelope + object

Example Value

{
  "data": {
    "lease_id": "lease_id_aaaaaaaaaaaaaaaaaaaa",
    "instance_id": "01K5QWERTY1234567890ABCDEFG",
    "expires_at": 1,
    "heartbeat_in": 10,
    "checkout_expires_at": 1,
    "checkout": "string"
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
FieldRequiredType and descriptionExample Value
data Required
value
"string"
response_assertion Required
object
{ "v": 1, "product_id": "prod_0123456789abcdef0123", "key_id": "01K5QWERTY1234567890ABCDEFG", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "request_id": "01K5QWERTY1234567890ABCDEFG", "nonce": "string", "server_time": 1, "status": 1, "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }
response_signature Required
string
"example-token"
signing_delegation Required
object
{ "delegation": { "v": 1, "purpose": "runtime-response", "product_id": "prod_0123456789abcdef0123", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "online_key_id": "01K5QWERTY1234567890ABCDEFG", "public_key": "string", "issued_at": 1, "expires_at": 1 }, "signature": "example-token" }
EmailVerificationStartRequest 7 fields

Schema

object

Example Value

{
  "product_id": "prod_0123456789abcdef0123",
  "license_key": "string",
  "email": "developer@example.com",
  "device_signing_public_key": "string",
  "nonce": "stringxxxxxxxxxxxxxxxx",
  "locale": "ja",
  "sdk_version": "string"
}
FieldRequiredType and descriptionExample Value
product_id Required "prod_0123456789abcdef0123"
license_key Required
string Minimum length: 1 Maximum length: 512
"string"
email Required
string email Minimum length: 3 Maximum length: 254

The address the license user entered in the app. Compared after trimming spaces and lowercasing

"developer@example.com"
device_signing_public_key Required
string Minimum length: 1 Maximum length: 2048

Ed25519 public key (PEM or ed25519:base64url) of the device that will activate. The confirmation must send the same key

"string"
nonce Required
string Minimum length: 22 Maximum length: 255
"stringxxxxxxxxxxxxxxxx"
locale Optional
string Minimum length: 2 Maximum length: 35

Language of the email (ja or en). Falls back to Accept-Language, then Japanese

"ja"
sdk_version Optional
string Maximum length: 255
"string"
EmailVerificationStartData 4 fields

Schema

object

Example Value

{
  "verification_id": "verification_id_aaaaaaaaaaaaaaaaaaaa",
  "expires_at": "2026-09-21T00:00:00Z",
  "resend_after_sec": 1,
  "code_length": 1
}
FieldRequiredType and descriptionExample Value
verification_id Required "verification_id_aaaaaaaaaaaaaaaaaaaa"
expires_at Required
string date-time

When the code stops working

"2026-09-21T00:00:00Z"
resend_after_sec Required
integer Minimum: 1

Seconds to wait before starting again for the same address

1
code_length Required
integer Minimum: 1

Number of digits in the emailed code

1
SignedEmailVerificationStartResponse 4 fields

Schema

SignedEnvelope + object

Example Value

{
  "data": {
    "verification_id": "verification_id_aaaaaaaaaaaaaaaaaaaa",
    "expires_at": "2026-09-21T00:00:00Z",
    "resend_after_sec": 1,
    "code_length": 1
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
FieldRequiredType and descriptionExample Value
data Required
value
"string"
response_assertion Required
object
{ "v": 1, "product_id": "prod_0123456789abcdef0123", "key_id": "01K5QWERTY1234567890ABCDEFG", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "request_id": "01K5QWERTY1234567890ABCDEFG", "nonce": "string", "server_time": 1, "status": 1, "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }
response_signature Required
string
"example-token"
signing_delegation Required
object
{ "delegation": { "v": 1, "purpose": "runtime-response", "product_id": "prod_0123456789abcdef0123", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "online_key_id": "01K5QWERTY1234567890ABCDEFG", "public_key": "string", "issued_at": 1, "expires_at": 1 }, "signature": "example-token" }
EmailVerificationConfirmRequest 5 fields

Schema

object

Example Value

{
  "code": "123456",
  "second_factor_code": "string",
  "device_signing_public_key": "string",
  "nonce": "stringxxxxxxxxxxxxxxxx",
  "sdk_version": "string"
}
FieldRequiredType and descriptionExample Value
code Required
string Minimum length: 1 Maximum length: 32

The six-digit code from the email. Spaces and hyphens are ignored

"123456"
second_factor_code Optional
string Minimum length: 1 Maximum length: 64

An authenticator app code, a recovery code, or the approval code obtained by opening the link in the verification email and approving with a passkey. Required only for license users with two-factor authentication. The passkey approval code is bound to this verification, expires after at most 10 minutes, and can be used once

"string"
device_signing_public_key Required
string Minimum length: 1 Maximum length: 2048

The same Ed25519 public key sent to start the verification

"string"
nonce Required
string Minimum length: 22 Maximum length: 255
"stringxxxxxxxxxxxxxxxx"
sdk_version Optional
string Maximum length: 255
"string"
EmailVerificationConfirmData 2 fields

Schema

object

Example Value

{
  "named_user_token": "Example name",
  "expires_at": "2026-09-21T00:00:00Z"
}
FieldRequiredType and descriptionExample Value
named_user_token Required
string Maximum length: 4096

Pass as named_user_token to POST /runtime/v1/activations

"Example name"
expires_at Required
string date-time
"2026-09-21T00:00:00Z"
SignedEmailVerificationConfirmResponse 4 fields

Schema

SignedEnvelope + object

Example Value

{
  "data": {
    "named_user_token": "Example name",
    "expires_at": "2026-09-21T00:00:00Z"
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
FieldRequiredType and descriptionExample Value
data Required
value
"string"
response_assertion Required
object
{ "v": 1, "product_id": "prod_0123456789abcdef0123", "key_id": "01K5QWERTY1234567890ABCDEFG", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "request_id": "01K5QWERTY1234567890ABCDEFG", "nonce": "string", "server_time": 1, "status": 1, "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }
response_signature Required
string
"example-token"
signing_delegation Required
object
{ "delegation": { "v": 1, "purpose": "runtime-response", "product_id": "prod_0123456789abcdef0123", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "online_key_id": "01K5QWERTY1234567890ABCDEFG", "public_key": "string", "issued_at": 1, "expires_at": 1 }, "signature": "example-token" }
EmailVerificationError 1 fields

Schema

Error + object

Example Value

{
  "error": {
    "code": "EMAIL_VERIFICATION_CODE_INVALID",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "details": {
      "remaining_attempts": 0
    }
  }
}
FieldRequiredType and descriptionExample Value
error Required
object
{ "code": "string", "message": "string", "request_id": "01K5QWERTY1234567890ABCDEFG", "retryable": true, "doc_url": "https://example.com/resource", "details": {} }
ReleasableDevice 8 fields

Schema

object

Example Value

{
  "handle": "string",
  "os": "string",
  "arch": "string",
  "model": "string",
  "activated_at": "2026-09-21T00:00:00Z",
  "last_check_at": "2026-09-21T00:00:00Z",
  "this_device": true,
  "releasable": true
}
FieldRequiredType and descriptionExample Value
handle Required
string Maximum length: 64

Pass as device_handle to release this device. Works only with this verification

"string"
os Required
string | null Maximum length: 120

OS name and version the device reported, for display

"string"
arch Required
string | null Maximum length: 120

CPU type the device reported (x64, ARM64, ...), for display

"string"
model Required
string | null Maximum length: 120

Manufacturer and model the device reported, for display

"string"
activated_at Required
string date-time
"2026-09-21T00:00:00Z"
last_check_at Required
string | null date-time

The device's last periodic check

"2026-09-21T00:00:00Z"
this_device Required
boolean

True for the device that started this device release

true
releasable Required
boolean

False for this device and for a device whose offline file is still valid

true
DeviceReleaseConfirmData 5 fields

Schema

object

Example Value

{
  "release_token": "example-token",
  "expires_at": "2026-09-21T00:00:00Z",
  "machine_limit": 0,
  "active_device_count": 0,
  "devices": [
    {
      "handle": "string",
      "os": "string",
      "arch": "string",
      "model": "string",
      "activated_at": "2026-09-21T00:00:00Z",
      "last_check_at": "2026-09-21T00:00:00Z",
      "this_device": true,
      "releasable": true
    }
  ]
}
FieldRequiredType and descriptionExample Value
release_token Required
string Maximum length: 128

Send with POST /runtime/v1/device-releases/{verification_id}/release. Valid for 10 minutes and one release. Do not log or store it

"example-token"
expires_at Required
string date-time

When the release token stops working

"2026-09-21T00:00:00Z"
machine_limit Required
integer | null Minimum: 0

Devices the user may activate at once; null means no limit

0
active_device_count Required
integer Minimum: 0

Active devices in scope, which can be more than the devices listed

0
devices Required
array<ReleasableDevice> Maximum items: 32
[ { "handle": "string", "os": "string", "arch": "string", "model": "string", "activated_at": "2026-09-21T00:00:00Z", "last_check_at": "2026-09-21T00:00:00Z", "this_device": true, "releasable": true } ]
SignedDeviceReleaseConfirmResponse 4 fields

Schema

SignedEnvelope + object

Example Value

{
  "data": {
    "release_token": "example-token",
    "expires_at": "2026-09-21T00:00:00Z",
    "machine_limit": 0,
    "active_device_count": 0,
    "devices": [
      {
        "handle": "string",
        "os": "string",
        "arch": "string",
        "model": "string",
        "activated_at": "2026-09-21T00:00:00Z",
        "last_check_at": "2026-09-21T00:00:00Z",
        "this_device": true,
        "releasable": true
      }
    ]
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
FieldRequiredType and descriptionExample Value
data Required
value
"string"
response_assertion Required
object
{ "v": 1, "product_id": "prod_0123456789abcdef0123", "key_id": "01K5QWERTY1234567890ABCDEFG", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "request_id": "01K5QWERTY1234567890ABCDEFG", "nonce": "string", "server_time": 1, "status": 1, "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }
response_signature Required
string
"example-token"
signing_delegation Required
object
{ "delegation": { "v": 1, "purpose": "runtime-response", "product_id": "prod_0123456789abcdef0123", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "online_key_id": "01K5QWERTY1234567890ABCDEFG", "public_key": "string", "issued_at": 1, "expires_at": 1 }, "signature": "example-token" }
DeviceReleaseRequest 7 fields

Schema

object

Example Value

{
  "release_token": "example-token",
  "device_handle": "string",
  "device_signing_public_key": "string",
  "device_proof": "string",
  "nonce": "stringxxxxxxxxxxxxxxxx",
  "locale": "string",
  "sdk_version": "string"
}
FieldRequiredType and descriptionExample Value
release_token Required
string Minimum length: 1 Maximum length: 128
"example-token"
device_handle Required
string Minimum length: 1 Maximum length: 64
"string"
device_signing_public_key Required
string Minimum length: 1 Maximum length: 2048

The same Ed25519 public key that started the device release

"string"
device_proof Required
string Minimum length: 1 Maximum length: 1024

Signature by the device signing key of the prefix Usakey-Device-Release-Proof-v1, a newline, and the canonical JSON of this body without device_proof

"string"
nonce Required
string Minimum length: 22 Maximum length: 255
"stringxxxxxxxxxxxxxxxx"
locale Optional
string Minimum length: 2 Maximum length: 35

Language of the release notice email (ja or en). Falls back to Accept-Language, then Japanese

"string"
sdk_version Optional
string Maximum length: 255
"string"
DeviceReleaseData 3 fields

Schema

object

Example Value

{
  "device": {
    "handle": "string",
    "os": "string",
    "arch": "string",
    "model": "string",
    "activated_at": "2026-09-21T00:00:00Z",
    "last_check_at": "2026-09-21T00:00:00Z",
    "this_device": true,
    "releasable": true
  },
  "named_user_token": "Example name",
  "named_user_token_expires_at": "2026-09-21T00:00:00Z"
}
FieldRequiredType and descriptionExample Value
device Required { "handle": "string", "os": "string", "arch": "string", "model": "string", "activated_at": "2026-09-21T00:00:00Z", "last_check_at": "2026-09-21T00:00:00Z", "this_device": true, "releasable": true }
named_user_token Optional
string Maximum length: 4096

Named-user policies only. Pass as named_user_token to POST /runtime/v1/activations on the new device

"Example name"
named_user_token_expires_at Optional
string date-time
"2026-09-21T00:00:00Z"
SignedDeviceReleaseResponse 4 fields

Schema

SignedEnvelope + object

Example Value

{
  "data": {
    "device": {
      "handle": "string",
      "os": "string",
      "arch": "string",
      "model": "string",
      "activated_at": "2026-09-21T00:00:00Z",
      "last_check_at": "2026-09-21T00:00:00Z",
      "this_device": true,
      "releasable": true
    }
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
FieldRequiredType and descriptionExample Value
data Required
value
"string"
response_assertion Required
object
{ "v": 1, "product_id": "prod_0123456789abcdef0123", "key_id": "01K5QWERTY1234567890ABCDEFG", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "request_id": "01K5QWERTY1234567890ABCDEFG", "nonce": "string", "server_time": 1, "status": 1, "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }
response_signature Required
string
"example-token"
signing_delegation Required
object
{ "delegation": { "v": 1, "purpose": "runtime-response", "product_id": "prod_0123456789abcdef0123", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "online_key_id": "01K5QWERTY1234567890ABCDEFG", "public_key": "string", "issued_at": 1, "expires_at": 1 }, "signature": "example-token" }
TrialVerificationStartRequest 6 fields

Schema

object

Example Value

{
  "product_id": "prod_0123456789abcdef0123",
  "email": "developer@example.com",
  "device_signing_public_key": "string",
  "nonce": "stringxxxxxxxxxxxxxxxx",
  "locale": "ja",
  "sdk_version": "string"
}
FieldRequiredType and descriptionExample Value
product_id Required "prod_0123456789abcdef0123"
email Required
string email Minimum length: 3 Maximum length: 254

The address the user entered. Compared after trimming spaces and lowercasing

"developer@example.com"
device_signing_public_key Required
string Minimum length: 1 Maximum length: 2048

Ed25519 public key (PEM or ed25519:base64url) of the device that will run the trial. The confirmation must use the same key

"string"
nonce Required
string Minimum length: 22 Maximum length: 255
"stringxxxxxxxxxxxxxxxx"
locale Optional
string Minimum length: 2 Maximum length: 35

Language of the email (ja or en). Falls back to Accept-Language, then Japanese

"ja"
sdk_version Optional
string Maximum length: 255
"string"
TrialVerificationConfirmRequest 12 fields

Schema

object

Example Value

{
  "code": "123456",
  "email": "developer@example.com",
  "device_signing_public_key": "string",
  "device_kem_public_key": "string",
  "device_proof": "string",
  "machine_signals": {
    "property": "string"
  },
  "machine_info": {
    "os": "string",
    "arch": "string"
  },
  "app_version": "string",
  "sdk_version": "string",
  "request_id": "01K5QWERTY1234567890ABCDEFG",
  "client_time": 1,
  "nonce": "stringxxxxxxxxxxxxxxxx"
}
FieldRequiredType and descriptionExample Value
code Required
string Minimum length: 1 Maximum length: 32

The six-digit code from the email. Spaces and hyphens are ignored

"123456"
email Required
string email Minimum length: 3 Maximum length: 254

The same address as the start request

"developer@example.com"
device_signing_public_key Required
string Maximum length: 2048

The same Ed25519 public key as the start request

"string"
device_kem_public_key Required
string Maximum length: 1024
"string"
device_proof Required
string Maximum length: 1024

Signature by the device signing key of the prefix Usakey-Trial-Proof-v1, a newline, and the canonical JSON of this body without device_proof

"string"
machine_signals Optional
object
{ "property": "string" }
machine_info Required { "os": "string", "arch": "string" }
app_version Optional
string Maximum length: 255
"string"
sdk_version Optional
string Maximum length: 255
"string"
request_id Optional
string Maximum length: 255
"01K5QWERTY1234567890ABCDEFG"
client_time Optional
integer
1
nonce Required
string Minimum length: 22 Maximum length: 255
"stringxxxxxxxxxxxxxxxx"
TrialSignupData 4 fields

Schema

ActivationData + object

Example Value

{
  "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
  "certificate": "string",
  "machine_info_digest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa"
}
FieldRequiredType and descriptionExample Value
license_id Required "license_id_aaaaaaaaaaaaaaaaaaaa"
activation_id Required "activation_id_aaaaaaaaaaaaaaaaaaaa"
certificate Required
string

PASETO v4.public license certificate

"string"
machine_info_digest Required
string Pattern: ^[0-9a-f]{64}$

SHA-256 digest of the full machine_info stored for this activation

"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
SignedTrialSignupResponse 4 fields

Schema

SignedEnvelope + object

Example Value

{
  "data": {
    "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
    "certificate": "string",
    "machine_info_digest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa"
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
FieldRequiredType and descriptionExample Value
data Required
value
"string"
response_assertion Required
object
{ "v": 1, "product_id": "prod_0123456789abcdef0123", "key_id": "01K5QWERTY1234567890ABCDEFG", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "request_id": "01K5QWERTY1234567890ABCDEFG", "nonce": "string", "server_time": 1, "status": 1, "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }
response_signature Required
string
"example-token"
signing_delegation Required
object
{ "delegation": { "v": 1, "purpose": "runtime-response", "product_id": "prod_0123456789abcdef0123", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "online_key_id": "01K5QWERTY1234567890ABCDEFG", "public_key": "string", "issued_at": 1, "expires_at": 1 }, "signature": "example-token" }
RedemptionRequest 8 fields

Schema

object

Example Value

{
  "product_id": "prod_0123456789abcdef0123",
  "code": "RDM-ABCDE-FGHJK-LMNPQ-RSTUV",
  "email": "developer@example.com",
  "name": "Example name",
  "nonce": "stringxxxxxxxxxxxxxxxx",
  "locale": "ja",
  "sdk_version": "string",
  "app_version": "string"
}
FieldRequiredType and descriptionExample Value
product_id Required "prod_0123456789abcdef0123"
code Required
string Minimum length: 1 Maximum length: 64

The redemption code. Case, spaces and hyphens are ignored

"RDM-ABCDE-FGHJK-LMNPQ-RSTUV"
email Optional
string email Minimum length: 3 Maximum length: 254

Required for an order with a named-user policy (the license is assigned to the local-ID license user with this address). Optional otherwise; when sent, the license key is also emailed to this address

"developer@example.com"
name Optional
string Maximum length: 480

Name of the license user created for a named-user policy when none has this address

"Example name"
nonce Required
string Minimum length: 22 Maximum length: 255
"stringxxxxxxxxxxxxxxxx"
locale Optional
string Minimum length: 2 Maximum length: 35

Language of the email (ja or en). Falls back to Accept-Language, then Japanese

"ja"
sdk_version Optional
string Maximum length: 255
"string"
app_version Optional
string Maximum length: 255
"string"
RedemptionData 6 fields

Schema

object

Example Value

{
  "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
  "license_key": "string",
  "status": "active",
  "expires_at": "2026-09-21T00:00:00Z",
  "identity_mode": "license_key",
  "order_number": "string"
}
FieldRequiredType and descriptionExample Value
license_id Required "license_id_aaaaaaaaaaaaaaaaaaaa"
license_key Required
string

The new license key. It appears only in this response; activate with it next

"string"
status Required
string

Allowed values: active

"active"
expires_at Required
string | null date-time
"2026-09-21T00:00:00Z"
identity_mode Required
string

Allowed values: license_key, named_user

named_user means the license is assigned to the address sent; obtain a named-user token with POST /runtime/v1/email-verifications before activating

"license_key"
order_number Required
string

The order number the vendor uses to look up the order

"string"
SignedRedemptionResponse 4 fields

Schema

SignedEnvelope + object

Example Value

{
  "data": {
    "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
    "license_key": "string",
    "status": "active",
    "expires_at": "2026-09-21T00:00:00Z",
    "identity_mode": "license_key",
    "order_number": "string"
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
FieldRequiredType and descriptionExample Value
data Required
value
"string"
response_assertion Required
object
{ "v": 1, "product_id": "prod_0123456789abcdef0123", "key_id": "01K5QWERTY1234567890ABCDEFG", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "request_id": "01K5QWERTY1234567890ABCDEFG", "nonce": "string", "server_time": 1, "status": 1, "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }
response_signature Required
string
"example-token"
signing_delegation Required
object
{ "delegation": { "v": 1, "purpose": "runtime-response", "product_id": "prod_0123456789abcdef0123", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "online_key_id": "01K5QWERTY1234567890ABCDEFG", "public_key": "string", "issued_at": 1, "expires_at": 1 }, "signature": "example-token" }
TrustBundleResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "bundle": {},
    "root_signature": "example-token"
  }
}
FieldRequiredType and descriptionExample Value
data Optional
object
{ "bundle": {}, "root_signature": "example-token" }
Error 1 fields

Schema

object

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
FieldRequiredType and descriptionExample Value
error Required
object
{ "code": "string", "message": "string", "request_id": "01K5QWERTY1234567890ABCDEFG", "retryable": true, "doc_url": "https://example.com/resource", "details": {} }
Pagination 2 fields

Schema

object

Example Value

{
  "next_cursor": "string",
  "has_more": true
}
FieldRequiredType and descriptionExample Value
next_cursor Required
string | null
"string"
has_more Required
boolean
true
Product 11 fields

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "name": "Example name",
  "code": "string",
  "description": "Example description",
  "environment": "live",
  "status": "active",
  "trust_bundle_sequence": 1,
  "signing_status": "pending",
  "created_at": "2026-09-21T00:00:00Z",
  "updated_at": "2026-09-21T00:00:00Z",
  "version": 1
}
FieldRequiredType and descriptionExample Value
public_id Optional "public_id_aaaaaaaaaaaaaaaaaaaa"
name Optional
string
"Example name"
code Optional
string
"string"
description Optional
string | null
"Example description"
environment Optional
value

Allowed values: live, test

"live"
status Optional
string
"active"
trust_bundle_sequence Optional
integer | null
1
signing_status Optional
string

Allowed values: pending, ready

Whether a product signing key is ready for license issuance.

"pending"
created_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
updated_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
version Optional
integer | null
1
ProductResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "code": "string",
    "description": "Example description",
    "environment": "live",
    "status": "active",
    "trust_bundle_sequence": 1,
    "signing_status": "pending",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z",
    "version": 1
  }
}
FieldRequiredType and descriptionExample Value
data Required { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "code": "string", "description": "Example description", "environment": "live", "status": "active", "trust_bundle_sequence": 1, "signing_status": "pending", "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z", "version": 1 }
ProductListResponse 2 fields

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "code": "string",
      "description": "Example description",
      "environment": "live",
      "status": "active",
      "trust_bundle_sequence": 1,
      "signing_status": "pending",
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z",
      "version": 1
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
FieldRequiredType and descriptionExample Value
data Required
array<Product>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "code": "string", "description": "Example description", "environment": "live", "status": "active", "trust_bundle_sequence": 1, "signing_status": "pending", "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z", "version": 1 } ]
pagination Required { "next_cursor": "string", "has_more": true }
IntegrationConfig 10 fields

The contents of usakey.config.json.

Schema

object

Example Value

{
  "usakey_config_version": 1,
  "generated_at": "2026-09-21T00:00:00Z",
  "bundle_version": "string",
  "environment": "live",
  "api_url": "https://example.com/resource",
  "product": {
    "id": "id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name"
  },
  "trust_anchor": {
    "signing_mode": "string",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "trust_bundle_url": "https://example.com/resource",
    "minimum_trust_bundle_sequence": 1,
    "root_public_key": "string",
    "development_root_public_key": "string",
    "public_key_unavailable_reason": "string",
    "signing_keys_pending_reason": "string"
  },
  "entitlements": [
    {
      "name": "Example name",
      "type": "boolean",
      "policies": [
        "string"
      ]
    }
  ],
  "license_key_delivery": "manual",
  "stripe_license_claim_url": "https://example.com/resource"
}
FieldRequiredType and descriptionExample Value
usakey_config_version Required
integer
1
generated_at Required
string date-time
"2026-09-21T00:00:00Z"
bundle_version Required
string
"string"
environment Required
value

Allowed values: live, test

"live"
api_url Required
string uri
"https://example.com/resource"
product Required
object
{ "id": "id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name" }
trust_anchor Required { "signing_mode": "string", "key_id": "01K5QWERTY1234567890ABCDEFG", "trust_bundle_url": "https://example.com/resource", "minimum_trust_bundle_sequence": 1, "root_public_key": "string", "development_root_public_key": "string", "public_key_unavailable_reason": "string", "signing_keys_pending_reason": "string" }
entitlements Required
array<object>
[ { "name": "Example name", "type": "boolean", "policies": [ "string" ] } ]
license_key_delivery Required
value

Allowed values: manual, stripe_checkout

"manual"
stripe_license_claim_url Optional
string uri

Present only while the workspace's own Stripe integration is active and this product has an active price mapping.

"https://example.com/resource"
IntegrationTrustAnchor 8 fields

Schema

object

Example Value

{
  "signing_mode": "string",
  "key_id": "01K5QWERTY1234567890ABCDEFG",
  "trust_bundle_url": "https://example.com/resource",
  "minimum_trust_bundle_sequence": 1,
  "root_public_key": "string",
  "development_root_public_key": "string",
  "public_key_unavailable_reason": "string",
  "signing_keys_pending_reason": "string"
}
FieldRequiredType and descriptionExample Value
signing_mode Required
string
"string"
key_id Optional
string | null
"01K5QWERTY1234567890ABCDEFG"
trust_bundle_url Required
string uri
"https://example.com/resource"
minimum_trust_bundle_sequence Required
integer Minimum: 1
1
root_public_key Optional
string
"string"
development_root_public_key Optional
string

Development servers only, for test-environment products. Never build it into a distributed product.

"string"
public_key_unavailable_reason Optional
string
"string"
signing_keys_pending_reason Optional
string
"string"
IntegrationConfigDocument 3 fields

Schema

object

Example Value

{
  "file_name": "Example name",
  "content": "string",
  "config": {
    "usakey_config_version": 1,
    "generated_at": "2026-09-21T00:00:00Z",
    "bundle_version": "string",
    "environment": "live",
    "api_url": "https://example.com/resource",
    "product": {
      "id": "id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name"
    },
    "trust_anchor": {
      "signing_mode": "string",
      "key_id": "01K5QWERTY1234567890ABCDEFG",
      "trust_bundle_url": "https://example.com/resource",
      "minimum_trust_bundle_sequence": 1,
      "root_public_key": "string",
      "development_root_public_key": "string",
      "public_key_unavailable_reason": "string",
      "signing_keys_pending_reason": "string"
    },
    "entitlements": [
      {
        "name": "Example name",
        "type": "boolean",
        "policies": [
          "string"
        ]
      }
    ],
    "license_key_delivery": "manual",
    "stripe_license_claim_url": "https://example.com/resource"
  }
}
FieldRequiredType and descriptionExample Value
file_name Required
string
"Example name"
content Required
string

The file exactly as the Console downloads it.

"string"
config Required { "usakey_config_version": 1, "generated_at": "2026-09-21T00:00:00Z", "bundle_version": "string", "environment": "live", "api_url": "https://example.com/resource", "product": { "id": "id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name" }, "trust_anchor": { "signing_mode": "string", "key_id": "01K5QWERTY1234567890ABCDEFG", "trust_bundle_url": "https://example.com/resource", "minimum_trust_bundle_sequence": 1, "root_public_key": "string", "development_root_public_key": "string", "public_key_unavailable_reason": "string", "signing_keys_pending_reason": "string" }, "entitlements": [ { "name": "Example name", "type": "boolean", "policies": [ "string" ] } ], "license_key_delivery": "manual", "stripe_license_claim_url": "https://example.com/resource" }
IntegrationConfigResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "file_name": "Example name",
    "content": "string",
    "config": {
      "usakey_config_version": 1,
      "generated_at": "2026-09-21T00:00:00Z",
      "bundle_version": "string",
      "environment": "live",
      "api_url": "https://example.com/resource",
      "product": {
        "id": "id_aaaaaaaaaaaaaaaaaaaa",
        "name": "Example name"
      },
      "trust_anchor": {
        "signing_mode": "string",
        "key_id": "01K5QWERTY1234567890ABCDEFG",
        "trust_bundle_url": "https://example.com/resource",
        "minimum_trust_bundle_sequence": 1,
        "root_public_key": "string",
        "development_root_public_key": "string",
        "public_key_unavailable_reason": "string",
        "signing_keys_pending_reason": "string"
      },
      "entitlements": [
        {
          "name": "Example name",
          "type": "boolean",
          "policies": [
            "string"
          ]
        }
      ],
      "license_key_delivery": "manual",
      "stripe_license_claim_url": "https://example.com/resource"
    }
  }
}
FieldRequiredType and descriptionExample Value
data Required { "file_name": "Example name", "content": "string", "config": { "usakey_config_version": 1, "generated_at": "2026-09-21T00:00:00Z", "bundle_version": "string", "environment": "live", "api_url": "https://example.com/resource", "product": { "id": "id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name" }, "trust_anchor": { "signing_mode": "string", "key_id": "01K5QWERTY1234567890ABCDEFG", "trust_bundle_url": "https://example.com/resource", "minimum_trust_bundle_sequence": 1, "root_public_key": "string", "development_root_public_key": "string", "public_key_unavailable_reason": "string", "signing_keys_pending_reason": "string" }, "entitlements": [ { "name": "Example name", "type": "boolean", "policies": [ "string" ] } ], "license_key_delivery": "manual", "stripe_license_claim_url": "https://example.com/resource" } }
ProductSealedFiles 3 fields

Schema

object

Example Value

{
  "product_id": "prod_0123456789abcdef0123",
  "status": "enabled",
  "current_key": {
    "key_id": "key_seal_0123456789abcdef0123",
    "public_key": "p256:BC8ylpFJ44nP01V3Ei2l5hm8iUAyxR8cepHBhlWWLzsAqCUpcNOfUa05MSFt28Z9RVc7yJO2cKyY_V1rZon_v6Y",
    "sealing_key": "usakey-sealing-key:v1:prod_0123456789abcdef0123:key_seal_0123456789abcdef0123:p256:BC8ylpFJ44nP01V3Ei2l5hm8iUAyxR8cepHBhlWWLzsAqCUpcNOfUa05MSFt28Z9RVc7yJO2cKyY_V1rZon_v6Y",
    "created_at": "2026-09-21T00:00:00Z"
  }
}
FieldRequiredType and descriptionExample Value
product_id Required "prod_0123456789abcdef0123"
status Required
string

Allowed values: enabled, disabled, not_entitled, unavailable

"enabled"
current_key Required
ProductSealingKey | null
{ "key_id": "key_seal_0123456789abcdef0123", "public_key": "p256:BC8ylpFJ44nP01V3Ei2l5hm8iUAyxR8cepHBhlWWLzsAqCUpcNOfUa05MSFt28Z9RVc7yJO2cKyY_V1rZon_v6Y", "sealing_key": "usakey-sealing-key:v1:prod_0123456789abcdef0123:key_seal_0123456789abcdef0123:p256:BC8ylpFJ44nP01V3Ei2l5hm8iUAyxR8cepHBhlWWLzsAqCUpcNOfUa05MSFt28Z9RVc7yJO2cKyY_V1rZon_v6Y", "created_at": "2026-09-21T00:00:00Z" }
ProductSealingKey 4 fields

Schema

object

Example Value

{
  "key_id": "key_seal_0123456789abcdef0123",
  "public_key": "p256:BC8ylpFJ44nP01V3Ei2l5hm8iUAyxR8cepHBhlWWLzsAqCUpcNOfUa05MSFt28Z9RVc7yJO2cKyY_V1rZon_v6Y",
  "sealing_key": "usakey-sealing-key:v1:prod_0123456789abcdef0123:key_seal_0123456789abcdef0123:p256:BC8ylpFJ44nP01V3Ei2l5hm8iUAyxR8cepHBhlWWLzsAqCUpcNOfUa05MSFt28Z9RVc7yJO2cKyY_V1rZon_v6Y",
  "created_at": "2026-09-21T00:00:00Z"
}
FieldRequiredType and descriptionExample Value
key_id Required
string

Identifier of this key version, written into every file sealed with it

"key_seal_0123456789abcdef0123"
public_key Required
string Pattern: ^p256:[A-Za-z0-9_-]{87}$

Uncompressed P-256 public key, unpadded base64url. In deployed environments every product has the same public key (the environment's sealing key); key_id and the product ID tell products apart.

"p256:BC8ylpFJ44nP01V3Ei2l5hm8iUAyxR8cepHBhlWWLzsAqCUpcNOfUa05MSFt28Z9RVc7yJO2cKyY_V1rZon_v6Y"
sealing_key Required
string

The one-line public key for the sealing tool (usakey-seal --key). Not a secret.

"usakey-sealing-key:v1:prod_0123456789abcdef0123:key_seal_0123456789abcdef0123:p256:BC8ylpFJ44nP01V3Ei2l5hm8iUAyxR8cepHBhlWWLzsAqCUpcNOfUa05MSFt28Z9RVc7yJO2cKyY_V1rZon_v6Y"
created_at Required
string date-time
"2026-09-21T00:00:00Z"
ProductSealedFilesResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "product_id": "prod_0123456789abcdef0123",
    "status": "enabled",
    "current_key": {
      "key_id": "key_seal_0123456789abcdef0123",
      "public_key": "p256:BC8ylpFJ44nP01V3Ei2l5hm8iUAyxR8cepHBhlWWLzsAqCUpcNOfUa05MSFt28Z9RVc7yJO2cKyY_V1rZon_v6Y",
      "sealing_key": "usakey-sealing-key:v1:prod_0123456789abcdef0123:key_seal_0123456789abcdef0123:p256:BC8ylpFJ44nP01V3Ei2l5hm8iUAyxR8cepHBhlWWLzsAqCUpcNOfUa05MSFt28Z9RVc7yJO2cKyY_V1rZon_v6Y",
      "created_at": "2026-09-21T00:00:00Z"
    }
  }
}
FieldRequiredType and descriptionExample Value
data Required { "product_id": "prod_0123456789abcdef0123", "status": "enabled", "current_key": { "key_id": "key_seal_0123456789abcdef0123", "public_key": "p256:BC8ylpFJ44nP01V3Ei2l5hm8iUAyxR8cepHBhlWWLzsAqCUpcNOfUa05MSFt28Z9RVc7yJO2cKyY_V1rZon_v6Y", "sealing_key": "usakey-sealing-key:v1:prod_0123456789abcdef0123:key_seal_0123456789abcdef0123:p256:BC8ylpFJ44nP01V3Ei2l5hm8iUAyxR8cepHBhlWWLzsAqCUpcNOfUa05MSFt28Z9RVc7yJO2cKyY_V1rZon_v6Y", "created_at": "2026-09-21T00:00:00Z" } }
ProductBrowserRuntime 4 fields

Schema

object

Example Value

{
  "product_id": "prod_0123456789abcdef0123",
  "enabled": true,
  "allowed_origins": [
    "string"
  ],
  "version": 0
}
FieldRequiredType and descriptionExample Value
product_id Required "prod_0123456789abcdef0123"
enabled Required
boolean
true
allowed_origins Required
array<string> Maximum items: 20
[ "string" ]
version Required
integer Minimum: 0
0
ProductBrowserRuntimeResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "product_id": "prod_0123456789abcdef0123",
    "enabled": true,
    "allowed_origins": [
      "string"
    ],
    "version": 0
  }
}
FieldRequiredType and descriptionExample Value
data Required { "product_id": "prod_0123456789abcdef0123", "enabled": true, "allowed_origins": [ "string" ], "version": 0 }
ProductTrialSignup 6 fields

How the product accepts trials started from the product app with email verification.

Schema

object

Example Value

{
  "product_id": "prod_0123456789abcdef0123",
  "policy_id": "01K5QWERTY1234567890ABCDEFG",
  "daily_limit": 1,
  "status": "accepting",
  "started_last_24_hours": 0,
  "version": 0
}
FieldRequiredType and descriptionExample Value
product_id Required "prod_0123456789abcdef0123"
policy_id Required
string | null Maximum length: 64

The trial policy used for trials started from the app: an active trial policy of this product that uses license keys. null when the product does not accept them.

"01K5QWERTY1234567890ABCDEFG"
daily_limit Required
integer Minimum: 1 Maximum: 1000

The most trials the app can start for this product in any 24 hours. Defaults to 20.

1
status Required
string

Allowed values: accepting, off, not_entitled, policy_unavailable, daily_limit_reached

accepting: a start request sends a code. off: no policy is chosen. not_entitled: the current plan does not include trials. policy_unavailable: the chosen policy was retired or changed and can no longer be used; choose another. daily_limit_reached: started_last_24_hours has reached daily_limit.

"accepting"
started_last_24_hours Required
integer Minimum: 0

Trials started from the app in the last 24 hours, counted against daily_limit. A second device joining the same trial is not counted.

0
version Required
integer Minimum: 0

The product's version. Send it in If-Match to change the settings only if the product has not changed since it was read.

0
ProductTrialSignupResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "product_id": "prod_0123456789abcdef0123",
    "policy_id": "01K5QWERTY1234567890ABCDEFG",
    "daily_limit": 1,
    "status": "accepting",
    "started_last_24_hours": 0,
    "version": 0
  }
}
FieldRequiredType and descriptionExample Value
data Required { "product_id": "prod_0123456789abcdef0123", "policy_id": "01K5QWERTY1234567890ABCDEFG", "daily_limit": 1, "status": "accepting", "started_last_24_hours": 0, "version": 0 }
PolicyDeviceRelease 5 fields

Whether users of licenses issued with this policy version can release a device that is not at hand from the product app (POST /runtime/v1/device-releases).

Schema

object

Example Value

{
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "enabled": true,
  "status": "available",
  "verified_by": "license_user_email",
  "license_count": 0
}
FieldRequiredType and descriptionExample Value
policy_id Required "policy_id_aaaaaaaaaaaaaaaaaaaa"
enabled Required
boolean

True when the vendor allows it for this policy version. Defaults to false.

true
status Required
string

Allowed values: available, off, not_entitled, not_supported

available: users can release a device from the app. off: not allowed. not_entitled: allowed, but the current plan does not include email license verification, so no code is sent. not_supported: a fully offline perpetual policy, which cannot allow it.

"available"
verified_by Required
string

Allowed values: license_user_email, customer_email

Where the code goes: license_user_email is the email address of the license user (named-user policies; users can release only their own devices), customer_email is the email address registered for the license's customer (license key policies; users can release the license's devices).

"license_user_email"
license_count Required
integer Minimum: 0

Licenses issued with this policy version, to which a change applies at once.

0
PolicyDeviceReleaseResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "enabled": true,
    "status": "available",
    "verified_by": "license_user_email",
    "license_count": 0
  }
}
FieldRequiredType and descriptionExample Value
data Required { "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa", "enabled": true, "status": "available", "verified_by": "license_user_email", "license_count": 0 }
PolicyDeviceReleaseInput 1 fields

Schema

object

Example Value

{
  "enabled": true
}
FieldRequiredType and descriptionExample Value
enabled Required
boolean

true allows device replacement by users for this policy version; false stops allowing it.

true
ActivationDeactivation 4 fields

How a device activation was deactivated.

Schema

object

Example Value

{
  "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
  "status": "active",
  "deactivated_at": "2026-09-21T00:00:00Z",
  "record": {
    "method": "string",
    "event_id": "event_id_aaaaaaaaaaaaaaaaaaaa",
    "occurred_at": "2026-09-21T00:00:00Z",
    "actor": {
      "type": "string",
      "id": "01K5QWERTY1234567890ABCDEFG"
    },
    "verified_by": "string",
    "second_factor": true,
    "reason": "string"
  }
}
FieldRequiredType and descriptionExample Value
activation_id Required "activation_id_aaaaaaaaaaaaaaaaaaaa"
status Required
string

The activation's status, as in GET /mgmt/v1/activations/{id}.

"active"
deactivated_at Required
string | null date-time
"2026-09-21T00:00:00Z"
record Required
object | null

The operation that deactivated it. null while the activation is active, and when the device deactivated itself or no record remains.

{ "method": "string", "event_id": "event_id_aaaaaaaaaaaaaaaaaaaa", "occurred_at": "2026-09-21T00:00:00Z", "actor": { "type": "string", "id": "01K5QWERTY1234567890ABCDEFG" }, "verified_by": "string", "second_factor": true, "reason": "string" }
ActivationDeactivationResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "deactivated_at": "2026-09-21T00:00:00Z",
    "record": {
      "method": "string",
      "event_id": "event_id_aaaaaaaaaaaaaaaaaaaa",
      "occurred_at": "2026-09-21T00:00:00Z",
      "actor": {
        "type": "string",
        "id": "01K5QWERTY1234567890ABCDEFG"
      },
      "verified_by": "string",
      "second_factor": true,
      "reason": "string"
    }
  }
}
FieldRequiredType and descriptionExample Value
data Required { "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa", "status": "active", "deactivated_at": "2026-09-21T00:00:00Z", "record": { "method": "string", "event_id": "event_id_aaaaaaaaaaaaaaaaaaaa", "occurred_at": "2026-09-21T00:00:00Z", "actor": { "type": "string", "id": "01K5QWERTY1234567890ABCDEFG" }, "verified_by": "string", "second_factor": true, "reason": "string" } }
PlanQuota 5 fields

Schema

object

Example Value

{
  "limit": 1,
  "used": 1,
  "remaining": 1,
  "limit_with_overage": 1,
  "resets_at": "2026-09-21T00:00:00Z"
}
FieldRequiredType and descriptionExample Value
limit Required
integer | null

null means unlimited.

1
used Required
integer
1
remaining Required
integer | null
1
limit_with_overage Optional
integer

The point where new usage is refused when the plan allows paid overage above the limit.

1
resets_at Optional
string date-time

Monthly quotas only.

"2026-09-21T00:00:00Z"
PlanLimits 7 fields

Schema

object

Example Value

{
  "plan": {
    "code": "string",
    "name": "Example name",
    "trial": true,
    "ends_at": "2026-09-21T00:00:00Z"
  },
  "quotas": {
    "property": {
      "limit": 1,
      "used": 1,
      "remaining": 1,
      "limit_with_overage": 1,
      "resets_at": "2026-09-21T00:00:00Z"
    }
  },
  "policy_constraints": {
    "activation_sync_min_sec": 1,
    "revocation_exposure_max_sec": 1,
    "cert_ttl_max_sec": 1,
    "floating_sync_min_sec": 1,
    "floating_lease_ttl_min_sec": 1
  },
  "policy_defaults": {
    "heartbeat_sec": 1,
    "cert_ttl_sec": 1,
    "network_grace_sec": 1
  },
  "revocation_exposure_max_sec_by_plan": {
    "property": 1
  },
  "license_duration_max_sec": 1,
  "unavailable_features": [
    {
      "key": "string",
      "minimum_plan": "string",
      "minimum_plan_name": "Example name"
    }
  ]
}
FieldRequiredType and descriptionExample Value
plan Required
object | null
{ "code": "string", "name": "Example name", "trial": true, "ends_at": "2026-09-21T00:00:00Z" }
quotas Required
object
{ "property": { "limit": 1, "used": 1, "remaining": 1, "limit_with_overage": 1, "resets_at": "2026-09-21T00:00:00Z" } }
policy_constraints Required
object
{ "activation_sync_min_sec": 1, "revocation_exposure_max_sec": 1, "cert_ttl_max_sec": 1, "floating_sync_min_sec": 1, "floating_lease_ttl_min_sec": 1 }
policy_defaults Required
object
{ "heartbeat_sec": 1, "cert_ttl_sec": 1, "network_grace_sec": 1 }
revocation_exposure_max_sec_by_plan Required
object
{ "property": 1 }
license_duration_max_sec Required
integer | null
1
unavailable_features Required
array<object>
[ { "key": "string", "minimum_plan": "string", "minimum_plan_name": "Example name" } ]
PlanLimitsResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "plan": {
      "code": "string",
      "name": "Example name",
      "trial": true,
      "ends_at": "2026-09-21T00:00:00Z"
    },
    "quotas": {
      "property": {
        "limit": 1,
        "used": 1,
        "remaining": 1,
        "limit_with_overage": 1,
        "resets_at": "2026-09-21T00:00:00Z"
      }
    },
    "policy_constraints": {
      "activation_sync_min_sec": 1,
      "revocation_exposure_max_sec": 1,
      "cert_ttl_max_sec": 1,
      "floating_sync_min_sec": 1,
      "floating_lease_ttl_min_sec": 1
    },
    "policy_defaults": {
      "heartbeat_sec": 1,
      "cert_ttl_sec": 1,
      "network_grace_sec": 1
    },
    "revocation_exposure_max_sec_by_plan": {
      "property": 1
    },
    "license_duration_max_sec": 1,
    "unavailable_features": [
      {
        "key": "string",
        "minimum_plan": "string",
        "minimum_plan_name": "Example name"
      }
    ]
  }
}
FieldRequiredType and descriptionExample Value
data Required { "plan": { "code": "string", "name": "Example name", "trial": true, "ends_at": "2026-09-21T00:00:00Z" }, "quotas": { "property": { "limit": 1, "used": 1, "remaining": 1, "limit_with_overage": 1, "resets_at": "2026-09-21T00:00:00Z" } }, "policy_constraints": { "activation_sync_min_sec": 1, "revocation_exposure_max_sec": 1, "cert_ttl_max_sec": 1, "floating_sync_min_sec": 1, "floating_lease_ttl_min_sec": 1 }, "policy_defaults": { "heartbeat_sec": 1, "cert_ttl_sec": 1, "network_grace_sec": 1 }, "revocation_exposure_max_sec_by_plan": { "property": 1 }, "license_duration_max_sec": 1, "unavailable_features": [ { "key": "string", "minimum_plan": "string", "minimum_plan_name": "Example name" } ] }
PlanBillingStatus 6 fields

Schema

object

Example Value

{
  "status": "active",
  "service_available": true,
  "plan": {
    "code": "string",
    "name": "Example name"
  },
  "billing_interval": "string",
  "renews_at": "2026-09-21T00:00:00Z",
  "ends_at": "2026-09-21T00:00:00Z"
}
FieldRequiredType and descriptionExample Value
status Required
string

evaluation (the free Evaluation plan), trial (a free trial that ends at ends_at), active (a paid plan paid through Stripe), cancellation_scheduled (the paid plan ends at ends_at), payment_failed (the last payment failed; Stripe retries it up to 8 times over 2 weeks and cancels the subscription if every retry fails), payment_action_required (the last payment needs the card issuer's confirmation (3D Secure) from the invoice in the Console; canceled if unconfirmed for 15 days), unpaid (stopped for an unpaid invoice until it is paid), paused (stopped until a payment goes through), pending (the first payment is not confirmed yet), review_required (Usakey is reviewing the payment or the cancellation; contact Usakey Support), operator_contract (a contract Usakey set up outside Stripe, such as one paid by invoice), dedicated (the dedicated environment plan) or ended (no plan is in effect). More values may be added; check the Console's Billing page for an unknown value.

"active"
service_available Required
boolean

Whether license activations and checks from product apps (Runtime API) and Management API requests are accepted now. false while the contract is stopped or after it has ended.

true
plan Required
object | null

The plan this status is about. It is the plan in effect, or for unpaid, paused and review_required, the plan of that contract. null when no plan is in effect.

{ "code": "string", "name": "Example name" }
billing_interval Required
string | null

monthly or yearly for a contract paid through Stripe. null otherwise.

"string"
renews_at Required
string | null date-time

When the contract renews automatically next (active, payment_failed and payment_action_required). null otherwise.

"2026-09-21T00:00:00Z"
ends_at Required
string | null date-time

When the plan ends if nothing changes. It is the end of the paid period for cancellation_scheduled, the end of the trial for trial, and the end of the term for operator_contract. null when there is no end date.

"2026-09-21T00:00:00Z"
PlanBillingStatusResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "status": "active",
    "service_available": true,
    "plan": {
      "code": "string",
      "name": "Example name"
    },
    "billing_interval": "string",
    "renews_at": "2026-09-21T00:00:00Z",
    "ends_at": "2026-09-21T00:00:00Z"
  }
}
FieldRequiredType and descriptionExample Value
data Required { "status": "active", "service_available": true, "plan": { "code": "string", "name": "Example name" }, "billing_interval": "string", "renews_at": "2026-09-21T00:00:00Z", "ends_at": "2026-09-21T00:00:00Z" }
ActivationDetail 16 fields

Schema

object

Example Value

{
  "id": "id_aaaaaaaaaaaaaaaaaaaa",
  "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
  "status": "active",
  "machine": {},
  "device_signing_key_thumbprint": "string",
  "first_seen_at": "2026-09-21T00:00:00Z",
  "last_seen_at": "2026-09-21T00:00:00Z",
  "deactivated_at": "2026-09-21T00:00:00Z",
  "activated_at": "2026-09-21T00:00:00Z",
  "last_heartbeat_at": "2026-09-21T00:00:00Z",
  "heartbeat_interval_sec": 1,
  "next_heartbeat_due": {
    "earliest": "2026-09-21T00:00:00Z",
    "latest": "2026-09-21T00:00:00Z"
  },
  "heartbeat_overdue": true,
  "certificate_expires_at": "2026-09-21T00:00:00Z",
  "app_version": "string",
  "sdk_version": "string"
}
FieldRequiredType and descriptionExample Value
id Optional "id_aaaaaaaaaaaaaaaaaaaa"
license_id Optional "license_id_aaaaaaaaaaaaaaaaaaaa"
status Optional
string
"active"
machine Optional
object
{}
device_signing_key_thumbprint Optional
string
"string"
first_seen_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
last_seen_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
deactivated_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
activated_at Optional
string date-time
"2026-09-21T00:00:00Z"
last_heartbeat_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
heartbeat_interval_sec Optional
integer | null
1
next_heartbeat_due Optional
object | null

When the next periodic check should arrive, between earliest and latest (the interval plus up to 10% jitter).

{ "earliest": "2026-09-21T00:00:00Z", "latest": "2026-09-21T00:00:00Z" }
heartbeat_overdue Optional
boolean

True when an active device has missed its periodic check window.

true
certificate_expires_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
app_version Optional
string | null
"string"
sdk_version Optional
string | null
"string"
ActivationDetailResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "id": "id_aaaaaaaaaaaaaaaaaaaa",
    "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "machine": {},
    "device_signing_key_thumbprint": "string",
    "first_seen_at": "2026-09-21T00:00:00Z",
    "last_seen_at": "2026-09-21T00:00:00Z",
    "deactivated_at": "2026-09-21T00:00:00Z",
    "activated_at": "2026-09-21T00:00:00Z",
    "last_heartbeat_at": "2026-09-21T00:00:00Z",
    "heartbeat_interval_sec": 1,
    "next_heartbeat_due": {
      "earliest": "2026-09-21T00:00:00Z",
      "latest": "2026-09-21T00:00:00Z"
    },
    "heartbeat_overdue": true,
    "certificate_expires_at": "2026-09-21T00:00:00Z",
    "app_version": "string",
    "sdk_version": "string"
  }
}
FieldRequiredType and descriptionExample Value
data Required { "id": "id_aaaaaaaaaaaaaaaaaaaa", "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa", "status": "active", "machine": {}, "device_signing_key_thumbprint": "string", "first_seen_at": "2026-09-21T00:00:00Z", "last_seen_at": "2026-09-21T00:00:00Z", "deactivated_at": "2026-09-21T00:00:00Z", "activated_at": "2026-09-21T00:00:00Z", "last_heartbeat_at": "2026-09-21T00:00:00Z", "heartbeat_interval_sec": 1, "next_heartbeat_due": { "earliest": "2026-09-21T00:00:00Z", "latest": "2026-09-21T00:00:00Z" }, "heartbeat_overdue": true, "certificate_expires_at": "2026-09-21T00:00:00Z", "app_version": "string", "sdk_version": "string" }
RuntimeEvent 12 fields

Rejected or failed Runtime API requests with the same target, operation and result code within one hour. Request bodies, license keys, signatures and device keys are never stored.

Schema

object

Example Value

{
  "operation": "activation_create",
  "outcome": "rejected",
  "code": "DEVICE_PROOF_INVALID",
  "http_status": 400,
  "occurrences": 1,
  "first_occurred_at": "2026-09-21T00:00:00Z",
  "last_occurred_at": "2026-09-21T00:00:00Z",
  "last_request_id": "01K5QWERTY1234567890ABCDEFG",
  "product_id": "prod_0123456789abcdef0123",
  "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
  "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
  "details_omitted": true
}
FieldRequiredType and descriptionExample Value
operation Required
value

Allowed values: activation_create, activation_heartbeat, activation_deactivate, lease_acquire, lease_heartbeat, lease_release

"activation_create"
outcome Required
value

Allowed values: rejected, error

rejected for a 4xx answer the product app has to fix; error for a temporary 5xx failure on the Usakey side.

"rejected"
code Required
string Pattern: ^[A-Z][A-Z0-9_]{0,63}$

The error.code the Runtime API returned, such as DEVICE_PROOF_INVALID, CLOCK_SKEW or LICENSE_REVOKED.

"DEVICE_PROOF_INVALID"
http_status Required
integer Minimum: 400 Maximum: 599
400
occurrences Required
integer Minimum: 1
1
first_occurred_at Required
string date-time
"2026-09-21T00:00:00Z"
last_occurred_at Required
string date-time
"2026-09-21T00:00:00Z"
last_request_id Required
string | null

The request_id of the latest request, as the product app received it.

"01K5QWERTY1234567890ABCDEFG"
product_id Required
PublicId | null
"prod_0123456789abcdef0123"
license_id Required
PublicId | null

Null when the request did not reach a license, such as a wrong license key.

"license_id_aaaaaaaaaaaaaaaaaaaa"
activation_id Required
PublicId | null
"activation_id_aaaaaaaaaaaaaaaaaaaa"
details_omitted Required
boolean

True for an entry that counts requests beyond the hourly limit of entries without their product, license and device activation.

true
RuntimeEventListResponse 2 fields

Schema

object

Example Value

{
  "data": [
    {
      "operation": "activation_create",
      "outcome": "rejected",
      "code": "DEVICE_PROOF_INVALID",
      "http_status": 400,
      "occurrences": 1,
      "first_occurred_at": "2026-09-21T00:00:00Z",
      "last_occurred_at": "2026-09-21T00:00:00Z",
      "last_request_id": "01K5QWERTY1234567890ABCDEFG",
      "product_id": "prod_0123456789abcdef0123",
      "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
      "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
      "details_omitted": true
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
FieldRequiredType and descriptionExample Value
data Required
array<RuntimeEvent>
[ { "operation": "activation_create", "outcome": "rejected", "code": "DEVICE_PROOF_INVALID", "http_status": 400, "occurrences": 1, "first_occurred_at": "2026-09-21T00:00:00Z", "last_occurred_at": "2026-09-21T00:00:00Z", "last_request_id": "01K5QWERTY1234567890ABCDEFG", "product_id": "prod_0123456789abcdef0123", "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa", "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa", "details_omitted": true } ]
pagination Required { "next_cursor": "string", "has_more": true }
AnomalyListResponse 2 fields

Schema

object

Example Value

{
  "data": [
    {
      "id": "id_aaaaaaaaaaaaaaaaaaaa",
      "status": "open",
      "scope": "device",
      "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
      "product_id": "prod_0123456789abcdef0123",
      "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
      "score": 0,
      "threshold": 1,
      "confirmations": 1,
      "signals": [
        "string"
      ],
      "action": "notify",
      "license_suspended_by_anomaly": true,
      "license_status": "active",
      "detected_at": "2026-09-21T00:00:00Z",
      "last_observed_at": "2026-09-21T00:00:00Z",
      "resolved_at": "2026-09-21T00:00:00Z",
      "resolution_note": "string",
      "exempt_until": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
FieldRequiredType and descriptionExample Value
data Required
array<Anomaly>
[ { "id": "id_aaaaaaaaaaaaaaaaaaaa", "status": "open", "scope": "device", "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa", "product_id": "prod_0123456789abcdef0123", "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa", "score": 0, "threshold": 1, "confirmations": 1, "signals": [ "string" ], "action": "notify", "license_suspended_by_anomaly": true, "license_status": "active", "detected_at": "2026-09-21T00:00:00Z", "last_observed_at": "2026-09-21T00:00:00Z", "resolved_at": "2026-09-21T00:00:00Z", "resolution_note": "string", "exempt_until": "2026-09-21T00:00:00Z" } ]
pagination Required { "next_cursor": "string", "has_more": true }
AnomalyDetailResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "id": "id_aaaaaaaaaaaaaaaaaaaa",
    "status": "open",
    "scope": "device",
    "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
    "product_id": "prod_0123456789abcdef0123",
    "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
    "score": 0,
    "threshold": 1,
    "confirmations": 1,
    "signals": [
      "string"
    ],
    "action": "notify",
    "license_suspended_by_anomaly": true,
    "license_status": "active",
    "detected_at": "2026-09-21T00:00:00Z",
    "last_observed_at": "2026-09-21T00:00:00Z",
    "resolved_at": "2026-09-21T00:00:00Z",
    "resolution_note": "string",
    "exempt_until": "2026-09-21T00:00:00Z",
    "breakdown": [
      {
        "signal": "string",
        "count": 0,
        "points": 0,
        "first_observed_at": "2026-09-21T00:00:00Z",
        "last_observed_at": "2026-09-21T00:00:00Z"
      }
    ],
    "events": [
      {
        "signal": "string",
        "observed_at": "2026-09-21T00:00:00Z",
        "new_devices": 0,
        "threshold": 0,
        "window_days": 1,
        "related_license_ids": [
          "related_license_ids_aaaaaaaaaaaaaaaaaaaa"
        ],
        "same_license_other_user": true
      }
    ]
  }
}
FieldRequiredType and descriptionExample Value
data Required { "id": "id_aaaaaaaaaaaaaaaaaaaa", "status": "open", "scope": "device", "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa", "product_id": "prod_0123456789abcdef0123", "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa", "score": 0, "threshold": 1, "confirmations": 1, "signals": [ "string" ], "action": "notify", "license_suspended_by_anomaly": true, "license_status": "active", "detected_at": "2026-09-21T00:00:00Z", "last_observed_at": "2026-09-21T00:00:00Z", "resolved_at": "2026-09-21T00:00:00Z", "resolution_note": "string", "exempt_until": "2026-09-21T00:00:00Z", "breakdown": [ { "signal": "string", "count": 0, "points": 0, "first_observed_at": "2026-09-21T00:00:00Z", "last_observed_at": "2026-09-21T00:00:00Z" } ], "events": [ { "signal": "string", "observed_at": "2026-09-21T00:00:00Z", "new_devices": 0, "threshold": 0, "window_days": 1, "related_license_ids": [ "related_license_ids_aaaaaaaaaaaaaaaaaaaa" ], "same_license_other_user": true } ] }
AnomalyClosedResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "id": "id_aaaaaaaaaaaaaaaaaaaa",
    "status": "open",
    "scope": "device",
    "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
    "product_id": "prod_0123456789abcdef0123",
    "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
    "score": 0,
    "threshold": 1,
    "confirmations": 1,
    "signals": [
      "string"
    ],
    "action": "notify",
    "license_suspended_by_anomaly": true,
    "license_status": "active",
    "detected_at": "2026-09-21T00:00:00Z",
    "last_observed_at": "2026-09-21T00:00:00Z",
    "resolved_at": "2026-09-21T00:00:00Z",
    "resolution_note": "string",
    "exempt_until": "2026-09-21T00:00:00Z",
    "license_resumed": true
  }
}
FieldRequiredType and descriptionExample Value
data Required { "id": "id_aaaaaaaaaaaaaaaaaaaa", "status": "open", "scope": "device", "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa", "product_id": "prod_0123456789abcdef0123", "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa", "score": 0, "threshold": 1, "confirmations": 1, "signals": [ "string" ], "action": "notify", "license_suspended_by_anomaly": true, "license_status": "active", "detected_at": "2026-09-21T00:00:00Z", "last_observed_at": "2026-09-21T00:00:00Z", "resolved_at": "2026-09-21T00:00:00Z", "resolution_note": "string", "exempt_until": "2026-09-21T00:00:00Z", "license_resumed": true }
AnomalyBreakdownEntry 5 fields

How much one signal adds to the score.

Schema

object

Example Value

{
  "signal": "string",
  "count": 0,
  "points": 0,
  "first_observed_at": "2026-09-21T00:00:00Z",
  "last_observed_at": "2026-09-21T00:00:00Z"
}
FieldRequiredType and descriptionExample Value
signal Required
string
"string"
count Required
integer Minimum: 0

How many times the signal was found while it still counted.

0
points Required
integer Minimum: 0

Points the signal adds to the score after decay and its cap.

0
first_observed_at Required
string | null date-time
"2026-09-21T00:00:00Z"
last_observed_at Required
string | null date-time
"2026-09-21T00:00:00Z"
AnomalyEvent 7 fields

One cross-device signal found for the suspicion.

Schema

object

Example Value

{
  "signal": "string",
  "observed_at": "2026-09-21T00:00:00Z",
  "new_devices": 0,
  "threshold": 0,
  "window_days": 1,
  "related_license_ids": [
    "related_license_ids_aaaaaaaaaaaaaaaaaaaa"
  ],
  "same_license_other_user": true
}
FieldRequiredType and descriptionExample Value
signal Required
string

parallel_network_use (checks with the same device activation alternated between distant connection sources within 15 minutes), shared_hardware (the same hardware is on another license of the product or used by another user of this license) or device_churn (devices on the license keep being replaced).

"string"
observed_at Required
string date-time
"2026-09-21T00:00:00Z"
new_devices Optional
integer Minimum: 0

device_churn only. Devices that newly joined the license within window_days.

0
threshold Optional
integer Minimum: 0

device_churn only. The number of new devices that counts as many, twice the devices the license allows at once and at least 3.

0
window_days Optional
integer Minimum: 1

device_churn only.

1
related_license_ids Optional
array<PublicId>

shared_hardware only. Licenses of the same product with the same hardware.

[ "related_license_ids_aaaaaaaaaaaaaaaaaaaa" ]
same_license_other_user Optional
boolean

shared_hardware only. True when another user of this named-user license has the same hardware.

true
Anomaly 18 fields

A suspicion of device cloning or license key sharing. It holds signal names, points and times only, never an IP address, a connection source or a device identifier.

Schema

object

Example Value

{
  "id": "id_aaaaaaaaaaaaaaaaaaaa",
  "status": "open",
  "scope": "device",
  "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
  "product_id": "prod_0123456789abcdef0123",
  "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
  "score": 0,
  "threshold": 1,
  "confirmations": 1,
  "signals": [
    "string"
  ],
  "action": "notify",
  "license_suspended_by_anomaly": true,
  "license_status": "active",
  "detected_at": "2026-09-21T00:00:00Z",
  "last_observed_at": "2026-09-21T00:00:00Z",
  "resolved_at": "2026-09-21T00:00:00Z",
  "resolution_note": "string",
  "exempt_until": "2026-09-21T00:00:00Z"
}
FieldRequiredType and descriptionExample Value
id Required "id_aaaaaaaaaaaaaaaaaaaa"
status Required
string

Allowed values: open, dismissed, resolved

open has not been reviewed yet; dismissed was closed as no problem; resolved was closed as handled.

"open"
scope Required
string

Allowed values: device, license

device for a suspicion about one device activation; license for one about the whole license (devices that keep being replaced), which has no activation_id.

"device"
license_id Required "license_id_aaaaaaaaaaaaaaaaaaaa"
product_id Required "prod_0123456789abcdef0123"
activation_id Required
PublicId | null
"activation_id_aaaaaaaaaaaaaaaaaaaa"
score Required
integer Minimum: 0

The anomaly score at the last check.

0
threshold Required
integer Minimum: 1 Maximum: 1000
1
confirmations Required
integer Minimum: 1

Checks whose score reached the threshold while the suspicion was open.

1
signals Required
array<string>

Names of the signals behind the score, highest points first.

[ "string" ]
action Required
string

Allowed values: notify, suspend_license

What the policy's anomaly rule chose when the suspicion opened. notify records and notifies only; suspend_license suspends the license once the confirmations reach the rule's minimum_confirmations.

"notify"
license_suspended_by_anomaly Required
boolean

True when this suspicion suspended the license automatically.

true
license_status Required
string

The license's current state (active, suspended, revoked or expired).

"active"
detected_at Required
string date-time
"2026-09-21T00:00:00Z"
last_observed_at Required
string date-time
"2026-09-21T00:00:00Z"
resolved_at Required
string | null date-time
"2026-09-21T00:00:00Z"
resolution_note Required
string | null Maximum length: 500

The reason given when the suspicion was closed.

"string"
exempt_until Required
string | null date-time

After a dismissal, the same device or license is not suspended automatically until this time.

"2026-09-21T00:00:00Z"
AnomalyDetail 20 fields

A suspicion with the breakdown of its score and the cross-device signals recorded for it.

Schema

object

Example Value

{
  "id": "id_aaaaaaaaaaaaaaaaaaaa",
  "status": "open",
  "scope": "device",
  "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
  "product_id": "prod_0123456789abcdef0123",
  "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
  "score": 0,
  "threshold": 1,
  "confirmations": 1,
  "signals": [
    "string"
  ],
  "action": "notify",
  "license_suspended_by_anomaly": true,
  "license_status": "active",
  "detected_at": "2026-09-21T00:00:00Z",
  "last_observed_at": "2026-09-21T00:00:00Z",
  "resolved_at": "2026-09-21T00:00:00Z",
  "resolution_note": "string",
  "exempt_until": "2026-09-21T00:00:00Z",
  "breakdown": [
    {
      "signal": "string",
      "count": 0,
      "points": 0,
      "first_observed_at": "2026-09-21T00:00:00Z",
      "last_observed_at": "2026-09-21T00:00:00Z"
    }
  ],
  "events": [
    {
      "signal": "string",
      "observed_at": "2026-09-21T00:00:00Z",
      "new_devices": 0,
      "threshold": 0,
      "window_days": 1,
      "related_license_ids": [
        "related_license_ids_aaaaaaaaaaaaaaaaaaaa"
      ],
      "same_license_other_user": true
    }
  ]
}
FieldRequiredType and descriptionExample Value
id Required "id_aaaaaaaaaaaaaaaaaaaa"
status Required
string

Allowed values: open, dismissed, resolved

open has not been reviewed yet; dismissed was closed as no problem; resolved was closed as handled.

"open"
scope Required
string

Allowed values: device, license

device for a suspicion about one device activation; license for one about the whole license (devices that keep being replaced), which has no activation_id.

"device"
license_id Required "license_id_aaaaaaaaaaaaaaaaaaaa"
product_id Required "prod_0123456789abcdef0123"
activation_id Required
PublicId | null
"activation_id_aaaaaaaaaaaaaaaaaaaa"
score Required
integer Minimum: 0

The anomaly score at the last check.

0
threshold Required
integer Minimum: 1 Maximum: 1000
1
confirmations Required
integer Minimum: 1

Checks whose score reached the threshold while the suspicion was open.

1
signals Required
array<string>

Names of the signals behind the score, highest points first.

[ "string" ]
action Required
string

Allowed values: notify, suspend_license

What the policy's anomaly rule chose when the suspicion opened. notify records and notifies only; suspend_license suspends the license once the confirmations reach the rule's minimum_confirmations.

"notify"
license_suspended_by_anomaly Required
boolean

True when this suspicion suspended the license automatically.

true
license_status Required
string

The license's current state (active, suspended, revoked or expired).

"active"
detected_at Required
string date-time
"2026-09-21T00:00:00Z"
last_observed_at Required
string date-time
"2026-09-21T00:00:00Z"
resolved_at Required
string | null date-time
"2026-09-21T00:00:00Z"
resolution_note Required
string | null Maximum length: 500

The reason given when the suspicion was closed.

"string"
exempt_until Required
string | null date-time

After a dismissal, the same device or license is not suspended automatically until this time.

"2026-09-21T00:00:00Z"
breakdown Required
array<AnomalyBreakdownEntry>

Signals behind the score, highest points first.

[ { "signal": "string", "count": 0, "points": 0, "first_observed_at": "2026-09-21T00:00:00Z", "last_observed_at": "2026-09-21T00:00:00Z" } ]
events Required
array<AnomalyEvent> Maximum items: 30

Cross-device signals recorded for the suspicion, newest first. Signals of a single device (such as vm_detected) are in breakdown only.

[ { "signal": "string", "observed_at": "2026-09-21T00:00:00Z", "new_devices": 0, "threshold": 0, "window_days": 1, "related_license_ids": [ "related_license_ids_aaaaaaaaaaaaaaaaaaaa" ], "same_license_other_user": true } ]
AnomalyClosed 19 fields

A suspicion that was just closed.

Schema

object

Example Value

{
  "id": "id_aaaaaaaaaaaaaaaaaaaa",
  "status": "open",
  "scope": "device",
  "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
  "product_id": "prod_0123456789abcdef0123",
  "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
  "score": 0,
  "threshold": 1,
  "confirmations": 1,
  "signals": [
    "string"
  ],
  "action": "notify",
  "license_suspended_by_anomaly": true,
  "license_status": "active",
  "detected_at": "2026-09-21T00:00:00Z",
  "last_observed_at": "2026-09-21T00:00:00Z",
  "resolved_at": "2026-09-21T00:00:00Z",
  "resolution_note": "string",
  "exempt_until": "2026-09-21T00:00:00Z",
  "license_resumed": true
}
FieldRequiredType and descriptionExample Value
id Required "id_aaaaaaaaaaaaaaaaaaaa"
status Required
string

Allowed values: open, dismissed, resolved

open has not been reviewed yet; dismissed was closed as no problem; resolved was closed as handled.

"open"
scope Required
string

Allowed values: device, license

device for a suspicion about one device activation; license for one about the whole license (devices that keep being replaced), which has no activation_id.

"device"
license_id Required "license_id_aaaaaaaaaaaaaaaaaaaa"
product_id Required "prod_0123456789abcdef0123"
activation_id Required
PublicId | null
"activation_id_aaaaaaaaaaaaaaaaaaaa"
score Required
integer Minimum: 0

The anomaly score at the last check.

0
threshold Required
integer Minimum: 1 Maximum: 1000
1
confirmations Required
integer Minimum: 1

Checks whose score reached the threshold while the suspicion was open.

1
signals Required
array<string>

Names of the signals behind the score, highest points first.

[ "string" ]
action Required
string

Allowed values: notify, suspend_license

What the policy's anomaly rule chose when the suspicion opened. notify records and notifies only; suspend_license suspends the license once the confirmations reach the rule's minimum_confirmations.

"notify"
license_suspended_by_anomaly Required
boolean

True when this suspicion suspended the license automatically.

true
license_status Required
string

The license's current state (active, suspended, revoked or expired).

"active"
detected_at Required
string date-time
"2026-09-21T00:00:00Z"
last_observed_at Required
string date-time
"2026-09-21T00:00:00Z"
resolved_at Required
string | null date-time
"2026-09-21T00:00:00Z"
resolution_note Required
string | null Maximum length: 500

The reason given when the suspicion was closed.

"string"
exempt_until Required
string | null date-time

After a dismissal, the same device or license is not suspended automatically until this time.

"2026-09-21T00:00:00Z"
license_resumed Required
boolean

True when closing the suspicion resumed the license it had suspended.

true
PolicyAnomalyRuleResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "anomaly_action": "notify",
    "threshold": 1,
    "minimum_confirmations": 1,
    "decay_hours": 1,
    "weights": {
      "property": 0
    },
    "policy_versions": 1
  }
}
FieldRequiredType and descriptionExample Value
data Required { "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa", "anomaly_action": "notify", "threshold": 1, "minimum_confirmations": 1, "decay_hours": 1, "weights": { "property": 0 }, "policy_versions": 1 }
PolicyAnomalyRule 7 fields

The policy's rule for suspected device cloning and shared license keys, shared by every version of the policy.

Schema

object

Example Value

{
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "anomaly_action": "notify",
  "threshold": 1,
  "minimum_confirmations": 1,
  "decay_hours": 1,
  "weights": {
    "property": 0
  },
  "policy_versions": 1
}
FieldRequiredType and descriptionExample Value
policy_id Required "policy_id_aaaaaaaaaaaaaaaaaaaa"
anomaly_action Required
string

Allowed values: notify, suspend_license, off

notify records the suspicion and notifies through the audit log and the activation.anomaly_detected webhook, and stops nothing (default). suspend_license also suspends the license once the confirmations reach minimum_confirmations. off does not look for suspicions.

"notify"
threshold Required
integer Minimum: 1 Maximum: 1000

The score that opens a suspicion. Default 100.

1
minimum_confirmations Required
integer Minimum: 1 Maximum: 10

Checks whose score reached the threshold before suspend_license suspends the license. Default 2.

1
decay_hours Required
integer Minimum: 1 Maximum: 2160

Hours until the points of a signal occurrence halve. Default 168 (7 days).

1
weights Required
object

Weight of each signal, from 0 to 1000; 0 does not count the signal. More signals may be added.

{ "property": 0 }
policy_versions Required
integer Minimum: 1

Versions of the policy (same product and name) that share this rule.

1
StripeIntegrationStatus 7 fields

Schema

object

Example Value

{
  "registered": true,
  "mode": "test",
  "status": "active",
  "secure_claims_required": true,
  "license_claim_url": "https://example.com/resource",
  "last_event": {
    "type": "string",
    "result": "string",
    "at": "2026-09-21T00:00:00Z"
  },
  "offerings": [
    {
      "payment_grace_days": 1,
      "license_email_enabled": true,
      "id": "id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "stripe_price_id": "01K5QWERTY1234567890ABCDEFG",
      "product_id": "prod_0123456789abcdef0123",
      "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
      "status": "active",
      "license_duration_days": 1
    }
  ]
}
FieldRequiredType and descriptionExample Value
registered Required
boolean
true
mode Optional
value

Allowed values: test, live

"test"
status Optional
value

Allowed values: active, disabled

"active"
secure_claims_required Optional
boolean
true
license_claim_url Optional
string | null uri
"https://example.com/resource"
last_event Optional
object | null
{ "type": "string", "result": "string", "at": "2026-09-21T00:00:00Z" }
offerings Required
array<object>
[ { "payment_grace_days": 1, "license_email_enabled": true, "id": "id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "stripe_price_id": "01K5QWERTY1234567890ABCDEFG", "product_id": "prod_0123456789abcdef0123", "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa", "status": "active", "license_duration_days": 1 } ]
StripeIntegrationResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "registered": true,
    "mode": "test",
    "status": "active",
    "secure_claims_required": true,
    "license_claim_url": "https://example.com/resource",
    "last_event": {
      "type": "string",
      "result": "string",
      "at": "2026-09-21T00:00:00Z"
    },
    "offerings": [
      {
        "payment_grace_days": 1,
        "license_email_enabled": true,
        "id": "id_aaaaaaaaaaaaaaaaaaaa",
        "name": "Example name",
        "stripe_price_id": "01K5QWERTY1234567890ABCDEFG",
        "product_id": "prod_0123456789abcdef0123",
        "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
        "status": "active",
        "license_duration_days": 1
      }
    ]
  }
}
FieldRequiredType and descriptionExample Value
data Required { "registered": true, "mode": "test", "status": "active", "secure_claims_required": true, "license_claim_url": "https://example.com/resource", "last_event": { "type": "string", "result": "string", "at": "2026-09-21T00:00:00Z" }, "offerings": [ { "payment_grace_days": 1, "license_email_enabled": true, "id": "id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "stripe_price_id": "01K5QWERTY1234567890ABCDEFG", "product_id": "prod_0123456789abcdef0123", "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa", "status": "active", "license_duration_days": 1 } ] }
StripeOffering 11 fields

Schema

object

Example Value

{
  "payment_grace_days": 0,
  "license_email_enabled": true,
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "name": "Example name",
  "stripe_price_id": "01K5QWERTY1234567890ABCDEFG",
  "product_id": "prod_0123456789abcdef0123",
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "license_duration_days": 1,
  "status": "active",
  "created_at": "2026-09-21T00:00:00Z",
  "updated_at": "2026-09-21T00:00:00Z"
}
FieldRequiredType and descriptionExample Value
payment_grace_days Optional
integer Minimum: 0 Maximum: 90

Days after a failed subscription renewal payment during which the license keeps working and only notices are sent. 0 stops the license as soon as the payment fails. Only subscriptions can use it.

0
license_email_enabled Optional
boolean

When true, the purchaser receives the license key by email after payment. Purchases made without a claim challenge, such as Stripe Payment Links, are then accepted too. In the test environment, email only goes to the workspace's members and reseller staff.

true
public_id Required "public_id_aaaaaaaaaaaaaaaaaaaa"
name Required
string
"Example name"
stripe_price_id Required
string

The Stripe Price ID (price_...) whose purchases issue the license.

"01K5QWERTY1234567890ABCDEFG"
product_id Required "prod_0123456789abcdef0123"
policy_id Required "policy_id_aaaaaaaaaaaaaaaaaaaa"
license_duration_days Required
integer | null

Days a license lasts from the purchase. Null for perpetual policies, and for subscription policies whose expiry follows the Stripe subscription period.

1
status Required
value

Allowed values: active, archived

"active"
created_at Optional
string date-time
"2026-09-21T00:00:00Z"
updated_at Optional
string date-time
"2026-09-21T00:00:00Z"
StripeOfferingResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "payment_grace_days": 0,
    "license_email_enabled": true,
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "stripe_price_id": "01K5QWERTY1234567890ABCDEFG",
    "product_id": "prod_0123456789abcdef0123",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "license_duration_days": 1,
    "status": "active",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
FieldRequiredType and descriptionExample Value
data Required { "payment_grace_days": 0, "license_email_enabled": true, "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "stripe_price_id": "01K5QWERTY1234567890ABCDEFG", "product_id": "prod_0123456789abcdef0123", "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa", "license_duration_days": 1, "status": "active", "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" }
StripeOfferingListResponse 2 fields

Schema

object

Example Value

{
  "data": [
    {
      "payment_grace_days": 0,
      "license_email_enabled": true,
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "stripe_price_id": "01K5QWERTY1234567890ABCDEFG",
      "product_id": "prod_0123456789abcdef0123",
      "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
      "license_duration_days": 1,
      "status": "active",
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
FieldRequiredType and descriptionExample Value
data Required
array<StripeOffering>
[ { "payment_grace_days": 0, "license_email_enabled": true, "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "stripe_price_id": "01K5QWERTY1234567890ABCDEFG", "product_id": "prod_0123456789abcdef0123", "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa", "license_duration_days": 1, "status": "active", "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" } ]
pagination Required { "next_cursor": "string", "has_more": true }
StripeOfferingInput 7 fields

Schema

object

Example Value

{
  "payment_grace_days": 0,
  "license_email_enabled": true,
  "name": "Example name",
  "stripe_price_id": "price_1AbCdEfGhIjKlMnO",
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "license_duration_days": 1,
  "subscription_price_confirmed": true
}
FieldRequiredType and descriptionExample Value
payment_grace_days Optional
integer Minimum: 0 Maximum: 90

Days after a failed subscription renewal payment during which the license keeps working and only notices are sent. 0 stops the license as soon as the payment fails. Only subscriptions can use it.

0
license_email_enabled Optional
boolean

When true, the purchaser receives the license key by email after payment. Purchases made without a claim challenge, such as Stripe Payment Links, are then accepted too. In the test environment, email only goes to the workspace's members and reseller staff.

true
name Required
string Minimum length: 1 Maximum length: 120
"Example name"
stripe_price_id Required
string Minimum length: 1 Maximum length: 255 Pattern: ^price_[A-Za-z0-9]+$
"price_1AbCdEfGhIjKlMnO"
policy_id Required "policy_id_aaaaaaaaaaaaaaaaaaaa"
license_duration_days Optional
integer | null Minimum: 1 Maximum: 3650

Days a license lasts from the purchase. Leave it out for perpetual policies, and for subscription policies whose expiry follows the Stripe subscription period. Trial policies need it.

1
subscription_price_confirmed Optional
boolean

Required as true when an active subscription mapping has no license_duration_days. Send true only after confirming that the Stripe Price is a recurring (subscription) price; a one-time Price then issues no license. Leaving it out counts as not confirmed.

true
StripeOfferingUpdateInput 8 fields

Schema

object

Example Value

{
  "payment_grace_days": 0,
  "license_email_enabled": true,
  "name": "Example name",
  "stripe_price_id": "price_1AbCdEfGhIjKlMnO",
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "license_duration_days": 1,
  "status": "active",
  "subscription_price_confirmed": true
}
FieldRequiredType and descriptionExample Value
payment_grace_days Optional
integer Minimum: 0 Maximum: 90

Days after a failed subscription renewal payment during which the license keeps working and only notices are sent. 0 stops the license as soon as the payment fails. Only subscriptions can use it.

0
license_email_enabled Optional
boolean

When true, the purchaser receives the license key by email after payment. Purchases made without a claim challenge, such as Stripe Payment Links, are then accepted too. In the test environment, email only goes to the workspace's members and reseller staff.

true
name Optional
string Minimum length: 1 Maximum length: 120
"Example name"
stripe_price_id Optional
string Minimum length: 1 Maximum length: 255 Pattern: ^price_[A-Za-z0-9]+$
"price_1AbCdEfGhIjKlMnO"
policy_id Optional "policy_id_aaaaaaaaaaaaaaaaaaaa"
license_duration_days Optional
integer | null Minimum: 1 Maximum: 3650
1
status Optional
value

Allowed values: active, archived

"active"
subscription_price_confirmed Optional
boolean

Required as true when the saved mapping is an active subscription mapping without license_duration_days, even for a rename, as in the Console. Send true only after confirming that the Stripe Price is recurring.

true
StripeIntegrationEvent 7 fields

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "stripe_event_id": "01K5QWERTY1234567890ABCDEFG",
  "event_type": "string",
  "result": "string",
  "detail": "string",
  "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
  "processed_at": "2026-09-21T00:00:00Z"
}
FieldRequiredType and descriptionExample Value
public_id Required "public_id_aaaaaaaaaaaaaaaaaaaa"
stripe_event_id Required
string

The Stripe Event ID (evt_...). Find the same event in the Stripe Dashboard to resend it.

"01K5QWERTY1234567890ABCDEFG"
event_type Required
string

The Stripe event type, for example checkout.session.completed.

"string"
result Required
string

applied, ignored, failed or pending.

"string"
detail Required
string | null
"string"
license_id Required
PublicId | null

Null when the notification changed no license.

"license_id_aaaaaaaaaaaaaaaaaaaa"
processed_at Required
string date-time
"2026-09-21T00:00:00Z"
StripeIntegrationEventListResponse 2 fields

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "stripe_event_id": "01K5QWERTY1234567890ABCDEFG",
      "event_type": "string",
      "result": "string",
      "detail": "string",
      "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
      "processed_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
FieldRequiredType and descriptionExample Value
data Required
array<StripeIntegrationEvent>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "stripe_event_id": "01K5QWERTY1234567890ABCDEFG", "event_type": "string", "result": "string", "detail": "string", "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa", "processed_at": "2026-09-21T00:00:00Z" } ]
pagination Required { "next_cursor": "string", "has_more": true }
WorkspaceDataExport 11 fields

A ZIP of the whole workspace that an owner requested in the Console. The file itself is downloaded only in the Console.

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "status": "active",
  "file_format": "string",
  "requested_at": "2026-09-21T00:00:00Z",
  "started_at": "2026-09-21T00:00:00Z",
  "completed_at": "2026-09-21T00:00:00Z",
  "failed_at": "2026-09-21T00:00:00Z",
  "expires_at": "2026-09-21T00:00:00Z",
  "byte_size": 1,
  "record_counts": {
    "property": 1
  },
  "downloadable": true
}
FieldRequiredType and descriptionExample Value
public_id Required "public_id_aaaaaaaaaaaaaaaaaaaa"
status Required
string

pending (accepted), processing (being created), ready (can be downloaded in the Console until expires_at), failed (request it again in the Console) or expired (the ZIP was deleted).

"active"
file_format Required
string

csv or jsonl (JSON Lines).

"string"
requested_at Required
string date-time
"2026-09-21T00:00:00Z"
started_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
completed_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
failed_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
expires_at Optional
string | null date-time

When the ZIP is deleted. The owner can download it in the Console until then.

"2026-09-21T00:00:00Z"
byte_size Optional
integer | null
1
record_counts Optional
object

Rows per dataset in the ZIP (for example customers or licenses).

{ "property": 1 }
downloadable Required
boolean

True while the owner can download the ZIP in the Console.

true
WorkspaceDataExportListResponse 2 fields

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "status": "active",
      "file_format": "string",
      "requested_at": "2026-09-21T00:00:00Z",
      "started_at": "2026-09-21T00:00:00Z",
      "completed_at": "2026-09-21T00:00:00Z",
      "failed_at": "2026-09-21T00:00:00Z",
      "expires_at": "2026-09-21T00:00:00Z",
      "byte_size": 1,
      "record_counts": {
        "property": 1
      },
      "downloadable": true
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
FieldRequiredType and descriptionExample Value
data Required
array<WorkspaceDataExport>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "status": "active", "file_format": "string", "requested_at": "2026-09-21T00:00:00Z", "started_at": "2026-09-21T00:00:00Z", "completed_at": "2026-09-21T00:00:00Z", "failed_at": "2026-09-21T00:00:00Z", "expires_at": "2026-09-21T00:00:00Z", "byte_size": 1, "record_counts": { "property": 1 }, "downloadable": true } ]
pagination Required { "next_cursor": "string", "has_more": true }
WorkspaceErasureRequest 10 fields

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "status": "active",
  "origin": "string",
  "requested_at": "2026-09-21T00:00:00Z",
  "scheduled_for": "2026-09-21T00:00:00Z",
  "reminder_sent_at": "2026-09-21T00:00:00Z",
  "blocked_at": "2026-09-21T00:00:00Z",
  "blocked_reason": "string",
  "started_at": "2026-09-21T00:00:00Z",
  "cancelable": true
}
FieldRequiredType and descriptionExample Value
public_id Required "public_id_aaaaaaaaaaaaaaaaaaaa"
status Required
string

scheduled (waiting for scheduled_for; an owner can cancel it in the Console), blocked (scheduled_for has passed but blocked_reason keeps it from starting; it starts once that is resolved) or processing (being deleted; it cannot be canceled).

"active"
origin Required
string

owner_request (an owner requested it) or closed_tenant_retention (the retention period of a closed workspace has passed).

"string"
requested_at Required
string date-time
"2026-09-21T00:00:00Z"
scheduled_for Required
string date-time

When the deletion starts, at the earliest.

"2026-09-21T00:00:00Z"
reminder_sent_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
blocked_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
blocked_reason Optional
string | null

billing_open, checkout_open or tenant_suspended while the request is blocked.

"string"
started_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
cancelable Required
boolean

True while an owner can still cancel it in the Console.

true
WorkspaceErasureStatus 4 fields

Schema

object

Example Value

{
  "request": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "origin": "string",
    "requested_at": "2026-09-21T00:00:00Z",
    "scheduled_for": "2026-09-21T00:00:00Z",
    "cancelable": true
  },
  "blocker": "string",
  "paid_until": "2026-09-21T00:00:00Z",
  "grace_period_days": 1
}
FieldRequiredType and descriptionExample Value
request Required
WorkspaceErasureRequest | null

The request that is not finished, or null when there is none.

{ "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "status": "active", "origin": "string", "requested_at": "2026-09-21T00:00:00Z", "scheduled_for": "2026-09-21T00:00:00Z", "cancelable": true }
blocker Required
string | null

Why a new request would be refused, or why a due request cannot start (billing_open, checkout_open or tenant_suspended). null when nothing blocks it.

"string"
paid_until Required
string | null date-time

The end of the paid period of a plan set to end at period end. Deleting the workspace ends it early, without a refund for the rest of the period.

"2026-09-21T00:00:00Z"
grace_period_days Required
integer

Days between a request and the start of the deletion.

1
WorkspaceErasureStatusResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "request": {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "status": "active",
      "origin": "string",
      "requested_at": "2026-09-21T00:00:00Z",
      "scheduled_for": "2026-09-21T00:00:00Z",
      "cancelable": true
    },
    "blocker": "string",
    "paid_until": "2026-09-21T00:00:00Z",
    "grace_period_days": 1
  }
}
FieldRequiredType and descriptionExample Value
data Required { "request": { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "status": "active", "origin": "string", "requested_at": "2026-09-21T00:00:00Z", "scheduled_for": "2026-09-21T00:00:00Z", "cancelable": true }, "blocker": "string", "paid_until": "2026-09-21T00:00:00Z", "grace_period_days": 1 }
SalesReceiverRequest 8 fields

Schema

object

Example Value

{
  "action": "issue",
  "purchase_id": "01K5QWERTY1234567890ABCDEFG",
  "item": "string",
  "customer": {
    "id": "cus_0123456789abcdef01234567",
    "reference": "string",
    "email": "developer@example.com",
    "name": "Example name"
  },
  "expires_at": "2026-09-21T00:00:00Z",
  "occurred_at": "2026-09-21T00:00:00Z",
  "reason": "string",
  "claim_challenge": "usk_claim_v1_2kRE5qRU2tR-tBGlDwMEw2avJ7QM4ikPYD_PJ3bd9Og"
}
FieldRequiredType and descriptionExample Value
action Required
value

Allowed values: issue, change, renew, suspend, resume, revoke

issue issues one license per purchase, change switches that license to the policy of another item's mapping (the same license key; the item must be mapped to a subscription policy of the same product, otherwise the event fails and the license is unchanged), renew extends its expiry, suspend and revoke stop it, and resume restarts a license this integration suspended.

"issue"
purchase_id Required
string Minimum length: 1 Maximum length: 200

Your purchase ID. Later events of the same purchase use the same value.

"01K5QWERTY1234567890ABCDEFG"
item Optional
string Minimum length: 1 Maximum length: 255

Required for issue and change. The external_item_id of an item mapping.

"string"
customer Optional
object
{ "id": "cus_0123456789abcdef01234567", "reference": "string", "email": "developer@example.com", "name": "Example name" }
expires_at Optional
string | null date-time

The expiry for a subscription policy. Without it, issue uses the item mapping's license_duration_days and change keeps the current expiry.

"2026-09-21T00:00:00Z"
occurred_at Optional
string date-time

When the event happened. An event older than the last one applied to the purchase is ignored. Defaults to the signature timestamp.

"2026-09-21T00:00:00Z"
reason Optional
string Maximum length: 200

Kept in the audit log.

"string"
claim_challenge Optional
string Pattern: ^usk_claim_v1_[A-Za-z0-9_-]{43}$

The challenge the buyer's app created before the purchase, for the secure license key pickup.

"usk_claim_v1_2kRE5qRU2tR-tBGlDwMEw2avJ7QM4ikPYD_PJ3bd9Og"
SalesReceiverResultResponse 4 fields

Schema

object

Example Value

{
  "result": "string",
  "detail": "string",
  "detail_codes": [
    "string"
  ],
  "license": {
    "id": "id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "expires_at": "2026-09-21T00:00:00Z",
    "license_key": "string"
  }
}
FieldRequiredType and descriptionExample Value
result Required
string

applied, ignored, failed or deferred.

"string"
detail Required
string

The reason, in Japanese.

"string"
detail_codes Required
array<string>
[ "string" ]
license Optional
object
{ "id": "id_aaaaaaaaaaaaaaaaaaaa", "status": "active", "expires_at": "2026-09-21T00:00:00Z", "license_key": "string" }
SalesReceiverErrorResponse 1 fields

Schema

object

Example Value

{
  "error": {
    "code": "string",
    "message": "string"
  }
}
FieldRequiredType and descriptionExample Value
error Required
object
{ "code": "string", "message": "string" }
SalesIntegration 13 fields

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "provider": "string",
  "mode": "test",
  "status": "active",
  "display_name": "Example name",
  "signing_secret_configured": true,
  "accepting_notifications": true,
  "webhook_url": "https://example.com/resource",
  "license_claim_url": "https://example.com/resource",
  "events_to_subscribe": [
    "string"
  ],
  "last_event": {
    "type": "string",
    "result": "string",
    "at": "2026-09-21T00:00:00Z"
  },
  "created_at": "2026-09-21T00:00:00Z",
  "updated_at": "2026-09-21T00:00:00Z"
}
FieldRequiredType and descriptionExample Value
public_id Required "public_id_aaaaaaaaaaaaaaaaaaaa"
provider Required
string

generic, shopify, square, komoju, paddle or lemon_squeezy.

"string"
mode Required
value

Allowed values: test, live

"test"
status Required
value

Allowed values: active, disabled

"active"
display_name Required
string
"Example name"
signing_secret_configured Required
boolean

Whether a signing secret is set. The secret itself is never returned.

true
accepting_notifications Required
boolean

True when the integration is active and has a signing secret.

true
webhook_url Required
string uri

The URL to register in the sales service (the generic receiver's request URL).

"https://example.com/resource"
license_claim_url Required
string | null uri

The URL the buyer's app calls to pick up the license key. Null for services that cannot pass a claim challenge with the purchase.

"https://example.com/resource"
events_to_subscribe Required
array<string>

The notification names to choose in the sales service. Empty for the generic receiver.

[ "string" ]
last_event Required
object | null
{ "type": "string", "result": "string", "at": "2026-09-21T00:00:00Z" }
created_at Optional
string date-time
"2026-09-21T00:00:00Z"
updated_at Optional
string date-time
"2026-09-21T00:00:00Z"
SalesIntegrationResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "provider": "string",
    "mode": "test",
    "status": "active",
    "display_name": "Example name",
    "signing_secret_configured": true,
    "accepting_notifications": true,
    "webhook_url": "https://example.com/resource",
    "license_claim_url": "https://example.com/resource",
    "events_to_subscribe": [
      "string"
    ],
    "last_event": {
      "type": "string",
      "result": "string",
      "at": "2026-09-21T00:00:00Z"
    },
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
FieldRequiredType and descriptionExample Value
data Required { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "provider": "string", "mode": "test", "status": "active", "display_name": "Example name", "signing_secret_configured": true, "accepting_notifications": true, "webhook_url": "https://example.com/resource", "license_claim_url": "https://example.com/resource", "events_to_subscribe": [ "string" ], "last_event": { "type": "string", "result": "string", "at": "2026-09-21T00:00:00Z" }, "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" }
SalesIntegrationListResponse 2 fields

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "provider": "string",
      "mode": "test",
      "status": "active",
      "display_name": "Example name",
      "signing_secret_configured": true,
      "accepting_notifications": true,
      "webhook_url": "https://example.com/resource",
      "license_claim_url": "https://example.com/resource",
      "events_to_subscribe": [
        "string"
      ],
      "last_event": {
        "type": "string",
        "result": "string",
        "at": "2026-09-21T00:00:00Z"
      },
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
FieldRequiredType and descriptionExample Value
data Required
array<SalesIntegration>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "provider": "string", "mode": "test", "status": "active", "display_name": "Example name", "signing_secret_configured": true, "accepting_notifications": true, "webhook_url": "https://example.com/resource", "license_claim_url": "https://example.com/resource", "events_to_subscribe": [ "string" ], "last_event": { "type": "string", "result": "string", "at": "2026-09-21T00:00:00Z" }, "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" } ]
pagination Required { "next_cursor": "string", "has_more": true }
SalesIntegrationSecretResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "provider": "string",
    "mode": "test",
    "status": "active",
    "display_name": "Example name",
    "signing_secret_configured": true,
    "accepting_notifications": true,
    "webhook_url": "https://example.com/resource",
    "license_claim_url": "https://example.com/resource",
    "events_to_subscribe": [
      "string"
    ],
    "last_event": {}
  }
}
FieldRequiredType and descriptionExample Value
data Required
SalesIntegration + object
{ "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "provider": "string", "mode": "test", "status": "active", "display_name": "Example name", "signing_secret_configured": true, "accepting_notifications": true, "webhook_url": "https://example.com/resource", "license_claim_url": "https://example.com/resource", "events_to_subscribe": [ "string" ], "last_event": {} }
SalesIntegrationInput 4 fields

Schema

object

Example Value

{
  "provider": "generic",
  "display_name": "Example name",
  "mode": "test",
  "signing_secret": "example-token"
}
FieldRequiredType and descriptionExample Value
provider Required
value

Allowed values: generic, shopify, square, komoju, paddle, lemon_squeezy

"generic"
display_name Required
string Minimum length: 1 Maximum length: 120
"Example name"
mode Optional
value

Allowed values: test, live

Must match the API key's environment. Defaults to it.

"test"
signing_secret Optional
string Maximum length: 255

The signing secret the sales service shows. Not accepted for the generic receiver, whose secret Usakey creates.

"example-token"
SalesIntegrationUpdateInput 3 fields

Schema

object

Example Value

{
  "display_name": "Example name",
  "status": "active",
  "signing_secret": "example-token"
}
FieldRequiredType and descriptionExample Value
display_name Optional
string Minimum length: 1 Maximum length: 120
"Example name"
status Optional
value

Allowed values: active, disabled

"active"
signing_secret Optional
string Minimum length: 1 Maximum length: 255

Sets or replaces the sales service's signing secret. Not accepted for the generic receiver.

"example-token"
SalesOffering 10 fields

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "sales_integration_id": "sales_integration_id_aaaaaaaaaaaaaaaaaaaa",
  "name": "Example name",
  "external_item_id": "01K5QWERTY1234567890ABCDEFG",
  "product_id": "prod_0123456789abcdef0123",
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "license_duration_days": 1,
  "status": "active",
  "created_at": "2026-09-21T00:00:00Z",
  "updated_at": "2026-09-21T00:00:00Z"
}
FieldRequiredType and descriptionExample Value
public_id Required "public_id_aaaaaaaaaaaaaaaaaaaa"
sales_integration_id Required "sales_integration_id_aaaaaaaaaaaaaaaaaaaa"
name Required
string
"Example name"
external_item_id Required
string

The sales service's item identifier (for example a Shopify variant ID or a Paddle price ID, or the item of the generic receiver).

"01K5QWERTY1234567890ABCDEFG"
product_id Required "prod_0123456789abcdef0123"
policy_id Required "policy_id_aaaaaaaaaaaaaaaaaaaa"
license_duration_days Required
integer | null
1
status Required
value

Allowed values: active, archived

"active"
created_at Optional
string date-time
"2026-09-21T00:00:00Z"
updated_at Optional
string date-time
"2026-09-21T00:00:00Z"
SalesOfferingResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "sales_integration_id": "sales_integration_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "external_item_id": "01K5QWERTY1234567890ABCDEFG",
    "product_id": "prod_0123456789abcdef0123",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "license_duration_days": 1,
    "status": "active",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
FieldRequiredType and descriptionExample Value
data Required { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "sales_integration_id": "sales_integration_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "external_item_id": "01K5QWERTY1234567890ABCDEFG", "product_id": "prod_0123456789abcdef0123", "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa", "license_duration_days": 1, "status": "active", "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" }
SalesOfferingListResponse 2 fields

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "sales_integration_id": "sales_integration_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "external_item_id": "01K5QWERTY1234567890ABCDEFG",
      "product_id": "prod_0123456789abcdef0123",
      "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
      "license_duration_days": 1,
      "status": "active",
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
FieldRequiredType and descriptionExample Value
data Required
array<SalesOffering>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "sales_integration_id": "sales_integration_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "external_item_id": "01K5QWERTY1234567890ABCDEFG", "product_id": "prod_0123456789abcdef0123", "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa", "license_duration_days": 1, "status": "active", "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" } ]
pagination Required { "next_cursor": "string", "has_more": true }
SalesOfferingInput 4 fields

Schema

object

Example Value

{
  "name": "Example name",
  "external_item_id": "01K5QWERTY1234567890ABCDEFG",
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "license_duration_days": 1
}
FieldRequiredType and descriptionExample Value
name Required
string Minimum length: 1 Maximum length: 120
"Example name"
external_item_id Required
string Minimum length: 1 Maximum length: 255
"01K5QWERTY1234567890ABCDEFG"
policy_id Required "policy_id_aaaaaaaaaaaaaaaaaaaa"
license_duration_days Optional
integer | null Minimum: 1 Maximum: 3650

Days a license lasts from the purchase. Leave it out for perpetual policies, and for subscription policies of services that report the billing period.

1
SalesOfferingUpdateInput 5 fields

Schema

object

Example Value

{
  "name": "Example name",
  "external_item_id": "01K5QWERTY1234567890ABCDEFG",
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "license_duration_days": 1,
  "status": "active"
}
FieldRequiredType and descriptionExample Value
name Optional
string Minimum length: 1 Maximum length: 120
"Example name"
external_item_id Optional
string Minimum length: 1 Maximum length: 255
"01K5QWERTY1234567890ABCDEFG"
policy_id Optional "policy_id_aaaaaaaaaaaaaaaaaaaa"
license_duration_days Optional
integer | null Minimum: 1 Maximum: 3650
1
status Optional
value

Allowed values: active, archived

"active"
SalesIntegrationEvent 8 fields

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "event_type": "string",
  "result": "string",
  "detail": "string",
  "detail_codes": [
    "string"
  ],
  "purchase_reference": "string",
  "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
  "processed_at": "2026-09-21T00:00:00Z"
}
FieldRequiredType and descriptionExample Value
public_id Required "public_id_aaaaaaaaaaaaaaaaaaaa"
event_type Required
string

The notification type as the sales service names it (for example orders/paid), or the action of the generic receiver.

"string"
result Required
string

applied, ignored, failed or deferred.

"string"
detail Required
string | null
"string"
detail_codes Required
array<string>
[ "string" ]
purchase_reference Required
string | null

The purchase the notification is about, for example order:1001 or sub:sub_01h....

"string"
license_id Required
PublicId | null

Null when the notification changed no license.

"license_id_aaaaaaaaaaaaaaaaaaaa"
processed_at Required
string date-time
"2026-09-21T00:00:00Z"
SalesIntegrationEventListResponse 2 fields

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "event_type": "string",
      "result": "string",
      "detail": "string",
      "detail_codes": [
        "string"
      ],
      "purchase_reference": "string",
      "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
      "processed_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
FieldRequiredType and descriptionExample Value
data Required
array<SalesIntegrationEvent>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "event_type": "string", "result": "string", "detail": "string", "detail_codes": [ "string" ], "purchase_reference": "string", "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa", "processed_at": "2026-09-21T00:00:00Z" } ]
pagination Required { "next_cursor": "string", "has_more": true }
Policy 28 fields

Schema

object

Example Value

{
  "default_license_metadata": {},
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "product_id": "prod_0123456789abcdef0123",
  "name": "Example name",
  "version": 1,
  "license_type": "perpetual",
  "validation_mode": "string",
  "perpetual_mode": "managed",
  "heartbeat_required": true,
  "revocation_guarantee_sec": 0,
  "fail_mode": "string",
  "identity_mode": "string",
  "license_unit_limit": 1,
  "max_machines": 1,
  "max_concurrent": 1,
  "concurrency_unit": "string",
  "cert_ttl_sec": 1,
  "heartbeat_sec": 1,
  "lease_ttl_sec": 1,
  "lease_heartbeat_sec": 1,
  "network_grace_sec": 1,
  "fingerprint_profile": {},
  "renewal_authority": "string",
  "billing_cycle": "string",
  "trial_days": 1,
  "entitlements": {},
  "status": "active",
  "created_at": "2026-09-21T00:00:00Z"
}
FieldRequiredType and descriptionExample Value
default_license_metadata Optional
object

Signed settings (JSON object, at most 512 bytes in canonical form) given to licenses of this policy that are issued without their own metadata. Product apps read them through the SDK. They are readable on the device, so do not store secrets.

{}
public_id Optional "public_id_aaaaaaaaaaaaaaaaaaaa"
product_id Optional "prod_0123456789abcdef0123"
name Optional
string
"Example name"
version Optional
integer | null

Historical policy number. Use the ETag from GET policies/{id} for If-Match.

1
license_type Optional
value

Allowed values: perpetual, subscription, trial

"perpetual"
validation_mode Optional
string
"string"
perpetual_mode Optional
string | null

Allowed values: managed, offline_unmanaged, null

Derived for perpetual policies. offline plus license_key is offline_unmanaged; every other perpetual policy is managed.

"managed"
heartbeat_required Optional
boolean

False only for a device-bound offline_unmanaged perpetual policy.

true
revocation_guarantee_sec Optional
integer | null Minimum: 0

Maximum signed offline revocation window. Null means that online revocation is not promised.

0
fail_mode Optional
string
"string"
identity_mode Optional
string
"string"
license_unit_limit Optional
integer | null
1
max_machines Optional
integer | null
1
max_concurrent Optional
integer | null
1
concurrency_unit Optional
string
"string"
cert_ttl_sec Optional
integer | null
1
heartbeat_sec Optional
integer | null
1
lease_ttl_sec Optional
integer | null
1
lease_heartbeat_sec Optional
integer | null
1
network_grace_sec Optional
integer | null
1
fingerprint_profile Optional
object
{}
renewal_authority Optional
string
"string"
billing_cycle Optional
string
"string"
trial_days Optional
integer | null
1
entitlements Optional
object
{}
status Optional
string
"active"
created_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
PolicyOfflineRehostsResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "policy_id": "01K5QWERTY1234567890ABCDEFG",
    "offline_rehosts_per_year": 0
  }
}
FieldRequiredType and descriptionExample Value
data Required
object
{ "policy_id": "01K5QWERTY1234567890ABCDEFG", "offline_rehosts_per_year": 0 }
PolicyLeaseSettingsResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "max_concurrent": 1,
    "lease_checkout_max_days": 0,
    "lease_handoff_grace_sec": 0,
    "lease_burst_seats": 0,
    "lease_burst_sec": 0,
    "burst_cooldown_sec": 0
  }
}
FieldRequiredType and descriptionExample Value
data Required { "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa", "max_concurrent": 1, "lease_checkout_max_days": 0, "lease_handoff_grace_sec": 0, "lease_burst_seats": 0, "lease_burst_sec": 0, "burst_cooldown_sec": 0 }
PolicyLeaseSettings 7 fields

Schema

object

Example Value

{
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "max_concurrent": 1,
  "lease_checkout_max_days": 0,
  "lease_handoff_grace_sec": 0,
  "lease_burst_seats": 0,
  "lease_burst_sec": 0,
  "burst_cooldown_sec": 0
}
FieldRequiredType and descriptionExample Value
policy_id Required "policy_id_aaaaaaaaaaaaaaaaaaaa"
max_concurrent Required
integer | null

Maximum number of simultaneous launches. Null or 0 means the policy does not use floating leases.

1
lease_checkout_max_days Required
integer Minimum: 0 Maximum: 30

Longest checkout in days. 0 means a lease cannot be checked out.

0
lease_handoff_grace_sec Required
integer Minimum: 0 Maximum: 600

Handoff grace period in seconds. 0 means handoff is off.

0
lease_burst_seats Required
integer Minimum: 0 Maximum: 1000

Seats a license may use above max_concurrent during an overage window. 0 means overage is off.

0
lease_burst_sec Required
integer Minimum: 0 Maximum: 1800

Length of an overage window in seconds.

0
burst_cooldown_sec Required
integer Minimum: 0

Seconds after an overage window ends before the next one can start (fixed at 3600).

0
LicenseLeaseSummaryResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "max_concurrent": 1,
    "settings": {
      "lease_checkout_max_days": 0,
      "lease_handoff_grace_sec": 0,
      "lease_burst_seats": 0,
      "lease_burst_sec": 0,
      "burst_cooldown_sec": 0
    },
    "in_use": 0,
    "checked_out": 0,
    "burst": 0,
    "handed_off": 0,
    "leases": [
      {
        "id": "id_aaaaaaaaaaaaaaaaaaaa",
        "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
        "instance_id": "01K5QWERTY1234567890ABCDEFG",
        "state": "regular",
        "acquired_at": "2026-09-21T00:00:00Z",
        "last_heartbeat_at": "2026-09-21T00:00:00Z",
        "expires_at": "2026-09-21T00:00:00Z",
        "checked_out_at": "2026-09-21T00:00:00Z",
        "checkout_expires_at": "2026-09-21T00:00:00Z",
        "checkout_revoked_at": "2026-09-21T00:00:00Z",
        "burst_until": "2026-09-21T00:00:00Z",
        "handoff_deadline_at": "2026-09-21T00:00:00Z",
        "handoff_from_lease_id": "01K5QWERTY1234567890ABCDEFG"
      }
    ],
    "leases_truncated": true,
    "overages": [
      {
        "kind": "burst",
        "started_at": "2026-09-21T00:00:00Z",
        "ends_at": "2026-09-21T00:00:00Z",
        "peak_excess": 1,
        "lease_count": 1
      }
    ]
  }
}
FieldRequiredType and descriptionExample Value
data Required { "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa", "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa", "max_concurrent": 1, "settings": { "lease_checkout_max_days": 0, "lease_handoff_grace_sec": 0, "lease_burst_seats": 0, "lease_burst_sec": 0, "burst_cooldown_sec": 0 }, "in_use": 0, "checked_out": 0, "burst": 0, "handed_off": 0, "leases": [ { "id": "id_aaaaaaaaaaaaaaaaaaaa", "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa", "instance_id": "01K5QWERTY1234567890ABCDEFG", "state": "regular", "acquired_at": "2026-09-21T00:00:00Z", "last_heartbeat_at": "2026-09-21T00:00:00Z", "expires_at": "2026-09-21T00:00:00Z", "checked_out_at": "2026-09-21T00:00:00Z", "checkout_expires_at": "2026-09-21T00:00:00Z", "checkout_revoked_at": "2026-09-21T00:00:00Z", "burst_until": "2026-09-21T00:00:00Z", "handoff_deadline_at": "2026-09-21T00:00:00Z", "handoff_from_lease_id": "01K5QWERTY1234567890ABCDEFG" } ], "leases_truncated": true, "overages": [ { "kind": "burst", "started_at": "2026-09-21T00:00:00Z", "ends_at": "2026-09-21T00:00:00Z", "peak_excess": 1, "lease_count": 1 } ] }
LicenseLeaseSummary 11 fields

Schema

object

Example Value

{
  "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "max_concurrent": 1,
  "settings": {
    "lease_checkout_max_days": 0,
    "lease_handoff_grace_sec": 0,
    "lease_burst_seats": 0,
    "lease_burst_sec": 0,
    "burst_cooldown_sec": 0
  },
  "in_use": 0,
  "checked_out": 0,
  "burst": 0,
  "handed_off": 0,
  "leases": [
    {
      "id": "id_aaaaaaaaaaaaaaaaaaaa",
      "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
      "instance_id": "01K5QWERTY1234567890ABCDEFG",
      "state": "regular",
      "acquired_at": "2026-09-21T00:00:00Z",
      "last_heartbeat_at": "2026-09-21T00:00:00Z",
      "expires_at": "2026-09-21T00:00:00Z",
      "checked_out_at": "2026-09-21T00:00:00Z",
      "checkout_expires_at": "2026-09-21T00:00:00Z",
      "checkout_revoked_at": "2026-09-21T00:00:00Z",
      "burst_until": "2026-09-21T00:00:00Z",
      "handoff_deadline_at": "2026-09-21T00:00:00Z",
      "handoff_from_lease_id": "01K5QWERTY1234567890ABCDEFG"
    }
  ],
  "leases_truncated": true,
  "overages": [
    {
      "kind": "burst",
      "started_at": "2026-09-21T00:00:00Z",
      "ends_at": "2026-09-21T00:00:00Z",
      "peak_excess": 1,
      "lease_count": 1
    }
  ]
}
FieldRequiredType and descriptionExample Value
license_id Required "license_id_aaaaaaaaaaaaaaaaaaaa"
policy_id Required "policy_id_aaaaaaaaaaaaaaaaaaaa"
max_concurrent Required
integer | null

The license's maximum number of simultaneous launches (its own override or the policy's).

1
settings Required { "lease_checkout_max_days": 0, "lease_handoff_grace_sec": 0, "lease_burst_seats": 0, "lease_burst_sec": 0, "burst_cooldown_sec": 0 }
in_use Required
integer Minimum: 0

Leases in use, including checked-out, revoked-but-held, overage and handed-off leases.

0
checked_out Required
integer Minimum: 0

Checked-out leases in use, including revoked checkouts whose seat is still held.

0
burst Required
integer Minimum: 0
0
handed_off Required
integer Minimum: 0

Old leases that were handed off to a new instance and end at their handoff deadline.

0
leases Required
array<LicenseLease> Maximum items: 200
[ { "id": "id_aaaaaaaaaaaaaaaaaaaa", "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa", "instance_id": "01K5QWERTY1234567890ABCDEFG", "state": "regular", "acquired_at": "2026-09-21T00:00:00Z", "last_heartbeat_at": "2026-09-21T00:00:00Z", "expires_at": "2026-09-21T00:00:00Z", "checked_out_at": "2026-09-21T00:00:00Z", "checkout_expires_at": "2026-09-21T00:00:00Z", "checkout_revoked_at": "2026-09-21T00:00:00Z", "burst_until": "2026-09-21T00:00:00Z", "handoff_deadline_at": "2026-09-21T00:00:00Z", "handoff_from_lease_id": "01K5QWERTY1234567890ABCDEFG" } ]
leases_truncated Required
boolean

True when more leases are in use than the list carries.

true
overages Required
array<LeaseOverageRecord> Maximum items: 20
[ { "kind": "burst", "started_at": "2026-09-21T00:00:00Z", "ends_at": "2026-09-21T00:00:00Z", "peak_excess": 1, "lease_count": 1 } ]
LicenseLeaseSettings 5 fields

Schema

object

Example Value

{
  "lease_checkout_max_days": 0,
  "lease_handoff_grace_sec": 0,
  "lease_burst_seats": 0,
  "lease_burst_sec": 0,
  "burst_cooldown_sec": 0
}
FieldRequiredType and descriptionExample Value
lease_checkout_max_days Required
integer Minimum: 0 Maximum: 30
0
lease_handoff_grace_sec Required
integer Minimum: 0 Maximum: 600
0
lease_burst_seats Required
integer Minimum: 0 Maximum: 1000
0
lease_burst_sec Required
integer Minimum: 0 Maximum: 1800
0
burst_cooldown_sec Required
integer Minimum: 0
0
LicenseLeaseResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "id": "id_aaaaaaaaaaaaaaaaaaaa",
    "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
    "instance_id": "01K5QWERTY1234567890ABCDEFG",
    "state": "regular",
    "acquired_at": "2026-09-21T00:00:00Z",
    "last_heartbeat_at": "2026-09-21T00:00:00Z",
    "expires_at": "2026-09-21T00:00:00Z",
    "checked_out_at": "2026-09-21T00:00:00Z",
    "checkout_expires_at": "2026-09-21T00:00:00Z",
    "checkout_revoked_at": "2026-09-21T00:00:00Z",
    "burst_until": "2026-09-21T00:00:00Z",
    "handoff_deadline_at": "2026-09-21T00:00:00Z",
    "handoff_from_lease_id": "01K5QWERTY1234567890ABCDEFG"
  }
}
FieldRequiredType and descriptionExample Value
data Required { "id": "id_aaaaaaaaaaaaaaaaaaaa", "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa", "instance_id": "01K5QWERTY1234567890ABCDEFG", "state": "regular", "acquired_at": "2026-09-21T00:00:00Z", "last_heartbeat_at": "2026-09-21T00:00:00Z", "expires_at": "2026-09-21T00:00:00Z", "checked_out_at": "2026-09-21T00:00:00Z", "checkout_expires_at": "2026-09-21T00:00:00Z", "checkout_revoked_at": "2026-09-21T00:00:00Z", "burst_until": "2026-09-21T00:00:00Z", "handoff_deadline_at": "2026-09-21T00:00:00Z", "handoff_from_lease_id": "01K5QWERTY1234567890ABCDEFG" }
LicenseLease 13 fields

Schema

object

Example Value

{
  "id": "id_aaaaaaaaaaaaaaaaaaaa",
  "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
  "instance_id": "01K5QWERTY1234567890ABCDEFG",
  "state": "regular",
  "acquired_at": "2026-09-21T00:00:00Z",
  "last_heartbeat_at": "2026-09-21T00:00:00Z",
  "expires_at": "2026-09-21T00:00:00Z",
  "checked_out_at": "2026-09-21T00:00:00Z",
  "checkout_expires_at": "2026-09-21T00:00:00Z",
  "checkout_revoked_at": "2026-09-21T00:00:00Z",
  "burst_until": "2026-09-21T00:00:00Z",
  "handoff_deadline_at": "2026-09-21T00:00:00Z",
  "handoff_from_lease_id": "01K5QWERTY1234567890ABCDEFG"
}
FieldRequiredType and descriptionExample Value
id Required "id_aaaaaaaaaaaaaaaaaaaa"
activation_id Required "activation_id_aaaaaaaaaaaaaaaaaaaa"
instance_id Required
string Minimum length: 16 Maximum length: 255

The instance ID the product app sent, for example a pod name.

"01K5QWERTY1234567890ABCDEFG"
state Required
value

Allowed values: regular, checked_out, checkout_revoked, burst, handed_off

checked_out keeps the seat until checkout_expires_at even offline; checkout_revoked stops at the device's next lease request and keeps the seat until the device returns it or the checkout ends; burst ends at burst_until unless a regular seat frees; handed_off ends at handoff_deadline_at.

"regular"
acquired_at Required
string date-time
"2026-09-21T00:00:00Z"
last_heartbeat_at Required
string date-time
"2026-09-21T00:00:00Z"
expires_at Required
string date-time
"2026-09-21T00:00:00Z"
checked_out_at Required
string | null date-time
"2026-09-21T00:00:00Z"
checkout_expires_at Required
string | null date-time
"2026-09-21T00:00:00Z"
checkout_revoked_at Required
string | null date-time
"2026-09-21T00:00:00Z"
burst_until Required
string | null date-time
"2026-09-21T00:00:00Z"
handoff_deadline_at Required
string | null date-time
"2026-09-21T00:00:00Z"
handoff_from_lease_id Required
string | null

The lease this one took its seat over from in a handoff.

"01K5QWERTY1234567890ABCDEFG"
LeaseOverageRecord 5 fields

Schema

object

Example Value

{
  "kind": "burst",
  "started_at": "2026-09-21T00:00:00Z",
  "ends_at": "2026-09-21T00:00:00Z",
  "peak_excess": 1,
  "lease_count": 1
}
FieldRequiredType and descriptionExample Value
kind Required
value

Allowed values: burst, handoff

"burst"
started_at Required
string date-time
"2026-09-21T00:00:00Z"
ends_at Required
string date-time
"2026-09-21T00:00:00Z"
peak_excess Required
integer Minimum: 1

Most seats over the limit (burst) or overlapping (handoff) at once.

1
lease_count Required
integer Minimum: 1

Leases taken over the limit (burst) or handed off (handoff) during the record.

1
LeaseCheckoutRevocationInput 1 fields

Schema

object

Example Value

{
  "reason": "string"
}
FieldRequiredType and descriptionExample Value
reason Required
string Minimum length: 1 Maximum length: 500

Why the checkout is revoked. Recorded in the audit log.

"string"
PolicyResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "default_license_metadata": {},
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "product_id": "prod_0123456789abcdef0123",
    "name": "Example name",
    "version": 1,
    "license_type": "perpetual",
    "validation_mode": "string",
    "perpetual_mode": "managed",
    "heartbeat_required": true,
    "revocation_guarantee_sec": 0,
    "fail_mode": "string",
    "identity_mode": "string",
    "license_unit_limit": 1,
    "max_machines": 1,
    "max_concurrent": 1,
    "concurrency_unit": "string",
    "cert_ttl_sec": 1,
    "heartbeat_sec": 1,
    "lease_ttl_sec": 1,
    "lease_heartbeat_sec": 1,
    "network_grace_sec": 1,
    "fingerprint_profile": {},
    "renewal_authority": "string",
    "billing_cycle": "string",
    "trial_days": 1,
    "entitlements": {},
    "status": "active",
    "created_at": "2026-09-21T00:00:00Z"
  }
}
FieldRequiredType and descriptionExample Value
data Required { "default_license_metadata": {}, "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "product_id": "prod_0123456789abcdef0123", "name": "Example name", "version": 1, "license_type": "perpetual", "validation_mode": "string", "perpetual_mode": "managed", "heartbeat_required": true, "revocation_guarantee_sec": 0, "fail_mode": "string", "identity_mode": "string", "license_unit_limit": 1, "max_machines": 1, "max_concurrent": 1, "concurrency_unit": "string", "cert_ttl_sec": 1, "heartbeat_sec": 1, "lease_ttl_sec": 1, "lease_heartbeat_sec": 1, "network_grace_sec": 1, "fingerprint_profile": {}, "renewal_authority": "string", "billing_cycle": "string", "trial_days": 1, "entitlements": {}, "status": "active", "created_at": "2026-09-21T00:00:00Z" }
PolicyListResponse 2 fields

Schema

object

Example Value

{
  "data": [
    {
      "default_license_metadata": {},
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "product_id": "prod_0123456789abcdef0123",
      "name": "Example name",
      "version": 1,
      "license_type": "perpetual",
      "validation_mode": "string",
      "perpetual_mode": "managed",
      "heartbeat_required": true,
      "revocation_guarantee_sec": 0,
      "fail_mode": "string",
      "identity_mode": "string",
      "license_unit_limit": 1,
      "max_machines": 1,
      "max_concurrent": 1,
      "concurrency_unit": "string",
      "cert_ttl_sec": 1,
      "heartbeat_sec": 1,
      "lease_ttl_sec": 1,
      "lease_heartbeat_sec": 1,
      "network_grace_sec": 1,
      "fingerprint_profile": {},
      "renewal_authority": "string",
      "billing_cycle": "string",
      "trial_days": 1,
      "entitlements": {},
      "status": "active",
      "created_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
FieldRequiredType and descriptionExample Value
data Required
array<Policy>
[ { "default_license_metadata": {}, "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "product_id": "prod_0123456789abcdef0123", "name": "Example name", "version": 1, "license_type": "perpetual", "validation_mode": "string", "perpetual_mode": "managed", "heartbeat_required": true, "revocation_guarantee_sec": 0, "fail_mode": "string", "identity_mode": "string", "license_unit_limit": 1, "max_machines": 1, "max_concurrent": 1, "concurrency_unit": "string", "cert_ttl_sec": 1, "heartbeat_sec": 1, "lease_ttl_sec": 1, "lease_heartbeat_sec": 1, "network_grace_sec": 1, "fingerprint_profile": {}, "renewal_authority": "string", "billing_cycle": "string", "trial_days": 1, "entitlements": {}, "status": "active", "created_at": "2026-09-21T00:00:00Z" } ]
pagination Required { "next_cursor": "string", "has_more": true }
Customer 9 fields

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "name": "Example name",
  "email": "developer@example.com",
  "external_ref": "string",
  "notes": "string",
  "status": "active",
  "kind": "individual",
  "created_at": "2026-09-21T00:00:00Z",
  "updated_at": "2026-09-21T00:00:00Z"
}
FieldRequiredType and descriptionExample Value
public_id Optional "public_id_aaaaaaaaaaaaaaaaaaaa"
name Optional
string
"Example name"
email Optional
string | null
"developer@example.com"
external_ref Optional
string | null
"string"
notes Optional
string | null
"string"
status Optional
string
"active"
kind Optional
string

Allowed values: individual, organization

The customer type, individual or organization. An individual customer has one license user with a local ID and the customer's name and email address.

"individual"
created_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
updated_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
CustomerResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "email": "developer@example.com",
    "external_ref": "string",
    "notes": "string",
    "status": "active",
    "kind": "individual",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
FieldRequiredType and descriptionExample Value
data Required { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "email": "developer@example.com", "external_ref": "string", "notes": "string", "status": "active", "kind": "individual", "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" }
CustomerListResponse 2 fields

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "email": "developer@example.com",
      "external_ref": "string",
      "notes": "string",
      "status": "active",
      "kind": "individual",
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
FieldRequiredType and descriptionExample Value
data Required
array<Customer>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "email": "developer@example.com", "external_ref": "string", "notes": "string", "status": "active", "kind": "individual", "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" } ]
pagination Required { "next_cursor": "string", "has_more": true }
License 30 fields

Schema

object

Example Value

{
  "payment_grace_ends_at": "2026-09-21T00:00:00Z",
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "product_id": "prod_0123456789abcdef0123",
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "policy_version": 1,
  "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
  "license_type": "perpetual",
  "perpetual_mode": "managed",
  "heartbeat_required": true,
  "revocation_guarantee_sec": 0,
  "status": "active",
  "expires_at": "2026-09-21T00:00:00Z",
  "expiry": "2026-09-21T00:00:00Z",
  "renewal_authority": "string",
  "entitlements": {},
  "metadata": {},
  "current_period_start": "2026-09-21T00:00:00Z",
  "current_period_end": "2026-09-21T00:00:00Z",
  "renewal_count": 1,
  "key_hint": "string",
  "max_machines": 1,
  "max_concurrent": 1,
  "license_unit_limit": 1,
  "trial_days": 1,
  "trial_started_at": "2026-09-21T00:00:00Z",
  "trial_converted_at": "2026-09-21T00:00:00Z",
  "active_activations": 1,
  "created_at": "2026-09-21T00:00:00Z",
  "updated_at": "2026-09-21T00:00:00Z",
  "version": 1
}
FieldRequiredType and descriptionExample Value
payment_grace_ends_at Optional
string | null date-time

Deadline of the open payment grace period, or null when none is open. The license stays active until then.

"2026-09-21T00:00:00Z"
public_id Optional "public_id_aaaaaaaaaaaaaaaaaaaa"
product_id Optional "prod_0123456789abcdef0123"
policy_id Optional "policy_id_aaaaaaaaaaaaaaaaaaaa"
policy_version Optional
integer | null
1
customer_id Optional
PublicId | null
"customer_id_aaaaaaaaaaaaaaaaaaaa"
license_type Optional
value

Allowed values: perpetual, subscription, trial

"perpetual"
perpetual_mode Optional
string | null

Allowed values: managed, offline_unmanaged, null

"managed"
heartbeat_required Optional
boolean
true
revocation_guarantee_sec Optional
integer | null Minimum: 0

Null for offline_unmanaged and fail-open licenses; those licenses have no online revocation SLA.

0
status Optional
string
"active"
expires_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
expiry Optional
string | null date-time

Same value as `expires_at`. Use `expires_at`.

"2026-09-21T00:00:00Z"
renewal_authority Optional
string
"string"
entitlements Optional
object
{}
metadata Optional
object
{}
current_period_start Optional
string | null date-time
"2026-09-21T00:00:00Z"
current_period_end Optional
string | null date-time
"2026-09-21T00:00:00Z"
renewal_count Optional
integer | null
1
key_hint Optional
string
"string"
max_machines Optional
integer | null
1
max_concurrent Optional
integer | null
1
license_unit_limit Optional
integer | null
1
trial_days Optional
integer | null
1
trial_started_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
trial_converted_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
active_activations Optional
integer | null
1
created_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
updated_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
version Optional
integer | null
1
LicenseResponse 1 fields

Schema

object

Example Value

{
  "data": {}
}
FieldRequiredType and descriptionExample Value
data Required
License
{}
LicenseListResponse 2 fields

Schema

object

Example Value

{
  "data": [
    {}
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
FieldRequiredType and descriptionExample Value
data Required
array<License>
[ {} ]
pagination Required { "next_cursor": "string", "has_more": true }
Activation 8 fields

Schema

object

Example Value

{
  "id": "id_aaaaaaaaaaaaaaaaaaaa",
  "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
  "status": "active",
  "machine": {},
  "device_signing_key_thumbprint": "string",
  "first_seen_at": "2026-09-21T00:00:00Z",
  "last_seen_at": "2026-09-21T00:00:00Z",
  "deactivated_at": "2026-09-21T00:00:00Z"
}
FieldRequiredType and descriptionExample Value
id Optional "id_aaaaaaaaaaaaaaaaaaaa"
license_id Optional "license_id_aaaaaaaaaaaaaaaaaaaa"
status Optional
string
"active"
machine Optional
object
{}
device_signing_key_thumbprint Optional
string
"string"
first_seen_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
last_seen_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
deactivated_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
ActivationResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "id": "id_aaaaaaaaaaaaaaaaaaaa",
    "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "machine": {},
    "device_signing_key_thumbprint": "string",
    "first_seen_at": "2026-09-21T00:00:00Z",
    "last_seen_at": "2026-09-21T00:00:00Z",
    "deactivated_at": "2026-09-21T00:00:00Z"
  }
}
FieldRequiredType and descriptionExample Value
data Required { "id": "id_aaaaaaaaaaaaaaaaaaaa", "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa", "status": "active", "machine": {}, "device_signing_key_thumbprint": "string", "first_seen_at": "2026-09-21T00:00:00Z", "last_seen_at": "2026-09-21T00:00:00Z", "deactivated_at": "2026-09-21T00:00:00Z" }
ActivationListResponse 2 fields

Schema

object

Example Value

{
  "data": [
    {
      "id": "id_aaaaaaaaaaaaaaaaaaaa",
      "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
      "status": "active",
      "machine": {},
      "device_signing_key_thumbprint": "string",
      "first_seen_at": "2026-09-21T00:00:00Z",
      "last_seen_at": "2026-09-21T00:00:00Z",
      "deactivated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
FieldRequiredType and descriptionExample Value
data Required
array<Activation>
[ { "id": "id_aaaaaaaaaaaaaaaaaaaa", "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa", "status": "active", "machine": {}, "device_signing_key_thumbprint": "string", "first_seen_at": "2026-09-21T00:00:00Z", "last_seen_at": "2026-09-21T00:00:00Z", "deactivated_at": "2026-09-21T00:00:00Z" } ]
pagination Required { "next_cursor": "string", "has_more": true }
Webhook 8 fields

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "name": "Example name",
  "url": "https://example.com/resource",
  "events": [
    "string"
  ],
  "status": "active",
  "secret_rotation": {
    "scheduled": true,
    "activates_at": "2026-09-21T00:00:00Z"
  },
  "created_at": "2026-09-21T00:00:00Z",
  "updated_at": "2026-09-21T00:00:00Z"
}
FieldRequiredType and descriptionExample Value
public_id Optional "public_id_aaaaaaaaaaaaaaaaaaaa"
name Optional
string
"Example name"
url Optional
string uri
"https://example.com/resource"
events Optional
array<string>
[ "string" ]
status Optional
string
"active"
secret_rotation Optional
object
{ "scheduled": true, "activates_at": "2026-09-21T00:00:00Z" }
created_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
updated_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
WebhookResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "url": "https://example.com/resource",
    "events": [
      "string"
    ],
    "status": "active",
    "secret_rotation": {
      "scheduled": true,
      "activates_at": "2026-09-21T00:00:00Z"
    },
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
FieldRequiredType and descriptionExample Value
data Required { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "url": "https://example.com/resource", "events": [ "string" ], "status": "active", "secret_rotation": { "scheduled": true, "activates_at": "2026-09-21T00:00:00Z" }, "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" }
WebhookListResponse 2 fields

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "url": "https://example.com/resource",
      "events": [
        "string"
      ],
      "status": "active",
      "secret_rotation": {
        "scheduled": true,
        "activates_at": "2026-09-21T00:00:00Z"
      },
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
FieldRequiredType and descriptionExample Value
data Required
array<Webhook>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "url": "https://example.com/resource", "events": [ "string" ], "status": "active", "secret_rotation": { "scheduled": true, "activates_at": "2026-09-21T00:00:00Z" }, "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" } ]
pagination Required { "next_cursor": "string", "has_more": true }
Event 7 fields

Schema

object

Example Value

{
  "id": "id_aaaaaaaaaaaaaaaaaaaa",
  "type": "string",
  "actor": {},
  "target": {
    "environment": "live"
  },
  "request_id": "01K5QWERTY1234567890ABCDEFG",
  "data": {},
  "created_at": "2026-09-21T00:00:00Z"
}
FieldRequiredType and descriptionExample Value
id Optional "id_aaaaaaaaaaaaaaaaaaaa"
type Optional
string
"string"
actor Optional
object
{}
target Optional
object
{ "environment": "live" }
request_id Optional
string | null
"01K5QWERTY1234567890ABCDEFG"
data Optional
object
{}
created_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
EventResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "id": "id_aaaaaaaaaaaaaaaaaaaa",
    "type": "string",
    "actor": {},
    "target": {
      "environment": "live"
    },
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "data": {},
    "created_at": "2026-09-21T00:00:00Z"
  }
}
FieldRequiredType and descriptionExample Value
data Required { "id": "id_aaaaaaaaaaaaaaaaaaaa", "type": "string", "actor": {}, "target": { "environment": "live" }, "request_id": "01K5QWERTY1234567890ABCDEFG", "data": {}, "created_at": "2026-09-21T00:00:00Z" }
EventListResponse 2 fields

Schema

object

Example Value

{
  "data": [
    {
      "id": "id_aaaaaaaaaaaaaaaaaaaa",
      "type": "string",
      "actor": {},
      "target": {
        "environment": "live"
      },
      "request_id": "01K5QWERTY1234567890ABCDEFG",
      "data": {},
      "created_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
FieldRequiredType and descriptionExample Value
data Required
array<Event>
[ { "id": "id_aaaaaaaaaaaaaaaaaaaa", "type": "string", "actor": {}, "target": { "environment": "live" }, "request_id": "01K5QWERTY1234567890ABCDEFG", "data": {}, "created_at": "2026-09-21T00:00:00Z" } ]
pagination Required { "next_cursor": "string", "has_more": true }
Reseller 11 fields

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "name": "Example name",
  "email": "developer@example.com",
  "external_ref": "string",
  "organization_limit": 1,
  "user_limit": 1,
  "status": "active",
  "metadata": {},
  "archived_at": "2026-09-21T00:00:00Z",
  "created_at": "2026-09-21T00:00:00Z",
  "updated_at": "2026-09-21T00:00:00Z"
}
FieldRequiredType and descriptionExample Value
public_id Optional "public_id_aaaaaaaaaaaaaaaaaaaa"
name Optional
string
"Example name"
email Optional
string | null
"developer@example.com"
external_ref Optional
string | null
"string"
organization_limit Optional
integer | null

Maximum number of customers assigned to this reseller, not counting archived ones. The name dates from before customer organizations were merged into customers. null means no limit.

1
user_limit Optional
integer | null

Maximum number of license users, not counting deprovisioned ones, across the customers assigned to this reseller. null means no limit.

1
status Optional
string
"active"
metadata Optional
object
{}
archived_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
created_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
updated_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
ResellerResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "email": "developer@example.com",
    "external_ref": "string",
    "organization_limit": 1,
    "user_limit": 1,
    "status": "active",
    "metadata": {},
    "archived_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
FieldRequiredType and descriptionExample Value
data Required { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "email": "developer@example.com", "external_ref": "string", "organization_limit": 1, "user_limit": 1, "status": "active", "metadata": {}, "archived_at": "2026-09-21T00:00:00Z", "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" }
ResellerListResponse 2 fields

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "email": "developer@example.com",
      "external_ref": "string",
      "organization_limit": 1,
      "user_limit": 1,
      "status": "active",
      "metadata": {},
      "archived_at": "2026-09-21T00:00:00Z",
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
FieldRequiredType and descriptionExample Value
data Required
array<Reseller>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "email": "developer@example.com", "external_ref": "string", "organization_limit": 1, "user_limit": 1, "status": "active", "metadata": {}, "archived_at": "2026-09-21T00:00:00Z", "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" } ]
pagination Required { "next_cursor": "string", "has_more": true }
Organization 11 fields

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "name": "Example name",
  "email": "developer@example.com",
  "external_ref": "string",
  "user_limit": 1,
  "status": "active",
  "metadata": {},
  "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
  "archived_at": "2026-09-21T00:00:00Z",
  "created_at": "2026-09-21T00:00:00Z",
  "updated_at": "2026-09-21T00:00:00Z"
}
FieldRequiredType and descriptionExample Value
public_id Optional "public_id_aaaaaaaaaaaaaaaaaaaa"
name Optional
string
"Example name"
email Optional
string | null
"developer@example.com"
external_ref Optional
string | null
"string"
user_limit Optional
integer | null
1
status Optional
string
"active"
metadata Optional
object
{}
reseller_id Optional
PublicId | null
"reseller_id_aaaaaaaaaaaaaaaaaaaa"
archived_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
created_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
updated_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
OrganizationResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "email": "developer@example.com",
    "external_ref": "string",
    "user_limit": 1,
    "status": "active",
    "metadata": {},
    "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
    "archived_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
FieldRequiredType and descriptionExample Value
data Required { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "email": "developer@example.com", "external_ref": "string", "user_limit": 1, "status": "active", "metadata": {}, "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa", "archived_at": "2026-09-21T00:00:00Z", "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" }
OrganizationListResponse 2 fields

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "email": "developer@example.com",
      "external_ref": "string",
      "user_limit": 1,
      "status": "active",
      "metadata": {},
      "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
      "archived_at": "2026-09-21T00:00:00Z",
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
FieldRequiredType and descriptionExample Value
data Required
array<Organization>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "email": "developer@example.com", "external_ref": "string", "user_limit": 1, "status": "active", "metadata": {}, "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa", "archived_at": "2026-09-21T00:00:00Z", "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" } ]
pagination Required { "next_cursor": "string", "has_more": true }
OrganizationGroup 7 fields

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
  "name": "Example name",
  "status": "active",
  "metadata": {},
  "created_at": "2026-09-21T00:00:00Z",
  "updated_at": "2026-09-21T00:00:00Z"
}
FieldRequiredType and descriptionExample Value
public_id Optional "public_id_aaaaaaaaaaaaaaaaaaaa"
organization_id Optional

The customer, identified as the organizations endpoints identify it: the organization ID it had before customer organizations were merged into customers (org_…), or its customer ID (cus_…).

"organization_id_aaaaaaaaaaaaaaaaaaaa"
name Optional
string
"Example name"
status Optional
string
"active"
metadata Optional
object
{}
created_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
updated_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
OrganizationGroupResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "status": "active",
    "metadata": {},
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
FieldRequiredType and descriptionExample Value
data Required { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "status": "active", "metadata": {}, "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" }
OrganizationGroupListResponse 2 fields

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "status": "active",
      "metadata": {},
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
FieldRequiredType and descriptionExample Value
data Required
array<OrganizationGroup>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "status": "active", "metadata": {}, "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" } ]
pagination Required { "next_cursor": "string", "has_more": true }
OrganizationGroupMembership 8 fields

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "organization_group_id": "organization_group_id_aaaaaaaaaaaaaaaaaaaa",
  "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa",
  "status": "active",
  "assigned_at": "2026-09-21T00:00:00Z",
  "revoked_at": "2026-09-21T00:00:00Z",
  "created_at": "2026-09-21T00:00:00Z",
  "updated_at": "2026-09-21T00:00:00Z"
}
FieldRequiredType and descriptionExample Value
public_id Optional "public_id_aaaaaaaaaaaaaaaaaaaa"
organization_group_id Optional "organization_group_id_aaaaaaaaaaaaaaaaaaaa"
license_user_id Optional "license_user_id_aaaaaaaaaaaaaaaaaaaa"
status Optional
string
"active"
assigned_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
revoked_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
created_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
updated_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
OrganizationGroupMembershipResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "organization_group_id": "organization_group_id_aaaaaaaaaaaaaaaaaaaa",
    "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "assigned_at": "2026-09-21T00:00:00Z",
    "revoked_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
FieldRequiredType and descriptionExample Value
data Required { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "organization_group_id": "organization_group_id_aaaaaaaaaaaaaaaaaaaa", "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa", "status": "active", "assigned_at": "2026-09-21T00:00:00Z", "revoked_at": "2026-09-21T00:00:00Z", "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" }
OrganizationGroupMembershipListResponse 2 fields

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "organization_group_id": "organization_group_id_aaaaaaaaaaaaaaaaaaaa",
      "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa",
      "status": "active",
      "assigned_at": "2026-09-21T00:00:00Z",
      "revoked_at": "2026-09-21T00:00:00Z",
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
FieldRequiredType and descriptionExample Value
data Required
array<OrganizationGroupMembership>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "organization_group_id": "organization_group_id_aaaaaaaaaaaaaaaaaaaa", "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa", "status": "active", "assigned_at": "2026-09-21T00:00:00Z", "revoked_at": "2026-09-21T00:00:00Z", "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" } ]
pagination Required { "next_cursor": "string", "has_more": true }
LicenseUser 15 fields

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "issuer": "https://example.com/resource",
  "subject": "string",
  "email": "developer@example.com",
  "name": "Example name",
  "status": "active",
  "two_factor_state": "string",
  "two_factor_method": "string",
  "metadata": {},
  "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
  "oidc_connection_id": "oidc_connection_id_aaaaaaaaaaaaaaaaaaaa",
  "last_authenticated_at": "2026-09-21T00:00:00Z",
  "deprovisioned_at": "2026-09-21T00:00:00Z",
  "created_at": "2026-09-21T00:00:00Z",
  "updated_at": "2026-09-21T00:00:00Z"
}
FieldRequiredType and descriptionExample Value
public_id Optional "public_id_aaaaaaaaaaaaaaaaaaaa"
issuer Optional
string uri
"https://example.com/resource"
subject Optional
string
"string"
email Optional
string | null
"developer@example.com"
name Optional
string | null
"Example name"
status Optional
string
"active"
two_factor_state Optional
string
"string"
two_factor_method Optional
string | null
"string"
metadata Optional
object
{}
organization_id Optional
PublicId | null

The customer, identified as the organizations endpoints identify it: the organization ID it had before customer organizations were merged into customers (org_…), or its customer ID (cus_…).

"organization_id_aaaaaaaaaaaaaaaaaaaa"
oidc_connection_id Optional
PublicId | null

The associated OIDC connection ID. It is normally `null` for Personal-plan local-directory users because OIDC and the customer portal are unavailable.

"oidc_connection_id_aaaaaaaaaaaaaaaaaaaa"
last_authenticated_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
deprovisioned_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
created_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
updated_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
LicenseUserResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "issuer": "https://example.com/resource",
    "subject": "string",
    "email": "developer@example.com",
    "name": "Example name",
    "status": "active",
    "two_factor_state": "string",
    "two_factor_method": "string",
    "metadata": {},
    "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
    "oidc_connection_id": "oidc_connection_id_aaaaaaaaaaaaaaaaaaaa",
    "last_authenticated_at": "2026-09-21T00:00:00Z",
    "deprovisioned_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
FieldRequiredType and descriptionExample Value
data Required { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "issuer": "https://example.com/resource", "subject": "string", "email": "developer@example.com", "name": "Example name", "status": "active", "two_factor_state": "string", "two_factor_method": "string", "metadata": {}, "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa", "oidc_connection_id": "oidc_connection_id_aaaaaaaaaaaaaaaaaaaa", "last_authenticated_at": "2026-09-21T00:00:00Z", "deprovisioned_at": "2026-09-21T00:00:00Z", "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" }
LicenseUserListResponse 2 fields

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "issuer": "https://example.com/resource",
      "subject": "string",
      "email": "developer@example.com",
      "name": "Example name",
      "status": "active",
      "two_factor_state": "string",
      "two_factor_method": "string",
      "metadata": {},
      "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
      "oidc_connection_id": "oidc_connection_id_aaaaaaaaaaaaaaaaaaaa",
      "last_authenticated_at": "2026-09-21T00:00:00Z",
      "deprovisioned_at": "2026-09-21T00:00:00Z",
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
FieldRequiredType and descriptionExample Value
data Required
array<LicenseUser>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "issuer": "https://example.com/resource", "subject": "string", "email": "developer@example.com", "name": "Example name", "status": "active", "two_factor_state": "string", "two_factor_method": "string", "metadata": {}, "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa", "oidc_connection_id": "oidc_connection_id_aaaaaaaaaaaaaaaaaaaa", "last_authenticated_at": "2026-09-21T00:00:00Z", "deprovisioned_at": "2026-09-21T00:00:00Z", "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" } ]
pagination Required { "next_cursor": "string", "has_more": true }
OidcConnection 17 fields

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "name": "Example name",
  "issuer": "https://example.com/resource",
  "client_id": "01K5QWERTY1234567890ABCDEFG",
  "authorization_endpoint": "https://example.com/resource",
  "token_endpoint": "https://example.com/resource",
  "jwks_uri": "https://example.com/resource",
  "scopes": [
    "string"
  ],
  "allowed_audiences": [
    "string"
  ],
  "pkce_required": true,
  "jit_provisioning": true,
  "status": "active",
  "metadata": {},
  "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
  "client_secret_rotated_at": "2026-09-21T00:00:00Z",
  "created_at": "2026-09-21T00:00:00Z",
  "updated_at": "2026-09-21T00:00:00Z"
}
FieldRequiredType and descriptionExample Value
public_id Optional "public_id_aaaaaaaaaaaaaaaaaaaa"
name Optional
string
"Example name"
issuer Optional
string uri
"https://example.com/resource"
client_id Optional
string
"01K5QWERTY1234567890ABCDEFG"
authorization_endpoint Optional
string uri
"https://example.com/resource"
token_endpoint Optional
string uri
"https://example.com/resource"
jwks_uri Optional
string uri
"https://example.com/resource"
scopes Optional
array<string>
[ "string" ]
allowed_audiences Optional
array<string>
[ "string" ]
pkce_required Optional
boolean
true
jit_provisioning Optional
boolean
true
status Optional
string
"active"
metadata Optional
object
{}
organization_id Optional
PublicId | null

The customer, identified as the organizations endpoints identify it: the organization ID it had before customer organizations were merged into customers (org_…), or its customer ID (cus_…).

"organization_id_aaaaaaaaaaaaaaaaaaaa"
client_secret_rotated_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
created_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
updated_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
OidcConnectionResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "issuer": "https://example.com/resource",
    "client_id": "01K5QWERTY1234567890ABCDEFG",
    "authorization_endpoint": "https://example.com/resource",
    "token_endpoint": "https://example.com/resource",
    "jwks_uri": "https://example.com/resource",
    "scopes": [
      "string"
    ],
    "allowed_audiences": [
      "string"
    ],
    "pkce_required": true,
    "jit_provisioning": true,
    "status": "active",
    "metadata": {},
    "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
    "client_secret_rotated_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
FieldRequiredType and descriptionExample Value
data Required { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "issuer": "https://example.com/resource", "client_id": "01K5QWERTY1234567890ABCDEFG", "authorization_endpoint": "https://example.com/resource", "token_endpoint": "https://example.com/resource", "jwks_uri": "https://example.com/resource", "scopes": [ "string" ], "allowed_audiences": [ "string" ], "pkce_required": true, "jit_provisioning": true, "status": "active", "metadata": {}, "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa", "client_secret_rotated_at": "2026-09-21T00:00:00Z", "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" }
OidcConnectionListResponse 2 fields

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "issuer": "https://example.com/resource",
      "client_id": "01K5QWERTY1234567890ABCDEFG",
      "authorization_endpoint": "https://example.com/resource",
      "token_endpoint": "https://example.com/resource",
      "jwks_uri": "https://example.com/resource",
      "scopes": [
        "string"
      ],
      "allowed_audiences": [
        "string"
      ],
      "pkce_required": true,
      "jit_provisioning": true,
      "status": "active",
      "metadata": {},
      "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
      "client_secret_rotated_at": "2026-09-21T00:00:00Z",
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
FieldRequiredType and descriptionExample Value
data Required
array<OidcConnection>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "issuer": "https://example.com/resource", "client_id": "01K5QWERTY1234567890ABCDEFG", "authorization_endpoint": "https://example.com/resource", "token_endpoint": "https://example.com/resource", "jwks_uri": "https://example.com/resource", "scopes": [ "string" ], "allowed_audiences": [ "string" ], "pkce_required": true, "jit_provisioning": true, "status": "active", "metadata": {}, "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa", "client_secret_rotated_at": "2026-09-21T00:00:00Z", "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" } ]
pagination Required { "next_cursor": "string", "has_more": true }
LicenseAssignment 14 fields

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
  "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa",
  "source_group_id": "source_group_id_aaaaaaaaaaaaaaaaaaaa",
  "tenant_plan_id": "tenant_plan_id_aaaaaaaaaaaaaaaaaaaa",
  "status": "active",
  "license_units": 1,
  "assigned_at": "2026-09-21T00:00:00Z",
  "expires_at": "2026-09-21T00:00:00Z",
  "revoked_at": "2026-09-21T00:00:00Z",
  "entitlement_overrides": {},
  "metadata": {},
  "created_at": "2026-09-21T00:00:00Z",
  "updated_at": "2026-09-21T00:00:00Z"
}
FieldRequiredType and descriptionExample Value
public_id Optional "public_id_aaaaaaaaaaaaaaaaaaaa"
license_id Optional "license_id_aaaaaaaaaaaaaaaaaaaa"
license_user_id Optional "license_user_id_aaaaaaaaaaaaaaaaaaaa"
source_group_id Optional
PublicId | null
"source_group_id_aaaaaaaaaaaaaaaaaaaa"
tenant_plan_id Optional
PublicId | null
"tenant_plan_id_aaaaaaaaaaaaaaaaaaaa"
status Optional
string
"active"
license_units Optional
integer | null
1
assigned_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
expires_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
revoked_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
entitlement_overrides Optional
object
{}
metadata Optional
object
{}
created_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
updated_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
LicenseAssignmentResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
    "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa",
    "source_group_id": "source_group_id_aaaaaaaaaaaaaaaaaaaa",
    "tenant_plan_id": "tenant_plan_id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "license_units": 1,
    "assigned_at": "2026-09-21T00:00:00Z",
    "expires_at": "2026-09-21T00:00:00Z",
    "revoked_at": "2026-09-21T00:00:00Z",
    "entitlement_overrides": {},
    "metadata": {},
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
FieldRequiredType and descriptionExample Value
data Required { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa", "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa", "source_group_id": "source_group_id_aaaaaaaaaaaaaaaaaaaa", "tenant_plan_id": "tenant_plan_id_aaaaaaaaaaaaaaaaaaaa", "status": "active", "license_units": 1, "assigned_at": "2026-09-21T00:00:00Z", "expires_at": "2026-09-21T00:00:00Z", "revoked_at": "2026-09-21T00:00:00Z", "entitlement_overrides": {}, "metadata": {}, "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" }
LicenseAssignmentListResponse 2 fields

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
      "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa",
      "source_group_id": "source_group_id_aaaaaaaaaaaaaaaaaaaa",
      "tenant_plan_id": "tenant_plan_id_aaaaaaaaaaaaaaaaaaaa",
      "status": "active",
      "license_units": 1,
      "assigned_at": "2026-09-21T00:00:00Z",
      "expires_at": "2026-09-21T00:00:00Z",
      "revoked_at": "2026-09-21T00:00:00Z",
      "entitlement_overrides": {},
      "metadata": {},
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
FieldRequiredType and descriptionExample Value
data Required
array<LicenseAssignment>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa", "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa", "source_group_id": "source_group_id_aaaaaaaaaaaaaaaaaaaa", "tenant_plan_id": "tenant_plan_id_aaaaaaaaaaaaaaaaaaaa", "status": "active", "license_units": 1, "assigned_at": "2026-09-21T00:00:00Z", "expires_at": "2026-09-21T00:00:00Z", "revoked_at": "2026-09-21T00:00:00Z", "entitlement_overrides": {}, "metadata": {}, "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" } ]
pagination Required { "next_cursor": "string", "has_more": true }
UsageReport 5 fields

Schema

object

Example Value

{
  "period": {},
  "new_activations": 1,
  "active_machines": 1,
  "active_licenses": 1,
  "active_leases": 1
}
FieldRequiredType and descriptionExample Value
period Optional
object
{}
new_activations Optional
integer | null
1
active_machines Optional
integer | null

Distinct machines among the activations created in the period that have not been deactivated. Includes devices on suspended or expired licenses, which keep their activations so the same devices can be used again after the license is resumed; this is not a count of devices that can use the product right now.

1
active_licenses Optional
integer | null
1
active_leases Optional
integer | null
1
UsageReportResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "period": {},
    "new_activations": 1,
    "active_machines": 1,
    "active_licenses": 1,
    "active_leases": 1
  }
}
FieldRequiredType and descriptionExample Value
data Required { "period": {}, "new_activations": 1, "active_machines": 1, "active_licenses": 1, "active_leases": 1 }
UsageReportListResponse 2 fields

Schema

object

Example Value

{
  "data": [
    {
      "period": {},
      "new_activations": 1,
      "active_machines": 1,
      "active_licenses": 1,
      "active_leases": 1
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
FieldRequiredType and descriptionExample Value
data Required
array<UsageReport>
[ { "period": {}, "new_activations": 1, "active_machines": 1, "active_licenses": 1, "active_leases": 1 } ]
pagination Required { "next_cursor": "string", "has_more": true }
ProductInput 4 fields

Schema

object

Example Value

{
  "name": "Example name",
  "code": "string",
  "description": "Example description",
  "environment": "string"
}
FieldRequiredType and descriptionExample Value
name Optional
string
"Example name"
code Optional
string
"string"
description Optional
string
"Example description"
environment Optional
string
"string"
ProductBrowserRuntimeInput 2 fields

Schema

object

Example Value

{
  "enabled": true,
  "allowed_origins": [
    "string"
  ]
}
FieldRequiredType and descriptionExample Value
enabled Optional
boolean
true
allowed_origins Optional
array<string> Maximum items: 20
[ "string" ]
ProductTrialSignupInput 2 fields

Schema

object

Example Value

{
  "policy_id": "01K5QWERTY1234567890ABCDEFG",
  "daily_limit": 1
}
FieldRequiredType and descriptionExample Value
policy_id Optional
string | null Maximum length: 64

The trial policy to accept trials with: an active trial policy of this product that uses license keys. null or an empty string stops accepting trials.

"01K5QWERTY1234567890ABCDEFG"
daily_limit Optional
integer | null Minimum: 1 Maximum: 1000

The most trials the app can start in any 24 hours, from 1 to 1000. null resets it to the default 20.

1
AnomalyCloseInput 1 fields

Schema

object

Example Value

{
  "reason": "string"
}
FieldRequiredType and descriptionExample Value
reason Required
string Minimum length: 1 Maximum length: 500

Why the suspicion is closed. Recorded in the audit log and shown on the suspicion in the Console.

"string"
PolicyAnomalyRuleInput 5 fields

Schema

object

Example Value

{
  "anomaly_action": "notify",
  "threshold": 1,
  "minimum_confirmations": 1,
  "decay_hours": 1,
  "weights": {
    "property": 0
  }
}
FieldRequiredType and descriptionExample Value
anomaly_action Optional
string

Allowed values: notify, suspend_license, off

notify records and notifies only; suspend_license also suspends the license once minimum_confirmations checks reached the threshold; off does not detect.

"notify"
threshold Optional
integer Minimum: 1 Maximum: 1000

The score that opens a suspicion.

1
minimum_confirmations Optional
integer Minimum: 1 Maximum: 10

Checks whose score reached the threshold before suspend_license suspends the license.

1
decay_hours Optional
integer Minimum: 1 Maximum: 2160

Hours until the points of a signal occurrence halve.

1
weights Optional
object

Weights to change, from 0 to 1000; 0 stops counting the signal. Only the signals named are changed. Signal names: vm_detected, clock_tamper_detected, device_identity_changed, network_changed, parallel_network_use, shared_hardware, device_churn.

{ "property": 0 }
PolicyInput 27 fields

Schema

object

Example Value

{
  "default_license_metadata": {},
  "product_id": "prod_0123456789abcdef0123",
  "name": "Example name",
  "license_type": "string",
  "validation_mode": "string",
  "fail_mode": "string",
  "max_machines": 1,
  "max_concurrent": 1,
  "concurrency_unit": "string",
  "identity_mode": "string",
  "license_unit_limit": 1,
  "cert_ttl_sec": 1,
  "heartbeat_sec": 1,
  "lease_ttl_sec": 1,
  "lease_heartbeat_sec": 1,
  "lease_checkout_max_days": 0,
  "lease_handoff_grace_sec": 0,
  "lease_burst_seats": 0,
  "lease_burst_sec": 0,
  "network_grace_sec": 1,
  "fingerprint_profile": "standard",
  "renewal_authority": "string",
  "billing_cycle": "string",
  "trial_days": 1,
  "entitlements": {},
  "offline_rehosts_per_year": 0,
  "counters": [
    {
      "name": "example",
      "limit": 0,
      "reset_period": "none",
      "unit": "string",
      "alert_threshold": 0,
      "overage_action": "notify"
    }
  ]
}
FieldRequiredType and descriptionExample Value
default_license_metadata Optional
object

Signed settings (JSON object, at most 512 bytes in canonical form) given to licenses of this policy that are issued without their own metadata. Product apps read them through the SDK. They are readable on the device, so do not store secrets.

{}
product_id Optional "prod_0123456789abcdef0123"
name Optional
string
"Example name"
license_type Optional
string
"string"
validation_mode Optional
string

For a perpetual node-locked policy, offline selects offline_unmanaged. Use periodic or online for managed perpetual licensing. Named-user perpetual policies must be managed.

"string"
fail_mode Optional
string
"string"
max_machines Optional
integer | null
1
max_concurrent Optional
integer | null
1
concurrency_unit Optional
string
"string"
identity_mode Optional
string
"string"
license_unit_limit Optional
integer | null
1
cert_ttl_sec Optional
integer | null
1
heartbeat_sec Optional
integer | null
1
lease_ttl_sec Optional
integer | null
1
lease_heartbeat_sec Optional
integer | null
1
lease_checkout_max_days Optional
integer Minimum: 0 Maximum: 30

Longest checkout of a floating lease in days (0 to 30). 0, the default, means a lease cannot be checked out. Floating policies only.

0
lease_handoff_grace_sec Optional
integer Minimum: 0 Maximum: 600

Handoff grace period in seconds (0, or 30 to 600). 0, the default, turns handoff off. Floating policies only.

0
lease_burst_seats Optional
integer Minimum: 0 Maximum: 1000

Overage seats above the limit (0 to the maximum number of simultaneous launches). Set together with lease_burst_sec; 0, the default, turns overage off. Floating policies only.

0
lease_burst_sec Optional
integer Minimum: 0 Maximum: 1800

Overage window length in seconds (60 to 1800), set together with lease_burst_seats.

0
network_grace_sec Optional
integer | null
1
fingerprint_profile Optional
string | object

Send the device identification profile as a profile name string, for example standard. It is stored and returned as {"profile": name}. An object is listed only for compatibility with the earlier schema: an object or array is refused with 422 VALIDATION_FAILED, and risk_policy cannot be set through this API.

"standard"
renewal_authority Optional
string
"string"
billing_cycle Optional
string
"string"
trial_days Optional
integer | null
1
entitlements Optional
object
{}
offline_rehosts_per_year Optional
integer Minimum: 0 Maximum: 100

Moves of a fully offline license to another device that each license of this policy allows over the last 365 days (POST /mgmt/v1/licenses/{id}/offline-rehosts), from 0 to 100. 0 disables moves. A policy created without it allows 2. Policy responses do not include it; GET /mgmt/v1/licenses/{id}/offline-rehosts returns the limit a license has and the moves left.

0
counters Optional
array<CounterDefinitionInput> Maximum items: 8

Usage counters of the policy; the whole list replaces the previous one (an empty list removes them). Read them with GET /mgmt/v1/policies/{policy_id}/counters. Not available for fully offline policies or on the Evaluation plan.

[ { "name": "example", "limit": 0, "reset_period": "none", "unit": "string", "alert_threshold": 0, "overage_action": "notify" } ]
CounterDefinition 6 fields

Schema

object

Example Value

{
  "name": "example",
  "limit": 0,
  "reset_period": "string",
  "unit": "string",
  "alert_threshold": 0,
  "overage_action": "string"
}
FieldRequiredType and descriptionExample Value
name Required
string Pattern: ^[a-z][a-z0-9_]{0,23}$

Name the product app passes when it consumes, unique within the policy

"example"
limit Required
integer Minimum: 0 Maximum: 1000000000

Amount available per period

0
reset_period Required
string

none (never resets) or monthly (resets at the start of each calendar month, Japan time)

"string"
unit Optional
string | null Maximum length: 16

Unit shown with the amounts, for display only

"string"
alert_threshold Optional
integer | null Minimum: 0

Sends license.counter_low once per period when the remaining amount falls to this value

0
overage_action Required
string

notify (record the overage and send license.counter_overage) or suspend_license (also suspend the license when usage beyond the limit arrives from a device; resume it from the Console or the Management API)

"string"
CounterDefinitionInput 6 fields

Schema

object

Example Value

{
  "name": "example",
  "limit": 0,
  "reset_period": "none",
  "unit": "string",
  "alert_threshold": 0,
  "overage_action": "notify"
}
FieldRequiredType and descriptionExample Value
name Required
string Pattern: ^[a-z][a-z0-9_]{0,23}$
"example"
limit Required
integer Minimum: 0 Maximum: 1000000000
0
reset_period Optional
value

Allowed values: none, monthly

Defaults to none

"none"
unit Optional
string | null Maximum length: 16
"string"
alert_threshold Optional
integer | null Minimum: 0
0
overage_action Optional
value

Allowed values: notify, suspend_license

Defaults to notify

"notify"
CounterDefinitionListResponse 1 fields

Schema

object

Example Value

{
  "data": [
    {
      "name": "example",
      "limit": 0,
      "reset_period": "string",
      "unit": "string",
      "alert_threshold": 0,
      "overage_action": "string"
    }
  ]
}
FieldRequiredType and descriptionExample Value
data Required
array<CounterDefinition>
[ { "name": "example", "limit": 0, "reset_period": "string", "unit": "string", "alert_threshold": 0, "overage_action": "string" } ]
LicenseCounter 12 fields

Schema

object

Example Value

{
  "name": "Example name",
  "unit": "string",
  "reset_period": "string",
  "defined": true,
  "limit": 0,
  "limit_override": 0,
  "adjusted": 1,
  "used": 0,
  "remaining": 0,
  "overage": 0,
  "period_starts_at": "2026-09-21T00:00:00Z",
  "period_ends_at": "2026-09-21T00:00:00Z"
}
FieldRequiredType and descriptionExample Value
name Required
string
"Example name"
unit Optional
string | null
"string"
reset_period Optional
string

none or monthly

"string"
defined Optional
boolean

False when the license's policy no longer defines this counter; only its history remains

true
limit Required
integer Minimum: 0

Limit for the current period, including a limit set for this license

0
limit_override Optional
integer | null Minimum: 0

Limit set for this license; null uses the policy's limit

0
adjusted Optional
integer

Total amount added (positive) or subtracted (negative) by the seller in the current period

1
used Required
integer Minimum: 0

Amount consumed by devices in the current period

0
remaining Required
integer Minimum: 0
0
overage Required
integer Minimum: 0

Amount consumed beyond limit plus adjusted in the current period

0
period_starts_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
period_ends_at Optional
string | null date-time

When the counter resets; null for counters that never reset

"2026-09-21T00:00:00Z"
LicenseCounterResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "name": "Example name",
    "unit": "string",
    "reset_period": "string",
    "defined": true,
    "limit": 0,
    "limit_override": 0,
    "adjusted": 1,
    "used": 0,
    "remaining": 0,
    "overage": 0,
    "period_starts_at": "2026-09-21T00:00:00Z",
    "period_ends_at": "2026-09-21T00:00:00Z"
  }
}
FieldRequiredType and descriptionExample Value
data Required { "name": "Example name", "unit": "string", "reset_period": "string", "defined": true, "limit": 0, "limit_override": 0, "adjusted": 1, "used": 0, "remaining": 0, "overage": 0, "period_starts_at": "2026-09-21T00:00:00Z", "period_ends_at": "2026-09-21T00:00:00Z" }
LicenseCounterListResponse 1 fields

Schema

object

Example Value

{
  "data": [
    {
      "name": "Example name",
      "unit": "string",
      "reset_period": "string",
      "defined": true,
      "limit": 0,
      "limit_override": 0,
      "adjusted": 1,
      "used": 0,
      "remaining": 0,
      "overage": 0,
      "period_starts_at": "2026-09-21T00:00:00Z",
      "period_ends_at": "2026-09-21T00:00:00Z"
    }
  ]
}
FieldRequiredType and descriptionExample Value
data Required
array<LicenseCounter>
[ { "name": "Example name", "unit": "string", "reset_period": "string", "defined": true, "limit": 0, "limit_override": 0, "adjusted": 1, "used": 0, "remaining": 0, "overage": 0, "period_starts_at": "2026-09-21T00:00:00Z", "period_ends_at": "2026-09-21T00:00:00Z" } ]
LicenseCounterEntry 8 fields

Schema

object

Example Value

{
  "kind": "string",
  "amount": 1,
  "period": "string",
  "consumption_id": "01K5QWERTY1234567890ABCDEFG",
  "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
  "consumed_at": "2026-09-21T00:00:00Z",
  "reason": "string",
  "recorded_at": "2026-09-21T00:00:00Z"
}
FieldRequiredType and descriptionExample Value
kind Required
string

consumption, adjustment or limit_change

"string"
amount Required
integer

Amount consumed (consumption), added or subtracted (adjustment), or the change in the limit (limit_change)

1
period Required
string

Period the entry belongs to, all for counters that never reset or YYYY-MM for monthly counters

"string"
consumption_id Optional
string | null
"01K5QWERTY1234567890ABCDEFG"
activation_id Optional
PublicId | null
"activation_id_aaaaaaaaaaaaaaaaaaaa"
consumed_at Optional
string | null date-time

Time the device reported for a consumption, for reference only

"2026-09-21T00:00:00Z"
reason Optional
string | null
"string"
recorded_at Required
string date-time
"2026-09-21T00:00:00Z"
LicenseCounterEntryListResponse 2 fields

Schema

object

Example Value

{
  "data": [
    {
      "kind": "string",
      "amount": 1,
      "period": "string",
      "consumption_id": "01K5QWERTY1234567890ABCDEFG",
      "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
      "consumed_at": "2026-09-21T00:00:00Z",
      "reason": "string",
      "recorded_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
FieldRequiredType and descriptionExample Value
data Required
array<LicenseCounterEntry>
[ { "kind": "string", "amount": 1, "period": "string", "consumption_id": "01K5QWERTY1234567890ABCDEFG", "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa", "consumed_at": "2026-09-21T00:00:00Z", "reason": "string", "recorded_at": "2026-09-21T00:00:00Z" } ]
pagination Required { "next_cursor": "string", "has_more": true }
LicenseCounterAdjustmentInput 3 fields

Schema

object

Example Value

{
  "amount": -1000000000,
  "limit": 0,
  "reason": "string"
}
FieldRequiredType and descriptionExample Value
amount Optional
integer Minimum: -1000000000 Maximum: 1000000000

Amount to add (positive) or subtract (negative) for the current period; not 0

-1000000000
limit Optional
integer | null Minimum: 0 Maximum: 1000000000

Limit for this license; null returns to the policy's limit

0
reason Required
string Minimum length: 1 Maximum length: 500
"string"
CustomerInput 5 fields

Schema

object

Example Value

{
  "name": "Example name",
  "email": "developer@example.com",
  "external_ref": "string",
  "notes": "string",
  "kind": "individual"
}
FieldRequiredType and descriptionExample Value
name Optional
string
"Example name"
email Optional
string
"developer@example.com"
external_ref Optional
string
"string"
notes Optional
string
"string"
kind Optional
string

Allowed values: individual, organization

The customer type. organization (the default) is a company or other organization; with user management it can have several license users. individual is a person who uses the software. Creating an individual, or changing an organization into one, creates a license user with a local ID and the customer's name and email address and assigns the customer's active per-user licenses to it; later name and email changes are copied to that user. An organization can become an individual only when it is not archived, does not use user management, has at most one license user, and its licenses are not assigned to other license users (422 VALIDATION_FAILED otherwise). An individual can become an organization at any time; its license user stays.

"individual"
LicenseUpdateInput 11 fields

Schema

object

Example Value

{
  "expires_at": "2026-09-21T00:00:00Z",
  "expiry": "2026-09-21T00:00:00Z",
  "renewal_authority": "string",
  "max_machines_override": 1,
  "max_concurrent_override": 1,
  "license_unit_limit_override": 1,
  "entitlements": {},
  "metadata": {},
  "status_action": "active",
  "reason": "string",
  "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa"
}
FieldRequiredType and descriptionExample Value
expires_at Optional
string | null date-time

Subscription expiry. Use `null` for no expiry. On Evaluation, it must be within 1 hour of issuance.

"2026-09-21T00:00:00Z"
expiry Optional
string | null date-time

Legacy name for `expires_at`. Use `expires_at`; when both are provided, `expires_at` takes precedence.

"2026-09-21T00:00:00Z"
renewal_authority Optional
string
"string"
max_machines_override Optional
integer | null
1
max_concurrent_override Optional
integer | null
1
license_unit_limit_override Optional
integer | null
1
entitlements Optional
object
{}
metadata Optional
object
{}
status_action Optional
string
"active"
reason Optional
string
"string"
customer_id Optional
PublicId | null

Sets, moves or (with null) removes the license's customer, under the same rules as the Console. A customer ID (cus_) or a customer organization ID from before the merge (org_). It cannot be combined with status_action. The change is refused with 422 VALIDATION_FAILED when the customer is archived, when the license is assigned to license users who do not belong to that customer, when the current and requested customers have different resellers, or when the license was bought through the workspace's Stripe integration; details.reasons lists customer_archived, assigned_to_other_users, reseller_mismatch or stripe_purchase. Recorded in the audit log as license.customer_changed with reason.

"customer_id_aaaaaaaaaaaaaaaaaaaa"
ResellerInput 7 fields

Schema

object

Example Value

{
  "name": "Example name",
  "email": "developer@example.com",
  "external_ref": "string",
  "organization_limit": 1,
  "user_limit": 1,
  "status": "active",
  "metadata": {}
}
FieldRequiredType and descriptionExample Value
name Optional
string
"Example name"
email Optional
string
"developer@example.com"
external_ref Optional
string
"string"
organization_limit Optional
integer | null

Maximum number of customers assigned to this reseller, not counting archived ones. The name dates from before customer organizations were merged into customers. null means no limit.

1
user_limit Optional
integer | null

Maximum number of license users, not counting deprovisioned ones, across the customers assigned to this reseller. null means no limit.

1
status Optional
string
"active"
metadata Optional
object
{}
OrganizationInput 8 fields

Schema

object

Example Value

{
  "name": "Example name",
  "email": "developer@example.com",
  "external_ref": "string",
  "user_limit": 1,
  "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
  "status": "active",
  "metadata": {},
  "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa"
}
FieldRequiredType and descriptionExample Value
name Optional
string
"Example name"
email Optional
string
"developer@example.com"
external_ref Optional
string
"string"
user_limit Optional
integer | null
1
reseller_id Optional
PublicId | null
"reseller_id_aaaaaaaaaaaaaaaaaaaa"
status Optional
string
"active"
metadata Optional
object
{}
customer_id Optional
PublicId | null

POST only. Starts user management for this existing customer, given by its customer ID (cus_…) or by the organization ID it was merged from (org_…), instead of matching external_ref or creating a customer. The customer's name, email and external_ref are kept. Ignored by PATCH.

"customer_id_aaaaaaaaaaaaaaaaaaaa"
OrganizationGroupInput 4 fields

Schema

object

Example Value

{
  "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
  "name": "Example name",
  "status": "active",
  "metadata": {}
}
FieldRequiredType and descriptionExample Value
organization_id Optional

The customer, by its customer ID (cus_…) or by the organization ID it was merged from (org_…). Its user management must be active.

"organization_id_aaaaaaaaaaaaaaaaaaaa"
name Optional
string
"Example name"
status Optional
string
"active"
metadata Optional
object
{}
OrganizationGroupMembershipInput 1 fields

Schema

object

Example Value

{
  "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa"
}
FieldRequiredType and descriptionExample Value
license_user_id Optional "license_user_id_aaaaaaaaaaaaaaaaaaaa"
LicenseUserInput 9 fields

License users are shared by the live and test environments. A test API key cannot change a license user who holds a seat on a live license, including suspending or deprovisioning it (403 ENVIRONMENT_MISMATCH). POST with an issuer and subject that already exist updates that user, so the same refusal applies to it.

Schema

object

Example Value

{
  "issuer": "string",
  "subject": "string",
  "email": "developer@example.com",
  "name": "Example name",
  "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
  "oidc_connection_id": "oidc_connection_id_aaaaaaaaaaaaaaaaaaaa",
  "saml_connection_id": "saml_connection_id_aaaaaaaaaaaaaaaaaaaa",
  "status": "active",
  "metadata": {}
}
FieldRequiredType and descriptionExample Value
issuer Optional
string
"string"
subject Optional
string
"string"
email Optional
string
"developer@example.com"
name Optional
string
"Example name"
organization_id Optional
PublicId | null

The customer, by its customer ID (cus_…) or by the organization ID it was merged from (org_…). Its user management must be active.

"organization_id_aaaaaaaaaaaaaaaaaaaa"
oidc_connection_id Optional
PublicId | null

Set this to associate the user with an OIDC connection. Team or higher with the `oidc_sso` entitlement is required. On Personal, omit it or use `null`; otherwise the API returns HTTP 403 (`PLAN_ENTITLEMENT_REQUIRED`).

"oidc_connection_id_aaaaaaaaaaaaaaaaaaaa"
saml_connection_id Optional
PublicId | null

Links the user to a SAML connection (sml_…) so that they sign in to the customer portal with it. When issuer is omitted, the connection's identity provider entity ID is used, and the user joins the connection's customer. Requires the Team plan or higher with the oidc_sso entitlement (403 PLAN_ENTITLEMENT_REQUIRED). A user cannot have both oidc_connection_id and saml_connection_id.

"saml_connection_id_aaaaaaaaaaaaaaaaaaaa"
status Optional
string
"active"
metadata Optional
object
{}
OidcConnectionCreateInput 14 fields

Schema

object

Example Value

{
  "name": "Example name",
  "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
  "issuer": "string",
  "client_id": "01K5QWERTY1234567890ABCDEFG",
  "client_secret": "example-token",
  "authorization_endpoint": "https://example.com/resource",
  "token_endpoint": "https://example.com/resource",
  "jwks_uri": "https://example.com/resource",
  "pkce_required": true,
  "jit_provisioning": true,
  "status": "active",
  "scopes": [
    "string"
  ],
  "allowed_audiences": [
    "string"
  ],
  "metadata": {}
}
FieldRequiredType and descriptionExample Value
name Optional
string
"Example name"
organization_id Optional
PublicId | null

The customer whose users sign in through this connection, by its customer ID (cus_…) or by the organization ID it was merged from (org_…). Its user management must be active. null makes the connection shared by all customers.

"organization_id_aaaaaaaaaaaaaaaaaaaa"
issuer Optional
string
"string"
client_id Optional
string
"01K5QWERTY1234567890ABCDEFG"
client_secret Required
string
"example-token"
authorization_endpoint Optional
string
"https://example.com/resource"
token_endpoint Optional
string
"https://example.com/resource"
jwks_uri Optional
string
"https://example.com/resource"
pkce_required Optional
boolean
true
jit_provisioning Optional
boolean
true
status Optional
string
"active"
scopes Optional
array<string>
[ "string" ]
allowed_audiences Optional
array<string>
[ "string" ]
metadata Optional
object
{}
OidcConnectionUpdateInput 14 fields

Schema

object

Example Value

{
  "client_secret": "example-token",
  "name": "Example name",
  "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
  "issuer": "string",
  "client_id": "01K5QWERTY1234567890ABCDEFG",
  "authorization_endpoint": "https://example.com/resource",
  "token_endpoint": "https://example.com/resource",
  "jwks_uri": "https://example.com/resource",
  "pkce_required": true,
  "jit_provisioning": true,
  "status": "active",
  "scopes": [
    "string"
  ],
  "allowed_audiences": [
    "string"
  ],
  "metadata": {}
}
FieldRequiredType and descriptionExample Value
client_secret Optional
string

Send this only when you change the settings used to verify portal users. The value is saved with the change and never returned.

"example-token"
name Optional
string
"Example name"
organization_id Optional
PublicId | null

The customer whose users sign in through this connection, by its customer ID (cus_…) or by the organization ID it was merged from (org_…). Its user management must be active. null makes the connection shared by all customers.

"organization_id_aaaaaaaaaaaaaaaaaaaa"
issuer Optional
string
"string"
client_id Optional
string
"01K5QWERTY1234567890ABCDEFG"
authorization_endpoint Optional
string
"https://example.com/resource"
token_endpoint Optional
string
"https://example.com/resource"
jwks_uri Optional
string
"https://example.com/resource"
pkce_required Optional
boolean
true
jit_provisioning Optional
boolean
true
status Optional
string
"active"
scopes Optional
array<string>
[ "string" ]
allowed_audiences Optional
array<string>
[ "string" ]
metadata Optional
object
{}
OidcClientSecretRotationInput 1 fields

Schema

object

Example Value

{
  "client_secret": "example-token"
}
FieldRequiredType and descriptionExample Value
client_secret Required
string
"example-token"
SamlConnection 17 fields

A customer's SAML 2.0 connection for signing in to the customer portal. Usakey is the service provider; the customer's identity provider signs the assertions.

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "name": "Example name",
  "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
  "status": "active",
  "configured": true,
  "idp_entity_id": "01K5QWERTY1234567890ABCDEFG",
  "idp_sso_url": "https://example.com/resource",
  "idp_metadata_url": "https://example.com/resource",
  "idp_metadata_fetched_at": "2026-09-21T00:00:00Z",
  "idp_certificates": [
    "string"
  ],
  "idp_certificate_details": [
    {
      "sha256_fingerprint": "string",
      "subject_common_name": "Example name",
      "not_before": "2026-09-21T00:00:00Z",
      "not_after": "2026-09-21T00:00:00Z",
      "expired": true
    }
  ],
  "name_id_format": "Example name",
  "jit_provisioning": true,
  "metadata": {
    "trust_upstream_mfa": true,
    "require_phishing_resistant_mfa": true,
    "mfa_authn_contexts": [
      "string"
    ],
    "requested_authn_contexts": [
      "string"
    ]
  },
  "service_provider": {
    "entity_id": "https://example.com/resource",
    "acs_url": "https://example.com/resource",
    "metadata_url": "https://example.com/resource"
  },
  "created_at": "2026-09-21T00:00:00Z",
  "updated_at": "2026-09-21T00:00:00Z"
}
FieldRequiredType and descriptionExample Value
public_id Optional "public_id_aaaaaaaaaaaaaaaaaaaa"
name Optional
string
"Example name"
customer_id Optional
PublicId | null

The customer whose users sign in with this connection (cus_…). It never changes.

"customer_id_aaaaaaaaaaaaaaaaaaaa"
status Optional
string

active or disabled.

"active"
configured Optional
boolean

Whether the identity provider's entity ID, SSO URL and at least one signing certificate are set. Users can sign in only when it is true and the connection is active.

true
idp_entity_id Optional
string | null

The identity provider's entity ID. Responses must name exactly this issuer, and it becomes the issuer of the connection's license users (without a trailing slash).

"01K5QWERTY1234567890ABCDEFG"
idp_sso_url Optional
string | null uri

The identity provider's HTTPS single sign-on URL for the HTTP-Redirect binding.

"https://example.com/resource"
idp_metadata_url Optional
string | null uri
"https://example.com/resource"
idp_metadata_fetched_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
idp_certificates Optional
array<string>

The identity provider's signing certificates (PEM), at most three so that an old and a new one can be registered while rotating. Signatures are verified only with these, never with a certificate embedded in the response.

[ "string" ]
idp_certificate_details Optional
array<SamlCertificateDetail>

The SHA-256 fingerprint, common name and validity of each signing certificate, in the order of idp_certificates. Responses signed with an expired certificate are refused.

[ { "sha256_fingerprint": "string", "subject_common_name": "Example name", "not_before": "2026-09-21T00:00:00Z", "not_after": "2026-09-21T00:00:00Z", "expired": true } ]
name_id_format Optional
string | null

The NameID format requested from the identity provider (email_address, persistent or unspecified), or null to leave it to the identity provider.

"Example name"
jit_provisioning Optional
boolean

Whether a person the identity provider authenticates is registered as a license user of the customer on first sign-in. No license is assigned automatically.

true
metadata Optional { "trust_upstream_mfa": true, "require_phishing_resistant_mfa": true, "mfa_authn_contexts": [ "string" ], "requested_authn_contexts": [ "string" ] }
service_provider Optional { "entity_id": "https://example.com/resource", "acs_url": "https://example.com/resource", "metadata_url": "https://example.com/resource" }
created_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
updated_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
SamlCertificateDetail 5 fields

Schema

object

Example Value

{
  "sha256_fingerprint": "string",
  "subject_common_name": "Example name",
  "not_before": "2026-09-21T00:00:00Z",
  "not_after": "2026-09-21T00:00:00Z",
  "expired": true
}
FieldRequiredType and descriptionExample Value
sha256_fingerprint Optional
string

Upper-case hexadecimal bytes separated by colons, as identity providers show the thumbprint.

"string"
subject_common_name Optional
string | null
"Example name"
not_before Optional
string date-time
"2026-09-21T00:00:00Z"
not_after Optional
string date-time
"2026-09-21T00:00:00Z"
expired Optional
boolean
true
SamlServiceProvider 3 fields

The values to enter in the identity provider. They are different for every connection, so an assertion issued for one connection is never accepted by another.

Schema

object

Example Value

{
  "entity_id": "https://example.com/resource",
  "acs_url": "https://example.com/resource",
  "metadata_url": "https://example.com/resource"
}
FieldRequiredType and descriptionExample Value
entity_id Optional
string uri

The service provider entity ID (identifier, Audience URI).

"https://example.com/resource"
acs_url Optional
string uri

The assertion consumer service URL (reply URL) that receives HTTP-POST responses.

"https://example.com/resource"
metadata_url Optional
string uri

The service provider metadata. It contains no secret.

"https://example.com/resource"
SamlConnectionMetadata 4 fields

How the identity provider's multi-factor authentication counts. trust_upstream_mfa makes a user without Usakey two-factor authentication rely on the identity provider's multi-factor authentication from then on. require_phishing_resistant_mfa changes the guidance shown when multi-factor authentication is missing. The identity provider's multi-factor authentication counts only when an AuthnContextClassRef or a Microsoft Entra ID authnmethodsreferences value equals one of mfa_authn_contexts. requested_authn_contexts goes into the RequestedAuthnContext of the authentication request. Each list holds at most 10 URIs or URNs without spaces. Other keys are refused.

Schema

object

Example Value

{
  "trust_upstream_mfa": true,
  "require_phishing_resistant_mfa": true,
  "mfa_authn_contexts": [
    "string"
  ],
  "requested_authn_contexts": [
    "string"
  ]
}
FieldRequiredType and descriptionExample Value
trust_upstream_mfa Optional
boolean
true
require_phishing_resistant_mfa Optional
boolean
true
mfa_authn_contexts Optional
array<string> Maximum items: 10
[ "string" ]
requested_authn_contexts Optional
array<string> Maximum items: 10
[ "string" ]
SamlConnectionResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "configured": true,
    "idp_entity_id": "01K5QWERTY1234567890ABCDEFG",
    "idp_sso_url": "https://example.com/resource",
    "idp_metadata_url": "https://example.com/resource",
    "idp_metadata_fetched_at": "2026-09-21T00:00:00Z",
    "idp_certificates": [
      "string"
    ],
    "idp_certificate_details": [
      {
        "sha256_fingerprint": "string",
        "subject_common_name": "Example name",
        "not_before": "2026-09-21T00:00:00Z",
        "not_after": "2026-09-21T00:00:00Z",
        "expired": true
      }
    ],
    "name_id_format": "Example name",
    "jit_provisioning": true,
    "metadata": {
      "trust_upstream_mfa": true,
      "require_phishing_resistant_mfa": true,
      "mfa_authn_contexts": [
        "string"
      ],
      "requested_authn_contexts": [
        "string"
      ]
    },
    "service_provider": {
      "entity_id": "https://example.com/resource",
      "acs_url": "https://example.com/resource",
      "metadata_url": "https://example.com/resource"
    },
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
FieldRequiredType and descriptionExample Value
data Required { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa", "status": "active", "configured": true, "idp_entity_id": "01K5QWERTY1234567890ABCDEFG", "idp_sso_url": "https://example.com/resource", "idp_metadata_url": "https://example.com/resource", "idp_metadata_fetched_at": "2026-09-21T00:00:00Z", "idp_certificates": [ "string" ], "idp_certificate_details": [ { "sha256_fingerprint": "string", "subject_common_name": "Example name", "not_before": "2026-09-21T00:00:00Z", "not_after": "2026-09-21T00:00:00Z", "expired": true } ], "name_id_format": "Example name", "jit_provisioning": true, "metadata": { "trust_upstream_mfa": true, "require_phishing_resistant_mfa": true, "mfa_authn_contexts": [ "string" ], "requested_authn_contexts": [ "string" ] }, "service_provider": { "entity_id": "https://example.com/resource", "acs_url": "https://example.com/resource", "metadata_url": "https://example.com/resource" }, "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" }
SamlConnectionListResponse 2 fields

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
      "status": "active",
      "configured": true,
      "idp_entity_id": "01K5QWERTY1234567890ABCDEFG",
      "idp_sso_url": "https://example.com/resource",
      "idp_metadata_url": "https://example.com/resource",
      "idp_metadata_fetched_at": "2026-09-21T00:00:00Z",
      "idp_certificates": [
        "string"
      ],
      "idp_certificate_details": [
        {
          "sha256_fingerprint": "string",
          "subject_common_name": "Example name",
          "not_before": "2026-09-21T00:00:00Z",
          "not_after": "2026-09-21T00:00:00Z",
          "expired": true
        }
      ],
      "name_id_format": "Example name",
      "jit_provisioning": true,
      "metadata": {
        "trust_upstream_mfa": true,
        "require_phishing_resistant_mfa": true,
        "mfa_authn_contexts": [
          "string"
        ],
        "requested_authn_contexts": [
          "string"
        ]
      },
      "service_provider": {
        "entity_id": "https://example.com/resource",
        "acs_url": "https://example.com/resource",
        "metadata_url": "https://example.com/resource"
      },
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
FieldRequiredType and descriptionExample Value
data Required
array<SamlConnection>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa", "status": "active", "configured": true, "idp_entity_id": "01K5QWERTY1234567890ABCDEFG", "idp_sso_url": "https://example.com/resource", "idp_metadata_url": "https://example.com/resource", "idp_metadata_fetched_at": "2026-09-21T00:00:00Z", "idp_certificates": [ "string" ], "idp_certificate_details": [ { "sha256_fingerprint": "string", "subject_common_name": "Example name", "not_before": "2026-09-21T00:00:00Z", "not_after": "2026-09-21T00:00:00Z", "expired": true } ], "name_id_format": "Example name", "jit_provisioning": true, "metadata": { "trust_upstream_mfa": true, "require_phishing_resistant_mfa": true, "mfa_authn_contexts": [ "string" ], "requested_authn_contexts": [ "string" ] }, "service_provider": { "entity_id": "https://example.com/resource", "acs_url": "https://example.com/resource", "metadata_url": "https://example.com/resource" }, "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" } ]
pagination Required { "next_cursor": "string", "has_more": true }
SamlConnectionCreateInput 9 fields

Schema

object

Example Value

{
  "name": "Example name",
  "customer_id": "01K5QWERTY1234567890ABCDEFG",
  "idp_entity_id": "01K5QWERTY1234567890ABCDEFG",
  "idp_sso_url": "https://example.com/resource",
  "idp_metadata_url": "https://example.com/resource",
  "idp_certificates": [
    "string"
  ],
  "name_id_format": "email_address",
  "jit_provisioning": true,
  "metadata": {
    "trust_upstream_mfa": true,
    "require_phishing_resistant_mfa": true,
    "mfa_authn_contexts": [
      "string"
    ],
    "requested_authn_contexts": [
      "string"
    ]
  }
}
FieldRequiredType and descriptionExample Value
name Required
string Maximum length: 160
"Example name"
customer_id Required
string

The customer whose users sign in with this connection, by its customer ID (cus_…) or by the organization ID it was merged from (org_…). Its user management must be active.

"01K5QWERTY1234567890ABCDEFG"
idp_entity_id Optional
string Maximum length: 512
"01K5QWERTY1234567890ABCDEFG"
idp_sso_url Optional
string
"https://example.com/resource"
idp_metadata_url Optional
string
"https://example.com/resource"
idp_certificates Optional
array<string> Maximum items: 3

Signing certificates as PEM, or as Base64 DER without the BEGIN and END lines. At most three RSA certificates.

[ "string" ]
name_id_format Optional
string | null
"email_address"
jit_provisioning Optional
boolean
true
metadata Optional { "trust_upstream_mfa": true, "require_phishing_resistant_mfa": true, "mfa_authn_contexts": [ "string" ], "requested_authn_contexts": [ "string" ] }
SamlConnectionUpdateInput 9 fields

Schema

object

Example Value

{
  "name": "Example name",
  "status": "active",
  "idp_entity_id": "01K5QWERTY1234567890ABCDEFG",
  "idp_sso_url": "https://example.com/resource",
  "idp_metadata_url": "https://example.com/resource",
  "idp_certificates": [
    "string"
  ],
  "name_id_format": "email_address",
  "jit_provisioning": true,
  "metadata": {
    "trust_upstream_mfa": true,
    "require_phishing_resistant_mfa": true,
    "mfa_authn_contexts": [
      "string"
    ],
    "requested_authn_contexts": [
      "string"
    ]
  }
}
FieldRequiredType and descriptionExample Value
name Optional
string Maximum length: 160
"Example name"
status Optional
string

Allowed values: active, disabled

"active"
idp_entity_id Optional
string Maximum length: 512
"01K5QWERTY1234567890ABCDEFG"
idp_sso_url Optional
string
"https://example.com/resource"
idp_metadata_url Optional
string
"https://example.com/resource"
idp_certificates Optional
array<string> Maximum items: 3

Replaces all signing certificates (PEM, or Base64 DER without the BEGIN and END lines). Send the old and the new certificate together while rotating. An empty array removes them, which stops sign-in.

[ "string" ]
name_id_format Optional
string | null
"email_address"
jit_provisioning Optional
boolean
true
metadata Optional { "trust_upstream_mfa": true, "require_phishing_resistant_mfa": true, "mfa_authn_contexts": [ "string" ], "requested_authn_contexts": [ "string" ] }
SamlMetadataImportInput 2 fields

Send exactly one of metadata_url and metadata_xml.

Schema

object

Example Value

{
  "metadata_url": "https://example.com/resource",
  "metadata_xml": "string"
}
FieldRequiredType and descriptionExample Value
metadata_url Optional
string Maximum length: 2048

The identity provider's metadata URL ("App Federation Metadata Url" in Microsoft Entra ID, "Metadata URL" in Okta). HTTPS on port 443 only.

"https://example.com/resource"
metadata_xml Optional
string

The metadata XML downloaded from the identity provider, up to 256 KB, without a DOCTYPE.

"string"
ScimConnection 11 fields

A customer's SCIM 2.0 setup. The customer's identity provider calls base_url with one of the setup's tokens and reaches only this customer's users that carry user_issuer and the groups created through SCIM.

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "name": "Example name",
  "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
  "saml_connection_id": "saml_connection_id_aaaaaaaaaaaaaaaaaaaa",
  "status": "active",
  "user_issuer": "string",
  "base_url": "https://example.com/resource",
  "last_request_at": "2026-09-21T00:00:00Z",
  "tokens": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "token_prefix": "example-token",
      "status": "active",
      "usable": true,
      "expires_at": "2026-09-21T00:00:00Z",
      "revoked_at": "2026-09-21T00:00:00Z",
      "last_used_at": "2026-09-21T00:00:00Z",
      "created_at": "2026-09-21T00:00:00Z"
    }
  ],
  "created_at": "2026-09-21T00:00:00Z",
  "updated_at": "2026-09-21T00:00:00Z"
}
FieldRequiredType and descriptionExample Value
public_id Optional "public_id_aaaaaaaaaaaaaaaaaaaa"
name Optional
string
"Example name"
customer_id Optional
PublicId | null
"customer_id_aaaaaaaaaaaaaaaaaaaa"
saml_connection_id Optional
PublicId | null

The SAML connection synced users sign in with, or null when synced users are local-ID users. It never changes.

"saml_connection_id_aaaaaaaaaaaaaaaaaaaa"
status Optional
string

active or disabled.

"active"
user_issuer Optional
string

The issuer of the license users this setup creates and manages. With a SAML connection it is the identity provider's entity ID; otherwise a value only this setup uses.

"string"
base_url Optional
string uri

The SCIM base URL to enter in the identity provider ("Tenant URL" in Microsoft Entra ID, "SCIM connector base URL" in Okta).

"https://example.com/resource"
last_request_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
tokens Optional
array<ScimToken>

The setup's tokens, newest first, without their values.

[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "token_prefix": "example-token", "status": "active", "usable": true, "expires_at": "2026-09-21T00:00:00Z", "revoked_at": "2026-09-21T00:00:00Z", "last_used_at": "2026-09-21T00:00:00Z", "created_at": "2026-09-21T00:00:00Z" } ]
created_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
updated_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
ScimToken 8 fields

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "token_prefix": "example-token",
  "status": "active",
  "usable": true,
  "expires_at": "2026-09-21T00:00:00Z",
  "revoked_at": "2026-09-21T00:00:00Z",
  "last_used_at": "2026-09-21T00:00:00Z",
  "created_at": "2026-09-21T00:00:00Z"
}
FieldRequiredType and descriptionExample Value
public_id Optional "public_id_aaaaaaaaaaaaaaaaaaaa"
token_prefix Optional
string

The start of the token (usk_scim_ and eight hexadecimal digits), to tell which token the identity provider holds.

"example-token"
status Optional
string

active or revoked.

"active"
usable Optional
boolean

Whether the token is accepted now (active and not past expires_at).

true
expires_at Optional
string | null date-time

When the token stops working, set 24 hours after a newer token is created; null means no end.

"2026-09-21T00:00:00Z"
revoked_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
last_used_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
created_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
ScimTokenIssued 10 fields

Schema

object

Example Value

{
  "token": "example-token",
  "scim_connection_id": "scim_connection_id_aaaaaaaaaaaaaaaaaaaa",
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "token_prefix": "example-token",
  "status": "active",
  "usable": true,
  "expires_at": "2026-09-21T00:00:00Z",
  "revoked_at": "2026-09-21T00:00:00Z",
  "last_used_at": "2026-09-21T00:00:00Z",
  "created_at": "2026-09-21T00:00:00Z"
}
FieldRequiredType and descriptionExample Value
token Required
string

The SCIM token for Authorization Bearer. Returned only in this response; Usakey keeps only a digest.

"example-token"
scim_connection_id Optional "scim_connection_id_aaaaaaaaaaaaaaaaaaaa"
public_id Optional "public_id_aaaaaaaaaaaaaaaaaaaa"
token_prefix Optional
string
"example-token"
status Optional
string
"active"
usable Optional
boolean
true
expires_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
revoked_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
last_used_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
created_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
ScimTokenIssuedResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "token": "example-token",
    "scim_connection_id": "scim_connection_id_aaaaaaaaaaaaaaaaaaaa",
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "token_prefix": "example-token",
    "status": "active",
    "usable": true,
    "expires_at": "2026-09-21T00:00:00Z",
    "revoked_at": "2026-09-21T00:00:00Z",
    "last_used_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z"
  }
}
FieldRequiredType and descriptionExample Value
data Required { "token": "example-token", "scim_connection_id": "scim_connection_id_aaaaaaaaaaaaaaaaaaaa", "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "token_prefix": "example-token", "status": "active", "usable": true, "expires_at": "2026-09-21T00:00:00Z", "revoked_at": "2026-09-21T00:00:00Z", "last_used_at": "2026-09-21T00:00:00Z", "created_at": "2026-09-21T00:00:00Z" }
ScimConnectionResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
    "saml_connection_id": "saml_connection_id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "user_issuer": "string",
    "base_url": "https://example.com/resource",
    "last_request_at": "2026-09-21T00:00:00Z",
    "tokens": [
      {
        "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
        "token_prefix": "example-token",
        "status": "active",
        "usable": true,
        "expires_at": "2026-09-21T00:00:00Z",
        "revoked_at": "2026-09-21T00:00:00Z",
        "last_used_at": "2026-09-21T00:00:00Z",
        "created_at": "2026-09-21T00:00:00Z"
      }
    ],
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
FieldRequiredType and descriptionExample Value
data Required { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa", "saml_connection_id": "saml_connection_id_aaaaaaaaaaaaaaaaaaaa", "status": "active", "user_issuer": "string", "base_url": "https://example.com/resource", "last_request_at": "2026-09-21T00:00:00Z", "tokens": [ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "token_prefix": "example-token", "status": "active", "usable": true, "expires_at": "2026-09-21T00:00:00Z", "revoked_at": "2026-09-21T00:00:00Z", "last_used_at": "2026-09-21T00:00:00Z", "created_at": "2026-09-21T00:00:00Z" } ], "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" }
ScimConnectionListResponse 2 fields

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
      "saml_connection_id": "saml_connection_id_aaaaaaaaaaaaaaaaaaaa",
      "status": "active",
      "user_issuer": "string",
      "base_url": "https://example.com/resource",
      "last_request_at": "2026-09-21T00:00:00Z",
      "tokens": [
        {
          "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
          "token_prefix": "example-token",
          "status": "active",
          "usable": true,
          "expires_at": "2026-09-21T00:00:00Z",
          "revoked_at": "2026-09-21T00:00:00Z",
          "last_used_at": "2026-09-21T00:00:00Z",
          "created_at": "2026-09-21T00:00:00Z"
        }
      ],
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
FieldRequiredType and descriptionExample Value
data Required
array<ScimConnection>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa", "saml_connection_id": "saml_connection_id_aaaaaaaaaaaaaaaaaaaa", "status": "active", "user_issuer": "string", "base_url": "https://example.com/resource", "last_request_at": "2026-09-21T00:00:00Z", "tokens": [ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "token_prefix": "example-token", "status": "active", "usable": true, "expires_at": "2026-09-21T00:00:00Z", "revoked_at": "2026-09-21T00:00:00Z", "last_used_at": "2026-09-21T00:00:00Z", "created_at": "2026-09-21T00:00:00Z" } ], "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" } ]
pagination Required { "next_cursor": "string", "has_more": true }
ScimConnectionCreateInput 3 fields

Schema

object

Example Value

{
  "customer_id": "01K5QWERTY1234567890ABCDEFG",
  "saml_connection_id": "01K5QWERTY1234567890ABCDEFG",
  "name": "Example name"
}
FieldRequiredType and descriptionExample Value
customer_id Required
string

The customer to sync, by its customer ID (cus_…) or by the organization ID it was merged from (org_…). Its user management must be active.

"01K5QWERTY1234567890ABCDEFG"
saml_connection_id Optional
string | null

A configured SAML connection of the same customer that synced users sign in with. Omit it for local-ID users.

"01K5QWERTY1234567890ABCDEFG"
name Optional
string Maximum length: 160

A name to tell setups apart in the console. Defaults to the SAML connection's name or the customer's name.

"Example name"
ScimConnectionUpdateInput 2 fields

Schema

object

Example Value

{
  "name": "Example name",
  "status": "active"
}
FieldRequiredType and descriptionExample Value
name Optional
string Maximum length: 160
"Example name"
status Optional
string

Allowed values: active, disabled

"active"
LicenseAssignmentInput 5 fields

Schema

object

Example Value

{
  "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa",
  "source_group_id": "source_group_id_aaaaaaaaaaaaaaaaaaaa",
  "expires_at": "2026-09-21T00:00:00Z",
  "entitlement_overrides": {},
  "metadata": {}
}
FieldRequiredType and descriptionExample Value
license_user_id Optional "license_user_id_aaaaaaaaaaaaaaaaaaaa"
source_group_id Optional
PublicId | null
"source_group_id_aaaaaaaaaaaaaaaaaaaa"
expires_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
entitlement_overrides Optional
object
{}
metadata Optional
object
{}
WebhookInput 3 fields

Schema

object

Example Value

{
  "name": "Example name",
  "url": "https://example.com/resource",
  "events": [
    "string"
  ]
}
FieldRequiredType and descriptionExample Value
name Optional
string
"Example name"
url Optional
string uri
"https://example.com/resource"
events Optional
array<string>
[ "string" ]
WebhookSecretRotationInput 1 fields

Schema

object

Example Value

{
  "activates_at": "2026-09-21T00:00:00Z"
}
FieldRequiredType and descriptionExample Value
activates_at Optional
string date-time
"2026-09-21T00:00:00Z"
TrialConversionInput 3 fields

Schema

object

Example Value

{
  "target_policy_id": "target_policy_id_aaaaaaaaaaaaaaaaaaaa",
  "expires_at": "2026-09-21T00:00:00Z",
  "entitlement_overrides": {}
}
FieldRequiredType and descriptionExample Value
target_policy_id Optional "target_policy_id_aaaaaaaaaaaaaaaaaaaa"
expires_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
entitlement_overrides Optional
object
{}
LicenseOrder 17 fields

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "order_number": "string",
  "status": "unredeemed",
  "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
  "product_id": "prod_0123456789abcdef0123",
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "quantity": 1,
  "redeemed_count": 0,
  "remaining": 0,
  "license_expires_at": "2026-09-21T00:00:00Z",
  "license_duration_days": 1,
  "notes": "string",
  "canceled_at": "2026-09-21T00:00:00Z",
  "cancel_reason": "string",
  "created_at": "2026-09-21T00:00:00Z",
  "updated_at": "2026-09-21T00:00:00Z",
  "version": 0
}
FieldRequiredType and descriptionExample Value
public_id Required "public_id_aaaaaaaaaaaaaaaaaaaa"
order_number Required
string Maximum length: 64

The business number people use to look up the order (the vendor's own, or ORD-YYYYMMDD-XXXX when none was given)

"string"
status Required
string

Allowed values: unredeemed, partially_redeemed, redeemed, canceled

"unredeemed"
customer_id Required "customer_id_aaaaaaaaaaaaaaaaaaaa"
product_id Required "prod_0123456789abcdef0123"
policy_id Required "policy_id_aaaaaaaaaaaaaaaaaaaa"
quantity Required
integer Minimum: 1 Maximum: 10000
1
redeemed_count Required
integer Minimum: 0
0
remaining Required
integer Minimum: 0
0
license_expires_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
license_duration_days Optional
integer | null Minimum: 1 Maximum: 3650
1
notes Optional
string | null
"string"
canceled_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
cancel_reason Optional
string | null
"string"
created_at Optional
string date-time
"2026-09-21T00:00:00Z"
updated_at Optional
string date-time
"2026-09-21T00:00:00Z"
version Required
integer Minimum: 0
0
LicenseOrderCode 11 fields

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "order_id": "order_id_aaaaaaaaaaaaaaaaaaaa",
  "code_hint": "string",
  "status": "active",
  "max_redemptions": 1,
  "redemptions_count": 0,
  "expires_at": "2026-09-21T00:00:00Z",
  "revoked_at": "2026-09-21T00:00:00Z",
  "last_redeemed_at": "2026-09-21T00:00:00Z",
  "sent_at": "2026-09-21T00:00:00Z",
  "created_at": "2026-09-21T00:00:00Z"
}
FieldRequiredType and descriptionExample Value
public_id Required "public_id_aaaaaaaaaaaaaaaaaaaa"
order_id Required "order_id_aaaaaaaaaaaaaaaaaaaa"
code_hint Required
string

The type and the last four characters (for example RDM-…-7FT7)

"string"
status Required
string

Allowed values: active, used, expired, revoked

"active"
max_redemptions Required
integer Minimum: 1
1
redemptions_count Required
integer Minimum: 0
0
expires_at Required
string date-time
"2026-09-21T00:00:00Z"
revoked_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
last_redeemed_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
sent_at Optional
string | null date-time

When the code was last emailed to the customer

"2026-09-21T00:00:00Z"
created_at Optional
string date-time
"2026-09-21T00:00:00Z"
IssuedLicenseOrderCode 12 fields

Schema

LicenseOrderCode + object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "order_id": "order_id_aaaaaaaaaaaaaaaaaaaa",
  "code_hint": "string",
  "status": "active",
  "max_redemptions": 1,
  "redemptions_count": 0,
  "expires_at": "2026-09-21T00:00:00Z"
}
FieldRequiredType and descriptionExample Value
code Optional
string

The full redemption code. Returned only when the code is issued and reveal_codes was not false

"string"
public_id Required "public_id_aaaaaaaaaaaaaaaaaaaa"
order_id Required "order_id_aaaaaaaaaaaaaaaaaaaa"
code_hint Required
string

The type and the last four characters (for example RDM-…-7FT7)

"string"
status Required
string

Allowed values: active, used, expired, revoked

"active"
max_redemptions Required
integer Minimum: 1
1
redemptions_count Required
integer Minimum: 0
0
expires_at Required
string date-time
"2026-09-21T00:00:00Z"
revoked_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
last_redeemed_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
sent_at Optional
string | null date-time

When the code was last emailed to the customer

"2026-09-21T00:00:00Z"
created_at Optional
string date-time
"2026-09-21T00:00:00Z"
LicenseOrderRedemption 8 fields

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "order_id": "order_id_aaaaaaaaaaaaaaaaaaaa",
  "code_id": "code_id_aaaaaaaaaaaaaaaaaaaa",
  "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
  "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa",
  "channel": "redeem_page",
  "email": "developer@example.com",
  "redeemed_at": "2026-09-21T00:00:00Z"
}
FieldRequiredType and descriptionExample Value
public_id Required "public_id_aaaaaaaaaaaaaaaaaaaa"
order_id Required "order_id_aaaaaaaaaaaaaaaaaaaa"
code_id Required "code_id_aaaaaaaaaaaaaaaaaaaa"
license_id Required "license_id_aaaaaaaaaaaaaaaaaaaa"
license_user_id Optional
PublicId | null
"license_user_id_aaaaaaaaaaaaaaaaaaaa"
channel Required
string

Allowed values: redeem_page, runtime

"redeem_page"
email Optional
string | null

The address entered when redeeming (where the license key was sent; the assigned user for a named-user policy)

"developer@example.com"
redeemed_at Required
string date-time
"2026-09-21T00:00:00Z"
LicenseOrderResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "order_number": "string",
    "status": "unredeemed",
    "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
    "product_id": "prod_0123456789abcdef0123",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "quantity": 1,
    "redeemed_count": 0,
    "remaining": 0,
    "version": 0
  }
}
FieldRequiredType and descriptionExample Value
data Required
LicenseOrder
{ "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "order_number": "string", "status": "unredeemed", "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa", "product_id": "prod_0123456789abcdef0123", "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa", "quantity": 1, "redeemed_count": 0, "remaining": 0, "version": 0 }
LicenseOrderListResponse 2 fields

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "order_number": "string",
      "status": "unredeemed",
      "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
      "product_id": "prod_0123456789abcdef0123",
      "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
      "quantity": 1,
      "redeemed_count": 0,
      "remaining": 0,
      "version": 0
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
FieldRequiredType and descriptionExample Value
data Required
array<LicenseOrder>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "order_number": "string", "status": "unredeemed", "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa", "product_id": "prod_0123456789abcdef0123", "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa", "quantity": 1, "redeemed_count": 0, "remaining": 0, "version": 0 } ]
pagination Required { "next_cursor": "string", "has_more": true }
LicenseOrderCreateResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "order_number": "string",
    "status": "unredeemed",
    "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
    "product_id": "prod_0123456789abcdef0123",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "quantity": 1,
    "redeemed_count": 0,
    "remaining": 0,
    "version": 0,
    "codes": [
      {
        "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
        "order_id": "order_id_aaaaaaaaaaaaaaaaaaaa",
        "code_hint": "string",
        "status": "active",
        "max_redemptions": 1,
        "redemptions_count": 0,
        "expires_at": "2026-09-21T00:00:00Z"
      }
    ],
    "codes_emailed": true
  }
}
FieldRequiredType and descriptionExample Value
data Required
LicenseOrder + object
{ "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "order_number": "string", "status": "unredeemed", "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa", "product_id": "prod_0123456789abcdef0123", "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa", "quantity": 1, "redeemed_count": 0, "remaining": 0, "version": 0, "codes": [ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "order_id": "order_id_aaaaaaaaaaaaaaaaaaaa", "code_hint": "string", "status": "active", "max_redemptions": 1, "redemptions_count": 0, "expires_at": "2026-09-21T00:00:00Z" } ], "codes_emailed": true }
LicenseOrderCodeListResponse 2 fields

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "order_id": "order_id_aaaaaaaaaaaaaaaaaaaa",
      "code_hint": "string",
      "status": "active",
      "max_redemptions": 1,
      "redemptions_count": 0,
      "expires_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
FieldRequiredType and descriptionExample Value
data Required
array<LicenseOrderCode>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "order_id": "order_id_aaaaaaaaaaaaaaaaaaaa", "code_hint": "string", "status": "active", "max_redemptions": 1, "redemptions_count": 0, "expires_at": "2026-09-21T00:00:00Z" } ]
pagination Required { "next_cursor": "string", "has_more": true }
LicenseOrderCodesIssueResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "codes": [
      {
        "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
        "order_id": "order_id_aaaaaaaaaaaaaaaaaaaa",
        "code_hint": "string",
        "status": "active",
        "max_redemptions": 1,
        "redemptions_count": 0,
        "expires_at": "2026-09-21T00:00:00Z"
      }
    ],
    "codes_emailed": true
  }
}
FieldRequiredType and descriptionExample Value
data Required
object
{ "codes": [ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "order_id": "order_id_aaaaaaaaaaaaaaaaaaaa", "code_hint": "string", "status": "active", "max_redemptions": 1, "redemptions_count": 0, "expires_at": "2026-09-21T00:00:00Z" } ], "codes_emailed": true }
LicenseOrderRedemptionListResponse 2 fields

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "order_id": "order_id_aaaaaaaaaaaaaaaaaaaa",
      "code_id": "code_id_aaaaaaaaaaaaaaaaaaaa",
      "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
      "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa",
      "channel": "redeem_page",
      "email": "developer@example.com",
      "redeemed_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
FieldRequiredType and descriptionExample Value
data Required
array<LicenseOrderRedemption>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "order_id": "order_id_aaaaaaaaaaaaaaaaaaaa", "code_id": "code_id_aaaaaaaaaaaaaaaaaaaa", "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa", "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa", "channel": "redeem_page", "email": "developer@example.com", "redeemed_at": "2026-09-21T00:00:00Z" } ]
pagination Required { "next_cursor": "string", "has_more": true }
LicenseOrderCreateInput 12 fields

Schema

object

Example Value

{
  "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
  "product_id": "prod_0123456789abcdef0123",
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "quantity": 1,
  "order_number": "string",
  "license_expires_at": "2026-09-21T00:00:00Z",
  "license_duration_days": 1,
  "notes": "string",
  "code_mode": "shared",
  "codes_expires_at": "2026-09-21T00:00:00Z",
  "send_codes": false,
  "reveal_codes": true
}
FieldRequiredType and descriptionExample Value
customer_id Required "customer_id_aaaaaaaaaaaaaaaaaaaa"
product_id Required "prod_0123456789abcdef0123"
policy_id Required "policy_id_aaaaaaaaaaaaaaaaaaaa"
quantity Required
integer Minimum: 1 Maximum: 10000
1
order_number Optional
string Maximum length: 64
"string"
license_expires_at Optional
string date-time

A fixed expiry for every license of the order. Not together with license_duration_days

"2026-09-21T00:00:00Z"
license_duration_days Optional
integer Minimum: 1 Maximum: 3650

Licenses expire this many days after each redemption. Not together with license_expires_at

1
notes Optional
string Maximum length: 2000
"string"
code_mode Optional
string

Allowed values: shared, per_unit

"shared"
codes_expires_at Optional
string date-time

Expiry of the redemption codes. Defaults to 90 days; at most 3 years

"2026-09-21T00:00:00Z"
send_codes Optional
boolean

Email the codes to the customer's contact address

false
reveal_codes Optional
boolean

Include the full codes in the response. false requires send_codes true

true
LicenseOrderUpdateInput 3 fields

Schema

object

Example Value

{
  "order_number": "string",
  "notes": "string",
  "quantity": 1
}
FieldRequiredType and descriptionExample Value
order_number Optional
string Maximum length: 64
"string"
notes Optional
string | null Maximum length: 2000
"string"
quantity Optional
integer Minimum: 1 Maximum: 10000
1
LicenseOrderCancelInput 1 fields

Schema

object

Example Value

{
  "reason": "string"
}
FieldRequiredType and descriptionExample Value
reason Optional
string Maximum length: 500

Why the order is canceled. Kept in the audit log

"string"
LicenseOrderCodesIssueInput 5 fields

Schema

object

Example Value

{
  "count": 1,
  "max_redemptions": 1,
  "expires_at": "2026-09-21T00:00:00Z",
  "send_codes": false,
  "reveal_codes": true
}
FieldRequiredType and descriptionExample Value
count Optional
integer Minimum: 1 Maximum: 500
1
max_redemptions Optional
integer Minimum: 1 Maximum: 10000

Uses per code. Defaults to the rest of the order's quantity

1
expires_at Optional
string date-time

Defaults to 90 days; at most 3 years

"2026-09-21T00:00:00Z"
send_codes Optional
boolean
false
reveal_codes Optional
boolean
true
LicenseIssueResponse 1 fields

Schema

object

Example Value

{
  "data": {}
}
FieldRequiredType and descriptionExample Value
data Required
License + object
{}
WebhookSecretResponse 1 fields

Schema

object

Example Value

{
  "data": {}
}
FieldRequiredType and descriptionExample Value
data Required
Webhook + object
{}
ReportExportKind 0 fields

Schema

string

Allowed values: usage_daily, activations, licenses, customers, license_users, license_assignments, audit_events

Example Value

"usage_daily"
ReportExportColumn 3 fields

Schema

object

Example Value

{
  "name": "Example name",
  "type": "string",
  "description": "Example description"
}
FieldRequiredType and descriptionExample Value
name Required
string
"Example name"
type Required
string

Allowed values: string, integer, boolean, timestamp, date

"string"
description Required
string
"Example description"
ReportExport 21 fields

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "kind": "usage_daily",
  "format": "csv",
  "environment": "live",
  "status": "pending",
  "source": "console",
  "requested_by": "user",
  "period_from": "2026-09-21T00:00:00Z",
  "period_to": "2026-09-21T00:00:00Z",
  "row_count": 0,
  "byte_size": 0,
  "content_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "filename": "Example name",
  "failure_code": "string",
  "created_at": "2026-09-21T00:00:00Z",
  "started_at": "2026-09-21T00:00:00Z",
  "completed_at": "2026-09-21T00:00:00Z",
  "expires_at": "2026-09-21T00:00:00Z",
  "schedule_id": "schedule_id_aaaaaaaaaaaaaaaaaaaa",
  "delivery": {
    "status": "pending",
    "error_code": "string",
    "delivered_at": "2026-09-21T00:00:00Z",
    "object_key": "string"
  },
  "columns": [
    {
      "name": "Example name",
      "type": "string",
      "description": "Example description"
    }
  ]
}
FieldRequiredType and descriptionExample Value
public_id Required "public_id_aaaaaaaaaaaaaaaaaaaa"
kind Required "usage_daily"
format Required
string

Allowed values: csv, parquet

"csv"
environment Required
string | null

Allowed values: live, test, null

Product environment for usage_daily, activations, licenses and license_assignments; null for the shared kinds.

"live"
status Required
string

Allowed values: pending, running, ready, failed, expired

"pending"
source Required
string

Allowed values: console, api

"console"
requested_by Required
string

Allowed values: user, api_key

"user"
period_from Optional
string | null date-time
"2026-09-21T00:00:00Z"
period_to Optional
string | null date-time
"2026-09-21T00:00:00Z"
row_count Optional
integer | null Minimum: 0
0
byte_size Optional
integer | null Minimum: 0
0
content_sha256 Optional
string | null Pattern: ^[0-9a-f]{64}$
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
filename Optional
string | null
"Example name"
failure_code Optional
string | null
"string"
created_at Required
string date-time
"2026-09-21T00:00:00Z"
started_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
completed_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
expires_at Optional
string | null date-time

The file can be downloaded until this time.

"2026-09-21T00:00:00Z"
schedule_id Optional
PublicId | null

Always null. Scheduled exports to S3 are no longer offered; the field stays so that existing clients keep working.

"schedule_id_aaaaaaaaaaaaaaaaaaaa"
delivery Optional
object | null

Always null. Scheduled exports to S3 are no longer offered; the field stays so that existing clients keep working.

{ "status": "pending", "error_code": "string", "delivered_at": "2026-09-21T00:00:00Z", "object_key": "string" }
columns Optional
array<ReportExportColumn>
[ { "name": "Example name", "type": "string", "description": "Example description" } ]
ReportExportResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "kind": "usage_daily",
    "format": "csv",
    "environment": "live",
    "status": "pending",
    "source": "console",
    "requested_by": "user",
    "period_from": "2026-09-21T00:00:00Z",
    "period_to": "2026-09-21T00:00:00Z",
    "row_count": 0,
    "byte_size": 0,
    "content_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "filename": "Example name",
    "failure_code": "string",
    "created_at": "2026-09-21T00:00:00Z",
    "started_at": "2026-09-21T00:00:00Z",
    "completed_at": "2026-09-21T00:00:00Z",
    "expires_at": "2026-09-21T00:00:00Z",
    "schedule_id": "schedule_id_aaaaaaaaaaaaaaaaaaaa",
    "delivery": {
      "status": "pending",
      "error_code": "string",
      "delivered_at": "2026-09-21T00:00:00Z",
      "object_key": "string"
    },
    "columns": [
      {
        "name": "Example name",
        "type": "string",
        "description": "Example description"
      }
    ]
  }
}
FieldRequiredType and descriptionExample Value
data Required { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "kind": "usage_daily", "format": "csv", "environment": "live", "status": "pending", "source": "console", "requested_by": "user", "period_from": "2026-09-21T00:00:00Z", "period_to": "2026-09-21T00:00:00Z", "row_count": 0, "byte_size": 0, "content_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "filename": "Example name", "failure_code": "string", "created_at": "2026-09-21T00:00:00Z", "started_at": "2026-09-21T00:00:00Z", "completed_at": "2026-09-21T00:00:00Z", "expires_at": "2026-09-21T00:00:00Z", "schedule_id": "schedule_id_aaaaaaaaaaaaaaaaaaaa", "delivery": { "status": "pending", "error_code": "string", "delivered_at": "2026-09-21T00:00:00Z", "object_key": "string" }, "columns": [ { "name": "Example name", "type": "string", "description": "Example description" } ] }
ReportExportListResponse 2 fields

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "kind": "usage_daily",
      "format": "csv",
      "environment": "live",
      "status": "pending",
      "source": "console",
      "requested_by": "user",
      "period_from": "2026-09-21T00:00:00Z",
      "period_to": "2026-09-21T00:00:00Z",
      "row_count": 0,
      "byte_size": 0,
      "content_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "filename": "Example name",
      "failure_code": "string",
      "created_at": "2026-09-21T00:00:00Z",
      "started_at": "2026-09-21T00:00:00Z",
      "completed_at": "2026-09-21T00:00:00Z",
      "expires_at": "2026-09-21T00:00:00Z",
      "schedule_id": "schedule_id_aaaaaaaaaaaaaaaaaaaa",
      "delivery": {
        "status": "pending",
        "error_code": "string",
        "delivered_at": "2026-09-21T00:00:00Z",
        "object_key": "string"
      },
      "columns": [
        {
          "name": "Example name",
          "type": "string",
          "description": "Example description"
        }
      ]
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
FieldRequiredType and descriptionExample Value
data Required
array<ReportExport>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "kind": "usage_daily", "format": "csv", "environment": "live", "status": "pending", "source": "console", "requested_by": "user", "period_from": "2026-09-21T00:00:00Z", "period_to": "2026-09-21T00:00:00Z", "row_count": 0, "byte_size": 0, "content_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "filename": "Example name", "failure_code": "string", "created_at": "2026-09-21T00:00:00Z", "started_at": "2026-09-21T00:00:00Z", "completed_at": "2026-09-21T00:00:00Z", "expires_at": "2026-09-21T00:00:00Z", "schedule_id": "schedule_id_aaaaaaaaaaaaaaaaaaaa", "delivery": { "status": "pending", "error_code": "string", "delivered_at": "2026-09-21T00:00:00Z", "object_key": "string" }, "columns": [ { "name": "Example name", "type": "string", "description": "Example description" } ] } ]
pagination Required { "next_cursor": "string", "has_more": true }
ReportExportInput 5 fields

Schema

object

Example Value

{
  "kind": "usage_daily",
  "format": "csv",
  "environment": "live",
  "period_from": "string",
  "period_to": "string"
}
FieldRequiredType and descriptionExample Value
kind Required "usage_daily"
format Optional
string

Allowed values: csv, parquet

"csv"
environment Optional
string

Allowed values: live, test

Optional. Must be the API key's environment when given; ignored for the shared kinds.

"live"
period_from Optional
string Maximum length: 64

A date (YYYY-MM-DD, the start of that UTC day) or an ISO 8601 date-time.

"string"
period_to Optional
string Maximum length: 64

A date (YYYY-MM-DD, the end of that UTC day) or an ISO 8601 date-time.

"string"
ReportExportDownload 5 fields

Schema

object

Example Value

{
  "url": "https://example.com/resource",
  "expires_at": "2026-09-21T00:00:00Z",
  "filename": "Example name",
  "content_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "byte_size": 0
}
FieldRequiredType and descriptionExample Value
url Required
string uri

Short-lived URL that returns the file. Do not send the Authorization header to it.

"https://example.com/resource"
expires_at Required
string date-time
"2026-09-21T00:00:00Z"
filename Required
string
"Example name"
content_sha256 Required
string Pattern: ^[0-9a-f]{64}$

SHA-256 of the file, to check the download.

"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
byte_size Required
integer Minimum: 0
0
ReportExportDownloadResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "url": "https://example.com/resource",
    "expires_at": "2026-09-21T00:00:00Z",
    "filename": "Example name",
    "content_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "byte_size": 0
  }
}
FieldRequiredType and descriptionExample Value
data Required { "url": "https://example.com/resource", "expires_at": "2026-09-21T00:00:00Z", "filename": "Example name", "content_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "byte_size": 0 }
BulkImportKind 0 fields

Schema

string

Allowed values: customers, license_users, licenses, license_assignments

Example Value

"customers"
BulkImport 19 fields

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "kind": "customers",
  "environment": "live",
  "status": "validating",
  "source": "console",
  "requested_by": "user",
  "filename": "Example name",
  "encoding": "utf-8",
  "byte_size": 0,
  "columns": [
    "string"
  ],
  "rows": {
    "total": 0,
    "valid": 0,
    "invalid": 0,
    "applied": 0,
    "unchanged": 0,
    "failed": 0
  },
  "preview": {
    "create": 0,
    "update": 0,
    "none": 0
  },
  "failure_code": "string",
  "created_at": "2026-09-21T00:00:00Z",
  "validated_at": "2026-09-21T00:00:00Z",
  "apply_requested_at": "2026-09-21T00:00:00Z",
  "completed_at": "2026-09-21T00:00:00Z",
  "rows_expire_at": "2026-09-21T00:00:00Z",
  "rows_purged": true
}
FieldRequiredType and descriptionExample Value
public_id Required "public_id_aaaaaaaaaaaaaaaaaaaa"
kind Required "customers"
environment Required
string | null

Allowed values: live, test, null

Product environment for licenses and license_assignments; null for customers and license_users.

"live"
status Required
string

Allowed values: validating, validated, applying, completed, failed, cancelled

"validating"
source Required
string

Allowed values: console, api

"console"
requested_by Required
string

Allowed values: user, api_key

"user"
filename Optional
string | null
"Example name"
encoding Required
string

Allowed values: utf-8, shift_jis

"utf-8"
byte_size Required
integer Minimum: 0
0
columns Required
array<string>

The header of the uploaded file.

[ "string" ]
rows Required
object
{ "total": 0, "valid": 0, "invalid": 0, "applied": 0, "unchanged": 0, "failed": 0 }
preview Required
object

Rows that can still be imported, by what importing them will do.

{ "create": 0, "update": 0, "none": 0 }
failure_code Optional
string | null
"string"
created_at Required
string date-time
"2026-09-21T00:00:00Z"
validated_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
apply_requested_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
completed_at Optional
string | null date-time
"2026-09-21T00:00:00Z"
rows_expire_at Required
string date-time
"2026-09-21T00:00:00Z"
rows_purged Required
boolean
true
BulkImportResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "kind": "customers",
    "environment": "live",
    "status": "validating",
    "source": "console",
    "requested_by": "user",
    "filename": "Example name",
    "encoding": "utf-8",
    "byte_size": 0,
    "columns": [
      "string"
    ],
    "rows": {
      "total": 0,
      "valid": 0,
      "invalid": 0,
      "applied": 0,
      "unchanged": 0,
      "failed": 0
    },
    "preview": {
      "create": 0,
      "update": 0,
      "none": 0
    },
    "failure_code": "string",
    "created_at": "2026-09-21T00:00:00Z",
    "validated_at": "2026-09-21T00:00:00Z",
    "apply_requested_at": "2026-09-21T00:00:00Z",
    "completed_at": "2026-09-21T00:00:00Z",
    "rows_expire_at": "2026-09-21T00:00:00Z",
    "rows_purged": true
  }
}
FieldRequiredType and descriptionExample Value
data Required { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "kind": "customers", "environment": "live", "status": "validating", "source": "console", "requested_by": "user", "filename": "Example name", "encoding": "utf-8", "byte_size": 0, "columns": [ "string" ], "rows": { "total": 0, "valid": 0, "invalid": 0, "applied": 0, "unchanged": 0, "failed": 0 }, "preview": { "create": 0, "update": 0, "none": 0 }, "failure_code": "string", "created_at": "2026-09-21T00:00:00Z", "validated_at": "2026-09-21T00:00:00Z", "apply_requested_at": "2026-09-21T00:00:00Z", "completed_at": "2026-09-21T00:00:00Z", "rows_expire_at": "2026-09-21T00:00:00Z", "rows_purged": true }
BulkImportListResponse 2 fields

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "kind": "customers",
      "environment": "live",
      "status": "validating",
      "source": "console",
      "requested_by": "user",
      "filename": "Example name",
      "encoding": "utf-8",
      "byte_size": 0,
      "columns": [
        "string"
      ],
      "rows": {
        "total": 0,
        "valid": 0,
        "invalid": 0,
        "applied": 0,
        "unchanged": 0,
        "failed": 0
      },
      "preview": {
        "create": 0,
        "update": 0,
        "none": 0
      },
      "failure_code": "string",
      "created_at": "2026-09-21T00:00:00Z",
      "validated_at": "2026-09-21T00:00:00Z",
      "apply_requested_at": "2026-09-21T00:00:00Z",
      "completed_at": "2026-09-21T00:00:00Z",
      "rows_expire_at": "2026-09-21T00:00:00Z",
      "rows_purged": true
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
FieldRequiredType and descriptionExample Value
data Required
array<BulkImport>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "kind": "customers", "environment": "live", "status": "validating", "source": "console", "requested_by": "user", "filename": "Example name", "encoding": "utf-8", "byte_size": 0, "columns": [ "string" ], "rows": { "total": 0, "valid": 0, "invalid": 0, "applied": 0, "unchanged": 0, "failed": 0 }, "preview": { "create": 0, "update": 0, "none": 0 }, "failure_code": "string", "created_at": "2026-09-21T00:00:00Z", "validated_at": "2026-09-21T00:00:00Z", "apply_requested_at": "2026-09-21T00:00:00Z", "completed_at": "2026-09-21T00:00:00Z", "rows_expire_at": "2026-09-21T00:00:00Z", "rows_purged": true } ]
pagination Required { "next_cursor": "string", "has_more": true }
BulkImportInput 3 fields

Schema

object

Example Value

{
  "kind": "customers",
  "csv": "string",
  "filename": "Example name"
}
FieldRequiredType and descriptionExample Value
kind Required "customers"
csv Required
string Maximum length: 5242880

The whole CSV file as text (UTF-8). Up to 5 MB.

"string"
filename Optional
string Maximum length: 255
"Example name"
BulkImportUploadInput 2 fields

Schema

object

Example Value

{
  "kind": "customers",
  "file": "string"
}
FieldRequiredType and descriptionExample Value
kind Required "customers"
file Required
string binary

The CSV file. Up to 5 MB.

"string"
BulkImportApplyInput 1 fields

Schema

object

Example Value

{
  "expected_valid_rows": 0
}
FieldRequiredType and descriptionExample Value
expected_valid_rows Optional
integer Minimum: 0

The number of importable rows you reviewed. A different count refuses the request.

0
BulkImportRow 7 fields

Schema

object

Example Value

{
  "line": 2,
  "status": "pending",
  "action": "create",
  "record_type": "string",
  "record_id": "01K5QWERTY1234567890ABCDEFG",
  "messages": [
    "string"
  ],
  "license_key": "string"
}
FieldRequiredType and descriptionExample Value
line Required
integer Minimum: 2

Line number in the file (the header is line 1).

2
status Required
string

Allowed values: pending, valid, invalid, applied, unchanged, failed

"pending"
action Required
string

Allowed values: create, update, none

What the check expects (before applying) or what was done (after).

"create"
record_type Required
string | null
"string"
record_id Required
string | null

ID of the customer, license user, license or assignment the row created or updated.

"01K5QWERTY1234567890ABCDEFG"
messages Required
array<string>

Reasons the row cannot be or was not imported.

[ "string" ]
license_key Optional
string

Full key of a license issued by this row. Present only for the API key or AI assistant connection that uploaded a licenses file.

"string"
BulkImportRowListResponse 2 fields

Schema

object

Example Value

{
  "data": [
    {
      "line": 2,
      "status": "pending",
      "action": "create",
      "record_type": "string",
      "record_id": "01K5QWERTY1234567890ABCDEFG",
      "messages": [
        "string"
      ],
      "license_key": "string"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
FieldRequiredType and descriptionExample Value
data Required
array<BulkImportRow>
[ { "line": 2, "status": "pending", "action": "create", "record_type": "string", "record_id": "01K5QWERTY1234567890ABCDEFG", "messages": [ "string" ], "license_key": "string" } ]
pagination Required { "next_cursor": "string", "has_more": true }
BulkImportTemplate 9 fields

Schema

object

Example Value

{
  "kind": "customers",
  "columns": [
    {
      "name": "Example name",
      "required": true,
      "description": "Example description"
    }
  ],
  "one_of": [
    "string"
  ],
  "ignored_columns": [
    "string"
  ],
  "forbidden_columns": [
    "string"
  ],
  "header_csv": "string",
  "max_rows": 1,
  "max_bytes": 1,
  "encodings": [
    "utf-8"
  ]
}
FieldRequiredType and descriptionExample Value
kind Required "customers"
columns Required
array<object>
[ { "name": "Example name", "required": true, "description": "Example description" } ]
one_of Required
array<string>

At least one of these columns must be in the header.

[ "string" ]
ignored_columns Required
array<string>

Columns of the export of the same kind that are read past.

[ "string" ]
forbidden_columns Required
array<string>

A header with any of these columns is refused (a license export cannot be imported to issue licenses again).

[ "string" ]
header_csv Required
string

The header line, without a BOM.

"string"
max_rows Required
integer Minimum: 1
1
max_bytes Required
integer Minimum: 1
1
encodings Required
array<string>
[ "utf-8" ]
BulkImportTemplateResponse 1 fields

Schema

object

Example Value

{
  "data": {
    "kind": "customers",
    "columns": [
      {
        "name": "Example name",
        "required": true,
        "description": "Example description"
      }
    ],
    "one_of": [
      "string"
    ],
    "ignored_columns": [
      "string"
    ],
    "forbidden_columns": [
      "string"
    ],
    "header_csv": "string",
    "max_rows": 1,
    "max_bytes": 1,
    "encodings": [
      "utf-8"
    ]
  }
}
FieldRequiredType and descriptionExample Value
data Required { "kind": "customers", "columns": [ { "name": "Example name", "required": true, "description": "Example description" } ], "one_of": [ "string" ], "ignored_columns": [ "string" ], "forbidden_columns": [ "string" ], "header_csv": "string", "max_rows": 1, "max_bytes": 1, "encodings": [ "utf-8" ] }